cmusphinx / node-pocketsphinx

Pocketsphinx bindings for Node.JS
Other
242 stars 47 forks source link

Can I read directly from the microphone in node-pocketsphinx? #2

Closed seandoyle closed 9 years ago

seandoyle commented 9 years ago

Hi -

I'd like the ability to read from the local microphone instead of from the web page. Is there a way to specify the local microphone similar to the "-inmic yes" option in pocketsphinx?

Thanks.

Sean

mbait commented 9 years ago

No, you should read the microphone data yourself and feed it to the library by calling .write() or .writeSync().