Suddenly, my speech to text app which has the following statement does not work. It remains at English(United Kingdom). The language on the dialog box does not changed.
I open source the complete codes.😉
intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
Long timeToWait = 20000L;
intent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);
intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 3000);
intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, 3000);
intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, 3000);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, mylanguage);
intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE,
mylanguage);
startActivityForResult(intent, RESULT_SPEECH);
Is it possible there is a bug from Android or miui Global 14.0.1? Is there a fix?
It is probably a bug in the recent version of the system app “Speech Recognition & Synthesis”. The language learning app I am developing is also not working properly.
Can you “uninstall” Speech Recognition & Synthesis from Google Play and revert to the old version so it will work again?