audio-stream
Stream raw audio data from a MediaStream. Only works in modern browsers that support the Web Audio API.
npm install audio-stream
See the live recorder demo.
Usage
Use together with tools similar to browserify. The data is streamed as interleaved 32-bit floats ranging between -1 and 1.
var audio = ; navigator;
The constructor accepts number of channels and microphone volume as options.
stream.destroy([err])
Destroy the audio stream, releasing all associated resources. The media stream is not closed.
stream.suspend()
Suspend audio data capturing.
stream.restart()
Restart audio data capturing.
Limitations
Currently Chrome lacks supports for capturing a remote stream sent using a peer connection. But works in Firefox.
// This only works in Firefox at the momentpeerConnection { var stream = ; stream;};