I have an esp32 dev board (esp32-Wroom-32e? Processor I think). I want to be able to pair it with a generic bluetooth speaker and send sounds/music to it. I have been unable to find any examples of that. Is it doable? How can I get started??
John
Esp32 play sounds to a speaker over bluetooth
-
Gryphon3rd
- Posts: 4
- Joined: Sat Nov 22, 2025 7:42 pm
-
nopnop2002
- Posts: 347
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
Re: Esp32 play sounds to a speaker over bluetooth
A2DP-SOURCE EXAMPLE
https://github.com/espressif/esp-idf/tr ... 2dp_source
A2DP-SINK EXAMPLE
https://github.com/espressif/esp-idf/tr ... /a2dp_sink
https://github.com/espressif/esp-idf/tr ... 2dp_source
A2DP-SINK EXAMPLE
https://github.com/espressif/esp-idf/tr ... /a2dp_sink
-
Gryphon3rd
- Posts: 4
- Joined: Sat Nov 22, 2025 7:42 pm
Re: Esp32 play sounds to a speaker over bluetooth
Please forgive my ignorance. This is my first experience with any microcontroller. I have been a computer programmer for mainframe/mini/PC systems for over 40 years, but this is new to me. Can this code me 'integrated' with a normal Arduino-IDE sketch or would I have to start all over in C ?
John
John
-
nopnop2002
- Posts: 347
- Joined: Thu Oct 03, 2019 10:52 pm
- Contact:
-
Gryphon3rd
- Posts: 4
- Joined: Sat Nov 22, 2025 7:42 pm
Re: Esp32 play sounds to a speaker over bluetooth
Thanks. I will post on the arduino forums and see if there is something equivalent there. Don’t really want to rewrite everything for a one off project like this. Have a great day
Re: Esp32 play sounds to a speaker over bluetooth
Hope your journey is great, but know that you are jumping in the pool a bit on deep end with a first project like this.This is my first experience with any microcontroller.
You should get more familiar with the platform first, and FreeRTOS as this a dual core processor. make friends with menuconfig. There are a bazillion options in there which you can thing of it as your BIOS for a PC. Not having a feature enabled in there will cause some things not to work, so be aware.
Try to resist starting off with Arduino-IDE, and use ESP-IDF. Arduino is a total joke, and will cause more harm than good later in like. ESP-IDF unlocks everything.Can this code me 'integrated' with a normal Arduino-IDE sketch or would I have to start all over in C ?
-
Gryphon3rd
- Posts: 4
- Joined: Sat Nov 22, 2025 7:42 pm
Re: Esp32 play sounds to a speaker over bluetooth
Thanks! I probably should have started with the esp-idf but not sure I want to change at this point. Have the project 75% completed already. It’s not a product, just a one off learning project. If I can’t get the mp3 working through arduino, I will switch.
At least the hardware I have built won’t need changing if I switch dev tools
At least the hardware I have built won’t need changing if I switch dev tools
Who is online
Users browsing this forum: PerplexityBot and 6 guests
