micropython-esp32-i2s-examples icon indicating copy to clipboard operation
micropython-esp32-i2s-examples copied to clipboard

Audio output on internal DAC?

Open zeekoe opened this issue 4 years ago • 2 comments

Hi,

Great work, looks nice! I've been searching around for a while to see if/how I can output audio on the internal DAC using DMA. Because I like to have sound, and low quality is fine. Apparently, the I2S thingy inside the ESP32 can route it's audio to the DAC. I've seen some C examples that do stuff like that, but diving into C is quite a lot more hassle than python... In your readme I can't see things that point into that direction. Is it just not supported, or is it not documented?

Kind regards, Ronald

zeekoe avatar Jul 05 '20 18:07 zeekoe

Hi Ronald, At the moment, the I2S pull request does not support output to the DAC. Only Philips I2S protocol is supported. I may implement the DAC feature after I finish I2S support for the PyBoards. That will be at least 6 months out.

The Loboris ESP32 port offers I2S/DAC support. You may want to try that port.
https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/dac https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo https://forum.micropython.org/viewtopic.php?t=5900#p33902

miketeachman avatar Jul 07 '20 02:07 miketeachman

Thanks. Sorry for not replying. So it seems I have to choice currently between adding a 4 MB flash chip (my doesn't have) or adding an external DAC. Don't have time to do it myself either, so I'll just wait. :) It's only for a toy project anyway.

zeekoe avatar Aug 20 '20 18:08 zeekoe