Code Monkey home page Code Monkey logo

esp32-bug-i2s-mic's Introduction

ESP32-BUG-I2S-MIC

Simple bug using ESP32 and I2S MEMS microphone for listening and recording Audio via UDP Listener.

The main.cpp file in the src folder was written for PlatformIO, but it is possible to convert it for Arduino IDE.

You just need to change the file extension from cpp to ino and delete "#include <Arduino.h>".

The project is very simple and requires only a few connections.

Below you can find the connection diagram for ESP32 Devkit C V2

Diagram

NodeMCU

INMP441

You needs a UDP listener like netcat on port 16500 ( in according with sketch ) on listener PC.

The command to run on the Linux terminal for live audio streaming is:

"netcat -u -p 16500 -l | play -t s16 -r 48000 -c 2 -" without quotes !

You needs a SoX utility with mp3 handler for Recorder

Under Linux for recorder (give for file.mp3 the name you prefer).

The command to run on the Linux terminal for rec audio streaming is:

"netcat -u -p 16500 -l | rec -t s16 -r 48000 -c 2 - file.mp3" without quotes !

Set your listener PC's IP here in according with your DHCP network. In my case is 192.168.1.40:

const IPAddress listener = { 192, 168, 1, 40 };

Set the UDP port you prefer. In my case:

const int port = 16500;

esp32-bug-i2s-mic's People

Contributors

aleiei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.