I have a "simple" question. I would like to turn my Pi into an audio streaming device for a game, where I need to hear what is going on in a room.
So I connected a USB microphone to the Pi and would like to set up a stream now, that streams the microphone input to a client (perfectly any streaming format that is supported by browsers, so an HTML5 audio
element would be awesome.
I already tried the way it is described here: Raspberry Pi into an audio spying device by using ssh
to transmit the data, but this is not really flexible and it does not suit my application as the latency is too much.
arecord -D plughw:1,0 -f dat | ssh -C user@remoteip aplay -f dat
The problem is that in this situation it has to stream as close as possible to real-time, because I'm observing a game-play from outside of the room and I really need to know what is going on in the room in real time.
I know, there are options like Icecast
and Darkice
(both seem to be hard to configure and not exactly what I'm looking for) and VLC
streams. But my limitations are the web browser support on the client side and the low CPU performance of my Raspberry Pi.
I hope someone can help me out with this problem!