A2DP source

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: A2DP source

Postby chegewara » Thu Nov 01, 2018 6:19 pm

When i tested A2DP source code ive got the same log message:

Code: Select all

BT_APPL: btc_get_num_aa_frame() - Limiting frames to be sent from 55 to 21
Then i changed log level to INFO and message disappeared and code is running smoothly.

MarkIngle
Posts: 30
Joined: Wed Jan 18, 2017 4:48 am

Re: A2DP source

Postby MarkIngle » Sun Nov 04, 2018 2:40 pm

I finally got something working. I pulled some of the code from the blue kitchen example on the net. Using the sine wave array structure made the code much simpler. Also I am integrating an option to play a sound from a piezo speaker (note the GPIO setup). This code is part of a project that I am working on. Here is a link to my repo on git:

https://github.com/markingle/a2dp_source

The code for SPIFFS is commented out for now and there are basic instruction for setting up the partition and uploading the image in the readme. My objective is to be able to control when a sound is played over A2DP. Check out the play_control branch to follow along on my work......or lack of! I will need some help with coding for control but I believe the options are available in the event types.

shaileshbakshi
Posts: 1
Joined: Fri Nov 16, 2018 5:44 am

Re: A2DP source

Postby shaileshbakshi » Fri Nov 16, 2018 12:02 pm

I had have success fully implemented wav file transmission form a2dp source at 44100Hz but i am not able to do it with 16000Hz pls help me.

MarkIngle
Posts: 30
Joined: Wed Jan 18, 2017 4:48 am

Re: A2DP source

Postby MarkIngle » Thu Nov 22, 2018 2:52 pm

Is your wave file created at 16000Hz?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: A2DP source

Postby chegewara » Thu Nov 22, 2018 7:55 pm

For current stage, the supported audio codec in ESP32 A2DP is SBC. SBC audio stream is encoded from PCM data normally formatted as 44.1kHz sampling rate, two-channel 16-bit sample data. Other SBC configurations can be supported but there is a need for additional modifications to the protocol stack.
https://github.com/espressif/esp-idf/tr ... leshooting

Who is online

Users browsing this forum: Bing [Bot] and 136 guests