Closed ahdinosaur closed 9 years ago
random thoughts: i'm thinking this module should provide a readable stream of native audio, either using node
or browserify
, into a common ndarray format that we can build modules against. so far this only supports the microphone, but as sox
supports input files and stdin streams, this module should also interface with the equivalent with web audio.
I see you are using microphone-stream
Internally that is just using Web Audio to get the mic stream and then connecting it to a ScriptProcessorNode to extract the buffers.
I think you should just embed the code directly and bypass that module. It's only making things more complicated.
At https://github.com/saebekassebil/microphone-stream/blob/master/index.js#L35, audioInput
could be any AudioNode.
sweet, thanks for the help.
merging, i'll do those updates as separate pushes.
:+1:
can i haz review @mmckegg :cat2: