ESP32 + max98357a + online MP3 for Google TTS

brolly759
Posts: 13
Joined: Sun Jun 02, 2019 9:00 pm

ESP32 + max98357a + online MP3 for Google TTS

Postby brolly759 » Sat Aug 24, 2019 3:27 am

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!

brolly759
Posts: 13
Joined: Sun Jun 02, 2019 9:00 pm

Re: ESP32 + max98357a + online MP3 for Google TTS

Postby brolly759 » Sun Aug 25, 2019 3:56 am

I found the answer here:
https://github.com/schreibfaul1/ESP32-audioI2S

Shout out to this person, really great work!

app-z0
Posts: 4
Joined: Sun Jun 21, 2020 9:49 pm

Re: ESP32 + max98357a + online MP3 for Google TTS

Postby app-z0 » Sat Jun 27, 2020 11:52 pm

Even no need any IC
https://youtu.be/Hy_MJePQ33Q

Here is example on a transistor amplifiers for mic and loudspeaker

playground
Posts: 6
Joined: Mon Jan 25, 2021 3:54 am

Re: ESP32 + max98357a + online MP3 for Google TTS

Postby playground » Mon Feb 08, 2021 2:25 am

@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?

Who is online

Users browsing this forum: No registered users and 32 guests