-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Support I2S audio input #4496
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
Comments
I've been looking at some existing code base that enables I2S input. Seems like it could be added to core_esp8266_i2s without too much grief as it's only setting up another set of dma buffers, starting the slc dma engine, and adding an api to get received data. Setting this up for the n+2 release for now. |
If either of you already has a microphone hooked up, can you look at the new PR #4539 ? I've taken the code in @joextodd's repo as a start, and combined it with the existing I2S code that support Xmit in Arduino core. It's based on the same idea as the current xmit, where your app needs to i2s_read_sample() in its loop() to get the data and do work (i.e. requantize to 8-bits, packetize, and send as RTSP or whatever). It's definitely not done, but it is returning samples that make sense to some degree in my limited testing (resistor from D6->Gnd/VCC on the D1 Mini I have running). Overflow (i.e. not reading fast enough) will cause some interesting artifacts as-is, for example. If the ESP8266 has a good HW reference that discusses its I2S block in more detail than the ESP8266-Tech-Ref, I sure as heck can't find it. |
My test app:
|
Is there any other mic than SPH0645 as i need frequency range between 20HZ to 20 KHZ. |
@pashinen Sorry, I've only used existing pcbs. Dual Invensense mikes are in the Google AIY project so they definitely must be low cost. Closing since the I2S input was added a while back and no feedback from the original requesters. |
Please support I2S audio input on the ESP8266 for bidirectional audio streaming. This can be used e.g. for intercoms, VoIP, voice control with audio notifications, ...
The text was updated successfully, but these errors were encountered: