This commit is contained in:
tuna2134
2024-11-13 11:43:52 +00:00
parent b76738f467
commit 060af0c187

View File

@@ -17,7 +17,8 @@ fn main_inner() -> anyhow::Result<()> {
)?;
tts_holder.load_sbv2file(ident, fs::read(env::var("MODEL_PATH")?)?)?;
let audio = tts_holder.easy_synthesize(ident, &text, 0, 0, tts::SynthesizeOptions::default())?;
let audio =
tts_holder.easy_synthesize(ident, &text, 0, 0, tts::SynthesizeOptions::default())?;
fs::write("output.wav", audio)?;
Ok(())