TitanSDK.accessibility
interface methods.
text
: The string
or an array of string
of text to be spoken.options
: Optional TTS configuration. (Note: This parameter is currently under development and its structure is likely to change.)Promise<void>
that resolves when the speech request has been successfully initiated.TitanSDKError
with code FEATURE_UNSUPPORTED
if the text-to-speech feature is not available on the current platform.TitanSDKError
with code TTS_ERROR
if a general failure occurs during speech synthesis initiation.Promise<void>
that resolves once the speech has been successfully stopped.TitanSDKError
with code FEATURE_UNSUPPORTED
if the text-to-speech feature is not available on the current platform.Promise<AccessibilitySettings>
that resolves with an object containing the current settings.TitanSDKError
with code PLATFORM_ERROR
if the settings cannot be retrieved from the underlying platform.getSettings
and provided by onSettingsChanged
.
listener
: A callback function that will be invoked with the updated AccessibilitySettings
object when a change occurs.listener
, preventing it from receiving further updates.