API reference
API reference
Select your platform
No SDKs available
No versions available

TTSWit Class

Fields

The voice provider used for preset voice settings. Uses TTSWit with TTSWitVoiceSettings
This script provides web request handling
TTSWitRequestSettings RequestSettings[Get]
TTSWitVoiceSettings [] PresetWitVoiceSettings[Get]
TTSVoiceSettings VoiceDefaultSettings[Get]

Properties

The configuration to be updated
TTSVoiceSettings [] PresetVoiceSettings[Get]

Events

Callback following configuration change

Protected Functions

Attempt to instantiate web socket adapter and setup audio system
Refreshes client provider on web socket settings
Ensures web socket adapter disconnects from the client

Member Functions

Returns error if invalid
Method for determining if there are problems that will arise with performing a web request prior to doing so
Parameters
clipData
The clip data to be used for the request
Returns
Invalid error(s). It will be empty if there are none
Method for creating a new TTSClipData
Parameters
clipId
Unique clip identifier
textToSpeak
Text to be spoken
voiceSettings
Settings for how the clip should sound during playback.
diskCacheSettings
If and how this clip should be cached.
Decode a response node into text to be spoken or a specific voice setting Example Data: { "q": "Text to be spoken" "voice": "Charlie }
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
textToSpeak
The text to be spoken output
voiceSettings
The output for voice settings
Returns
True if decode was successful
Method for streaming audio from a back-end service.
Parameters
clipData
Information about the clip being requested.
onReady
Callback on request is ready for playback.
Method for performing a web download request
Parameters
clipData
Clip request data
diskPath
The specific disk path the file should be downloaded to
Checks if file exists on disk
Streams from disk
Cancels any running requests
Did you find this page helpful?
Thumbs up icon
Thumbs down icon