Page 1 of 1

ESP32 + max98357a + online MP3 for Google TTS

Posted: Sat Aug 24, 2019 3:27 am
by brolly759
I am trying to use the Google Text to Speech API and generate an MP3 file from Google and then play it on the ESP32 with MAX98357A connected. Someone below wrote code to somewhat do that but I keep getting Watchdog errors or other errors:

https://github.com/oroca/oroca_can
https://www.youtube.com/watch?v=lPwdcfhJnrY

Using this library I can generate the URL's for the MP3 file:
https://github.com/horihiro/esp8266-google-tts

Here is an example Hello World URL to play:
https://translate.google.com/translate_ ... ttsspeed=1

I know the hardware works because I load the bluetooth speakers and it plays fine.

Any help would be great!

Re: ESP32 + max98357a + online MP3 for Google TTS

Posted: Sun Aug 25, 2019 3:56 am
by brolly759
I found the answer here:
https://github.com/schreibfaul1/ESP32-audioI2S

Shout out to this person, really great work!

Re: ESP32 + max98357a + online MP3 for Google TTS

Posted: Sat Jun 27, 2020 11:52 pm
by app-z0
Even no need any IC
https://youtu.be/Hy_MJePQ33Q

Here is example on a transistor amplifiers for mic and loudspeaker

Re: ESP32 + max98357a + online MP3 for Google TTS

Posted: Mon Feb 08, 2021 2:25 am
by playground
@brolly759, I'm trying to do the same thing using Atom Echo Smart Speaker Development Kit. How to play the audio file from google tts url and store the mp3 file for future replay?