From 3103fcef17f5d78a5197096d49a178fcba69914b Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Sun, 22 Sep 2024 07:25:48 +0000 Subject: [PATCH] fix bug --- sbv2_bindings/src/sbv2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbv2_bindings/src/sbv2.rs b/sbv2_bindings/src/sbv2.rs index 30797af..4e2efca 100644 --- a/sbv2_bindings/src/sbv2.rs +++ b/sbv2_bindings/src/sbv2.rs @@ -1,6 +1,6 @@ use pyo3::prelude::*; use pyo3::types::PyBytes; -use sbv2_core::tts::TTSModelHolder; +use sbv2_core::tts::{TTSModelHolder, SynthesizeOptions}; use crate::style::StyleVector; @@ -130,7 +130,7 @@ impl TTSModel { length_scale: f32, ) -> anyhow::Result> { let data = self.model.easy_synthesize( - ident, + ident.as_str(), &text, style_id, SynthesizeOptions {