Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/194.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android SpeechRecognitor能否支持其他语言?_Android_Speech Recognition - Fatal编程技术网

Android SpeechRecognitor能否支持其他语言?

Android SpeechRecognitor能否支持其他语言?,android,speech-recognition,Android,Speech Recognition,正如标题所述,SpeechRecognitor是否可以识别其他语言?如果我想让它识别普通话而不是英语,我将如何设置它?谢谢 我不知道谷歌语音识别器引擎是否支持普通话,但如果支持普通话,那么你可以使用额外的语言让它识别普通话 Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "zh-cmn"); 文档链接是用代

正如标题所述,SpeechRecognitor是否可以识别其他语言?如果我想让它识别普通话而不是英语,我将如何设置它?谢谢

我不知道谷歌语音识别器引擎是否支持普通话,但如果支持普通话,那么你可以使用额外的语言让它识别普通话

Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "zh-cmn");

文档链接

是用代码还是一般的?如果你能用代码给我看,那就太好了!