Skip to content

Audio output on internal DAC? #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zeekoe opened this issue Jul 5, 2020 · 2 comments
Open

Audio output on internal DAC? #11

zeekoe opened this issue Jul 5, 2020 · 2 comments

Comments

@zeekoe
Copy link

zeekoe commented Jul 5, 2020

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

@miketeachman
Copy link
Owner

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

@zeekoe
Copy link
Author

zeekoe commented Aug 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants