Created
December 8, 2013 18:41
-
-
Save kirankumaramruthaluri/7861975 to your computer and use it in GitHub Desktop.
Microphone Input Web Audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.AudioContext = window.AudioContext || | |
window.webkitAudioContext; | |
var context = new AudioContext(); | |
navigator.getUserMedia({audio: true}, function(stream) { | |
var microphone = context.createMediaStreamSource(stream); | |
var filter = context.createBiquadFilter(); | |
// microphone -> filter -> destination. | |
microphone.connect(filter); | |
filter.connect(context.destination); | |
}, errorCallback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment