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

After abort, and restarting, annyang will hear everything twice. #313

Open
AdamMiltonBarker opened this issue Oct 20, 2017 · 7 comments
Open

Comments

@AdamMiltonBarker
Copy link

AdamMiltonBarker commented Oct 20, 2017

Hi guys, an issue that is becoming a pretty big problem for us is that once a user has voice rec on, and then stops using abort(), if they restart again, it will continue hearing everything twice resulting in querying our NLU twice, displaying what it heard twice, and displaying the response twice, any suggestions to stop this happening?

Here is the related code:

https://aiecommerce.techbubbletechnologies.com/TOA/voice-recognition/TOA_Recognition.js

@AdnanHafeez
Copy link

Not sure if I am missing something here, but why are you using 'setTimeOut' to call Bootup every 4 seconds?

@AdamMiltonBarker
Copy link
Author

I think you are missing something, setTimeOut executes only once, setInterval would execute multiple times. In the code setTimeOut makes the script wait 4 seconds before executing bootup.

@AdnanHafeez
Copy link

Yes, you are correct. My bad! I confused the two.

@AdamMiltonBarker
Copy link
Author

No worries ;)

@Adrianjewell91
Copy link

Has this been resolved? I'm looking to start contributing to an open source project, and would like permission to tackle this one.

@TalAter
Copy link
Owner

TalAter commented Dec 31, 2017

Thank you @Adrianjewell91
If you are able to replicate the issue please go ahead 👍

Have you been able to isolate the issue and understand what's the root cause?

@Adrianjewell91
Copy link

Thanks. @AdamMiltonBarker, I was not able to replicate the bug. It looks like your code requires a certain HTML element called #TOA_Recognition_Window. If you can post a description on how to replicate the issue along with the complete code, I'm still happy to take a deep look.

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