xiaozhi-esp32-server/main/xiaozhi-server/models/snakers4_silero-vad/examples/rust-example
2026-09-02 15:09:39 -04:00
..
src feat: add T1D assistant integrations and server customizations 2026-09-02 15:09:39 -04:00
.gitignore feat: add T1D assistant integrations and server customizations 2026-09-02 15:09:39 -04:00
Cargo.lock feat: add T1D assistant integrations and server customizations 2026-09-02 15:09:39 -04:00
Cargo.toml feat: add T1D assistant integrations and server customizations 2026-09-02 15:09:39 -04:00
README.md feat: add T1D assistant integrations and server customizations 2026-09-02 15:09:39 -04: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