Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sox never quits, and therefore never posts #3

Open
WeeJeWel opened this issue Feb 9, 2014 · 7 comments
Open

sox never quits, and therefore never posts #3

WeeJeWel opened this issue Feb 9, 2014 · 7 comments

Comments

@WeeJeWel
Copy link

WeeJeWel commented Feb 9, 2014

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).

@sreuter
Copy link
Owner

sreuter commented Feb 9, 2014

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.

@WeeJeWel
Copy link
Author

WeeJeWel commented Feb 9, 2014

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.

@sreuter
Copy link
Owner

sreuter commented Apr 4, 2014

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

@Glavin001
Copy link

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.

@sreuter
Copy link
Owner

sreuter commented May 5, 2014

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

@ejferg
Copy link

ejferg commented Jul 9, 2015

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.

@Glavin001
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants