Made in Vancouver, Canada by Picovoice
Leopard is an on-device speech-to-text engine. Leopard is:
- Private; All voice processing runs locally.
- Accurate [1]
- Compact and Computationally-Efficient [2]
- Cross-Platform:
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Android
- iOS
- Raspberry Pi (4, 3)
- NVIDIA Jetson Nano
- Java 11+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
Build the demo jars with Gradle:
cd leopard/demo/java
./gradlew build
The Leopard SDK requires a valid AccessKey
at initialization. AccessKey
s act as your credentials when using Leopard SDKs.
You can create your AccessKey
for free. Make sure to keep your AccessKey
secret.
To obtain your AccessKey
:
- Login or Signup for a free account on the Picovoice Console.
- Once logged in, go to the
AccessKey
tab to create one or use an existingAccessKey
.
Navigate to the output directory to use the demos:
cd leopard/demo/java/build/libs
The file demo uses Leopard to get speech-to-text results from an audio file.
java -jar leopard-file-demo.jar -a ${ACCESS_KEY} -i ${AUDIO_PATH}
The microphone demo opens an audio stream from a microphone, records audio and performces speech-to-text transcription from the recorded audio:
java -jar leopard-mic-demo.jar -a ${ACCESS_KEY}
It is possible that the default audio input device is not the one you wish to use. There are a couple of debugging facilities baked into the demo application to solve this. First, type the following into the console:
java -jar leopard-mic-demo.jar -sd
It provides information about various audio input devices on the box. On a Windows PC, this is the output:
Available input devices:
Device 0: Microphone Array (Realtek(R) Au
Device 1: Microphone Headset USB
You can use the device index to specify which microphone to use for the demo. For instance, if you want to use the Headset microphone in the above example, you can invoke the demo application as below:
java -jar leopard-mic-demo.jar -a ${ACCESS_KEY} -di 1