diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7c3f41f..99a4b1a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -26,8 +26,6 @@ jobs: platform: - runner: ubuntu-latest target: x86_64 - - runner: ubuntu-latest - target: x86 - runner: ubuntu-latest target: aarch64 steps: @@ -56,8 +54,6 @@ jobs: platform: - runner: windows-latest target: x64 - - runner: windows-latest - target: x86 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/sbv2_bindings/Cargo.toml b/sbv2_bindings/Cargo.toml index eb62b28..a904cc0 100644 --- a/sbv2_bindings/Cargo.toml +++ b/sbv2_bindings/Cargo.toml @@ -12,4 +12,4 @@ crate-type = ["cdylib"] anyhow.workspace = true ndarray.workspace = true pyo3 = { version = "0.22.0", features = ["anyhow"] } -sbv2_core = { version = "0.1.3", path = "../sbv2_core" } +sbv2_core = { version = "0.1.4", path = "../sbv2_core" } diff --git a/sbv2_bindings/src/sbv2.rs b/sbv2_bindings/src/sbv2.rs index be670e6..9ae6fcd 100644 --- a/sbv2_bindings/src/sbv2.rs +++ b/sbv2_bindings/src/sbv2.rs @@ -129,16 +129,15 @@ impl TTSModel { sdp_ratio: f32, length_scale: f32, ) -> anyhow::Result> { - let (bert_ori, phones, tones, lang_ids) = self.model.parse_text(&text)?; - let data = self.model.synthesize( + let data = self.model.easy_synthesize( ident, - bert_ori, - phones, - tones, - lang_ids, + &text, style_vector.get(), - sdp_ratio, - length_scale, + SynthesizeOptions { + sdp_ratio, + length_scale, + ..Default::default() + }, )?; Ok(PyBytes::new_bound(py, &data)) }