LIVE WEB AUDIO INPUT IN HTML 5 ENABLED!

By Mahesh Chand 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 );
Mahesh Chand

C# Corner founder, 10-times Microsoft MVP, technical author, and software architect. Mahesh authored his first book, A Programmer’s Guide to ADO.NET in C# with APress at the age of 25. C# Corner is a memb... Read more

COMMENT USING