Posts

Showing posts with the label tts_flutter

flutter tts example

  import 'package:flutter/material.dart' ; import 'package:flutter_tts/flutter_tts.dart' ; import '/widgets/common/default_appbar.dart' ; class FaqPage extends StatefulWidget { const FaqPage ({ super .key}); @override _FaqPageState createState () => _FaqPageState (); } class _FaqPageState extends State < FaqPage > { final ScrollController _scrollController = ScrollController (); int ? _currentlyPlayingIndex; int _currentWordIndex = - 1 ; List < String > _currentWords = []; bool _isSpeaking = false ; final FlutterTts flutterTts = FlutterTts (); final List < Question > _questions = [ // About SuperSaver Question ( question : 'What is SuperSaver?' , answer : 'SuperSaver is a smart group savings and collective buying app designed for South Africans. Whether you \' re saving on your own, as a stokvel, a family, or a community group — SuperSaver helps you ...