Audio Support

drasko
Posts: 1
Joined: Wed Mar 09, 2016 10:32 am

Audio Support

Postby drasko » Wed Mar 09, 2016 10:46 am

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

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Audio Support

Postby ESP_Sprite » Thu Mar 10, 2016 9:49 am

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.

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Re: Audio Support

Postby barometre » Mon May 09, 2016 12:00 pm

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.

barometre
Posts: 22
Joined: Mon May 09, 2016 11:22 am

Re: Audio Support

Postby barometre » Mon Sep 12, 2016 10:40 am

Hello,

Any news on how to pipe audio received on a2dp or hfp to i2s port?

Thanks.

danchiche
Posts: 1
Joined: Tue Feb 28, 2017 7:08 am

Re: Audio Support

Postby danchiche » Tue Feb 28, 2017 7:12 am

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

User avatar
Jakobsen
Posts: 89
Joined: Mon Jan 16, 2017 8:12 am

Re: Audio Support

Postby Jakobsen » Tue Feb 28, 2017 10:07 am

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
Analog Digital IC designer / DevOps @ Merus Audio, Copenhagen, Denmark.
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then

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

Re: Audio Support

Postby rudi ;-) » Thu Apr 13, 2017 4:25 pm

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
IMG_6257_s.jpg (140.32 KiB) Viewed 41038 times


and mediaplayer streams audio packet's to esp32 --
( debug msg on uart )

IMG_6257_s2.jpg
IMG_6257_s2.jpg (97.28 KiB) Viewed 41038 times
Last edited by rudi ;-) on Thu Apr 13, 2017 9:05 pm, edited 1 time in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: Audio Support

Postby BuddyCasino » Thu Apr 13, 2017 5:19 pm

Oh happy day! Totally missed this when updating the SDK.

User avatar
Jakobsen
Posts: 89
Joined: Mon Jan 16, 2017 8:12 am

Re: Audio Support

Postby Jakobsen » Thu Apr 13, 2017 10:27 pm

Yes
Nice job @Espressif - BT audio packages comming through

Image
Analog Digital IC designer / DevOps @ Merus Audio, Copenhagen, Denmark.
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then

Vladislav Knyazkov
Posts: 4
Joined: Sun Apr 16, 2017 12:46 pm

Re: Audio Support

Postby Vladislav Knyazkov » Sun Apr 16, 2017 1:06 pm

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?
Best Regards,
Vladislav

Senior ASIC designer at SiTime

Who is online

Users browsing this forum: No registered users and 158 guests