Comments (7)
Hi to solve the problem I had to remove the methodchannel call in onEndOfSpeech() in android/SpeechRecognitionPlugin.java.
As per documentation, on Android, RecognitionListener calls onEndOfSpeech every time a user stop talking and onResults when the recognition is completed, so in some case onRecognitionComplete can be called twice.
I'm not sure this is the best solution, but hope this helps...
from speech_recognition.
It's a lot time i don't use it, but the file i had to modify is this one:
https://github.com/rxlabz/speech_recognition/blob/master/android/src/main/java/bz/rxla/flutter/speechrecognition/SpeechRecognitionPlugin.java
from speech_recognition.
I am actually getting the same error and i am a newBie what can I do
Hi @ramsham2411
All you need is locate and comment this line:
it can be located in SpeechRecognitionPlugin.java file. Locate it by left click with Ctrl on any of plugin classes or methods, then in address bar you can see where is cache of package located. Or just follow the video I made for you:
from speech_recognition.
Thanks for this tip @andrezanna. I don't know if there will be other consequences from this change, but it's good enough for the basic test I'm trying to do :)
from speech_recognition.
Hi to solve the problem I had to remove the methodchannel call in onEndOfSpeech() in android/SpeechRecognitionPlugin.java.
As per documentation, on Android, RecognitionListener calls onEndOfSpeech every time a user stop talking and onResults when the recognition is completed, so in some case onRecognitionComplete can be called twice.
I'm not sure this is the best solution, but hope this helps...
Hi @andrezanna,
where is that SpeechRecognitionPlugin.java file located? i dont have such at my android directory... thanks in advance
from speech_recognition.
It's a lot time i don't use it, but the file i had to modify is this one:
https://github.com/rxlabz/speech_recognition/blob/master/android/src/main/java/bz/rxla/flutter/speechrecognition/SpeechRecognitionPlugin.java
@andrezanna, thanks, working perfect!
from speech_recognition.
I am actually getting the same error and i am a newBie what can I do
from speech_recognition.
Related Issues (20)
- Flutter web? HOT 3
- I/flutter (11568): Unknowm method speech.onError on unclear voice
- Auto detect language HOT 1
- How to implement this plugin with a text field and enable user to modify the text?
- Stop when voice end
- Unknowm method speech.onError HOT 1
- new problem on flutter > iOS build (from android studio) HOT 1
- does not work for Android while is working with iOS
- Is it possible to get the .mp3 file?
- Listen unless user finishes
- Can this be used offline?
- speech_recognition ios build target change HOT 2
- use 2 different SpeechRecognition in one class is not working !! HOT 1
- The stop button does not work
- 2 Bips
- onErrorHandler
- Availability for Mandarin Chinese
- Android local language speech detect and text in local language HOT 1
- Problem after adding AndroidX Compatability HOT 1
- Old SDK required? HOT 1
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_recognition.