TextToSpeechEngine

Responsible for voice synthesis of audio messages.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard

Sets a listener to report on the readiness of the TextToSpeechEngine.

Link copied to clipboard
abstract fun changeLanguage(language: Locale)

Changes the language which will be used to synthesize audio messages.

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun currentLanguage(): Locale?

Returns current language used to synthesize audio messages.

Link copied to clipboard
abstract fun isLanguageAvailable(language: Locale): Boolean

Checks if the specified language as represented by the Locale is available.

Link copied to clipboard
abstract fun playAudioMessage(audioMessage: AudioMessage, playbackListener: MessagePlaybackListener)

Synthesizes an audio message.

Link copied to clipboard
abstract fun playTaggedMessage(taggedMessage: TaggedMessage, playbackListener: MessagePlaybackListener)

Synthesizes tagged audio message. Prior to synthesis the message is parsed into a format understandable by the engine.

Link copied to clipboard

Removes the listener that reports on the readiness of the TextToSpeechEngine.

Link copied to clipboard
abstract fun stopMessagePlayback()

Stops synthesizing the current AudioMessage.

Properties

Link copied to clipboard

List of phonetic alphabets for messages in MessageType.Ssml format supported by engine.