TextToSpeechWeb class
A web implementation of the TextToSpeech plugin.
Web API reference:
- Inheritance
-
- Object
- PlatformInterface
- TextToSpeechPlatform
- TextToSpeechWeb
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
languages
↔ List<
String> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ TtsStatus
-
getter/setter pair
- synth ↔ SpeechSynthesis?
-
getter/setter pair
- utterance ↔ SpeechSynthesisUtterance?
-
getter/setter pair
Methods
-
getDefaultLanguage(
) → Future< String?> -
Get default language.
Always returns 'English (en-US)'.
override
-
getDisplayLanguageByCode(
String langCode) → Future< String?> -
inherited
-
getDisplayLanguages(
) → Future< List< String> ?> -
inherited
-
getLanguageCodeByName(
String languageName) → Future< String?> -
inherited
-
getLanguages(
) → Future< List< String> > -
Return list of supported language code (i.e en-US)
SpeechSynthesis Web API doesn't provide specific function to get supported language
We get it from getVoice function instead
override
-
getVoice(
) → Future< List< String> ?> -
Get list of supported voices
override
-
getVoiceByLang(
String lang) → Future< List< String> ?> -
Get language code of supported voices (e.g. en-US)
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< bool?> -
Pause current utterance immediately
override
-
resume(
) → Future< bool?> -
Resume current paused utterance
override
-
setLanguage(
String language) → Future< bool?> -
Set language of next utterance
override
-
setPitch(
num pitch) → Future< bool?> -
Set pitch of next utterance
override
-
setRate(
num rate) → Future< bool?> -
Set rate (tempo) of next utterance
override
-
setVolume(
num volume) → Future< bool?> -
Set volume of next utterance
override
-
speak(
String text) → Future< bool?> -
Stop current utterance (if playing) and start speak new utterance
override
-
stop(
) → Future< bool?> -
Stop current utterance immediately
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void -
Registers this class as the default instance of
TextToSpeechPlatform
.