Skip to content

Commit

Permalink
Update sbv2.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Dec 18, 2024
1 parent 198f136 commit b40430d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sbv2_bindings/src/sbv2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down

0 comments on commit b40430d

Please sign in to comment.