Files
silero-vad/examples/rust-example
Daniel Müller cfe63384f0 Update model plumbing for Rust example
The v6.2 models broke the Rust example. Update the logic for driving
them to reflect what the reference Python code does.

Fixes: #745
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-28 07:15:01 -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