Is ESP32 good for audio processing?

filo_gr
Posts: 110
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Is ESP32 good for audio processing?

Postby filo_gr » Fri Sep 24, 2021 3:07 pm

Hello,

I'm asking this because I have a Teensy 3 board and I know it is a high performance board, expecially for audio processing.
On the other hand I'm entering the ESP world, I'd like to understand if ESP32 is able to sample (ADC) and create (DAC) waveforms.
:arrow: Are the ESP32's peripherals able to sample at a rate higher than ~40KHz?
:arrow: Can the I2S protocol come to the aid? And how?

Regards,
Filippo
Filippo

PanicanWhyasker
Posts: 45
Joined: Sun Jan 06, 2019 12:42 pm

Re: Is ESP32 good for audio processing?

Postby PanicanWhyasker » Fri Sep 24, 2021 3:47 pm

I'm not a specialist, but I've used an ESP32 for audio recording (voice, stereo, 24 kHz). But I'm using an internal chip that is I2S compliant.
Have you looked into ESP ADF? It has a lot of examples and links to development boards which have all the needed hardware. You may be able to answer your question about what the capabilities of the bare-bones ESP32 chip are.
I think the DACs can be configured as outputs from an I2S stream, but they are 8-bit, so the quality won't be great.

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

Re: Is ESP32 good for audio processing?

Postby ESP_Sprite » Mon Sep 27, 2021 1:20 am

PanicanWhyasker is correct: while you can theoretically use the built-in DACs and ADCs, for anything resembling good audio quality, you probably want to use an external I2S codec instead.

filo_gr
Posts: 110
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Re: Is ESP32 good for audio processing?

Postby filo_gr » Mon Sep 27, 2021 6:26 am

PanicanWhyasker wrote:
Fri Sep 24, 2021 3:47 pm
I'm not a specialist, but I've used an ESP32 for audio recording (voice, stereo, 24 kHz). But I'm using an internal chip that is I2S compliant.
Have you looked into ESP ADF?
So, if I'm not wrong, ESP32 is not so good at processing sound.
However there is the opportunity to "specialize" the ESP buying a particular board that extends the ESP32's capabilities.
esp32-lyrat-v4.3-block-diagram.jpg
ESP-ADF
esp32-lyrat-v4.3-block-diagram.jpg (48.14 KiB) Viewed 4868 times
On the other hand I understand I2S is a protocol used by some external components such as DACs and ADCs, so they can communicate the samples with ESP32. And again: I need something to improve the ESP32's capabilities.

Am I right?
Filippo

Who is online

Users browsing this forum: No registered users and 29 guests