FlutterTts class

Constructors

FlutterTts()

Properties

cancelHandler VoidCallback
read / write
completionHandler VoidCallback
read / write
continueHandler VoidCallback
read / write
errorHandler ErrorHandler
read / write
getEngines Future
Future which invokes the platform specific method for getEngines Returns a list of installed TTS engines Android supported only
read-only
getLanguages Future
Future which invokes the platform specific method for getLanguages Android issues with API 21 & 22 Returns a list of available languages
read-only
getSpeechRateValidRange Future<SpeechRateValidRange>
read-only
getVoices Future
Future which invokes the platform specific method for getVoices Returns a List of voice names
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
pauseHandler VoidCallback
read / write
progressHandler ProgressHandler
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startHandler VoidCallback
read / write

Methods

isLanguageAvailable(String language) Future
Future which invokes the platform specific method for isLanguageAvailable Returns true or false
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pause() Future
Future which invokes the platform specific method for pause iOS supported only
platformCallHandler(MethodCall call) Future
Platform listeners
setCancelHandler(VoidCallback callback) → void
setCompletionHandler(VoidCallback callback) → void
setContinueHandler(VoidCallback callback) → void
setErrorHandler(ErrorHandler handler) → void
setIosAudioCategory(IosTextToSpeechAudioCategory category, List<IosTextToSpeechAudioCategoryOptions> options) Future
Future which invokes the platform specific method for setting audio category Ios supported only
setLanguage(String language) Future
Future which invokes the platform specific method for setLanguage
setPauseHandler(VoidCallback callback) → void
setPitch(double pitch) Future
Future which invokes the platform specific method for setPitch 1.0 is default and ranges from .5 to 2.0
setProgressHandler(ProgressHandler callback) → void
setSharedInstance(bool sharedSession) Future
Future which invokes the platform specific method for shared instance iOS supported only
setSilence(int timems) Future
Future which invokes the platform specific method for setSilence 0 means start the utterance immediately. If the value is greater than zero a silence period in milliseconds is set according to the parameter Android supported only
setSpeechRate(double rate) Future
Future which invokes the platform specific method for setSpeechRate Allowed values are in the range from 0.0 (slowest) to 1.0 (fastest)
setStartHandler(VoidCallback callback) → void
setVoice(String voice) Future
Future which invokes the platform specific method for setVoice Android supported only
setVolume(double volume) Future
Future which invokes the platform specific method for setVolume Allowed values are in the range from 0.0 (silent) to 1.0 (loudest)
speak(String text) Future
Future which invokes the platform specific method for speaking
stop() Future
Future which invokes the platform specific method for stop
synthesizeToFile(String text, String fileName) Future
Future which invokes the platform specific method for synthesizeToFile Android and iOS supported only
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited