- C99-compatible compiler
Zebra requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Zebra 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.
Build the demo by running this from the root of the repository:
cmake -S demo/c/ -B demo/c/build
cmake --build demo/c/buildBuild the demo by running this from the root of the repository:
cmake -S demo/c/ -B demo/c/build -G "MinGW Makefiles"
cmake --build demo/c/buildRunning the demo without arguments prints the usage:
usage: ./demo/c/build/zebra_demo -a ACCESS_KEY -l LIBRARY_PATH -m MODEL_PATH -t TEXTRun the command corresponding to your platform from the root of the repository.
Replace ${LIBRARY_PATH} with path to appropriate library available under lib,
${ACCESS_KEY} with yours obtained from Picovoice Console,
${MODEL_PATH} with a supported translation model located here and
${TEXT} with the text to translate.
Zebra translation models are located here. The selected model decides the source and target translation languages.
The format of the model follows:
zebra_params_${SOURCE}_${TARGET}.pvWhere ${SOURCE} is the language code of the source language and ${TARGET} is the language code of the target language for the translation.