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
|
/// 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user