mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
| .. | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
Stream example in Rust
Made after C++ stream example
Dependencies
- To build Rust crate
ortyou needccinstalled.
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