私のアプリケーションでは、トルコ語のテキスト音声認識google Apiを作成し、トルコ語で認識して結果を返すために "tr_TR"としてEXTRA_LANGUAGE_PREFERENCE
を渡します英語はトルコ語ではない。SpeechRecognizer用のトルコ語を設定する方法Google SpeechToText APi
String lang_code="tr_TR";
recognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE,
lang_code);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, lang_code);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
this.getPackageName());
recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH);
recognizerIntent.putExtra(RecognizerInt
ent.EXTRA_MAX_RESULTS, 3);
を?それはAndroid 2.3以降でサポートされている 'tr_TR'です。参照するには、この[post](http://stackoverflow.com/questions/7973023/what-is-the-list-of-supported-languages-locales-on-android)を参照してください。 –
"tr-TR"を試しましたか? –
OKですが、ロケールをどこでトルコ語に変更しますか? –