According to this article the following code should work on OSX and Windows but doesn't mention Linux:
http://updates.html5rocks.com/2012/09/Live-Web-Audio-Input-Enabled
// success callback when requesting audio input stream
function gotStream(stream) {
var audioContext = new webkitAudioContext();
// Create an AudioNode from the stream.
var mediaStreamSource = audioContext.createMediaStreamSource( stream );
// Connect it to the destination to hear yourself (or any other node for processing!)
mediaStreamSource.connect( audioContext.destination );
}
navigator.webkitGetUserMedia( {audio:true}, gotStream );
I downloaded Chrome Dev which is version: Version 25.0.1323.1 dev and it's not working.
I have the following flag enabled:
Web Audio Input Mac, Windows, Linux, Chrome OS
Enables live audio input using getUserMedia() and the Web Audio API.
Linux support for live audio was added in https://src.chromium.org/viewvc/chrome?revision=192893&view=revision.
Currently works on Google Chrome Version 28.0.1500.89 beta. Tested on Arch Linux.