Thursday, 12 September 2013

Live processing getUserMedia audio using the ScriptProcessorNode

Live processing getUserMedia audio using the ScriptProcessorNode

I'm trying to get some live data on microphone data. So I hooked up a
ScriptProcessorNode to the output of my live audio as follows
(coffeescript):
audioSource = navigator.getUserMedia({audio:true},(stream)->
source = context.createMediaStreamSource(stream)
analyser = context.createScriptProcessor(1024,1,1)
source.connect(analyser)
analyser.onaudioprocess = (e)->
\\Processing Takes Place here
However the onaudioprocess funtions is never being called. What do I need
to do to make it run?

No comments:

Post a Comment