This commit is contained in:
tuna2134
2024-09-10 09:31:47 +00:00
parent d4795ad139
commit 30a5be0878

View File

@@ -32,7 +32,7 @@ async fn synthesize(
"models/model_opt.onnx",
"models/style_vectors.json",
)?);
&*tts_model.as_ref().unwrap()
tts_model.as_ref().unwrap()
};
let (bert_ori, phones, tones, lang_ids) = tts_model.parse_text(&text)?;
let style_vector = tts_model.get_style_vector(0, 1.0)?;