-
Notifications
You must be signed in to change notification settings - Fork 437
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
[Feature Request] - Managing Google TTS #475
Comments
Also remark following change in ESP32-audioI2S which might inspire to detect the end of the stream |
After some investigation, I've found where is the problem : There are some issues about chunk management in ESP8266audio, most of them for ICY streams (=shoutcast). From what I understand, there are some data in the mp3 stream which indicate the size of the file. I think that it is what is done here in ESP32-audioI2S library. @yoav-klein & @DSangyy , I saw that you have working on the chunk management, if you have some time to take a look it will be very welcome ;) |
Google TTS is a killer feature for ESP due to the multilingual and quality of voices.
Following issue #395 : it seems not possible to use Google TTS url like a classical mp3 stream due to a buffering problem at the end of the play.
Easy way to reproduce the problem : take "StreamMP3FromHTTP" example, and replace :
const char *URL="http://kvbstreams.dyndns.org:8000/wkvi-am";
with
const char *URL="http://translate.google.com/translate_tts?ie=UTF-8&q=bonjour&tl=fr&client=tw-ob&ttsspeed=1";
This is a record of the sound that I obtain.
Managing Google TTS seems more complex than what I was thinking...
I found this I2S library which support Google TTS: ESP32-audioI2S
As you can see here the author has made a complex function to use Google TTS. This could be a good source of inspiration to make a new AudioFileSourceGoogleTTS.h 😅
Interesting facts : I also tested to play Google TTS on this library without using this specific function, just with the URL of Google Translate and the result was similar to ESP8266Audio : at the end of the play there is a buffer problem. It doesn't hang the ESP on this library but it means that Google TTS send the mp3 file in a particular way which require more work than a classic mp3 stream.
The text was updated successfully, but these errors were encountered: