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

ITTSDiskCacheHandler Interface

Overview

Properties

All events for streaming from the disk cache
The default cache settings

Public Member Functions

string
A method for obtaining the path to a specific cache clip
bool
Whether or not the clip data should be cached on disk
void
CheckCachedToDisk
( TTSClipData clipData,
Action< TTSClipData, bool > onCheckComplete )
Performs a check to determine if a file is cached to disk or not
void
StreamFromDiskCache
( TTSClipData clipData,
Action< TTSClipData, float > onProgress )
Method for streaming from disk cache
void
Method for cancelling a running cache load request

Details

Properties

TTSStreamEvents Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.DiskStreamEvents
All events for streaming from the disk cache
TTSDiskCacheSettings Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.DiskCacheDefaultSettings
The default cache settings

Member Functions

string Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.GetDiskCachePath
( TTSClipData clipData )
A method for obtaining the path to a specific cache clip
Parameters
clipData
Clip request data
Returns
Returns the clip's cache path
bool Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.ShouldCacheToDisk
( TTSClipData clipData )
Whether or not the clip data should be cached on disk
Parameters
clipData
Clip request data
Returns
Returns true if should cache
void Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.CheckCachedToDisk
( TTSClipData clipData,
Action< TTSClipData, bool > onCheckComplete )
Performs a check to determine if a file is cached to disk or not
Parameters
clipData
Clip request data
Returns
Returns true if currently on disk (Except for Android Streaming Assets)
void Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.StreamFromDiskCache
( TTSClipData clipData,
Action< TTSClipData, float > onProgress )
Method for streaming from disk cache
Parameters
clipData
Clip request data
onProgress
Callbacks for stream progress
void Meta.WitAi.TTS.Interfaces.ITTSDiskCacheHandler.CancelDiskCacheStream
( TTSClipData clipData )
Method for cancelling a running cache load request
Parameters
clipData
Clip request data
Did you find this page helpful?
Thumbs up icon
Thumbs down icon