wavenet 2.0.4 copy "wavenet: ^2.0.4" to clipboard
wavenet: ^2.0.4 copied to clipboard

discontinued
outdated

A simple wrapper for accessing Google's Text-To-Spech API and converting the results to MP3 files.

wavenet #

pub package

A simple wrapper for Google's Text-To-Spech API. Simply list the available voices and convert your text to a mp3 by providing your API key, language code and voicename.

This is a fork of https://pub.dartlang.org/packages/text_to_speech_api which fixes stuff.

Usage #

  • add the package as a dependency to your pubspec.yaml file:
dependencies:
  flutter:
    sdk: flutter
  wavenet: ^2.0.4
  • Initialize the TextToSpeechService (optional: provide your api key)
TextToSpeechService service = TextToSpeechService('sample api key');
  • List the available voices (no api key required)
await service.availableVoices();
  • Convert your text to a File object (api key required)
File mp3 = await service.textToSpeech(
  text: 'Hello World',
  voiceName: 'de-DE-Wavenet-D',
  audioEncoding: 'MP3',
  languageCode: 'de-DE'
);
5
likes
140
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

A simple wrapper for accessing Google's Text-To-Spech API and converting the results to MP3 files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, path_provider

More

Packages that depend on wavenet