File tree 2 files changed +1
-4
lines changed
android/src/main/kotlin/com/csdcorp/speech_to_text
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ public class SpeechToTextPlugin :
365
365
}
366
366
367
367
private fun locales (result : Result ) {
368
- if (sdkVersionTooLow() ) {
368
+ if (sdkVersionTooLow()) {
369
369
result.success(false )
370
370
return
371
371
}
Original file line number Diff line number Diff line change @@ -564,9 +564,6 @@ class SpeechToText {
564
564
/// languages available for online recognition. Unfortunately there is no
565
565
/// way to get the list of languages supported by the online recognizer.
566
566
Future <List <LocaleName >> locales () async {
567
- if (! _initWorked) {
568
- throw SpeechToTextNotInitializedException ();
569
- }
570
567
final locales = await SpeechToTextPlatform .instance.locales ();
571
568
var filteredLocales = locales
572
569
.map ((locale) {
You can’t perform that action at this time.
0 commit comments