News

LIVE WEB AUDIO INPUT IN HTML 5 ENABLED!

By Mahesh Chand News | HTML 5 Nov 28, 2012
Chris Wilson on HTML 5 Rocks announced the new feature added related to Live Web Audio.

"I'm really excited by a new feature that went in to yesterday's Chrome Canary build (23.0.1270.0) - the ability to get low-latency access to live audio from a microphone or other audio input on OSX! (This has not yet been enabled on Windows - but don't worry, we're working on it!)"

Full announcement here >

Sample code
// 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 );
COMMENT USING