Files
silero-vad/examples/rust-example
Daniel Müller 2a08f0b90d Remove 'load-dynamic' feature of 'ort' dependency
It's unclear why we'd want this feature. It seems to make things even
less isolated and self-contained than it already is, which certainly
isn't a boon for an example.
2025-12-27 06:36:07 -08:00
..
2025-12-25 18:25:33 -08:00
2024-05-30 12:08:47 +03:00
2024-05-30 12:08:47 +03:00

Stream example in Rust

Made after C++ stream example

Dependencies

  • To build Rust crate ort you need cc installed.

Usage

Just

cargo run

If you run example outside of this repo adjust environment variable

SILERO_MODEL_PATH=/path/to/silero_vad.onnx cargo run 

If you need to test against other wav file, not recorder.wav, specify it as the first argument

cargo run -- /path/to/audio/file.wav