LIVE WEB AUDIO INPUT IN HTML 5 ENABLED!

By Mahesh Chand Nov 28, 2012
  • 0
  • 0
  • 1195
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 );
Mahesh Chand

Founder C# Corner, a member-contributions based community founded in 1999 focuses on character, values, learning, sharing, networking and career growth. Mahesh has been awarded prestigious... Read more

COMMENT USING