Fix model path in Rust example

This commit is contained in:
Daniel Müller
2025-12-25 18:25:33 -08:00
parent d5b52843f7
commit 21ffe8576e

View File

@@ -4,7 +4,7 @@ mod vad_iter;
fn main() {
let model_path = std::env::var("SILERO_MODEL_PATH")
.unwrap_or_else(|_| String::from("../../files/silero_vad.onnx"));
.unwrap_or_else(|_| String::from("../../src/silero_vad/data/silero_vad.onnx"));
let audio_path = std::env::args()
.nth(1)
.unwrap_or_else(|| String::from("recorder.wav"));