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

Properties

On clip added callback
On clip removed callback

Protected Fields

Dictionary< 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