earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
2k stars 432 forks source link

Enhancement request: AudioFileSourceA2DP + Demo sketch #119

Open tueddy opened 6 years ago

tueddy commented 6 years ago

Hi Earle,

ESP8266Audio works like a charme on ESP32! One more thing is missing: A source for classic Bluetooth audio. ESP32 has everything builtin for receiving/playing audio via bluetooth A2DP. There is a sample in IDF but i never got this working in Arduino IDE before. Now i have a fully working demo playing audio via bluetooth speaker connection, tested with iOS, MacOS and Android. I've attached an example sketch for latest arduino-ESP revision.

It would be very helpful to see this integrated into ESP8266Audio, so i can choose different sources and outputs and mixing them. Unfortunatly it's out my capabilities to integrate that and make a pull request.

Some impressions:

image-1

bildschirmfoto 2018-08-20 um 21 24 47

screenshot_20180821-095646

The example sketch is running on ESP32, using a hardware I2S DAC, standard PINs 25,26, 27 + CS on Pin12, see main file. Tested with Arduino and SDK version: v3.2-dev-39-gaaf12390

a2dp_sink.zip

Hope this is starting point for an AudioFileSourceA2DP.. Let me know what you think or if you need more information..

Best regards Dirk

Martin-Laclaustra commented 3 years ago

Additional code that could help to implement this is at: https://github.com/pschatzmann/ESP32-A2DP Please see: https://github.com/pschatzmann/ESP32-A2DP/issues/11

Regards

harryberlin commented 2 months ago

is a2dp implemeted yet? exist an a2dp receiver example?