Has anyone recorded I2S microphone data and sent it through MQTT or BLE using ESP32?
hi team, Has anyone recorded I2S microphone data and sent it through MQTT or BLE using ESP32?
10 Replies
I haven't but there are plenty who have worked with this combo of tech. What is your challenge?
I want to use my esp32 and i2s mic as external mic to be used with pc or phone
Check this out: https://www.youtube.com/watch?v=t4K1HBQUj-k&t=0s
Philip Giacalone
YouTube
ESP32 I2s audio player for internet radio streaming via WiFi (Part 1)
ESP32 I2s audio project for internet radio streaming via WiFi. Includes a volume control potentiometer and a list of audio URLs for internet audio content.
Link to the code:
https://github.com/pgiacalo/ESP32_I2S_WiFi_Radio
Closeup photo of breadboard wiring:
https://drive.google.com/file/d/1n6GwD2lnnVtTxIn9iVWAJra-6E8gJwoq/view?usp=sharing
...
There's some code in the comments I just forked into our Github: https://github.com/DevHeadsCommunity/ESP32_I2S_WiFi_Radio
GitHub
GitHub - DevHeadsCommunity/ESP32_I2S_WiFi_Radio: ESP32 audio player...
ESP32 audio player with volume control. Uses I2S and WiFi to stream radio content from internet URLs. - DevHeadsCommunity/ESP32_I2S_WiFi_Radio
And @youcef_ali here's some additional info re streaming an i2s audio broadcast to an MQTT server: https://github.com/pschatzmann/arduino-audio-tools/discussions/989
GitHub
Sending live audio broadcast from INMP441 to MQTT Server. · pschatz...
Hello, I have been looking through the arduino audio tools library that you have created and tried quite a few examples here to understand its functionality. Wonderful work done here might I add. I...
Both are built around ESP32 targets. Hopefully together you can get everything you need. Let me know if you have specific questions tho.
@Edge Networking devs if you have anything to add, jump in.
I found this tutorial very interesting https://youtu.be/qmruNKeIN-o?si=KsvGedERITiIz7gt
That Project
YouTube
ESP32 | INMP441 | Tutorial - [Part.4] Capturing audio from i2s mic ...
The WAV media format is still a popular file, making it easy to access. In this video, it's showing you how to capture audio from i2s mic to save the WAV file in the SPIFFS.
[INMP441 Omnidirectional Microphone]
https://amzn.to/3Ma8C47
[I2S ADC DAC EXAMPLE]
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/i2s_adc_dac
[All ...
The sound was very bad with 16bit, I'll try now with 32 bits
If you plan to do real time streaming look at VoIP protocols like RTP or WebRTC. MQTT is not a great fit there
what do you suggest ? AMQP ? or tcp, udp ?