esp-idf/examples/bluetooth/a2dp_sink
Jiang Jiang Jian affed9a235 Merge branch 'feature/a2dp-sink-source-runtime-selection' into 'master'
bt-a2dp: BT A2DP sink and source selection is now runtime

See merge request idf/esp-idf!2229
2018-05-22 22:21:39 +08:00
..
main Merge branch 'bugfix/i2s_mix_result_with_error_code_master' into 'master' 2018-05-17 21:53:06 +08:00
Makefile
README.md component/bt: fix README.md format and loggings for A2DP sink example 2018-01-22 10:24:22 +08:00
sdkconfig.defaults bt-a2dp: BT A2DP sink and source selection is now runtime 2018-05-21 14:02:49 +05:30

README.md

ESP-IDF A2DP-SINK demo

Demo of A2DP audio sink role

This is the demo of API implementing Advanced Audio Distribution Profile to receive an audio stream.

For the I2S codec, pick whatever chip or board works for you; this code was written using a PCM5102 chip, but other I2S boards and chips will probably work as well. The default I2S connections are shown below, but these can be changed in menuconfig:

ESP pin I2S signal
GPIO22 LRCK
GPIO25 DATA
GPIO26 BCK

If the internal DAC is selected, analog audio will be available on GPIO25 and GPIO26. The output resolution on these pins will always be limited to 8 bit because of the internal structure of the DACs.

After the program is started, other bluetooth devices such as smart phones can discover a device named "ESP_SPEAKER". Once a connection is established, audio data can be transmitted. This will be visible in the application log including a count of audio data packets.