Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

fesp32@joov.de
Posts: 13
Joined: Tue May 02, 2017 9:33 am

Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

Postby fesp32@joov.de » Wed Jun 14, 2017 1:29 pm

Hi,

I understand that the ESP32 uses the Bluedroid Stack which apparently supports A2DP Source and Sink services (please correct me if this is wrong).

The esp-idf contains an a2dp_sink example which works.

If have the following questions:
- Can the ESP32 also act as an audio source, i.e. A2DP Source?
- Is there any example of that? I am looking at the Bluedroid APIs but I do not have the slightest clue how to configure the ESP32 as an A2DP Source.
- Blue sky question: Is the ESP32 able to connect to two separate Bluetooth Speakers and stream audio to them? Is this doable using the Blueddroid stack?

Any hints welcome.

Cheers,
Johannes

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

Postby rudi ;-) » Wed Jun 14, 2017 2:05 pm

fesp32@joov.de wrote:Hi,

..
Any hints welcome.

hi johannes

(transceiver) (A2DP-SRC: Advanced Audio Distribution Source)
(receiver) (A2DP-SNK: Advanced Audio Distribution Sink)

what we have just in time as example is A2DP-SNK as ESP_SPEAKER

what you search is A2DP-SRC , i think there is just in time no example available.

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

CrabbyPete
Posts: 1
Joined: Tue Sep 05, 2017 1:16 am

Re: Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

Postby CrabbyPete » Tue Sep 05, 2017 1:19 am

There may be no example, but is it able to be done?

omario_ii
Posts: 1
Joined: Sat Apr 25, 2020 5:29 am

Re: Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

Postby omario_ii » Sat Apr 25, 2020 5:31 am

I stumbled upon this:

https://github.com/gtalusan/esp-idf/tre ... 2dp_source

Never tested but author says it is an implementation of A2DP-SRC

nopnop2002
Posts: 111
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Bluetooth A2DP Source example? (ESP32 streaming to BT speaker)

Postby nopnop2002 » Mon Feb 15, 2021 2:11 pm

Try this.
https://github.com/nopnop2002/esp-idf-a2dp-source
You can listen to WAV with your bluetooth speaker.

Who is online

Users browsing this forum: No registered users and 110 guests