Skip to content

ILXL/tts_quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text To Speech Quiz Project

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.

Motivation

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.

Installation and IDE

Code style

Follow effective dart style

js-standard-style

Screenshots

Tech/framework used

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.

Current Features

  • Text to Speech function.
  • Ability to work offline.
  • Responsive design for varying screen sizes.

Future Developments

  • Server database.
  • Multiple Categories.
  • Better UI.
  • User authorization.

Code Example

Implement flutter_tts package in code

speak, getLanguages, getVoice

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);
      }
    }
  }

Credits

Flutter_tts

Have Fun

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published