Skip to content

Constants

These are preprocessor macros or module constants available during the application build phase. They contain library information such as the SDK variant and version.

Example

#include <snsr.h>

int main(int argc, char *argv[])
{
  SnsrRC r;
  printf("This is %s SDK version %s\n", SNSR_NAME, SNSR_VERSION);
  return 0;
}
import com.sensory.speech.snsr.Snsr;

public class segmentSpottedAudio {
  public static void main(String[] args) {
    System.out.println("This is " + Snsr.NAME + " SDK version " + Snsr.VERSION);
  }
}

Variant

Constants in this section describe the SDK library type: TrulyHandsfree (fixed and enrolled wake words) or TrulyNatural (TrulyHandsfree with LVCSR and STT).

IS_TRULYHANDSFREE

#define SNSR_IS_TRULYHANDSFREE 0
public class Snsr {
  public final static int IS_TRULYHANDSFREE = 0;
}

1 if this SDK is TrulyHandsfree, 0 if not.

IS_TRULYNATURAL

#define SNSR_IS_TRULYNATURAL 1
public class Snsr {
  public final static int IS_TRULYNATURAL = 1;
}

1 if this SDK is TrulyNatural, 0 if not.

NAME

#define SNSR_NAME "TrulyNatural"
public class Snsr {
  public final static String NAME = "TrulyNatural";
}

SDK variant: "TrulyHandsfree" or "TrulyNatural".

SETTING_SZ

#define SNSR_SETTING_SZ 128
public class Snsr {
  public final static int SETTING_SZ = 128;
}

The longest supported setting key length in bytes, including the

terminating \0.

Version

These describe the TrulyNatural SDK API version and the component parts of the version string.

VERSION

#define SNSR_VERSION "7.6.1"
public class Snsr {
  public final static String VERSION = "7.6.1";
}

API version.

This follows semantic versioning rules.

VERSION_MAJOR

#define SNSR_VERSION_MAJOR 7
public class Snsr {
  public final static int VERSION_MAJOR = 7;
}

API major version number.

Incremented for changes that are not backwards-compatible, but also to indicate major improvements in technology that are backwards-compatible.

Refer to the release notes for details.

VERSION_MINOR

#define SNSR_VERSION_MINOR 6
public class Snsr {
  public final static int VERSION_MINOR = 6;
}

API minor version number.

Incremented for changes and improvements that are backwards-compatible.

VERSION_PATCH

#define SNSR_VERSION_PATCH 1
public class Snsr {
  public final static int VERSION_PATCH = 1;
}

API patch version number.

Incremented for bug fixes.

VERSION_PRE

#define SNSR_VERSION_PRE ""
public class Snsr {
  public final static String VERSION_PRE = "";
}

Pre-release version tag.

This is empty for official releases.

VERSION_BUILD

#define SNSR_VERSION_BUILD ""
public class Snsr {
  public final static String VERSION_BUILD = "";
}

Build information.

This is empty for official releases.

VERSION_CMAKE

#define SNSR_VERSION_CMAKE "7.6.1.0"
public class Snsr {
  public final static String VERSION_CMAKE = "7.6.1.0";
}

API version compatible with CMAKE_PROJECT_VERSION.

VERSION_ID

#define SNSR_VERSION_ID 96
public class Snsr {
  public final static int VERSION_ID = 96;
}

Unique release counter.

This value is incremented with each public SDK release.

VERSION_DSP

#define SNSR_VERSION_DSP "8.5.2"
public class Snsr {
  public final static String VERSION_DSP = "8.5.2";
}

DSP embedded library version.