Octopus Speech-to-Index
Android Quick Start
Platforms
- Android (5.0+)
Requirements
- Picovoice Account and AccessKey
- Android Studio
- Android device with USB debugging enabled or Android simulator
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install Android Studio.
Include
mavenCentral()
repository in the top-levelbuild.gradle
. Then add the following to the app'sbuild.gradle
:
- Add the following to the app's
AndroidManifest.xml
file to enable recording with an Android device's microphone:
Usage
Use the Octopus Builder
to create an instance of Octopus Speech-to-Index
:
Index an audio file by passing in the absolute path to the file on device:
Search audio using the generated metadata object:
Free resources used by Octopus Speech-to-Index
:
Demo
For the Octopus Speech-to-Index Android SDK, we offer a demo application that demonstrates how to use the Speech-to-Index engine on audio recordings.
Setup
Clone the Octopus Speech-to-Index repository from GitHub using HTTPS:
Usage
- Open the Android demo using Android Studio.
- Copy your
AccessKey
from Picovoice Console into theACCESS_KEY
variable in MainActivity.java. - Run the application using a connected Android device or using an Android simulator.