Zebra Translate
C Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64, arm64)
- Raspberry Pi (3, 4, 5)
Requirements
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey.
Make sure to keep your AccessKey secret.
Quick Start
Setup
- Clone the repository:
Usage
- Include the public header files (
picovoice.handpv_zebra.h). - Link the project to an appropriate precompiled library for the target platform and load it.
- Select a model file. Read more about how to select a model in the Translation Models section.
- Construct the Zebra Translate object:
- Pass in text to the
pv_zebra_translatefunction:
- Release resources explicitly when done with Zebra Translate:
Translation Models
Supported Zebra translation models are located in our GitHub repository. The selected model decides the source and target translation languages.
The format of the model follows:
Where ${SOURCE} is the language code of the source language and ${TARGET} is the language code of the target language for the translation.
Demo
For the Zebra Translate C SDK, we offer a demo application that demonstrates how to use the Translate engine.
Setup
- Clone the Zebra Translate repository from GitHub using HTTPS:
- Build the demo:
Usage
To see the usage options for the demo:
Run the command corresponding to your platform from the root of the repository:
For more information on our Zebra Translate demos for C, head over to our GitHub repository.