How to change sample rate A2DP source to headphone

tanmanh0707
Posts: 15
Joined: Fri Jun 23, 2023 3:26 am

How to change sample rate A2DP source to headphone

Postby tanmanh0707 » 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

tanmanh0707
Posts: 15
Joined: Fri Jun 23, 2023 3:26 am

Re: How to change sample rate A2DP source to headphone

Postby tanmanh0707 » Tue Jan 02, 2024 3:41 am

Hello, does anyone have any idea?

jimmyvongjv
Posts: 5
Joined: Thu Mar 14, 2024 2:06 pm

Re: How to change sample rate A2DP source to headphone

Postby jimmyvongjv » Fri May 17, 2024 7:02 pm

Hi, I am also curious about this. Were you able to figure it out?

Who is online

Users browsing this forum: forrest and 149 guests