AndroidTextToSpeechEngine
TextToSpeechEngine implementation based on Android's TextToSpeech.
Constructors
Link copied to clipboard
fun AndroidTextToSpeechEngine(context: Context, language: Locale = LocaleProvider.getLocale(context))
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override fun addOnEngineReadyListener(listener: OnEngineReadyListener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun playAudioMessage(audioMessage: AudioMessage, playbackListener: MessagePlaybackListener)
Content copied to clipboard
Synthesizes an audio message. If another audioMessage is currently being processed this one will be added to the queue. If there is already another AudioMessages in the queue it will be flushed and replaced by this one.
Link copied to clipboard
open override fun playTaggedMessage(taggedMessage: TaggedMessage, playbackListener: MessagePlaybackListener)
Content copied to clipboard
Synthesizes a tagged message. TaggedMessage is parsed into MessageType.SSML format prior to being synthesized. PhoneticAlphabetNotSupportedError is thrown if an unsupported phonetic alphabet is used.
Link copied to clipboard
open override fun removeOnEngineReadyListener(listener: OnEngineReadyListener)
Content copied to clipboard
Link copied to clipboard
Stops synthesis of current AudioMessage and discards all messages in the queue.
Properties
Link copied to clipboard
Supported phonetic alphabets. This engine supports only IPA_PHONETIC_ALPHABET.