Update sbv2.rs

This commit is contained in:
コマリン親衛隊
2024-12-19 07:49:43 +09:00
committed by GitHub
parent 198f136e94
commit b40430d48e

View File

@@ -136,9 +136,9 @@ impl TTSModel {
/// ------- /// -------
/// voice_data : bytes /// voice_data : bytes
/// 音声データ /// 音声データ
fn synthesize<'p>( fn synthesize(
&'p mut self, &mut self,
py: Python<'p>, py: Python,
text: String, text: String,
ident: String, ident: String,
style_id: i32, style_id: i32,
@@ -157,7 +157,7 @@ impl TTSModel {
..Default::default() ..Default::default()
}, },
)?; )?;
Ok(PyBytes::new_bound(py, &data)) Ok(PyBytes::new(py, &data))
} }
fn unload(&mut self, ident: String) -> bool { fn unload(&mut self, ident: String) -> bool {