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

Continus recognition #18

Closed
buildog opened this issue Nov 18, 2016 · 3 comments
Closed

Continus recognition #18

buildog opened this issue Nov 18, 2016 · 3 comments

Comments

@buildog
Copy link

buildog commented Nov 18, 2016

Great implementation, very instructive :-)

I'm wondering what would be the best implementation to keep speech recognition after a first hotword, which is mostly the case on a conversationnal boot, user won't say everytime the hotword, dosen't make sense.

The problem there is that sonus trigger the intent processing after the final-result emitted at the end of recognitionStream, so we need a way to manualy trigger the hotword in order to avoid a painfull repeat for the user.

Maybe a const detector > sonus.detector ?

@evancohen
Copy link
Owner

I think this is a good idea. I see two options:

Add a trigger API that would simulate speaking a hotword and start streaming. Possibly something like:

Sonus(sonus).trigger()

And/or an option that gets passed into the constructor that triggers recognition after a hotword is detected until the is no more speech.

I think that both of these options would be useful for their own use cases so I'm inclined to implement both. My only concern is with the support of other recognition engines for a "continuous" mode. Would having only the first option work for you? If so I think I can take a crack at it over the weekend.

@buildog
Copy link
Author

buildog commented Nov 20, 2016

yeah a trigger api should do the job :-)

@buildog
Copy link
Author

buildog commented Nov 20, 2016

if (data.endpointerType === 'END_OF_AUDIO') {
    sonus.emit('end-of-recognition')
}

may be usefull too

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

2 participants