Comments (2)
Interesting. I haven’t tried this case. I’ll try it out. It will be a few weeks before I can look at it.
from speech_to_text.
Hello, I have experienced issues with microphone recognition via car Bluetooth. I have conducted further tests. First, take a look at the code below:
...
void listening() async {
_available = await speech.initialize(
onError: (error) {
print(error.errorMsg);
},
onStatus: (status) async {
if (status == "notListening") {
// No action taken when not listening
} else if (status == "done") {
await speech.stop();
setState(() {
isListening = false;
listening(); // <<< Microphone recognition works from the second call onwards
});
}
},
);
if (_available) {
await speech.listen(
onResult: (result) {
// Code continues below
...
}
To provide more detail, when the app is first launched, the microphone is activated for the first time, recognizes the speech correctly, and returns accurate results. However, from the second attempt onwards, the microphone fails to recognize any speech.
I tested using a recursive function as shown in the code above, and from the second call to the listening() function, the microphone was recognized correctly.
I believe this is not the correct way to handle this situation, but I hope this information helps in resolving the bug.
Have a great day.
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
- '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.