Skip to content

A RTSP audio server intended for the ESP32

Notifications You must be signed in to change notification settings

Tomp0801/Micro-RTSP-Audio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro-RTSP-Audio

Library to asynchronously run an RTSP-Server on an ESP32, in order to stream raw audio.

I modified the library Micro-RTSP for video streaming by Kevin Hester: https://github.com/geeksville/Micro-RTSP
Copyright 2018 S. Kevin Hester-Chow, [email protected] (MIT License)

Usage

// set up an Audio source
IAudioSource audioSource = AudioDevice();
// create the Audio Streamer using the audio source
AudioStreamer streamer = AudioStreamer(&audioSource);
    
// create the RTSPServer using the streamer
RTSPServer rtsp = RTSPServer(&streamer);
// start the server asynchronously 
rtsp.runAsync();

The Audio Source must implement the IAudioInterface, mainly the function readDataTo() which provides the audio data to the streamer.

Audio Format

Currently the audio format is fixed to L16 (16-bit raw audio) with a fixed sample of 16000.

About

A RTSP audio server intended for the ESP32

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • C++ 87.2%
  • C 12.8%