Skip to content

MinePro120/ESP32-Audio-Streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ESP32 Audio Streamer



Stream audio recorded by your ESP32 to a computer.

Credits

Schematics and original code created by Julian Schroeter at hackster.io. Forked by MinePro120.

Features (additional)

  • Deep sleep when inactive
  • Better network handling
  • 16kHz sampling rate
  • 12-bit resolution
  • Reduced noise
  • Status LED

Usage

Insert the credentials of your Wi-Fi network in the sketch, as denoted by the "Change me" comments. Upon uploading, the following command can be used to listen to the stream (tested on UNIX):

nc -l 0.0.0.0 6120 | play -r 16k -e unsigned-integer -b 16 -t raw -

, that utilises Netcat and SoX.

Tips

  • Increase the "AUDIO_BUFFER_LENGTH" as much as possible to avoid noise created by using the Wi-Fi (and possibly save battery power).
  • Using SoX, you can record the streamed audio and apply various effects (like noise reduction). See the SoX manual for more details.
  • VLC media player can be used instead of SoX.
  • A hotspot can be used when no router is available (the Wi-Fi card must support "master" mode).
  • Alternatively, the ESP32 could create a SoftAP at the expense of increased power consumption.

License

The software provided above is licensed under the GNU GPL v3.

About

Stream audio from your ESP32 to a computer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages