Compare commits

...

145 Commits

Author SHA1 Message Date
tuna2134
ed48ee86cb Merge pull request #290 from neodyland/dependabot/cargo/ort-63d53e3
build(deps): bump ort from `f7be591` to `63d53e3`
2025-12-17 10:00:21 +09:00
dependabot[bot]
022330e4cc build(deps): bump ort from f7be591 to 63d53e3
Bumps [ort](https://github.com/pykeio/ort) from `f7be591` to `63d53e3`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](f7be591d06...63d53e3e45)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 63d53e3e4582e6f18a7cbc0661c46ce03a2f7880
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-17 00:59:43 +00:00
tuna2134
7c0991a113 Merge pull request #289 from neodyland/dependabot/cargo/log-0.4.29
build(deps): bump log from 0.4.28 to 0.4.29
2025-12-17 09:59:17 +09:00
tuna2134
e23d0ebfa0 Merge pull request #288 from neodyland/dependabot/cargo/tokenizers-0.22.2
build(deps): bump tokenizers from 0.22.1 to 0.22.2
2025-12-17 09:58:50 +09:00
tuna2134
9b5cf6d7ab Merge pull request #286 from neodyland/dependabot/cargo/wasm-bindgen-futures-0.4.56
build(deps): bump wasm-bindgen-futures from 0.4.55 to 0.4.56
2025-12-17 09:58:32 +09:00
tuna2134
b54874a715 Merge pull request #287 from neodyland/dependabot/cargo/pyo3-0.27.2
build(deps): bump pyo3 from 0.27.1 to 0.27.2
2025-12-17 09:58:23 +09:00
dependabot[bot]
443fe57372 build(deps): bump log from 0.4.28 to 0.4.29
Bumps [log](https://github.com/rust-lang/log) from 0.4.28 to 0.4.29.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.28...0.4.29)

---
updated-dependencies:
- dependency-name: log
  dependency-version: 0.4.29
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 07:20:32 +00:00
dependabot[bot]
eac08d3d6f build(deps): bump tokenizers from 0.22.1 to 0.22.2
Bumps [tokenizers](https://github.com/huggingface/tokenizers) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/huggingface/tokenizers/releases)
- [Changelog](https://github.com/huggingface/tokenizers/blob/main/RELEASE.md)
- [Commits](https://github.com/huggingface/tokenizers/compare/v0.22.1...v0.22.2)

---
updated-dependencies:
- dependency-name: tokenizers
  dependency-version: 0.22.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 07:20:11 +00:00
dependabot[bot]
3f2844f46c build(deps): bump pyo3 from 0.27.1 to 0.27.2
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.27.1 to 0.27.2.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.27.2/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.27.1...v0.27.2)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-version: 0.27.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:02:26 +00:00
dependabot[bot]
1a7df24327 build(deps): bump wasm-bindgen-futures from 0.4.55 to 0.4.56
Bumps [wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen) from 0.4.55 to 0.4.56.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wasm-bindgen/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-version: 0.4.56
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:02:14 +00:00
tuna2134
783a5e6514 Merge pull request #284 from neodyland/dependabot/cargo/ort-f7be591 2025-11-25 07:23:32 +09:00
tuna2134
1a0254cd96 Merge pull request #282 from neodyland/dependabot/cargo/axum-0.8.7 2025-11-25 07:23:21 +09:00
tuna2134
8f3b7ff598 Merge pull request #281 from neodyland/dependabot/cargo/jpreprocess-0.13.2 2025-11-25 07:22:47 +09:00
dependabot[bot]
6e763e3b87 build(deps): bump ort from f60ed5f to f7be591
Bumps [ort](https://github.com/pykeio/ort) from `f60ed5f` to `f7be591`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](f60ed5f7f9...f7be591d06)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: f7be591d068f25c4263ed1f0b1ddbd34275a2120
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 07:35:34 +00:00
dependabot[bot]
e47d6bed9e build(deps): bump axum from 0.8.6 to 0.8.7
Bumps [axum](https://github.com/tokio-rs/axum) from 0.8.6 to 0.8.7.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.8.6...axum-v0.8.7)

---
updated-dependencies:
- dependency-name: axum
  dependency-version: 0.8.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 07:26:03 +00:00
dependabot[bot]
38a9874cf3 build(deps): bump jpreprocess from 0.12.0 to 0.13.2
Bumps [jpreprocess](https://github.com/jpreprocess/jpreprocess) from 0.12.0 to 0.13.2.
- [Release notes](https://github.com/jpreprocess/jpreprocess/releases)
- [Commits](https://github.com/jpreprocess/jpreprocess/compare/v0.12.0...v0.13.2)

---
updated-dependencies:
- dependency-name: jpreprocess
  dependency-version: 0.13.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 07:25:48 +00:00
tuna2134
42cbdd5f11 Merge pull request #280 from neodyland/ndarray-update
Ndarray update
2025-11-13 18:51:17 -08:00
tuna2134
b246b518a5 delete 2025-11-14 02:50:22 +00:00
tuna2134
cbea7678b3 bump 2025-11-14 02:49:45 +00:00
tuna2134
84a1676684 Merge pull request #279 from neodyland/revert-274-dependabot/cargo/ndarray-0.17.1
Revert "build(deps): bump ndarray from 0.16.1 to 0.17.1"
2025-11-13 18:40:07 -08:00
tuna2134
bd057352ca Revert "build(deps): bump ndarray from 0.16.1 to 0.17.1" 2025-11-14 11:39:29 +09:00
tuna2134
a8e422d46d Merge pull request #274 from neodyland/dependabot/cargo/ndarray-0.17.1
build(deps): bump ndarray from 0.16.1 to 0.17.1
2025-11-13 18:38:06 -08:00
dependabot[bot]
6e3b816ce9 build(deps): bump ndarray from 0.16.1 to 0.17.1
Bumps [ndarray](https://github.com/rust-ndarray/ndarray) from 0.16.1 to 0.17.1.
- [Release notes](https://github.com/rust-ndarray/ndarray/releases)
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-ndarray/ndarray/compare/0.16.1...0.17.1)

---
updated-dependencies:
- dependency-name: ndarray
  dependency-version: 0.17.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-14 02:37:24 +00:00
tuna2134
9150a2eef9 Merge pull request #278 from neodyland/dependabot/cargo/ort-ea968ff
build(deps): bump ort from `95d520a` to `ea968ff`
2025-11-13 18:34:21 -08:00
tuna2134
896f1e52c7 Merge pull request #277 from neodyland/dependabot/cargo/ureq-3.1.4
build(deps): bump ureq from 3.1.2 to 3.1.4
2025-11-11 06:41:52 +09:00
dependabot[bot]
7d9aa420c7 build(deps): bump ort from 95d520a to ea968ff
Bumps [ort](https://github.com/pykeio/ort) from `95d520a` to `ea968ff`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](95d520a6f6...ea968ff6c7)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: ea968ff6c761953e5c9e2d1ee1d51811a067966f
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 07:35:34 +00:00
dependabot[bot]
09966c2473 build(deps): bump ureq from 3.1.2 to 3.1.4
Bumps [ureq](https://github.com/algesten/ureq) from 3.1.2 to 3.1.4.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/algesten/ureq/compare/3.1.2...3.1.4)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.1.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 07:35:10 +00:00
tuna2134
9f5433770c Merge pull request #275 from neodyland/dependabot/cargo/ort-95d520a
build(deps): bump ort from `4c1b6c0` to `95d520a`
2025-11-03 16:54:19 +09:00
tuna2134
ecdb652406 Merge pull request #276 from neodyland/dependabot/cargo/wasm-bindgen-futures-0.4.55
build(deps): bump wasm-bindgen-futures from 0.4.54 to 0.4.55
2025-11-03 16:54:09 +09:00
dependabot[bot]
f6a6887b33 build(deps): bump wasm-bindgen-futures from 0.4.54 to 0.4.55
Bumps [wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen) from 0.4.54 to 0.4.55.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wasm-bindgen/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-version: 0.4.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 07:36:36 +00:00
dependabot[bot]
0f95a7f606 build(deps): bump ort from 4c1b6c0 to 95d520a
Bumps [ort](https://github.com/pykeio/ort) from `4c1b6c0` to `95d520a`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](4c1b6c0ec2...95d520a6f6)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 95d520a6f650a84467372b3f0a81dfce924260d3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 07:36:22 +00:00
tuna2134
767bfadf8f Merge pull request #269 from neodyland/dependabot/cargo/tokio-1.48.0
build(deps): bump tokio from 1.47.1 to 1.48.0
2025-10-27 23:54:06 +09:00
tuna2134
d6471ad9ad Merge pull request #271 from neodyland/dependabot/cargo/regex-1.12.2
build(deps): bump regex from 1.12.1 to 1.12.2
2025-10-27 23:53:50 +09:00
tuna2134
75c445530f Merge pull request #272 from neodyland/dependabot/cargo/pyo3-0.27.1
build(deps): bump pyo3 from 0.26.0 to 0.27.1
2025-10-27 23:53:40 +09:00
tuna2134
2cb661fc76 Merge pull request #273 from neodyland/dependabot/cargo/ort-4c1b6c0
build(deps): bump ort from `a153479` to `4c1b6c0`
2025-10-27 23:53:30 +09:00
dependabot[bot]
f8a86fd6fc build(deps): bump ort from a153479 to 4c1b6c0
Bumps [ort](https://github.com/pykeio/ort) from `a153479` to `4c1b6c0`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](a153479594...4c1b6c0ec2)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 4c1b6c0ec2fd1f940853c07a921d990279d35d4c
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 07:41:59 +00:00
dependabot[bot]
0d7d6ee960 build(deps): bump pyo3 from 0.26.0 to 0.27.1
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.26.0 to 0.27.1.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.27.1/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.26.0...v0.27.1)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-version: 0.27.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 07:39:56 +00:00
dependabot[bot]
5a6712c943 build(deps): bump regex from 1.12.1 to 1.12.2
Bumps [regex](https://github.com/rust-lang/regex) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.12.1...1.12.2)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 1.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 08:06:56 +00:00
dependabot[bot]
f3649921ed build(deps): bump tokio from 1.47.1 to 1.48.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.47.1 to 1.48.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.47.1...tokio-1.48.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 08:04:22 +00:00
tuna2134
82c9f13ce4 Merge pull request #267 from neodyland/dependabot/cargo/regex-1.12.1 2025-10-14 15:52:47 +09:00
dependabot[bot]
dd3ee380e5 build(deps): bump regex from 1.11.3 to 1.12.1
Bumps [regex](https://github.com/rust-lang/regex) from 1.11.3 to 1.12.1.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.11.3...1.12.1)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 1.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 07:41:50 +00:00
tuna2134
7034c1aad6 Merge pull request #264 from neodyland/dependabot/cargo/ort-a153479 2025-10-07 06:04:09 +09:00
tuna2134
f00ce04032 Merge pull request #266 from neodyland/dependabot/cargo/wasm-bindgen-futures-0.4.54 2025-10-07 06:03:45 +09:00
tuna2134
a7e6fadf6d Merge pull request #265 from neodyland/dependabot/cargo/axum-0.8.6 2025-10-07 06:03:36 +09:00
dependabot[bot]
951551822a build(deps): bump wasm-bindgen-futures from 0.4.51 to 0.4.54
Bumps [wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen) from 0.4.51 to 0.4.54.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wasm-bindgen/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-version: 0.4.54
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 07:31:33 +00:00
dependabot[bot]
205cc2ae51 build(deps): bump axum from 0.8.5 to 0.8.6
Bumps [axum](https://github.com/tokio-rs/axum) from 0.8.5 to 0.8.6.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.8.5...axum-v0.8.6)

---
updated-dependencies:
- dependency-name: axum
  dependency-version: 0.8.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 07:30:54 +00:00
dependabot[bot]
3519664fcd build(deps): bump ort from df992cb to a153479
Bumps [ort](https://github.com/pykeio/ort) from `df992cb` to `a153479`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](df992cb910...a153479594)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: a1534795948ba56e1b83fe4c64c8292b30a177f3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 07:30:53 +00:00
tuna2134
7d32db19b9 Update version to 0.2.0 in Cargo.toml 2025-10-06 06:11:40 +09:00
tuna2134
2cb43aaf6f Bump version to 0.2.0-alpha9 2025-10-01 13:07:36 +09:00
dependabot[bot]
d5a0f16bb0 Merge pull request #263 from neodyland/dependabot/cargo/serde-1.0.228 2025-09-29 11:27:26 +00:00
dependabot[bot]
6aac94e731 build(deps): bump serde from 1.0.226 to 1.0.228
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.226 to 1.0.228.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.228
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 10:21:24 +00:00
tuna2134
36f031bfcc Merge pull request #262 from neodyland/dependabot/cargo/axum-0.8.5 2025-09-29 18:56:51 +09:00
tuna2134
f587a2c735 Merge pull request #261 from neodyland/dependabot/cargo/anyhow-1.0.100 2025-09-29 18:56:37 +09:00
tuna2134
ca5887e864 Merge pull request #260 from neodyland/dependabot/cargo/thiserror-2.0.17 2025-09-29 18:56:24 +09:00
tuna2134
9fbe75796c Merge pull request #259 from neodyland/dependabot/cargo/regex-1.11.3 2025-09-29 18:56:13 +09:00
dependabot[bot]
c6349d18bf build(deps): bump axum from 0.8.4 to 0.8.5
Bumps [axum](https://github.com/tokio-rs/axum) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.8.4...axum-v0.8.5)

---
updated-dependencies:
- dependency-name: axum
  dependency-version: 0.8.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 09:07:12 +00:00
dependabot[bot]
87bec1b8c2 build(deps): bump anyhow from 1.0.99 to 1.0.100
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.99...1.0.100)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-version: 1.0.100
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 09:02:20 +00:00
dependabot[bot]
d928962b07 build(deps): bump thiserror from 2.0.16 to 2.0.17
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.16 to 2.0.17.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.16...2.0.17)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 09:01:44 +00:00
dependabot[bot]
e3c9c5b19b build(deps): bump regex from 1.11.2 to 1.11.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.11.2...1.11.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 1.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 08:59:22 +00:00
dependabot[bot]
47f2af1413 Merge pull request #253 from neodyland/dependabot/cargo/serde_json-1.0.145 2025-09-26 21:14:20 +00:00
dependabot[bot]
d6bc99caa3 build(deps): bump serde_json from 1.0.143 to 1.0.145
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.143 to 1.0.145.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.143...v1.0.145)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.145
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 21:11:15 +00:00
tuna2134
b9e2c0fec1 Merge pull request #256 from neodyland/dependabot/cargo/ort-df992cb
build(deps): bump ort from `8b3a1ed` to `df992cb`
2025-09-22 20:37:12 +09:00
tuna2134
8d97d4228a Merge pull request #252 from neodyland/dependabot/cargo/ureq-3.1.2
build(deps): bump ureq from 3.1.1 to 3.1.2
2025-09-22 20:37:02 +09:00
tuna2134
0651b49226 Merge pull request #257 from neodyland/dependabot/cargo/tokenizers-0.22.1
build(deps): bump tokenizers from 0.22.0 to 0.22.1
2025-09-22 20:36:52 +09:00
tuna2134
56e663c395 Merge pull request #258 from neodyland/dependabot/cargo/serde-1.0.226
build(deps): bump serde from 1.0.219 to 1.0.226
2025-09-22 20:36:41 +09:00
dependabot[bot]
40cfda707e build(deps): bump serde from 1.0.219 to 1.0.226
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.219 to 1.0.226.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.219...v1.0.226)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.226
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 07:29:02 +00:00
dependabot[bot]
be7c48a12a build(deps): bump tokenizers from 0.22.0 to 0.22.1
Bumps [tokenizers](https://github.com/huggingface/tokenizers) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/huggingface/tokenizers/releases)
- [Changelog](https://github.com/huggingface/tokenizers/blob/main/RELEASE.md)
- [Commits](https://github.com/huggingface/tokenizers/compare/v0.22.0...v0.22.1)

---
updated-dependencies:
- dependency-name: tokenizers
  dependency-version: 0.22.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 07:28:28 +00:00
dependabot[bot]
e76b963dfb build(deps): bump ort from 8b3a1ed to df992cb
Bumps [ort](https://github.com/pykeio/ort) from `8b3a1ed` to `df992cb`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](8b3a1edd1c...df992cb910)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: df992cb910eb94b55abcc9ead01d2e8d69b035f7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 07:28:10 +00:00
dependabot[bot]
26dfe6dcdb build(deps): bump ureq from 3.1.1 to 3.1.2
Bumps [ureq](https://github.com/algesten/ureq) from 3.1.1 to 3.1.2.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/algesten/ureq/compare/3.1.1...3.1.2)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 08:16:50 +00:00
tuna2134
8e031387ba Merge pull request #248 from neodyland/dependabot/cargo/wasm-bindgen-futures-0.4.51
build(deps): bump wasm-bindgen-futures from 0.4.50 to 0.4.51
2025-09-09 06:09:44 +09:00
tuna2134
51c0bf8521 Merge pull request #249 from neodyland/dependabot/cargo/ureq-3.1.1
build(deps): bump ureq from 3.1.0 to 3.1.1
2025-09-09 06:09:31 +09:00
tuna2134
33d6f1ccf0 Merge pull request #250 from neodyland/dependabot/cargo/log-0.4.28
build(deps): bump log from 0.4.27 to 0.4.28
2025-09-09 06:09:20 +09:00
tuna2134
404fa0f733 Merge pull request #251 from neodyland/dependabot/cargo/ort-8b3a1ed
build(deps): bump ort from `c162a72` to `8b3a1ed`
2025-09-09 06:09:08 +09:00
dependabot[bot]
0e0e60e04b build(deps): bump ort from c162a72 to 8b3a1ed
Bumps [ort](https://github.com/pykeio/ort) from `c162a72` to `8b3a1ed`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](c162a72a38...8b3a1edd1c)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 8b3a1edd1ca4e10e8f6c16e05091f0e17cd9da23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 07:51:26 +00:00
dependabot[bot]
ac2f5a2b42 build(deps): bump log from 0.4.27 to 0.4.28
Bumps [log](https://github.com/rust-lang/log) from 0.4.27 to 0.4.28.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.27...0.4.28)

---
updated-dependencies:
- dependency-name: log
  dependency-version: 0.4.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 07:50:03 +00:00
dependabot[bot]
1b78865246 build(deps): bump ureq from 3.1.0 to 3.1.1
Bumps [ureq](https://github.com/algesten/ureq) from 3.1.0 to 3.1.1.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/algesten/ureq/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 07:49:34 +00:00
dependabot[bot]
3054ab94e0 build(deps): bump wasm-bindgen-futures from 0.4.50 to 0.4.51
Bumps [wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen) from 0.4.50 to 0.4.51.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wasm-bindgen/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-version: 0.4.51
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 07:48:26 +00:00
tuna2134
f98c6b8226 Merge pull request #245 from neodyland/dependabot/cargo/tokenizers-0.22.0
build(deps): bump tokenizers from 0.21.4 to 0.22.0
2025-09-02 06:26:10 +09:00
tuna2134
043f380c75 Merge pull request #246 from neodyland/dependabot/cargo/pyo3-0.26.0
build(deps): bump pyo3 from 0.25.1 to 0.26.0
2025-09-02 06:25:57 +09:00
tuna2134
703035cc47 Merge pull request #247 from neodyland/dependabot/cargo/ort-c162a72
build(deps): bump ort from `f7f5711` to `c162a72`
2025-09-02 06:25:43 +09:00
dependabot[bot]
fcfff9395b build(deps): bump ort from f7f5711 to c162a72
Bumps [ort](https://github.com/pykeio/ort) from `f7f5711` to `c162a72`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](f7f571173b...c162a72a38)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: c162a72a3878d2c54ffd109f6389db5d92411631
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 15:04:27 +00:00
dependabot[bot]
0cbb6783cf build(deps): bump pyo3 from 0.25.1 to 0.26.0
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.25.1 to 0.26.0.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pyo3/pyo3/compare/v0.25.1...v0.26.0)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-version: 0.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 14:24:39 +00:00
dependabot[bot]
37477c1e30 build(deps): bump tokenizers from 0.21.4 to 0.22.0
Bumps [tokenizers](https://github.com/huggingface/tokenizers) from 0.21.4 to 0.22.0.
- [Release notes](https://github.com/huggingface/tokenizers/releases)
- [Changelog](https://github.com/huggingface/tokenizers/blob/main/RELEASE.md)
- [Commits](https://github.com/huggingface/tokenizers/compare/v0.21.4...v0.22.0)

---
updated-dependencies:
- dependency-name: tokenizers
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 14:17:04 +00:00
tuna2134
93c121da95 fix: update package version to 0.2.0-alpha8 2025-09-01 06:22:24 +09:00
tuna2134
69d2857d11 Merge pull request #243 from neodyland/dependabot/cargo/ort-f7f5711
build(deps): bump ort from `d269461` to `f7f5711`
2025-09-01 06:20:56 +09:00
tuna2134
5cb4480ac7 Merge pull request #241 from neodyland/dependabot/cargo/regex-1.11.2
build(deps): bump regex from 1.11.1 to 1.11.2
2025-09-01 06:17:36 +09:00
tuna2134
3553d01a7f Merge pull request #242 from neodyland/dependabot/cargo/serde_json-1.0.143
build(deps): bump serde_json from 1.0.142 to 1.0.143
2025-09-01 06:17:25 +09:00
tuna2134
91ac2fad78 Merge pull request #244 from neodyland/dependabot/cargo/thiserror-2.0.16
build(deps): bump thiserror from 2.0.15 to 2.0.16
2025-09-01 06:17:04 +09:00
tuna2134
ebcb6f9081 fix: update conditional check for aivm_style_vectors metadata 2025-09-01 06:16:28 +09:00
tuna2134
e47f57ade5 feat 2025-08-28 23:48:38 +09:00
dependabot[bot]
605ea12450 build(deps): bump thiserror from 2.0.15 to 2.0.16
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.15...2.0.16)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 15:21:03 +00:00
dependabot[bot]
ef8b2d829c build(deps): bump ort from d269461 to f7f5711
Bumps [ort](https://github.com/pykeio/ort) from `d269461` to `f7f5711`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](d269461e21...f7f571173b)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: f7f571173b81932f5ae3c6286e9401b029915d42
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 15:06:59 +00:00
dependabot[bot]
2aa43e0e3d build(deps): bump serde_json from 1.0.142 to 1.0.143
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.142...v1.0.143)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.143
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 14:26:58 +00:00
dependabot[bot]
ef071f2b55 build(deps): bump regex from 1.11.1 to 1.11.2
Bumps [regex](https://github.com/rust-lang/regex) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.11.1...1.11.2)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 1.11.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 14:12:40 +00:00
tuna2134
dc5fa88432 write license 2025-08-21 12:15:22 +09:00
tuna2134
a5f45cd2ef fix: license 2025-08-21 12:14:44 +09:00
tuna2134
84e9118d99 Merge pull request #237 from neodyland/dependabot/cargo/ureq-3.1.0
build(deps): bump ureq from 3.0.12 to 3.1.0
2025-08-18 22:58:45 +09:00
tuna2134
3050cc1e99 Merge pull request #238 from neodyland/dependabot/cargo/thiserror-2.0.15
build(deps): bump thiserror from 2.0.12 to 2.0.15
2025-08-18 22:58:16 +09:00
tuna2134
d5fcacd799 Merge pull request #239 from neodyland/dependabot/cargo/ort-d269461
build(deps): bump ort from `f4ab181` to `d269461`
2025-08-18 22:58:01 +09:00
tuna2134
25ca89e341 Merge pull request #240 from neodyland/dependabot/cargo/anyhow-1.0.99
build(deps): bump anyhow from 1.0.98 to 1.0.99
2025-08-18 22:57:45 +09:00
dependabot[bot]
0c2a397775 build(deps): bump anyhow from 1.0.98 to 1.0.99
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.98...1.0.99)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-version: 1.0.99
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 11:08:26 +00:00
dependabot[bot]
470a0348fe build(deps): bump ort from f4ab181 to d269461
Bumps [ort](https://github.com/pykeio/ort) from `f4ab181` to `d269461`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](f4ab181702...d269461e21)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: d269461e2130b407589feff404025df25faeb3bb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 11:06:31 +00:00
dependabot[bot]
9a99b88b00 build(deps): bump thiserror from 2.0.12 to 2.0.15
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.12 to 2.0.15.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.12...2.0.15)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 10:49:47 +00:00
dependabot[bot]
29f39f0795 build(deps): bump ureq from 3.0.12 to 3.1.0
Bumps [ureq](https://github.com/algesten/ureq) from 3.0.12 to 3.1.0.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/algesten/ureq/compare/3.0.12...3.1.0)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 10:49:32 +00:00
tuna2134
9f22694df0 Merge pull request #236 from neodyland/dependabot/cargo/ort-f4ab181 2025-08-12 07:48:08 +09:00
tuna2134
62ba2c802f Merge pull request #235 from kono-dada/fix/inplace-model-load 2025-08-11 23:46:42 +09:00
dependabot[bot]
4f5b936f6f build(deps): bump ort from 5f96a2d to f4ab181
Bumps [ort](https://github.com/pykeio/ort) from `5f96a2d` to `f4ab181`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](5f96a2d585...f4ab181702)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: f4ab181702495bff99a488322d3a8de0d7050349
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 12:22:23 +00:00
kono-dada
3c8efc716c Fix: Load model in-place and safely evict sessions without removing entries
- Avoid removing and re-inserting model entries during load
- Preserve metadata (bytes, style_vectors) when evicting
- Ensure eviction targets a different loaded model, not always the first
- Reduce unnecessary memory allocations and keep list order stable
2025-08-11 16:31:57 +08:00
tuna2134
e9ced32b70 fix: streamline tone value handling in JTalkProcess 2025-08-11 17:30:46 +09:00
tuna2134
e7a1575cbc Merge pull request #233 from kono-dada/feature/stereo-output
feat: add stereo synthesis option via SBV2_FORCE_STEREO env var
2025-08-11 17:13:19 +09:00
kono-dada
873bbb77b6 feat: add stereo synthesis option via SBV2_FORCE_STEREO env var
Previously, synthesis output was fixed to mono (channels=1).
Now, setting the environment variable SBV2_FORCE_STEREO=1 forces stereo (2-channel) output.

This allows generating stereo audio without changing the code, useful for users needing dual-channel output.
2025-08-11 11:38:32 +08:00
tuna2134
1725863fca Merge pull request #228 from neodyland/dependabot/cargo/serde_json-1.0.142
build(deps): bump serde_json from 1.0.141 to 1.0.142
2025-08-04 22:12:36 +09:00
tuna2134
55f05580e4 Merge pull request #229 from neodyland/dependabot/cargo/tokenizers-0.21.4
build(deps): bump tokenizers from 0.21.2 to 0.21.4
2025-08-04 22:12:24 +09:00
tuna2134
320664eae2 Merge pull request #231 from neodyland/dependabot/cargo/tokio-1.47.1
build(deps): bump tokio from 1.47.0 to 1.47.1
2025-08-04 22:12:07 +09:00
tuna2134
87903827fa Merge pull request #230 from neodyland/dependabot/cargo/ort-5f96a2d
build(deps): bump ort from `d28c835` to `5f96a2d`
2025-08-04 22:11:55 +09:00
dependabot[bot]
9b8e9dc39d build(deps): bump tokio from 1.47.0 to 1.47.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.47.0 to 1.47.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.47.0...tokio-1.47.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.47.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 11:10:28 +00:00
dependabot[bot]
bbc38081b6 build(deps): bump ort from d28c835 to 5f96a2d
Bumps [ort](https://github.com/pykeio/ort) from `d28c835` to `5f96a2d`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](d28c835c3c...5f96a2d585)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 5f96a2d5857c3fe9f06282dbf4bdcddbca6c5fe6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 10:24:07 +00:00
dependabot[bot]
0b822f704a build(deps): bump tokenizers from 0.21.2 to 0.21.4
Bumps [tokenizers](https://github.com/huggingface/tokenizers) from 0.21.2 to 0.21.4.
- [Release notes](https://github.com/huggingface/tokenizers/releases)
- [Changelog](https://github.com/huggingface/tokenizers/blob/main/RELEASE.md)
- [Commits](https://github.com/huggingface/tokenizers/compare/v0.21.2...v0.21.4)

---
updated-dependencies:
- dependency-name: tokenizers
  dependency-version: 0.21.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 10:18:59 +00:00
dependabot[bot]
132eb6386d build(deps): bump serde_json from 1.0.141 to 1.0.142
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.141...v1.0.142)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.142
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 10:18:20 +00:00
tuna2134
ee56e9591d Merge pull request #227 from neodyland/dependabot/cargo/tokio-1.47.0
build(deps): bump tokio from 1.46.1 to 1.47.0
2025-07-28 21:02:19 +09:00
dependabot[bot]
3194e599b2 build(deps): bump tokio from 1.46.1 to 1.47.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.46.1 to 1.47.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.46.1...tokio-1.47.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 10:53:38 +00:00
tuna2134
00f4787f6e Merge pull request #225 from neodyland/dependabot/cargo/serde_json-1.0.141
build(deps): bump serde_json from 1.0.140 to 1.0.141
2025-07-22 14:28:18 +09:00
tuna2134
4b6c72aa51 Merge pull request #226 from neodyland/dependabot/cargo/ort-d28c835
build(deps): bump ort from `1e6f7ee` to `d28c835`
2025-07-22 14:28:09 +09:00
dependabot[bot]
7db6bb67a4 build(deps): bump ort from 1e6f7ee to d28c835
Bumps [ort](https://github.com/pykeio/ort) from `1e6f7ee` to `d28c835`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](1e6f7ee1c8...d28c835c3c)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: d28c835c3cc98bcbefc208dc26c8618ccbadec3f
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22 05:24:07 +00:00
dependabot[bot]
b3c75f973e build(deps): bump serde_json from 1.0.140 to 1.0.141
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.140...v1.0.141)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.141
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22 05:23:53 +00:00
tuna2134
e9529be559 Update dependabot.yml 2025-07-22 14:21:56 +09:00
tuna2134
a6694b5d81 Update dependabot.yml 2025-07-22 06:13:03 +09:00
tuna2134
096859de66 Merge pull request #209 from neodyland/dependabot/cargo/num_cpus-1.17.0
Bump num_cpus from 1.16.0 to 1.17.0
2025-07-21 12:27:18 +09:00
tuna2134
dabdc6712f Merge pull request #224 from neodyland/main
merge test
2025-07-21 12:27:08 +09:00
tuna2134
45c3255a91 Merge pull request #221 from neodyland/dependabot/cargo/ort-1e6f7ee
build(deps): bump ort from `af63cea` to `1e6f7ee`
2025-07-21 11:48:27 +09:00
tuna2134
bf39890b3d Merge pull request #223 from neodyland/main
Check fail
2025-07-21 11:48:10 +09:00
tuna2134
120bc608d7 Merge pull request #217 from neodyland/dependabot/cargo/tokenizers-0.21.2
build(deps): bump tokenizers from 0.21.1 to 0.21.2
2025-07-21 11:44:43 +09:00
tuna2134
2fc547e38b Merge pull request #222 from neodyland/main
merge
2025-07-21 11:42:01 +09:00
tuna2134
98ddaa3c58 format by cargo fmt 2025-07-21 11:38:11 +09:00
dependabot[bot]
656e405cd7 build(deps): bump ort from af63cea to 1e6f7ee
Bumps [ort](https://github.com/pykeio/ort) from `af63cea` to `1e6f7ee`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](af63cea854...1e6f7ee1c8)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: 1e6f7ee1c8b056b00d280167ba172c96e78fcd1c
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 09:44:51 +00:00
tuna2134
9d6aa46fdf Merge pull request #220 from neodyland/dependabot/cargo/tokio-1.46.1 2025-07-07 19:38:53 +09:00
dependabot[bot]
2fe90c6ede build(deps): bump tokio from 1.45.1 to 1.46.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.45.1 to 1.46.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.45.1...tokio-1.46.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.46.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-07 09:11:15 +00:00
dependabot[bot]
7faba2447b build(deps): bump tokenizers from 0.21.1 to 0.21.2
Bumps [tokenizers](https://github.com/huggingface/tokenizers) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/huggingface/tokenizers/releases)
- [Changelog](https://github.com/huggingface/tokenizers/blob/main/RELEASE.md)
- [Commits](https://github.com/huggingface/tokenizers/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: tokenizers
  dependency-version: 0.21.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 09:33:46 +00:00
tuna2134
02ac0885e0 Merge pull request #216 from neodyland/dependabot/cargo/utoipa-5.4.0
Bump utoipa from 5.3.1 to 5.4.0
2025-06-23 18:13:42 +09:00
tuna2134
1f96b09f3b Merge pull request #215 from neodyland/dependabot/cargo/ort-af63cea
Bump ort from `fd73862` to `af63cea`
2025-06-23 18:13:31 +09:00
tuna2134
d583c1ca1c Merge pull request #214 from neodyland/dependabot/cargo/ureq-3.0.12
Bump ureq from 3.0.11 to 3.0.12
2025-06-23 18:13:19 +09:00
dependabot[bot]
c135aac852 Bump utoipa from 5.3.1 to 5.4.0
Bumps [utoipa](https://github.com/juhaku/utoipa) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/juhaku/utoipa/releases)
- [Changelog](https://github.com/juhaku/utoipa/blob/master/utoipa-rapidoc/CHANGELOG.md)
- [Commits](https://github.com/juhaku/utoipa/compare/utoipa-5.3.1...utoipa-5.4.0)

---
updated-dependencies:
- dependency-name: utoipa
  dependency-version: 5.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 09:01:28 +00:00
dependabot[bot]
f31fa1d4f9 Bump ort from fd73862 to af63cea
Bumps [ort](https://github.com/pykeio/ort) from `fd73862` to `af63cea`.
- [Release notes](https://github.com/pykeio/ort/releases)
- [Commits](fd738622d7...af63cea854)

---
updated-dependencies:
- dependency-name: ort
  dependency-version: af63cea8546438576f7fc32c935d779bf0882826
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 08:48:56 +00:00
dependabot[bot]
efec7cce14 Bump ureq from 3.0.11 to 3.0.12
Bumps [ureq](https://github.com/algesten/ureq) from 3.0.11 to 3.0.12.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/algesten/ureq/compare/3.0.11...3.0.12)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 08:38:51 +00:00
dependabot[bot]
655be55605 Bump num_cpus from 1.16.0 to 1.17.0
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases)
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: num_cpus
  dependency-version: 1.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 08:06:11 +00:00
11 changed files with 1110 additions and 699 deletions

View File

@@ -9,3 +9,7 @@ updates:
directory: "/" # Location of package manifests directory: "/" # Location of package manifests
schedule: schedule:
interval: "weekly" interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

1481
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@ resolver = "3"
members = ["./crates/sbv2_api", "./crates/sbv2_core", "./crates/sbv2_bindings", "./crates/sbv2_wasm"] members = ["./crates/sbv2_api", "./crates/sbv2_core", "./crates/sbv2_bindings", "./crates/sbv2_wasm"]
[workspace.package] [workspace.package]
version = "0.2.0-alpha6" version = "0.2.0"
edition = "2021" edition = "2021"
description = "Style-Bert-VITSの推論ライブラリ" description = "Style-Bert-VITSの推論ライブラリ"
license = "MIT" license = "MIT"
@@ -12,10 +12,10 @@ repository = "https://github.com/neodyland/sbv2-api"
documentation = "https://docs.rs/sbv2_core" documentation = "https://docs.rs/sbv2_core"
[workspace.dependencies] [workspace.dependencies]
anyhow = "1.0.96" anyhow = "1.0.100"
dotenvy = "0.15.7" dotenvy = "0.15.7"
env_logger = "0.11.6" env_logger = "0.11.6"
ndarray = "0.16.1" ndarray = "0.17.1"
once_cell = "1.20.3" once_cell = "1.20.3"
[profile.release] [profile.release]

View File

View File

@@ -10,14 +10,14 @@ license.workspace = true
[dependencies] [dependencies]
anyhow.workspace = true anyhow.workspace = true
axum = "0.8.0" axum = "0.8.7"
dotenvy.workspace = true dotenvy.workspace = true
env_logger.workspace = true env_logger.workspace = true
log = "0.4.22" log = "0.4.29"
sbv2_core = { version = "0.2.0-alpha6", path = "../sbv2_core", features = ["aivmx"] } sbv2_core = { version = "0.2.0-alpha6", path = "../sbv2_core", features = ["aivmx"] }
serde = { version = "1.0.210", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
tokio = { version = "1.45.1", features = ["full"] } tokio = { version = "1.48.0", features = ["full"] }
utoipa = { version = "5.0.0", features = ["axum_extras"] } utoipa = { version = "5.4.0", features = ["axum_extras"] }
utoipa-scalar = { version = "0.3.0", features = ["axum"] } utoipa-scalar = { version = "0.3.0", features = ["axum"] }
[features] [features]

View File

@@ -16,7 +16,7 @@ crate-type = ["cdylib"]
[dependencies] [dependencies]
anyhow.workspace = true anyhow.workspace = true
ndarray.workspace = true ndarray.workspace = true
pyo3 = { version = "0.25.1", features = ["anyhow"] } pyo3 = { version = "0.27.2", features = ["anyhow"] }
sbv2_core = { path = "../sbv2_core", features = ["std"], default-features = false } sbv2_core = { path = "../sbv2_core", features = ["std"], default-features = false }
[features] [features]

View File

@@ -14,18 +14,18 @@ base64 = { version = "0.22.1", optional = true }
dotenvy.workspace = true dotenvy.workspace = true
env_logger.workspace = true env_logger.workspace = true
hound = "3.5.1" hound = "3.5.1"
jpreprocess = { version = "0.12.0", features = ["naist-jdic"] } jpreprocess = { version = "0.13.2", features = ["naist-jdic"] }
ndarray.workspace = true ndarray.workspace = true
npyz = { version = "0.8.4", optional = true } npyz = { version = "0.8.4", optional = true }
num_cpus = "1.16.0" num_cpus = "1.17.0"
once_cell.workspace = true once_cell.workspace = true
ort = { git = "https://github.com/pykeio/ort.git", version = "2.0.0-rc.9", optional = true } ort = { git = "https://github.com/pykeio/ort.git", version = "2.0.0-rc.9", optional = true }
regex = "1.10.6" regex = "1.12.2"
serde = { version = "1.0.210", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.128" serde_json = "1.0.145"
tar = "0.4.41" tar = "0.4.41"
thiserror = "2.0.11" thiserror = "2.0.17"
tokenizers = { version = "0.21.0", default-features = false } tokenizers = { version = "0.22.2", default-features = false }
zstd = "0.13.2" zstd = "0.13.2"
[features] [features]
@@ -44,4 +44,4 @@ base64 = ["dep:base64"]
[build-dependencies] [build-dependencies]
dirs = "6.0.0" dirs = "6.0.0"
ureq = "3.0.6" ureq = "3.1.4"

View File

@@ -1,3 +1,175 @@
/*
このファイルのコードは
https://github.com/litagin02/Style-Bert-VITS2/blob/master/style_bert_vits2/nlp/japanese/g2p.py
を参考にRustに書き換えています。
以下はライセンスです。
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
*/
use crate::error::{Error, Result}; use crate::error::{Error, Result};
use crate::mora::{CONSONANTS, MORA_KATA_TO_MORA_PHONEMES, MORA_PHONEMES_TO_MORA_KATA, VOWELS}; use crate::mora::{CONSONANTS, MORA_KATA_TO_MORA_PHONEMES, MORA_PHONEMES_TO_MORA_KATA, VOWELS};
use crate::norm::{replace_punctuation, PUNCTUATIONS}; use crate::norm::{replace_punctuation, PUNCTUATIONS};
@@ -123,24 +295,24 @@ impl JTalkProcess {
.map(|(_letter, tone)| *tone) .map(|(_letter, tone)| *tone)
.collect(); .collect();
if tone_values.len() == 1 { if tone_values.len() == 1 {
assert!(tone_values == hash_set![0], "{:?}", tone_values); assert!(tone_values == hash_set![0], "{tone_values:?}");
Ok(phone_tone_list) Ok(phone_tone_list)
} else if tone_values.len() == 2 { } else if tone_values.len() == 2 {
if tone_values == hash_set![0, 1] { if tone_values == hash_set![0, 1] {
return Ok(phone_tone_list); Ok(phone_tone_list)
} else if tone_values == hash_set![-1, 0] { } else if tone_values == hash_set![-1, 0] {
return Ok(phone_tone_list Ok(phone_tone_list
.iter() .iter()
.map(|x| { .map(|x| {
let new_tone = if x.1 == -1 { 0 } else { 1 }; let new_tone = if x.1 == -1 { 0 } else { 1 };
(x.0.clone(), new_tone) (x.0.clone(), new_tone)
}) })
.collect()); .collect())
} else { } else {
return Err(Error::ValueError("Invalid tone values 0".to_string())); Err(Error::ValueError("Invalid tone values 0".to_string()))
} }
} else { } else {
return Err(Error::ValueError("Invalid tone values 1".to_string())); Err(Error::ValueError("Invalid tone values 1".to_string()))
} }
} }
@@ -226,12 +398,12 @@ impl JTalkProcess {
} else if PUNCTUATIONS.contains(&phone.as_str()) { } else if PUNCTUATIONS.contains(&phone.as_str()) {
result.push((phone, 0)); result.push((phone, 0));
} else { } else {
println!("phones {:?}", phone_with_punct); println!("phones {phone_with_punct:?}");
println!("phone_tone_list: {:?}", phone_tone_list); println!("phone_tone_list: {phone_tone_list:?}");
println!("result: {:?}", result); println!("result: {result:?}");
println!("tone_index: {:?}", tone_index); println!("tone_index: {tone_index:?}");
println!("phone: {:?}", phone); println!("phone: {phone:?}");
return Err(Error::ValueError(format!("Mismatched phoneme: {}", phone))); return Err(Error::ValueError(format!("Mismatched phoneme: {phone}")));
} }
} }
@@ -276,8 +448,7 @@ impl JTalkProcess {
} }
if !KATAKANA_PATTERN.is_match(&text) { if !KATAKANA_PATTERN.is_match(&text) {
return Err(Error::ValueError(format!( return Err(Error::ValueError(format!(
"Input must be katakana only: {}", "Input must be katakana only: {text}"
text
))); )));
} }
@@ -285,7 +456,7 @@ impl JTalkProcess {
let mora = mora.to_string(); let mora = mora.to_string();
let (consonant, vowel) = MORA_KATA_TO_MORA_PHONEMES.get(&mora).unwrap(); let (consonant, vowel) = MORA_KATA_TO_MORA_PHONEMES.get(&mora).unwrap();
if consonant.is_none() { if consonant.is_none() {
text = text.replace(&mora, &format!(" {}", vowel)); text = text.replace(&mora, &format!(" {vowel}"));
} else { } else {
text = text.replace( text = text.replace(
&mora, &mora,
@@ -319,7 +490,7 @@ impl JTalkProcess {
let (string, pron) = self.parse_to_string_and_pron(parts.clone()); let (string, pron) = self.parse_to_string_and_pron(parts.clone());
let mut yomi = pron.replace('', ""); let mut yomi = pron.replace('', "");
let word = replace_punctuation(string); let word = replace_punctuation(string);
assert!(!yomi.is_empty(), "Empty yomi: {}", word); assert!(!yomi.is_empty(), "Empty yomi: {word}");
if yomi == "" { if yomi == "" {
if !word if !word
.chars() .chars()
@@ -330,7 +501,7 @@ impl JTalkProcess {
yomi = word.clone(); yomi = word.clone();
} }
} else if yomi == "" { } else if yomi == "" {
assert!(word == "?", "yomi `` comes from: {}", word); assert!(word == "?", "yomi `` comes from: {word}");
yomi = "?".to_string(); yomi = "?".to_string();
} }
seq_text.push(word); seq_text.push(word);

View File

@@ -91,7 +91,7 @@ impl TTSModelHolder {
} }
let model = model::load_model(&aivmx_bytes, false)?; let model = model::load_model(&aivmx_bytes, false)?;
let metadata = model.metadata()?; let metadata = model.metadata()?;
if let Some(aivm_style_vectors) = metadata.custom("aivm_style_vectors")? { if let Some(aivm_style_vectors) = metadata.custom("aivm_style_vectors") {
let aivm_style_vectors = BASE64_STANDARD.decode(aivm_style_vectors)?; let aivm_style_vectors = BASE64_STANDARD.decode(aivm_style_vectors)?;
let style_vectors = Cursor::new(&aivm_style_vectors); let style_vectors = Cursor::new(&aivm_style_vectors);
let reader = npyz::NpyFile::new(style_vectors)?; let reader = npyz::NpyFile::new(style_vectors)?;
@@ -240,39 +240,43 @@ impl TTSModelHolder {
} }
fn find_and_load_model<I: Into<TTSIdent>>(&mut self, ident: I) -> Result<bool> { fn find_and_load_model<I: Into<TTSIdent>>(&mut self, ident: I) -> Result<bool> {
let ident = ident.into(); let ident = ident.into();
let (bytes, style_vectors) = { // Locate target model entry
let model = self let target_index = self
.models
.iter()
.find(|m| m.ident == ident)
.ok_or(Error::ModelNotFoundError(ident.to_string()))?;
if model.vits2.is_some() {
return Ok(true);
}
(model.bytes.clone().unwrap(), model.style_vectors.clone())
};
self.unload(ident.clone());
let s = model::load_model(&bytes, false)?;
if let Some(max) = self.max_loaded_models {
if self.models.iter().filter(|x| x.vits2.is_some()).count() >= max {
self.unload(self.models.first().unwrap().ident.clone());
}
}
self.models.push(TTSModel {
bytes: Some(bytes.to_vec()),
vits2: Some(s),
style_vectors,
ident: ident.clone(),
});
let model = self
.models .models
.iter() .iter()
.find(|m| m.ident == ident) .position(|m| m.ident == ident)
.ok_or(Error::ModelNotFoundError(ident.to_string()))?; .ok_or(Error::ModelNotFoundError(ident.to_string()))?;
if model.vits2.is_some() {
// Already loaded
if self.models[target_index].vits2.is_some() {
return Ok(true); return Ok(true);
} }
Err(Error::ModelNotFoundError(ident.to_string()))
// Get bytes to build a Session
let bytes = self.models[target_index]
.bytes
.clone()
.ok_or(Error::ModelNotFoundError(ident.to_string()))?;
// Enforce max loaded models by evicting a different loaded model's session, not removing the entry
if let Some(max) = self.max_loaded_models {
let loaded_count = self.models.iter().filter(|m| m.vits2.is_some()).count();
if loaded_count >= max {
if let Some(evict_index) = self
.models
.iter()
.position(|m| m.vits2.is_some() && m.ident != ident)
{
// Drop only the session to free memory; keep bytes/style for future reload
self.models[evict_index].vits2 = None;
}
}
}
// Build and set session in-place for the target model
let s = model::load_model(&bytes, false)?;
self.models[target_index].vits2 = Some(s);
Ok(true)
} }
/// Get style vector by style id and weight /// Get style vector by style id and weight

View File

@@ -173,8 +173,15 @@ pub fn parse_text_blocking(
} }
pub fn array_to_vec(audio_array: Array3<f32>) -> Result<Vec<u8>> { pub fn array_to_vec(audio_array: Array3<f32>) -> Result<Vec<u8>> {
// If SBV2_FORCE_STEREO is set ("1"/"true"), duplicate mono to stereo
let force_stereo = std::env::var("SBV2_FORCE_STEREO")
.ok()
.map(|v| matches!(v.as_str(), "1" | "true" | "TRUE" | "True"))
.unwrap_or(false);
let channels: u16 = if force_stereo { 2 } else { 1 };
let spec = WavSpec { let spec = WavSpec {
channels: 1, channels,
sample_rate: 44100, sample_rate: 44100,
bits_per_sample: 32, bits_per_sample: 32,
sample_format: SampleFormat::Float, sample_format: SampleFormat::Float,
@@ -183,8 +190,16 @@ pub fn array_to_vec(audio_array: Array3<f32>) -> Result<Vec<u8>> {
let mut writer = WavWriter::new(&mut cursor, spec)?; let mut writer = WavWriter::new(&mut cursor, spec)?;
for i in 0..audio_array.shape()[0] { for i in 0..audio_array.shape()[0] {
let output = audio_array.slice(s![i, 0, ..]).to_vec(); let output = audio_array.slice(s![i, 0, ..]).to_vec();
for sample in output { if force_stereo {
writer.write_sample(sample)?; for sample in output {
// Write to Left and Right channels
writer.write_sample(sample)?;
writer.write_sample(sample)?;
}
} else {
for sample in output {
writer.write_sample(sample)?;
}
} }
} }
writer.finalize()?; writer.finalize()?;

View File

@@ -17,4 +17,4 @@ sbv2_core = { path = "../sbv2_core", default-features = false, features = ["no_s
once_cell.workspace = true once_cell.workspace = true
js-sys = "0.3.70" js-sys = "0.3.70"
ndarray.workspace = true ndarray.workspace = true
wasm-bindgen-futures = "0.4.43" wasm-bindgen-futures = "0.4.56"