Page 1 of 1

How to change sample rate A2DP source to headphone

Posted: Tue Dec 26, 2023 3:55 am
by tanmanh0707
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

Re: How to change sample rate A2DP source to headphone

Posted: Tue Jan 02, 2024 3:41 am
by tanmanh0707
Hello, does anyone have any idea?

Re: How to change sample rate A2DP source to headphone

Posted: Fri May 17, 2024 7:02 pm
by jimmyvongjv
Hi, I am also curious about this. Were you able to figure it out?