Skip to content

Java examples

The Java sample programs and code snippets are available in sample/java/ in the TrulyNatural installation directory.

See ~/Sensory/TrulyNaturalSDK/7.8.0-pre.0+682.g276c2541e9/sample/java/

New to the Session API? Start with Your first program (FirstSpot.java), then explore the samples below.

Examples

segmentSpottedAudio.java
Runs a wake word followed by a VAD, and saves the captured audio to file.
enrollUDT.java
Enrolls a user-defined wake word.
evalUDT.java
Runs the wake word enrolled by enrollUDT.java.
SnsrEnrollmentTest.java
Unit tests for UDT enrollment and evaluation.
SnsrStreamAudioDeviceGeneric.java
Source for the fromAudioDevice implementation for Java Audio.