Load a tts clip using the specified text, disk cache settings and playback events and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
textToSpeak
The text to be spoken
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and playback events and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
textToSpeak
The text to be spoken
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and disk cache settings and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
textToSpeak
The text to be spoken
diskCacheSettings
Specific tts load caching settings
IEnumerator SpeakAsync
( string textToSpeak )
Load a tts clip using the specified text and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Load a tts clip using the specified text, disk cache settings and playback events. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textToSpeak
The text to be spoken
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and disk cache settings events. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textToSpeak
The text to be spoken
diskCacheSettings
Specific tts load caching settings
void SpeakQueued
( string textToSpeak )
Load a tts clip using the specified text. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textToSpeak
The text to be spoken
void SpeakFormatQueued
( string format,
params string [] textsToSpeak )
Loads a formated phrase to be spoken. Adds clip to playback queue and will speak once queue has completed all playback.
Load a tts clip using the specified text phrases, disk cache settings and playback events and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textsToSpeak
Multiple texts to be spoken
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text phrases and playback events and then waits for the files to load & play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textsToSpeak
Multiple texts to be spoken
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text phrases and disk cache settings and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textsToSpeak
Multiple texts to be spoken
diskCacheSettings
Specific tts load caching settings
IEnumerator SpeakQueuedAsync
( string [] textsToSpeak )
Load a tts clip using the specified text phrases and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textsToSpeak
Multiple texts to be spoken
virtual void Stop
( string textToSpeak,
bool allInstances )
Stop load and playback of a specific clip
Parameters
clipData
The clip to be stopped and removed from the queue
allInstances
Whether to remove the first instance of this clip or all instances
Load a tts clip using the specified text, disk cache settings and playback events and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
textToSpeak
The text to be spoken
overrideVoiceSettings
Custom voice settings to be used for this and upcoming requests
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text, disk cache settings and playback events and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and playback events and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and disk cache settings and then waits for the file to load and play. Cancels all previous clips when loaded and then plays.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
Load a tts clip using the specified response node, disk cache settings and playback events. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textToSpeak
The text to be spoken
overrideVoiceSettings
Custom voice settings to be used for this and upcoming requests
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text, disk cache settings and playback events. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text and disk cache settings events. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
Load a tts clip using the specified text phrases, disk cache settings and playback events and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
textsToSpeak
Multiple texts to be spoken
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text phrases, disk cache settings and playback events and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
diskCacheSettings
Specific tts load caching settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text phrases and playback events and then waits for the files to load & play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
playbackEvents
Events to be called for this specific tts playback request
Load a tts clip using the specified text phrases and disk cache settings and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
Load a tts clip using the specified text phrases and then waits for the files to load and play. Adds clip to playback queue and will speak once queue has completed all playback.
Parameters
responseNode
Parsed data that includes text to be spoken and voice settings
void Pause ( )
Pause any current or future loaded audio playback
void Resume ( )
Resume playback for current and future audio clips
void PrepareToSpeak ( )
Call before sending speech data to warm up system
void StartTextBlock ( )
Call at the start of a larger text block to indicate many queued requests will be coming
void EndTextBlock ( )
Call at the end of a larger text block to indicate a block of text is complete.