-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add i2s audio input #8
Comments
it should be possible; doesn't currently exist |
Are you working on this? I am in the process of attaching a real audio codec chip to the pico. The next step would be to update audio_i2s.c to have another DMA channel for the microphone data input. Would this be the right approach for a real funtional USB sound card? Any suggestions? |
I know very little about audio, but does https://github.com/ArmDeveloperEcosystem/microphone-library-for-pico help at all? 🤷 |
This is using PDM (pulse density modulation), I had already checked that. Thanks anyway. |
Hi, @kilograham it would be nice to have your feedback :) Thanks! |
oh, yes, go ahead and work on it! |
So I started with the go ahead, it's living here: It compiles and runs, but it's not working yet :(. Most likely the AudioRingBuffer is not ported correctly, specifically the IRQ and DMA stuff I'm not sure about. I'll update here if I get it working, in the mean time PRs more than welcome! |
Hm yeah that was a short adventure, I've solved my issue by reusing the MicroPython code just like @giampiero7 did: https://github.com/biemster/pico-serialmic |
Any update on this, audio input would be awesome. @biemster interesting in your reusing of the micropython code, did you switch over you project to micropython or did you use part of the micropython c code? |
@jensolsson my pico mic project got snowed under a bit, I never switched my project to micropython because I wanted to use the bitbanged ethernet stuff. It seems that I just copied the i2s code and continued as a c-sdk project (although I never finished the whole thing (the mic part worked great though, I piped it from uart to alsa and got good results)) |
In the readme it's mentioned that i2s is only for audio output. Is it possible to add i2s audio input or does it maybe already exist?
The text was updated successfully, but these errors were encountered: