【问题标题】:Persian speech to text in android波斯语语音到android中的文本
【发布时间】:2016-04-26 13:03:07
【问题描述】:

我想提高我的知识并进行声音重组(从语音到文本)。我从谷歌找到了很好的样本,但我不知道如何使用波斯语-波斯语来做到这一点?我用英语做,但波斯语怎么样?我的安卓手机需要一些设置吗?有人这样做吗?

Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
startActivityForResult(intent, REQUEST_CODE);

【问题讨论】:

    标签: android speech-to-text persian sound-recognition


    【解决方案1】:

    只需在您的意图中添加新的额外内容,如下所示

    intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "fa");
    

    【讨论】:

      【解决方案2】:

      我找到了。 使用此代码:

      Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
                      intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                              RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
                      startActivityForResult(intent, REQUEST_CODE);
      

      更多信息: http://appinapps.com/Articles_View.aspx?t=%u0628%u0631%u0646%u0627%u0645%u0647+%u0646%u0648%u06cc%u0633%u06cc+%u067e%u06cc%u0634%u0631%u0641%u062a%u0647+%u0627%u0646%u062f%u0631%u0648%u06cc%u062f+%u062c%u0644%u0633%u0647+%u06cc%u0627%u0632%u062f%u0647%u0645&aid=118&gid=11

      祝你好运!

      【讨论】:

        猜你喜欢
        • 2015-06-16
        • 1970-01-01
        • 2013-03-29
        • 1970-01-01
        • 1970-01-01
        • 2013-07-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多