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

BaseTTSRuntimeCache Class

Extends MonoBehaviour, ITTSRuntimeCacheHandler
A cache that holds onto audio files only while they are being played

Events

Callback for clips being added to the runtime cache
Callback for clips being removed from the runtime cache

Protected Fields

ConcurrentDictionary< string, TTSClipData > _clips[Get]

Member Functions

Simple getter for all clips
Grabs clip from dictionary if possible
Add clip to dictionary and begins watching playback
Parameters
clipData
Remove clip from cache immediately
Parameters
clipID

Protected Functions

virtual void OnDestroy ( )
Performs setup and callback when clip is added
Performs breakdown and callback when clip is removed
Did you find this page helpful?
Thumbs up icon
Thumbs down icon