Package-level declarations

This package contains the TextToSpeechEngine interface, which provides methods to change the language and to play or stop audio messages.

Types

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class AudioFocusError : TextToSpeechEngineError

Audio focus request did not finish successfully and voice cannot be generated.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class AudioMessage(val message: String, val messageType: MessageType)

Represents an audio message.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class EngineNotReadyError : TextToSpeechEngineError

TextToSpeechEngine is not initialized and voice cannot be generated.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
interface MessagePlaybackListener

Listener to report the state of the Text-To-Speech message playback.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class MessageSynthesisError : TextToSpeechEngineError

Message synthesis was interrupted due to an error.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class MessageTimedOutError : TextToSpeechEngineError

Message has timed out.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
value class MessageType

Type of the message to be synthesized.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class NetworkConnectivityError : TextToSpeechEngineError

Network connectivity issues were encountered.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
interface OnEngineReadyListener

Listener which reports when TextToSpeechEngine is ready.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class PhoneticAlphabetNotSupportedError : TextToSpeechEngineError

TextToSpeechEngine does not support the provided phonetic alphabet.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
interface TextToSpeechEngine : AutoCloseable

Responsible for voice synthesis of audio messages.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
open class TextToSpeechEngineError

Represents an error raised when something went wrong in TextToSpeechEngine.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class UnknownError : TextToSpeechEngineError

Unexpected error.