Building this application requires the onnxruntime binaries, which can be found in the assets section here https://github.com/microsoft/onnxruntime/releases. When choosing which version to download, select the one that matches your OS but doesn’t have “training” within the name. The binaries can be found in the lib folder.
The following command can then be used to build the application:
ORT_STRATEGY=system ORT_LIB_LOCATION=<path to binaries> cargo build
Run with
cargo run -- --model <MODEL> --audio <AUDIO>
or for the binary direct
silero_example --model <MODEL> --audio <AUDIO>
where
Silero Meta Data
Name: torch_jit
Produced by pytorch
Inputs:
0 input: Tensor