aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tts_smoke.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/tts_smoke.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/tts_smoke.rs b/tests/tts_smoke.rs
index e98d56d..6ec4a1d 100644
--- a/tests/tts_smoke.rs
+++ b/tests/tts_smoke.rs
@@ -8,8 +8,14 @@ fn piper_load_and_synthesize() {
8 let onnx = model_dir.join("pl_PL-bass-high.onnx"); 8 let onnx = model_dir.join("pl_PL-bass-high.onnx");
9 let json = model_dir.join("pl_PL-bass-high.onnx.json"); 9 let json = model_dir.join("pl_PL-bass-high.onnx.json");
10 10
11 assert!(onnx.exists(), "model file missing: {}", onnx.display()); 11 if !onnx.exists() || !json.exists() {
12 assert!(json.exists(), "config file missing: {}", json.display()); 12 eprintln!(
13 "skip: piper model not present ({} / {})",
14 onnx.display(),
15 json.display()
16 );
17 return;
18 }
13 19
14 let mut piper = 20 let mut piper =
15 piper_rs::Piper::new(&onnx, &json).expect("failed to load piper model"); 21 piper_rs::Piper::new(&onnx, &json).expect("failed to load piper model");