Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: Voice to Text

I want to say:

"What is my Account Balance"

Simple examples that convert the above voice into array like;

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

So, I can check the words and route to respective page.

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;
    }

Can anyone provide a solution in Dart/Flutter about Voice to text?


1 Answers

There's a speech recognition library available which may fit for your needs: https://pub.dartlang.org/packages/speech_recognition

like image 184
Felix Avatar answered Sep 05 '26 12:09

Felix