public class Settings
extends java.lang.Object
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static void |
setAllowMobileGPU(boolean allowMobileGPU)
Sets whether GPU delegate allowed to be used for VoiceSDK (for Android devices only).
|
static void |
setAllowMobileNNAPI(boolean allowMobileNNAPI)
Sets whether NNAPI delegate allowed to be used for VoiceSDK (for Android devices only).
|
static void |
setNumThreads(int numThreads)
Sets the maximum number of threads available for VoiceSDK.
|
static void |
setUseVoiceTemplateCompression(boolean useVoiceTemplateCompression)
Sets whether to compress voice templates serialization.
|
public static void setNumThreads(int numThreads)
numThreads
- maximum number of threads available for VoiceSDK.VoiceSdkEngineException
- on negative numThreadspublic static void setAllowMobileNNAPI(boolean allowMobileNNAPI)
allowMobileNNAPI
- whether NNAPI is allowed to be used for VoiceSDK execution.public static void setAllowMobileGPU(boolean allowMobileGPU)
allowMobileGPU
- whether GPU is allowed to be used for VoiceSDK execution.public static void setUseVoiceTemplateCompression(boolean useVoiceTemplateCompression)
useVoiceTemplateCompression
- whether to compress voice templates serialization.