Cheetah Speech-to-Text
Java Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (3, 4, 5)
Requirements
- Picovoice Account and AccessKey
- Java 11+
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install JDK 11+.
Install the Java binding from the Maven Central Repository at:
Usage
Create an instance of the engine with the Cheetah Streaming Speech-to-Text Builder class:
Transcribe audio:
When done resources have to be released explicitly:
Model File
The Cheetah Speech-to-Text Java SDK comes preloaded with a default English language model (.pv
file).
Default models for other supported languages can be found in the Cheetah Speech-to-Text GitHub repository.
Create custom language models using the Picovoice Console. Here you can train language models with custom vocabulary and boost words in the existing vocabulary.
Pass in the .pv
file via the .setModelPath()
Builder argument:
Demo
For the Cheetah Streaming Speech-to-Text Java SDK, we offer demo applications that demonstrate how to use the Speech-to-Text engine on real-time audio streams (i.e. microphone input).
Setup
- Clone the Cheetah Streaming Speech-to-Text repository from GitHub using HTTPS:
- Build the Cheetah Streaming Speech-to-Text Java demo using
Gradle
:
Usage
To see the usage options for the demos, use the -h
flag:
Ensure you have a working microphone connected to your system and run the following command to perform live speech-to-text:
For more information on our Cheetah Streaming Speech-to-Text demos for Java, head over to our GitHub repository.
Resources
Package
API
GitHub
- Cheetah Streaming Speech-to-Text Java SDK on GitHub
- Cheetah Streaming Speech-to-Text Java demo on GitHub