Flutter: Voice to Text

6,640

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

Share:
6,640
Admin
Author by

Admin

Updated on December 05, 2022

Comments

  • Admin
    Admin over 1 year

    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?

  • Admin
    Admin about 6 years
    thanks. I try that one even I change "_currentLocale = 'en_US';" to tr_TR and dint work.