Analog output #284
-
Now first, I want to say I'm new to this audio thing, and this library clearly made it easier to stream files to my esp but is there a way to get this input and output it in an amplifier without I2S. In my country there really aren't any available, I only got these simple amplifiers and I managed to get them working and play sounds. And from what I understand if I just analogWrite the output to the pin, that should just give me the value of the wave of the song. The thing is I cant find any way of doing that with this library. Sorry if my description of my problem wasn't accurate but at this moment I'm a bit frustrated (not with this). Any help is welcome, and thank you. If you need info, ask please. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The ESP32 has a built in DAC that you can try to use: The related class is AnalogAudioStream. I am usually ordering by external DAC modules from China (from Bangood or Aliexpress) and I would be surprised if you could not get those delivered as well to your country. |
Beta Was this translation helpful? Give feedback.
-
I think you forgot to install the libhelix project: Here is the link to all codec projects |
Beta Was this translation helpful? Give feedback.
-
You can't - they are fixed and the same for every esp32. If you set the log level to info the pins should be printed in the log. |
Beta Was this translation helpful? Give feedback.
The ESP32 has a built in DAC that you can try to use: The related class is AnalogAudioStream.
But please note that you might expect to hear quite some noise, but it will be better then a PWM output (PWMAudioStream).
I am usually ordering by external DAC modules from China (from Bangood or Aliexpress) and I would be surprised if you could not get those delivered as well to your country.