How are you recording the stream? Using gstreamer or pulseaudio? It should be doable. The plugin framework of MediaBox is pretty flexible.