Coder Social home page Coder Social logo

hansonrobotics / audio-stream-doa Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 989 KB

Stream raw audio data, VAD status, and dB volume levels from ESP32S3 Mic to TCP Socket

Dockerfile 0.07% CMake 1.25% C 58.01% Python 2.85% C++ 17.02% Shell 0.12% Assembly 20.68%

audio-stream-doa's Introduction

Audio Stream Direction of Arrival (DOA)

This repository is designed to stream raw audio data, Voice Activity Detection (VAD) status, and decibel (dB) volume levels from 2 microphones on ESP32S3 to a TCP socket.

Prerequisites

  • ESP-IDF version 5.0.0

Configuration

Set CONFIG_STA_WIFI_SSID, CONFIG_STA_WIFI_PASS, and CONFIG_TCP_SERVER_IP in sdkconfig.defaults to connect the device to your network and define the TCP server's IP address.

File Descriptions

main.c

  • Sends VAD and dB volume data for both microphones to port 5000.
  • Streams mic_left data to port 5000.
  • Streams mic_right data to port 5001.

main_vad_vol.c

  • Streams only VAD and dB volume data to port 5000.

tcp_server_mult.py

  • Located on the PC side.
  • Sets up TCP sockets to receive the audio, VAD, and volume data.
  • Records the audio data into files.
  • Outputs volume and VAD data to the console.

tcp_server.py

  • Located on the PC side.
  • Sets up a TCP socket to receive and print incoming VAD and volume data.

Pin Configurations

ESP32S3 -> INMP441 pin configurations

audio-stream-doa's People

Contributors

prathamg avatar

Watchers

Wenwei avatar  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.