Min*_*esh 4 android persian speech-to-text sound-recognition
我想提高我的知识并进行合理的重组(语音到文本)。我从谷歌找到了很好的样本,但我不知道如何使用波斯语-波斯语来做到这一点?我用英语做,但波斯语怎么样?我的 Android 手机需要进行一些设置吗?有人这样做吗?
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
startActivityForResult(intent, REQUEST_CODE);
Run Code Online (Sandbox Code Playgroud)
只需在您的意图中添加新的额外内容,如下所示
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "fa");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4647 次 |
| 最近记录: |