Replies: 1 comment
-
You would have to extend the library for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a need to play SD card mp3 files and some other audio data, when playing mp3, the library will automatically adjust the sample rate, number of channels, etc., which is great. When the mp3 file finishes playing, I need to change the sample rate such as setting it to 16000Hz, mono (other audio data formats); I read the source code and didn't find a way to change the sample rate, I tried to use
i2s_set_sample_rates((I2S_NUM_0, 16000);
,Then use i2s_write to play other audio:
i2s_write(I2S_SPK_PORT, buffer, bytes_read, &bytes_written, portMAX_DELAY);
But this one doesn't seem to work, and the sound sounds very fastBeta Was this translation helpful? Give feedback.
All reactions