0 purchases
tts
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');
}
copied to clipboard
Languages #
You can get a list of available languages (voices) supported by the OS by calling:
final languages = await Tts.getAvailableLanguages();
copied to clipboard
Checking to see if a languge can be used:
var isGoodLanguage = await Tts.isLanguageAvailable(lang);
copied to clipboard
Setting a deisred language:
var setLanguage = await Tts.setLanguage(lang);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.