34 #define PRINT_FEATURE(t) case LicenseFeature::t: os << #t; break; 57 expiration_date(std::move(expiration_date)) {}
60 os <<
"LicenseFeatureInfo[" LicenseFeature
VoiceSDK licensed features.
Definition: settings.h:25
friend std::ostream & operator<<(std::ostream &os, const LicenseFeatureInfo &info)
Definition: settings.h:59
VoiceSDK feature information.
Definition: settings.h:49
std::string expiration_date
Definition: settings.h:51
VOICE_SDK_API void setUseVoiceTemplateCompression(bool useVoiceTemplateCompression) noexcept
Sets whether to compress voice templates serialization. Voice template compression is not used by def...
VOICE_SDK_API void setAllowMobileGPU(bool allowMobileGPU) noexcept
Sets whether GPU delegate allowed to be used for VoiceSDK (for Android devices only).
LicenseException(const std::string &message)
Definition: settings.h:18
Definition: intervals.h:8
A type for exception which is thrown on license expiration or absence.
Definition: settings.h:16
LicenseFeatureInfo(LicenseFeature feature, std::string expiration_date)
Definition: settings.h:55
VOICE_SDK_API void setMobileLicense(const std::string &mobile_license_string)
Sets the mobile SDK license (only can be used for Android and iOS SDKs).
LicenseFeatureInfo()
Definition: settings.h:53
std::ostream & operator<<(std::ostream &os, const LicenseFeature &feature)
Definition: settings.h:33
VOICE_SDK_API void setAllowMobileNNAPI(bool allowMobileNNAPI) noexcept
Sets whether NNAPI delegate allowed to be used for VoiceSDK (for Android devices only).
#define VOICE_SDK_API
Definition: config.h:21
LicenseException(const char *message)
Definition: settings.h:19
VOICE_SDK_API std::vector< LicenseFeatureInfo > getLicenseInfo()
Returns information (enabled features and expiration dates) about the installed license if available...
LicenseFeature feature
Definition: settings.h:50
VOICE_SDK_API void setNumThreads(unsigned int numThreads) noexcept
Sets the maximum number of threads available for VoiceSDK. If 0 passed, then the optimal number of th...