From b40430d48ebb8c2c516b383d4023a3ebc3c48c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Thu, 19 Dec 2024 07:49:43 +0900 Subject: [PATCH] Update sbv2.rs --- 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 c109869..290c27a 100644 --- a/sbv2_bindings/src/sbv2.rs +++ b/sbv2_bindings/src/sbv2.rs @@ -136,9 +136,9 @@ impl TTSModel { /// ------- /// voice_data : bytes /// 音声データ - fn synthesize<'p>( - &'p mut self, - py: Python<'p>, + fn synthesize( + &mut self, + py: Python, text: String, ident: String, style_id: i32, @@ -157,7 +157,7 @@ impl TTSModel { ..Default::default() }, )?; - Ok(PyBytes::new_bound(py, &data)) + Ok(PyBytes::new(py, &data)) } fn unload(&mut self, ident: String) -> bool {