mirror of
https://github.com/neodyland/sbv2-api.git
synced 2025-12-22 23:49:58 +00:00
Update sbv2.rs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user