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

Implement a simple pause / resume #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simon-tannai
Copy link

@simon-tannai simon-tannai commented Feb 8, 2020

Hi !

I have implemented a simple pause() and resume() methods to have a solution to the issue that I met with the orginal methods (#95)

@evancohen
Copy link
Owner

Thank you! Sorry for totally missing the notification for this PR.

From a quick glance your PR only stops keyword emission, which might lead to unexpected results. For example calling pause() in the middle of an utterance won't stop the audio stream from being set to the speech provider and detection will run until the end of the utterance. I think the "right" way to solve this is to mute the hardware device or the audio stream that being consumed by Sonus.

Going to keep this PR open, in case it helps anyone, at least until I manage to get around to fixing this.

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