This Android demo runs Cobra in the foreground (i.e., when the app is in focus).
- Replace
String ACCESS_KEY = "..."
inside MainActivity.java with your AccessKey generated by Picovoice Console.
private static final String ACCESS_KEY = "YOUR_ACCESS_KEY_HERE";
- Add
pvTestingAccessKey = "..."
insidelocal.properties
with your AccessKey generated by Picovoice Console.
pvTestingAccessKey=YOUR_ACCESS_KEY_HERE
Launch the demo on your phone using Android Studio.
- Press the start button
- Start talking. The app background will change to indicate that voice activity was detected above the threshold.