-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
speech / host does not work together #741
Comments
|
sorry for bother you, but how to code this line #2? |
please try it like this, I haven't tested the function yet, but the idea is that it should be done like this #include "Arduino.h"
#include "WiFi.h"
#include "Audio.h"
// Digital I/O used
#define I2S_DOUT 25
#define I2S_BCLK 27
#define I2S_LRC 26
Audio audio;
String ssid = "*******";
String password = "*******";
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid.c_str(), password.c_str());
while (WiFi.status() != WL_CONNECTED) delay(1500);
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(21); // default 0...21
audio.connecttospeech("Wenn die Hunde schlafen, kann der Wolf gut Schafe stehlen.", "de"); // Google TTS
}
void loop(){
audio.loop();
}
void audio_eof_speech(const char *info){
Serial.print("eof_speech ");Serial.println(info);
audio.connecttohost(".... radio stream url");
} |
this will probably work, but i need to choose many radio stations. is there an other possibility to wait on eof_speech? i tried with a flag within audio_eof_speech(const char *info) but this doesn't work |
audio.connecttospeech("Radio abc"), "de"); // will never heard
audio.connecttohost(".... radio stream url"); |
thanks, works as well! |
hello, why does this lines not work on arduino ESP32-S3? thx 4 help br andreas
... code
audio.connecttospeech("Radio abc"), "de"); // will never heard
audio.connecttohost(".... radio stream url");
... code
connecttospeech works only if called without following connecttohost. i want to realize an annoncement of an radio station before playing the stream
The text was updated successfully, but these errors were encountered: