Library information¶
These keys return information about the library. They require a valid Session but are available before loading a task model.
Read information keys with the Session get function that matches the type of the setting. For example, use getString to retrieve the string value of oss-components.
accel-info¶
information string read-only
Type of acceleration used.
Returns text describing the type of vector acceleration the library uses.
library-info¶
information string read-only
SDK library information.
Human-readable summary of NAME, VERSION, VERSION_DSP, accel-info, license-exp-message, license-exp-warn, stt-support, thread-support, and oss-components.
license-exp-date¶
information double read-only
Library license expiration date.
Returns the license expiration date of the TrulyNatural library in seconds since the epoch. For production keys, which do not expire, the expiration date is 0.
license-exp-message¶
information string read-only
Library license expiration message.
The returned string is of the form "Library license expires on <date>", or NULL for license keys that do not expire.
license-exp-warn¶
information string read-only
Library license expiration warning message.
This value is NULL for library license keys that do not expire, or if the expiration date is more than 60 days into the future. For license keys expiring in 60 days or fewer, the returned string will be of the form "License will expire in 37 days.".
oss-components¶
information string read-only
Open Source library acknowledgements.
List of Open Source third-party modules linked into the binary.
The returned string lists one module per newline-separated line. Each line contains the name of the library, the license type and a URL to the module license text, separated by tab characters. The TrulyNatural SDK uses permissive software licenses only.
If the binary uses no Open Source modules, the returned string is NULL.
stt-support¶
information int read-only 7.5.0
Library Speech-To-Text support.
Returns 1 if the TrulyNatural SDK supports STT models, or 0if STT support is not available.
This is functionally equivalent to calling config with CONFIG_STT_SUPPORT, but is available across all API language bindings.
thread-support¶
information int read-only 7.5.0
Library multithreading support.
Returns 1 if the TrulyNatural SDK supports running multi-threaded models, or 0 if thread support is not available.
This is functionally equivalent to calling config with CONFIG_THREAD_SUPPORT, but is available across all API language bindings.