From 15ab2b45e7f9f2b6ea92f4dd7e8a5768630dbd80 Mon Sep 17 00:00:00 2001 From: Chris Thornton Date: Sun, 10 Apr 2016 20:15:33 -0700 Subject: Updates to sound trigger test app. Now supports loading model information from .properties files inside the app's data directory. This lets you prepare models for your actual device, rather than just fake data. If no .properties files are present, falls back to the default fake three models. Also adds support for playing some trigger audio, so you can use the same device to (hopefully) have a trigger be detected. Change-Id: I003849eb11d4995534d4c070838810d4519991f8 --- tests/SoundTriggerTestApp/res/layout/main.xml | 27 +-- tests/SoundTriggerTestApp/res/values/strings.xml | 4 +- .../soundtrigger/TestSoundTriggerActivity.java | 213 +++++++++++++++------ 3 files changed, 166 insertions(+), 78 deletions(-) (limited to 'tests/SoundTriggerTestApp') diff --git a/tests/SoundTriggerTestApp/res/layout/main.xml b/tests/SoundTriggerTestApp/res/layout/main.xml index 702be49aac7b..06949a0b6328 100644 --- a/tests/SoundTriggerTestApp/res/layout/main.xml +++ b/tests/SoundTriggerTestApp/res/layout/main.xml @@ -60,29 +60,22 @@ android:onClick="onUnEnrollButtonClicked" android:padding="20dp" /> +