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

Any solution to add "loading" ability (by identifying whether the recognition has been performed)? #81

Closed
unmeshpro opened this issue Apr 9, 2014 · 6 comments

Comments

@unmeshpro
Copy link

@TalAter I am using annyang.js with a three.js application and it seems quite disturbing not to know whether the speech is being recognized. Is there a way to monitor the state of request to recognize and the response from annyang so that I may add a loading or waiting animation?

@lmangani
Copy link

#97

@alanjames1987
Copy link

I've also requested a feature like this in #101.

@TalAter
Copy link
Owner

TalAter commented Mar 5, 2015

@unmeshpro - is this similar to #47 ?

@TalAter
Copy link
Owner

TalAter commented Mar 5, 2015

I would like to include such functionalities as plugins which would extend annyang's functionality, while keeping the base library lean.
@unmeshpro , @lmangani , @alanjames1987 - I would love your feedback on this at #60

@unmeshpro
Copy link
Author

Yes.. @TalAter .. That's similar to #47 ..

@TalAter
Copy link
Owner

TalAter commented Dec 28, 2015

@unmeshpro , @lmangani , @alanjames1987

You can display when the browser is listening and when it stops by attaching events to the start and end events:

annyang.addCallback('start', function () {
  console.log('Listening');
});
annyang.addCallback('end', function () {
  console.log('Not listening');
});

I've also created a new library just for showing these kinds of visual indicators, and allowing the user to interact with the SpeechRecognition. Check out [SpeechKITT](https://github.com/TalAter/SpeechKITT)

If you're interested in displaying exactly when speech is detected, and when it stops (even if that happens a few seconds after starting speech recognition), I'm afraid it is currently impossible to do this because of what I believe is a bug in Chrome. I have opened a bug report with the Chromium team, and am awaiting their response.

@TalAter TalAter closed this as completed Mar 31, 2016
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