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

Return hypothesis before the utterances end #41

Open
BrunoBerisso opened this issue Jul 31, 2017 · 2 comments
Open

Return hypothesis before the utterances end #41

BrunoBerisso opened this issue Jul 31, 2017 · 2 comments

Comments

@BrunoBerisso
Copy link
Contributor

Explore the possibility of return an hypothesis before the utterance end. This will be useful if trying to find keywords in live speech.

@yosoycody
Copy link

Any idea on how I could go about implementing this? In my app, I want to continuously detect "left" and "right" and get this recognition in real time, as opposed to waiting until the utterance end, which with background noise can take some time. I was able to add the -kws config param so that pocketsphinx only looks for those 2 words (left and right), but it's not in recognizing in real-time. Thanks for any guidance on this.

@BrunoBerisso
Copy link
Contributor Author

Hi.

Right now TLSphinx only returns keyboards inside utterances, If you want to avoid this logic you need to update this function https://github.com/tryolabs/TLSphinx/blob/master/TLSphinx/Decoder.swift#L169 to not wait for an utterance to end before returning a hypothesis.

Could you try to open a pull request updating that function? so we can go over your approach looking at the code.

Thanks

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

No branches or pull requests

2 participants