Android examples¶
The Android sample programs and code snippets are available in sample/android/ in the TrulyNatural installation directory.
See ~/Sensory/TrulyNaturalSDK/7.8.0-pre.2/sample/android/
The samples are written in Java; the same @aar and APIs work unchanged from Kotlin (see API overview ยง Kotlin on Android for interop notes).
New to the Session API? Start with Your first program for the Android wake-word flow, then explore the samples below.
Examples¶
- enroll-trigger
- UDT enrollment and phrase spotting.
- snsr-debug
- Logs recognizer audio and event timing information using the tpl-spot-debug template.
- SnsrStreamAudioDeviceAndroid.java
- Source for the fromAudioDevice implementation for Android Audio.