schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
993 stars 266 forks source link

[ESP32S3 3.0.1] Too fast / high pitch playing - text to speech / google #774

Open cziter15 opened 1 week ago

cziter15 commented 1 week ago

Hello,

I've encountered an issue with TTS on my custom board with ESP32S3 and MAX9835A.

When TTS request is issued, the audio plays too fast and with higher pitch. Other things like playing from stream or filesystem aren't impacted by the issue.

I'm using 3.0.1 Arduino core.

Can anyone try to reproduce this? Just try to play TTS (connecttospeech)

x9prototype commented 1 week ago

I have the same boards and same core, and am experiencing the same issue when playing an mp3 from spiffs. This happens on the latest master, but release 3.0.8 of this library works fine.

cziter15 commented 1 week ago

@schreibfaul1 you've referenced a commit that is targeting internal DAC, while this issue is targeting MAX9835A (external DAC)

cziter15 commented 6 days ago

@schreibfaul1 using latest master 0a1674329449581a70c8e8ca7fff0e406b23d820 and still experiencing the issue

NewoPL commented 1 day ago

I verified that last commit 0a1674329449581a70c8e8ca7fff0e406b23d820 completly distorts the audio from google TTS mp3. The file used to reproduce attached home.zip

cziter15 commented 4 hours ago

This issue is related to bps. I've tried streaming mp3 with various bitrates and everything below 128 was affected. Arduino >= 3.0.0 On v2.0.16 no issue.