From dd8ae77edc490b8681d435fe9765747470b88e22 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Sun, 22 Sep 2024 07:24:37 +0000 Subject: [PATCH] fix bug --- sbv2_bindings/src/sbv2.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbv2_bindings/src/sbv2.rs b/sbv2_bindings/src/sbv2.rs index 9ae6fcd..30797af 100644 --- a/sbv2_bindings/src/sbv2.rs +++ b/sbv2_bindings/src/sbv2.rs @@ -109,8 +109,8 @@ impl TTSModel { /// テキスト /// ident : str /// 識別子 - /// style_vector : StyleVector - /// スタイルベクトル + /// style_id : int + /// スタイルID /// sdp_ratio : float /// SDP比率 /// length_scale : float @@ -125,14 +125,14 @@ impl TTSModel { py: Python<'p>, text: String, ident: String, - style_vector: StyleVector, + style_id: i32, sdp_ratio: f32, length_scale: f32, ) -> anyhow::Result> { let data = self.model.easy_synthesize( ident, &text, - style_vector.get(), + style_id, SynthesizeOptions { sdp_ratio, length_scale,