mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Fix model path in Rust example
This commit is contained in:
@@ -4,7 +4,7 @@ mod vad_iter;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let model_path = std::env::var("SILERO_MODEL_PATH")
|
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()
|
let audio_path = std::env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
.unwrap_or_else(|| String::from("recorder.wav"));
|
.unwrap_or_else(|| String::from("recorder.wav"));
|
||||||
|
|||||||
Reference in New Issue
Block a user