我想提高自己的知识,并进行声音重组(语音到文本)。我从谷歌找到了很好的样本,但我不知道我怎么能用波斯语 - 波斯语呢?我用英语做,但波斯语怎么样?是否需要在我的移动Android手机中进行一些设置?是否有人这样做?
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
startActivityForResult(intent, REQUEST_CODE);
答案 0 :(得分:2)
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
startActivityForResult(intent, REQUEST_CODE);
祝福!
答案 1 :(得分:2)
只需按以下说明添加新内容
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "fa");