Skip to content

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

#define SNSR_ACCELERATION "accel-info"
public class Snsr {
  public final static String ACCELERATION = "accel-info";
}

Type of acceleration used.

Returns text describing the type of vector acceleration the library uses.

library-info

library-info

information string read-only

#define SNSR_LIBRARY_INFO "library-info"
public class Snsr {
  public final static String LIBRARY_INFO = "library-info";
}

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

#define SNSR_LICENSE_EXPDATE "license-exp-date"
public class Snsr {
  public final static String LICENSE_EXPDATE = "license-exp-date";
}

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

#define SNSR_LICENSE_EXPIRES "license-exp-message"
public class Snsr {
  public final static String LICENSE_EXPIRES = "license-exp-message";
}

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.

library-info

license-exp-warn

information string read-only

#define SNSR_LICENSE_WARNING "license-exp-warn"
public class Snsr {
  public final static String LICENSE_WARNING = "license-exp-warn";
}

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.".

library-info

oss-components

information string read-only

#define SNSR_OSS_COMPONENTS "oss-components"
public class Snsr {
  public final static String OSS_COMPONENTS = "oss-components";
}

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.

library-info, Open Source Licenses

stt-support

information int read-only 7.5.0

#define SNSR_STT_SUPPORT "stt-support"
public class Snsr {
  public final static String STT_SUPPORT = "stt-support";
}

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.

library-info, CONFIG_STT_SUPPORT

thread-support

information int read-only 7.5.0

#define SNSR_THREAD_SUPPORT "thread-support"
public class Snsr {
  public final static String THREAD_SUPPORT = "thread-support";
}

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.

library-info, CONFIG_THREAD_SUPPORT