tts 1.0.0 copy "tts: ^1.0.0" to clipboard
tts: ^1.0.0 copied to clipboard

outdated

A text to speech plugin for flutter.

tts #

A text to speech plugin for flutter. Initial implementation, more to come. :)

Usage #

To use this plugin, add tts as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

void main() {
  runApp(new Scaffold(
    body: new Center(
      child: new RaisedButton(
        onPressed: speak,
        child: new Text('Say Hello'),
      ),
    ),
  ));
}

speak() async {
  Tts.speak('Hello World');
}

Languages #

You can get a list of available languages (voices) supported by the OS by calling:

final languages = await Tts.getAvailableLanguages();

Checking to see if a languge can be used:

var isGoodLanguage = await Tts.isLanguageAvailable(lang);

Setting a deisred language:

var setLanguage = await Tts.setLanguage(lang);
0
likes
0
pub points
58%
popularity

Publisher

unverified uploader

A text to speech plugin for flutter.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on tts