Page 1 of 2
Audio Support
Posted: Wed Mar 09, 2016 10:46 am
by drasko
Hello,
we are considering using ESP32 in audio application, i.e. for creating a BT speaker.
We would like to ask what kind of audio support does ESP32 have? Is this support already implemented in SDK?
Can ESP32 be used for HiFi audio applications (i.e. BT speakers) and what is the overall quality of audio? What audio profiles/codecs does it support? Does it suport Advanced Audio Distribution Profile (A2DP)?
We are considering connecting a full digital amplifier - like this one:
http://www.st.com/web/catalog/sense_pow ... 6/PF253416, directly to I2S outputs. Will this work with ESP32?
Best regards,
Drasko
Re: Audio Support
Posted: Thu Mar 10, 2016 9:49 am
by ESP_Sprite
We have I2S audio support; test code for this is already in the SDK and working. If you want example code: the
Sega Master System emulator has a FreeRTOS implementation of a queue-based audio output driver for I2S. As far as I know the I2S output is standard; any codec/amp that supports standard I2S audio input should work just fine.
Re: Audio Support
Posted: Mon May 09, 2016 12:00 pm
by barometre
Hello,
I am here for the same question. Does it have A2DP support, does it have HFP? If yes what are the supported codecs (sbc, mp3, aac, aptx etc).
Is there any documentation, in case of A2DP support how can we forward sound to i2s output and how can we support the sound from ADC to HFP support of BT chip?
Many thanks.
Re: Audio Support
Posted: Mon Sep 12, 2016 10:40 am
by barometre
Hello,
Any news on how to pipe audio received on a2dp or hfp to i2s port?
Thanks.
Re: Audio Support
Posted: Tue Feb 28, 2017 7:12 am
by danchiche
I'll also interested by A2DP support
I want to connect my car player to Bluetooth on the ISO port to stream music with esp32 and i2s audio decoder (and an amplifier I think).
Is there a code for A2DP ?
Thanks
Re: Audio Support
Posted: Tue Feb 28, 2017 10:07 am
by Jakobsen
Hi Drasko
We have full digital audio stream running: Webstream -> wifi -> mp3 deocder -> i2c hardware ->
MA12040P
Works perfect - Noise level still to high due to already flagged APLL hardware issue.
/j
Re: Audio Support
Posted: Thu Apr 13, 2017 4:25 pm
by rudi ;-)
drasko wrote:Hello,
we are considering using ESP32 in audio application, i.e. for creating a BT speaker.
We would like to ask what kind of audio support does ESP32 have? Is this support already implemented in SDK?
Can ESP32 be used for HiFi audio applications (i.e. BT speakers) and what is the overall quality of audio? What audio profiles/codecs does it support? Does it suport Advanced Audio Distribution Profile (A2DP)?
We are considering connecting a full digital amplifier - like this one:
http://www.st.com/web/catalog/sense_pow ... 6/PF253416, directly to I2S outputs. Will this work with ESP32?
Best regards,
Drasko
hi drasko
@barometre
@danchiche
A2DP-SINK demo
perhabs you have a try here
..
..
After the program started, other bluetooth devices such as smart phones can discover this device named "ESP_SPEAKER", and after connection is established, audio data can be transmitted and there will occur a count of audio data packets printed.
..
..
happy easter17!
best wishes
rudi
edit:
test with win10
connect to esp_speaker
- IMG_6257_s.jpg (140.32 KiB) Viewed 41040 times
and mediaplayer streams audio packet's to esp32 --
( debug msg on uart )
- IMG_6257_s2.jpg (97.28 KiB) Viewed 41040 times
Re: Audio Support
Posted: Thu Apr 13, 2017 5:19 pm
by BuddyCasino
Oh happy day! Totally missed this when updating the SDK.
Re: Audio Support
Posted: Thu Apr 13, 2017 10:27 pm
by Jakobsen
Yes
Nice job @Espressif - BT audio packages comming through
Re: Audio Support
Posted: Sun Apr 16, 2017 1:06 pm
by Vladislav Knyazkov
Jakobsen wrote:Yes
Nice job @Espressif - BT audio packages comming through
But the example fails after latest SDK lib's update. Issue #520 "Invalid cache access somewhere in BT" @ github
Jakobsen wrote:
We have full digital audio stream running: Webstream -> wifi -> mp3 deocder -> i2c hardware ->
MA12040P
It's not easy to buy these IC's or get samples, still waiting for answer from profusonic/MA
Jakobsen wrote:
Works perfect - Noise level still to high due to already flagged APLL hardware issue.
Do you mean it's because of incorrect frequency range (not evident, but can be explained)
(According to errata: 3.7. There is a limit on the frequency range for the audio PLL.)
or something else?