Leopard Speech-to-Text
Go Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- NVIDIA Jetson Nano
- Raspberry Pi (3, 4)
Requirements
- Picovoice Account & AccessKey
- Go 1.16+
- Windows only: a gcc compiler like Mingw in $PATH
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Download and install Go language .
Install the Leopard Go Package using the Go CLI:
Usage
Create an instance of the Leopard engine:
Transcribe an audio file:
When done be sure to explicitly release the resources using leopard.Delete()
.
Demo
For the Leopard Go SDK, we offer demo applications that demonstrate how to use the Speech-to-Text engine on audio files.
Setup
Clone the Leopard repository from GitHub using HTTPS:
Usage
To see the usage options for the demos, use the -h
flag:
Run the following command to transcribe an audio file:
For more information on our Leopard demos for Go, head over to our GitHub repository .
Language Model
The Leopard Go SDK comes preloaded with a default English language model (.pv
file).
Default models for other supported languages can be found in the Leopard 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 by setting .ModelPath
on an instance of Leopard before initializing: