-
Notifications
You must be signed in to change notification settings - Fork 197
Not getting text in recognitionResultHandler function #87
Comments
I'm having same issue. Note that, in dart raw file, the arguments of transcription are only sent to recognitionResultHandler() on onSpeech, not on onComplete:
So we lose this trigger after "endOfSpeech" callback. On this way i'm always losing last words of the recognition on the transcription state. |
I have the same problems. I solved one of them by changing the type for "recognitionCompleteHandler" from "VoidCallback" to "StringResultHandler" and sending the parameter in recognitionCompleteHandler(call.arguments) in dart raw file. I think this PR solves the other problem: #89 |
That's good rodolZ80 What i did, and also works, is add a call to recognitionResultHandler(call.arguments); inside recognitionCompleteHandler in dart raw file So it triggers ResultHandler after recognition is complete, too. |
//Here I am not getting text (audio which i speaks converted into text) in result. But platform //handler shows below message in console
_platformCallHandler call speech.onRecognitionComplete hello
//My result handler function is here.
_speech.setRecognitionResultHandler((String result) {
setState(() {
transcription = result;
stop();
});
}
);
The text was updated successfully, but these errors were encountered: