Run A2DP on ESP32-S3? #566
-
I understand that this chip has dual mode Bluetooth, that is classic and BLE. Classic is the only one you can use for audio. Has anyone got audio source transmit to a sink working on this chip? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
https://github.com/pschatzmann/ESP32-A2DP/wiki/Support-for-esp32-c3%3F You are mistaken: just read the data sheet! |
Beta Was this translation helpful? Give feedback.
-
Thank you for creating and maintaining ESP32-A2DP. I appreciate your effort. I use it in my AirGuitar project. I agree the ESP32 datasheet is the final word on A2DP support in non-classic ESP32 BLE, generative AI is giving bad answers. For example, I ask Github Copilot:
and Copilot responds: `To create a custom BLE audio implementation for the ESP32-S3 that uses A2DP and compiles in the Arduino IDE 2 without using the pschatzmann library, we will need to directly utilize the Bluetooth stack provided by Espressif in the Arduino framework. Below is a detailed example that sets up an A2DP source to send audio data to a Bluetooth speaker. Arduino Sketch A2DP_Source.ino The NVS (Non-Volatile Storage) is initialized. The I2S peripheral is configured to transmit audio data. Adjust the pin numbers and settings as needed for your specific hardware setup. In the loop function, audio data is simulated by filling the audio_data buffer with zeros. Replace this with actual audio data for your application. Feel free to replace the placeholder audio data with actual audio data to test the A2DP functionality. If you have any further questions or need additional features, please let me know! So helpful, and wrong. -Frank |
Beta Was this translation helpful? Give feedback.
https://github.com/pschatzmann/ESP32-A2DP/wiki/Support-for-esp32-c3%3F
You are mistaken: just read the data sheet!