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?
There's a speech recognition library available which may fit for your needs: https://pub.dartlang.org/packages/speech_recognition
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With