我当前的代码在使用普通话的“ZH”ISO代码时可以正常工作,但对于粤语则不行。这是下面的代码
Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
String myLanguage= "yue";
i.putExtra(RecognizerIntent.EXTRA_LANGUAGE, myLanguage);
i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, myLanguage);
i.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, myLanguage);