【问题标题】:Flutter: Voice to TextFlutter:语音到文本
【发布时间】:2018-10-23 18:12:33
【问题描述】:

我想说:

我的账户余额是多少

将上述语音转换成数组like的简单例子;

words = {
        [What]
        [is]
        [my]
        [Account]
        [Balance]
};

所以,我可以检查单词和路由到相应的页面。

switch (voiceToRoute) {
      case “Account”:
         Navigator.push(
        context,
        new MaterialPageRoute(
          builder: (context) => new AccountPage()));
        },
        break;

      case “Balance”:
        Navigator.push(
        context,
        new MaterialPageRoute(
          builder: (context) => new BalancePage()));
        },
        break;
    }

谁能在 Dart/Flutter 中提供关于语音到文本的解决方案?

【问题讨论】:

    标签: arraylist text navigation flutter voice-recognition


    【解决方案1】:

    有一个语音识别库可以满足您的需求: https://pub.dartlang.org/packages/speech_recognition

    【讨论】:

    • 谢谢。即使我更改了“_currentLocale = 'en_US';”,我也会尝试那个到 tr_TR 并努力工作。
    猜你喜欢
    • 1970-01-01
    • 2023-02-17
    • 2015-06-16
    • 2023-03-03
    • 1970-01-01
    • 2022-10-03
    • 1970-01-01
    • 2011-06-08
    • 1970-01-01
    相关资源
    最近更新 更多