Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. FlutterTts flutterTts = new FlutterTts();
  2. @override
  3. void initState() {
  4. // TODO: implement initState
  5. setList();
  6. _controller = ScrollController();
  7. flutterTts.setLanguage("en-US");
  8. flutterTts.setSpeechRate(0.7);
  9. flutterTts.setVolume(1.0);
  10. flutterTts.setPitch(1.0);
  11. super.initState();
  12. }
  13. //calling this function on click
  14. _speak() async {
  15. setState(() {
  16. flutterTts.speak(alp[index].SpekingAlphabets);
  17. });
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement