The project is multiple quiz choice for Android and IOS using the flutter framework. This quiz will have 3 screens, the first screen to navigate to your quiz, the second screen is for the actual quiz and the last screen is for the summary.
- The navigation page will only have start button for now.
- The quiz screen will have a question, four choices and a button to speech the question.
- The summary page will have your final score, the button to restart the quiz, and the finish button.
15-20 percent of the worldwide population has some form language based leaning a language, and 14 percent of adutls in the US are illiterate and many have only basic reading skill. Therefore, making content audible will help people to better understand the text. Text to Speech help user get better experience with content of application, such as thoses with literancy difficulties, learning disabilities, reduced vision, and those learning a language. It also opens door to anyone else looking for easier ways to access digital content.
Follow effective dart style
Built with Flutter
For help getting started with Flutter, view online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- Text to Speech function.
- Ability to work offline.
- Responsive design for varying screen sizes.
- Server database.
- Multiple Categories.
- Better UI.
- User authorization.
Implement flutter_tts package in code
Future _getLanguages() async {
languages = await flutterTts.getLanguages;
if (languages != null) setState(() => languages);
}
Future _getVoices() async {
voices = await flutterTts.getVoices;
if (voices != null) setState(() => voices);
}
Future _speak() async {
if (_newVoiceText != null) {
if (_newVoiceText.isNotEmpty) {
var result = await flutterTts.speak(_newVoiceText);
if (result == 1) setState(() => ttsState = TtsState.playing);
}
}
}