Leopard requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Leopard SDKs.
You can get your AccessKey
for free. Make sure to keep your AccessKey
secret.
Signup or Login to Picovoice Console to get your AccessKey
.
Replace "${YOUR_ACCESS_KEY_HERE}"
inside MainActivity.java
with your AccessKey obtained from Picovoice Console.
- Open the project in Android Studio
- Go to
Build > Select Build Variant...
and select the language you would like to run the demo in (e.g. enDebug -> English, itRelease -> Italian) - Build and run on an installed simulator or a connected Android device
- Press the record button.
- Start talking. Record some phrases or whatever audio you would like to transcribe.
- Press stop. Wait for the info box to display "Transcribed...". This may take a few seconds.
- The transcription will appear in the textbox above.
Ensure you have an Android device connected or simulator running. Then run the following from the terminal:
cd demo/android/LeopardDemo
./gradlew connectedAndroidTest -PpvTestingAccessKey="YOUR_ACCESS_KEY_HERE"
The test results are stored in leopard-demo-app/build/reports
.