How to change sample rate A2DP source to headphone
Posted: Tue Dec 26, 2023 3:55 am
Hi,
I'm working on a project in which esp32 works as a Bluetooth source, sends audio data from I2S microphone to headphone/earphone and it's working properly with default configuration.
As per my understanding, esp32 a2dp works at 44100Hz default sample rate. So I configured I2S microphone to 44100Hz too.
Now I want to change the sample rate to other values such as 16, 22.05 and 32KHz. However I had no success to change it. Does anyone has experience to to achieve that?
The code is same as this GitHub repo, it is written in Arduino platform but the configuration is the same as esp-idf.
https://github.com/pschatzmann/ESP32-A2DP
Thank you,
Manh
I'm working on a project in which esp32 works as a Bluetooth source, sends audio data from I2S microphone to headphone/earphone and it's working properly with default configuration.
As per my understanding, esp32 a2dp works at 44100Hz default sample rate. So I configured I2S microphone to 44100Hz too.
Now I want to change the sample rate to other values such as 16, 22.05 and 32KHz. However I had no success to change it. Does anyone has experience to to achieve that?
The code is same as this GitHub repo, it is written in Arduino platform but the configuration is the same as esp-idf.
https://github.com/pschatzmann/ESP32-A2DP
Thank you,
Manh