TextToSpeechEngine

interface TextToSpeechEngine : Disposable

Responsible for voice synthesis of audio messages.

Functions

Link copied to clipboard
abstract fun addOnEngineReadyListener(listener: OnEngineReadyListener)

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 dispose()
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
abstract fun removeOnEngineReadyListener(listener: OnEngineReadyListener)

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
abstract val supportedPhoneticAlphabets: List<String>

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