A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By mmachenry
#49514 Hey everyone,

I am looking to make what is best described as an intercom as the first stage of my project. I will need to send audio to and from a central server. I've seen people streaming audio in projects like this one: https://github.com/espressif/ESP8266_MP3_DECODER in my research. I haven't seen many streaming back to the server and none doing bidirectional.

I'm looking for advice on what integrated circuits to use to do this. I know that the ESP8266 has an analog to digital pin that I might be able to connect a microphone to. I'm not sure if the 1 volt limit will support a microphone though. I'm pretty new to audio on embedded chips.

Furthermore I know that there are some bandwidth limitations both for the Wifi as well as the amount of encoding and decoding that can be done on the chip. Doing this bidirectionally might be overload. Perhaps this will be mitigated, however, with a separate encoder/decoder.

I have found that AAC is recommended for really low bitrate audio as having the best quality. I am considering getting an AAC encoder/decoder chip and hooking that up to a tip/ring/ring/shield 3.5mm jack so that I can plug in a headphone mic combo.

I don't really know if this is going to be a good idea, honestly. Or if maybe I can do all of this just on chip with an ESP8266 which I guess I'd like to try first if it could work. Audio quality doesn't need to be stellar since it's just a phone call and not music but obviously, it can't be terrible.

I saw this walkie talkie tutorial: https://www.hackster.io/middleca/wi-fi- ... ies-0a38f4
It's pretty good. It makes use of the Particle Photon's DAC I think though. I am using a regular ESP8266-01. I also have a Sparkfun Thing Dev Board.

Would trying to use the RaspberryPi Zero with an ESP8266 as a Wifi connection make sense because the Pi0 has full audio capability already?I found this which might be able to work directly with the ESP8266. https://polyvection.com/shop/plaindac/ but it's pretty expensive. I'm hoping to stream audio back and forth for around $10 and I'm willing to lose a decent amount of audio quality just so long as verbal communication is possible.

Are there any good tutorials for this? Should I be getting encode/decode chips? Should I get a DAC, and ADC, and encoders and decoders? Does anyone have any specific hardware recommendations?

Thanks for the help.
User avatar
By davydnorris
#69311 There are some very nice MEMS mics by Invensys that have built in I2S. All you would need is one of them and then read the audio via I2S. Check this breakout board - it works well:

https://www.tindie.com/products/onehorse/ics43432-i2s-digital-microphone/