Hello,
I have a product that's going to use esp32, which has a network radio playback function.Now I know ESP32 I2S interface can output the data to a digital power amplifier, and speakers. But I'm not quite sure ESP32 could directly output audio stream.If it can output audio streams, can the program control the amplitude of the audio stream?If it can, I can control the output sound size directly through ESP32, because the current selected analog power amplifier has no volume adjustment function.
I look forward to your reply. Thank you!
Can ESP32 output audio streams?
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Can ESP32 output audio streams?
Technically: yes, the ESP32 has two DACs you can use to directly output an analog signal. You can digitally divide the signal going to this to get some kind of volume control. In practice, these DACs are only eight bit, so audio quality won't be exactly HiFi, so you may want to grab an external codec anyway.
Re: Can ESP32 output audio streams?
Some Off-Shelf Suggestions (tested one with ESP32 if any?)ESP_Sprite wrote:Technically: yes, the ESP32 has two DACs you can use to directly output an analog signal. You can digitally divide the signal going to this to get some kind of volume control. In practice, these DACs are only eight bit, so audio quality won't be exactly HiFi, so you may want to grab an external codec anyway.
Cheers
Gfast2
Re: Can ESP32 output audio streams?
Basically, you can output audio via:
PWM
PDM
I2S
DAC
How many watts are you trying to output? 100mW, 1W, 10W?
Are you trying to output to headphones or speakers?
PWM
PDM
I2S
DAC
How many watts are you trying to output? 100mW, 1W, 10W?
Are you trying to output to headphones or speakers?
-
- Posts: 3
- Joined: Tue Jan 02, 2018 6:09 am
Re: Can ESP32 output audio streams?
You explain it very well, and your suggestion is very applicable.ESP_Sprite wrote:Technically: yes, the ESP32 has two DACs you can use to directly output an analog signal. You can digitally divide the signal going to this to get some kind of volume control. In practice, these DACs are only eight bit, so audio quality won't be exactly HiFi, so you may want to grab an external codec anyway.
Thanks!!!
-
- Posts: 3
- Joined: Tue Jan 02, 2018 6:09 am
Re: Can ESP32 output audio streams?
1W,a speaker.hassan789 wrote:Basically, you can output audio via:
PWM
PDM
I2S
DAC
How many watts are you trying to output? 100mW, 1W, 10W?
Are you trying to output to headphones or speakers?
I see the reply on the 2nd floor is very good, I intend to use his suggestion, use a codec.
Thank you for your reply!
Who is online
Users browsing this forum: No registered users and 144 guests