Comments (6)
Depending on the type of error you should be able to call listen
again immediately and that will start a new listen session. There are some limits imposed by the provider on how long / frequently you can invoke speech recognition for. If recognition sessions were getting throttled by the provider, or if network connection problems were interfering, then calling listen
would not work. Android, at least on Samsung devices, seems particularly aggressive about shutting down recognition.
Let me know if invoking listen
again works for you.
from speech_to_text.
Tried calling the listen in the status callback. When ever the status changes to not listening was calling a new session on speech. This was working fine but after some time it throws the following error
{"errorMsg":"error_busy","permanent":true}
How should i restart the listener in case of this ?
And there is a parameter durationFor in the listen method, though i was giving it a value of 10 minutes just after being idle for few seconds it throws the error no match found and the listener stops listening. So what's the actual use case of that durationFor parameter ?
from speech_to_text.
I'm guessing that the error_busy means that there is already a recognition session active. In your error handler try calling await speechToText.stop()
before you call listen. It should resolve that error.
The duration parameter allows you to set a maximum listen duration that is separate from any OS defined timeout. The timeout that you are seeing is from the underlying OS. On iOS the speech recognition doesn't time out quickly, as it does on Android, so being able to stop a session automatically is useful.
from speech_to_text.
Will try to add that in error handler and check it .
from speech_to_text.
I'll assume the last suggestion resolved the issue and close this.
from speech_to_text.
Will try to add that in error handler and check it .
can you share your code please that restart the listener
from speech_to_text.
Related Issues (20)
- in Android HOT 1
- Error when build with real device HOT 2
- W/Bundle (11745): Key results_recognition expected ArrayList<String> but value was a java.lang.String. The default value <null> was returned. HOT 1
- Continuous listening HOT 1
- Can't get locales on Android HOT 6
- Compound words issue HOT 2
- [Question:About hiragana in Japanese] HOT 2
- Fails to function with car's Bluetooth connection HOT 2
- 'error_no_match' does not get fired when user stops listening HOT 1
- Not work with airpods in iOS HOT 1
- iOS often misses the first word after calling `.listen()` for n+1 times HOT 3
- Request to Add Option to Disable Notification Sound on Android HOT 2
- [iOS] Entering page again to initialize, the last statusListener is unable to update widgets. HOT 1
- Arabic diacritics (Harakat) HOT 1
- iOS, onResult is not called HOT 7
- Getting Error 7 after start. HOT 7
- OnDevice doesnโt work if wifi is turned off HOT 1
- how to clear result.recognizedWords HOT 1
- Wan't to Add some extra languages, working in andriod but thworing exception in IOS HOT 1
- ResultListener recognizedWords are bugged? [Android/Web] HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speech_to_text.