-
Notifications
You must be signed in to change notification settings - Fork 238
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
Unhandled Exception: PlatformException(recognizerNotAvailable, Speech recognition not available on this device, , null) #279
Comments
Have you tried on Pixel 4? Check this thread https://stackoverflow.com/questions/5916521/how-can-you-make-the-android-emulator-support-speech-recognition I believe it has something to do with the emulator needing the google search feature ( i could be wrong) |
Yes, that's right, you must make sure that the emulator has support. I think the README has some links on how to set that up. |
|
|
Thank you so much, I got it. |
Emulator: Pixel XL
API: 30
speech_to_text: ^5.3.0
code init:
bool ready = await _speechToText.initialize(onError: onError, onStatus: onStatus);
void onStatus(String status) { }
void onError(SpeechRecognitionError errorNotification) {}
Exception at this code in lib:
return await _channel.invokeMethod<bool>( 'initialize', params, ) ?? false;
`E/SpeechToTextPlugin( 3342): Speech recognition not available on this device
E/flutter ( 3342): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(recognizerNotAvailable, Speech recognition not available on this device, , null)
E/flutter ( 3342): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter ( 3342): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter ( 3342):
E/flutter ( 3342): #2 MethodChannelSpeechToText.initialize (package:speech_to_text_platform_interface/method_channel_speech_to_text.dart:39:12)
E/flutter ( 3342):
E/flutter ( 3342): #3 SpeechToText.initialize (package:speech_to_text/speech_to_text.dart:238:19)
E/flutter ( 3342):
The text was updated successfully, but these errors were encountered: