esp32 mp3 stream to analog out produces very sped up audio at 20k sample rate. #1030
-
I have code that is using google tts url stream to play text to speech samples back through the analog output of the esp32s2, but the stream is high pitched and way too fast. Is this caused by the sample size being off? or is it an internal conversion that is going wrong? here is my code:
I tried a resampling stream and it broke the urlstream. Not sure how. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Just added a test example that is just using audio-tools functionality: It works perfectly for me. You might need to upgrade if you want to use it because I needed to add the support for url encoding... ps. If you check the log the mp3, it has a sampling rate of 24000 with 1 channel! |
Beta Was this translation helpful? Give feedback.
-
and what did you do with the channels ? |
Beta Was this translation helpful? Give feedback.
Just added a test example that is just using audio-tools functionality: It works perfectly for me.
You might need to upgrade if you want to use it because I needed to add the support for url encoding...
ps. If you check the log the mp3, it has a sampling rate of 24000 with 1 channel!