devil-cyber / News-Audio-Book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewsAudioBook

App Download Link

Not ready for production yet 👍

OverView

Many people like to listen the news rather than reading. People while driving or doing some other task can also get the new by listining rather than reading so here come NewsAudioBook in action you can listen news jsut by tapping on the play button and this app will read news for you.

TechStack

Working

From news.dart file we make a http request to news api to get the data in the json format. Then after from voice_connection.dart file we make a post request to text-to-speech-api that seems like.

{
  "audioConfig": {
    "audioEncoding": "LINEAR16",
    "pitch": 0,
    "speakingRate": 1
  },
  "input": {
    "text": text
  },
  "voice": {
    "languageCode": "en-US",
    "name": "en-US-Wavenet-D"
  }
}

Then text-to-sppech api return a Base64 encoded audio string. Then we decode this Base64 audio to mp3 and serve to the user via player.dart file

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

License:MIT License


Languages

Language:Dart 95.7%Language:Swift 3.0%Language:Kotlin 1.0%Language:Objective-C 0.3%