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

Arecord helper #94

Merged
merged 2 commits into from
Mar 8, 2019
Merged

Arecord helper #94

merged 2 commits into from
Mar 8, 2019

Conversation

evancohen
Copy link
Owner

@evancohen evancohen commented Mar 6, 2019

Fixes the age old problem of #68 (alternative solution to #93). Turns out arecord doesn't pipe audio after a given file formats max file size. So you can't record indefinitely, which is the whole point of Sonus 😂. This change keeps track of the number of bytes streamed and restarts the recording process silently (hooray).

The only downside is that it's not a totally seamless transition from one stream to another. If you're mid-utterance when the change happens, the remainder of the utterance will not be streamed to the cloud detector. But that's better than it stopping completely, so I'll take it 👌

@sdetweil
Copy link

sdetweil commented Mar 6, 2019

closes issue #68

terminate old arecord process when restarting

a bit of cleanup

use 1.5GB limit
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

Successfully merging this pull request may close these issues.

2 participants