Jul 21, 2008

Very small audio streamer ( serves only one client at a time)

Serves whatever is coming from your recording source

Ingredients:

  • tcpserver

  • arecord

  • speexenc


Method:

#!/bin/bash
cat <<EOH
HTTP/1.1 200 OK
Content-Type: application/ogg

EOH
beep -f 3200
arecord -r 8000 -t raw |speexenc --8bit - -