Closed JonSilver closed 2 years ago
The audio information should be updated automatically from the mp3 info. If this is not working you can try to set it to the right values to start with:
config.channels = 1 config.sample_rate = 22050
Please also note that if the mp3 is too short you might not hear the full sound because the remainder is still sitting in the buffer. You can avoid this issue by switching to wav or adding more silence at the end of your file
ps. you might consider to use my simple_tts project...
If you did not press any keys, it seems that the touch limits are too low. You can set your own limit by calling e.g. kit.audioActions().setTouchLimit(70). Or you just comment out the kit.processActions();
I'm planning to stream an MP3 audio blob from an Azure blob store to wired speakers upon receipt of a trigger message containing the MP3 url to play. I'm using an ESP32 LyraT board with your AudioKit HAL. Alas, all I get is a brief speaker pop that sounds like the sound is being played far too fast or something.
@pschatzmann please can you tell me if there's anything obviously wrong? Or if my approach is just completely & fundamentally flawed?
In the log output there's this error... no idea if it's relevant:
There's also a never-ending series of touch pin events at the end, even though there's nothing anywhere near the touch buttons.
For the sample code below, I've created an example URL for testing purposes, valid for a couple of months from today, with read-only access to a simple MP3 example, so don't worry about the apparent security leak.
Thank you in advance, Jon
Here's the code:
This is the output: