node-speakable icon indicating copy to clipboard operation
node-speakable copied to clipboard

sox never quits, and therefore never posts

Open WeeJeWel opened this issue 11 years ago • 7 comments

I am not sure if this is expected behavior or not, but it seems to me that sox never stops recording. As the data is only posted on the close event, this never happens (only when I do it manually, which works).

WeeJeWel avatar Feb 09 '14 23:02 WeeJeWel

Hi there. It seems like your microphone input is to high. Sox quits automatically after a certain time of silence. You may want to adjust the parameters given to sox.

sreuter avatar Feb 09 '14 23:02 sreuter

I see, thank you! Maybe it's better to mimic Google Chrome's behavior, and send the audio regardless of the volume? This makes speech recognition impossible when playing music, for example.

WeeJeWel avatar Feb 09 '14 23:02 WeeJeWel

True. If you find a way to achieve this using sox (or maybe something else), I'm keen to learn about it!

sreuter avatar Apr 04 '14 18:04 sreuter

Any progress on this, @sreuter ? I am interested in using node-speakable instead of my own project Leopold, and building on top of it for a more polished automation cloud product.

Glavin001 avatar May 02 '14 14:05 Glavin001

@Glavin001 Nope, if you have any ideas on how to achieve this using sox, please let me know!

sreuter avatar May 05 '14 15:05 sreuter

Not sure but may be Audacity would work better (not knowing how flexible the command tools are). ffmpeg would probably be just as bad at noise canceling.

ejferg avatar Jul 09 '15 05:07 ejferg

I switched to using Wit.ai for my speech recognition and natural language processing needs. I added support to node-wit for recording audio with sox. It can be stopped manually / programmatically, or because the audio goes silent.

Glavin001 avatar Jul 09 '15 05:07 Glavin001