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

TTSRuntimeCache Class

Meta::WitAi::TTS::Integrations::TTSRuntimeCache extends MonoBehaviour.
Meta::WitAi::TTS::Integrations::TTSRuntimeCache extends Meta.WitAi.TTS.Interfaces.ITTSRuntimeCacheHandler.

Overview

Data Fields

bool
Whether or not to unload clip data after the clip capacity is hit
int
The maximum clips allowed in the runtime cache
bool
Whether or not to unload clip data after the ram capacity is hit
int
The maximum amount of RAM allowed in the runtime cache. In KBs

Properties

On clip added callback
On clip removed callback

Public Member Functions

Simple getter for all clips
GetClip
( string clipID )
Getter for a clip that also moves clip to the back of the queue
bool
AddClip
( TTSClipData clipData )
Add clip to cache and ensure it is most recently referenced
void
RemoveClip
( string clipID )
Remove clip from cache immediately
int
Get RAM size of cache in KBs

Object Data

void
bool
Check if cache is full

Static Public Member Functions

static long
GetClipBytes
( AudioClip clip )
static long
GetClipBytes
( int channels,
int samples )

Details

Fields

bool Meta.WitAi.TTS.Integrations.TTSRuntimeCache.ClipLimit
Whether or not to unload clip data after the clip capacity is hit
int Meta.WitAi.TTS.Integrations.TTSRuntimeCache.ClipCapacity
The maximum clips allowed in the runtime cache
bool Meta.WitAi.TTS.Integrations.TTSRuntimeCache.RamLimit
Whether or not to unload clip data after the ram capacity is hit
int Meta.WitAi.TTS.Integrations.TTSRuntimeCache.RamCapacity
The maximum amount of RAM allowed in the runtime cache. In KBs

Properties

TTSClipEvent Meta.WitAi.TTS.Integrations.TTSRuntimeCache.OnClipAdded
On clip added callback
TTSClipEvent Meta.WitAi.TTS.Integrations.TTSRuntimeCache.OnClipRemoved
On clip removed callback

Member Functions

TTSClipData [] Meta.WitAi.TTS.Integrations.TTSRuntimeCache.GetClips ( )
Simple getter for all clips
TTSClipData Meta.WitAi.TTS.Integrations.TTSRuntimeCache.GetClip
( string clipID )
Getter for a clip that also moves clip to the back of the queue
bool Meta.WitAi.TTS.Integrations.TTSRuntimeCache.AddClip
( TTSClipData clipData )
Add clip to cache and ensure it is most recently referenced
Parameters
clipData
void Meta.WitAi.TTS.Integrations.TTSRuntimeCache.RemoveClip
( string clipID )
Remove clip from cache immediately
Parameters
clipID
int Meta.WitAi.TTS.Integrations.TTSRuntimeCache.GetCacheDiskSize ( )
Get RAM size of cache in KBs
Returns
Returns size in KBs rounded up

Object Data

virtual void Meta.WitAi.TTS.Integrations.TTSRuntimeCache.OnDestroy ( )
No description available.
bool Meta.WitAi.TTS.Integrations.TTSRuntimeCache.IsCacheFull ( )
Check if cache is full

Static Member Functions

static long Meta.WitAi.TTS.Integrations.TTSRuntimeCache.GetClipBytes
( AudioClip clip )
No description available.
static long Meta.WitAi.TTS.Integrations.TTSRuntimeCache.GetClipBytes
( int channels,
int samples )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon