videopython-chatterbox 0.1.7.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. videopython_chatterbox-0.1.7.post1/.gitignore +8 -0
  2. videopython_chatterbox-0.1.7.post1/LICENSE +21 -0
  3. videopython_chatterbox-0.1.7.post1/NOTICE +29 -0
  4. videopython_chatterbox-0.1.7.post1/PKG-INFO +154 -0
  5. videopython_chatterbox-0.1.7.post1/README.md +100 -0
  6. videopython_chatterbox-0.1.7.post1/pyproject.toml +64 -0
  7. videopython_chatterbox-0.1.7.post1/src/chatterbox/__init__.py +14 -0
  8. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/__init__.py +0 -0
  9. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/__init__.py +2 -0
  10. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/configs.py +10 -0
  11. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/const.py +2 -0
  12. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/decoder.py +333 -0
  13. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/f0_predictor.py +55 -0
  14. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/flow.py +198 -0
  15. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/flow_matching.py +246 -0
  16. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/hifigan.py +474 -0
  17. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/matcha/decoder.py +443 -0
  18. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/matcha/flow_matching.py +129 -0
  19. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/matcha/text_encoder.py +413 -0
  20. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/matcha/transformer.py +316 -0
  21. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/s3gen.py +362 -0
  22. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/__init__.py +0 -0
  23. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/activation.py +84 -0
  24. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/attention.py +330 -0
  25. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/convolution.py +145 -0
  26. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/embedding.py +294 -0
  27. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/encoder_layer.py +236 -0
  28. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/positionwise_feed_forward.py +115 -0
  29. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/subsampling.py +383 -0
  30. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/transformer/upsample_encoder.py +318 -0
  31. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/utils/class_utils.py +71 -0
  32. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/utils/intmeanflow.py +36 -0
  33. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/utils/mask.py +194 -0
  34. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/utils/mel.py +85 -0
  35. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3gen/xvector.py +428 -0
  36. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3tokenizer/__init__.py +30 -0
  37. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/s3tokenizer/s3tokenizer.py +168 -0
  38. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/__init__.py +1 -0
  39. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/inference/alignment_stream_analyzer.py +181 -0
  40. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/inference/t3_hf_backend.py +116 -0
  41. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/llama_configs.py +73 -0
  42. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/modules/cond_enc.py +97 -0
  43. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/modules/learned_pos_emb.py +32 -0
  44. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/modules/perceiver.py +212 -0
  45. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/modules/t3_config.py +41 -0
  46. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/t3/t3.py +490 -0
  47. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/tokenizers/__init__.py +1 -0
  48. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/tokenizers/tokenizer.py +313 -0
  49. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/utils.py +4 -0
  50. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/voice_encoder/__init__.py +1 -0
  51. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/voice_encoder/config.py +18 -0
  52. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/voice_encoder/melspec.py +78 -0
  53. videopython_chatterbox-0.1.7.post1/src/chatterbox/models/voice_encoder/voice_encoder.py +274 -0
  54. videopython_chatterbox-0.1.7.post1/src/chatterbox/mtl_tts.py +317 -0
  55. videopython_chatterbox-0.1.7.post1/src/chatterbox/tts.py +272 -0
  56. videopython_chatterbox-0.1.7.post1/src/chatterbox/tts_turbo.py +296 -0
  57. videopython_chatterbox-0.1.7.post1/src/chatterbox/vc.py +104 -0
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .venv/
5
+ venv/
6
+ dist/
7
+ build/
8
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Resemble AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ videopython-chatterbox
2
+ ======================
3
+
4
+ This distribution is a fork of `chatterbox-tts` 0.1.7 by Resemble AI:
5
+
6
+ https://github.com/resemble-ai/chatterbox
7
+ https://pypi.org/project/chatterbox-tts/
8
+
9
+ The Python source under `src/chatterbox/` is redistributed unchanged from
10
+ upstream 0.1.7 with exactly ONE exception, in `src/chatterbox/__init__.py`:
11
+
12
+ -__version__ = version("chatterbox-tts")
13
+ +__version__ = version("videopython-chatterbox")
14
+
15
+ Upstream looks up its own version from installed distribution metadata by name.
16
+ Because this distribution is named `videopython-chatterbox`, that lookup raises
17
+ `PackageNotFoundError` at import time and the package is unimportable without
18
+ the change. All 50 other source files are byte-identical to upstream.
19
+
20
+ The only other difference is the dependency metadata in `pyproject.toml` (see
21
+ README.md for the rationale and verification).
22
+
23
+ The original work is licensed under the MIT License, Copyright (c) 2025
24
+ Resemble AI. The full license text is preserved verbatim in LICENSE and applies
25
+ unchanged to this distribution.
26
+
27
+ Model weights are NOT redistributed here. They are downloaded at runtime from
28
+ the Hugging Face Hub by upstream's own code, under whatever terms Resemble AI
29
+ publishes them.
@@ -0,0 +1,154 @@
1
+ Metadata-Version: 2.4
2
+ Name: videopython-chatterbox
3
+ Version: 0.1.7.post1
4
+ Summary: Chatterbox TTS (Resemble AI) with corrected dependency metadata. Upstream source, one line changed.
5
+ Project-URL: Homepage, https://github.com/BartWojtowicz/videopython-chatterbox
6
+ Project-URL: Repository, https://github.com/BartWojtowicz/videopython-chatterbox
7
+ Project-URL: Upstream, https://github.com/resemble-ai/chatterbox
8
+ Author-email: resemble-ai <engineering@resemble.ai>
9
+ Maintainer-email: Bartosz Wójtowicz <bartoszwojtowicz@outlook.com>
10
+ License: MIT License
11
+
12
+ Copyright (c) 2025 Resemble AI
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ License-File: LICENSE
32
+ License-File: NOTICE
33
+ Keywords: chatterbox,text-to-speech,tts,voice-cloning
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Operating System :: OS Independent
36
+ Classifier: Programming Language :: Python :: 3
37
+ Requires-Python: >=3.10
38
+ Requires-Dist: conformer>=0.3.2
39
+ Requires-Dist: diffusers<1.0,>=0.29.0
40
+ Requires-Dist: librosa>=0.11.0
41
+ Requires-Dist: numpy>=1.24.0
42
+ Requires-Dist: omegaconf
43
+ Requires-Dist: pykakasi>=2.3.0
44
+ Requires-Dist: pyloudnorm
45
+ Requires-Dist: resemble-perth>=1.0.0
46
+ Requires-Dist: s3tokenizer
47
+ Requires-Dist: safetensors>=0.5.3
48
+ Requires-Dist: setuptools<81
49
+ Requires-Dist: spacy-pkuseg
50
+ Requires-Dist: torch>=2.6.0
51
+ Requires-Dist: torchaudio>=2.6.0
52
+ Requires-Dist: transformers>=5.2.0
53
+ Description-Content-Type: text/markdown
54
+
55
+ # videopython-chatterbox
56
+
57
+ [Chatterbox TTS](https://github.com/resemble-ai/chatterbox) by Resemble AI, republished with corrected dependency metadata.
58
+
59
+ **The Python source is unchanged from upstream `chatterbox-tts` 0.1.7 except for a single line** (the
60
+ self-version lookup in `chatterbox/__init__.py`, which must name this distribution or the package fails
61
+ to import). Everything else that differs is dependency metadata in `pyproject.toml`.
62
+
63
+ ```bash
64
+ pip install videopython-chatterbox
65
+ ```
66
+
67
+ The import name is unchanged, so this is a drop-in replacement:
68
+
69
+ ```python
70
+ from chatterbox.mtl_tts import ChatterboxMultilingualTTS
71
+ ```
72
+
73
+ > **Conflict warning:** this package and `chatterbox-tts` both install a top-level
74
+ > `chatterbox` package. Install one or the other, never both.
75
+
76
+ ## Why this fork exists
77
+
78
+ Upstream `chatterbox-tts` 0.1.7 pins `diffusers==0.29.0`, `torch==2.6.0`,
79
+ `torchaudio==2.6.0`, `transformers==5.2.0` and `safetensors==0.5.3`. Those `==`
80
+ pins make it unsatisfiable alongside any modern ML stack — for example
81
+ `pyannote-audio>=4.0` requires `torch>=2.8.0`, so the two cannot coexist:
82
+
83
+ ```console
84
+ $ pip install chatterbox-tts diffusers>=0.35.0
85
+ × No solution found: chatterbox-tts==0.1.7 depends on diffusers==0.29.0
86
+ ```
87
+
88
+ The pins are not load-bearing. Chatterbox touches diffusers in exactly one
89
+ place — its vendored Matcha-TTS decoder — importing 9 symbols (`GEGLU`, `GELU`,
90
+ `AdaLayerNorm`, `AdaLayerNormZero`, `ApproximateGELU`, `Attention`,
91
+ `LoRACompatibleLinear`, `maybe_allow_in_graph`, `get_activation`). All of them
92
+ still exist and behave identically in diffusers 0.39.
93
+
94
+ ## Verification
95
+
96
+ Real synthesis and voice cloning were run on
97
+ **torch 2.13.0 / diffusers 0.39.0 / transformers 5.14.1 / numpy 2.4.6**, then
98
+ repeated under upstream's pinned `transformers==5.2.0`, with fixed seeds:
99
+
100
+ | seed | samples | identical | max abs diff |
101
+ |---|---|---|---|
102
+ | 1234 | 91200 | yes | 0.0 |
103
+ | 1235 | 86400 | yes | 0.0 |
104
+ | 1236 | 144000 | yes | 0.0 |
105
+
106
+ Output is **bit-identical**. Generations were also transcribed with Whisper to
107
+ confirm the audio matches the requested text, rather than merely being
108
+ non-silent.
109
+
110
+ ## Metadata changes
111
+
112
+ | dependency | upstream 0.1.7 | here | why |
113
+ |---|---|---|---|
114
+ | `numpy` | `<2.0.0` (py<3.13) | `>=1.24.0` | verified on 2.4.6 |
115
+ | `librosa` | `==0.11.0` | `>=0.11.0` | 0.11.0 is still latest |
116
+ | `torch` | `==2.6.0` | `>=2.6.0` | verified on 2.13.0 |
117
+ | `torchaudio` | `==2.6.0` | `>=2.6.0` | follows torch |
118
+ | `transformers` | `==5.2.0` | `>=5.2.0` | verified bit-identical on 5.14.1 |
119
+ | `diffusers` | `==0.29.0` | `>=0.29.0,<1.0` | verified on 0.39.0; see cap below |
120
+ | `conformer` | `==0.3.2` | `>=0.3.2` | 0.3.2 is still latest |
121
+ | `safetensors` | `==0.5.3` | `>=0.5.3` | verified on 0.8.0 |
122
+ | `pykakasi` | `==2.3.0` | `>=2.3.0` | 2.3.0 is still latest |
123
+ | `gradio` | `==6.8.0` | *removed* | not imported anywhere in the package |
124
+ | `setuptools` | *undeclared* | `<81` | see below |
125
+
126
+ Two of these are deliberate constraints rather than relaxations:
127
+
128
+ **`diffusers<1.0`** — `LoRACompatibleLinear` is deprecated with removal
129
+ scheduled for diffusers 1.0.0. It is the one symbol that will genuinely break,
130
+ so the cap is real.
131
+
132
+ **`setuptools<81`** — `resemble-perth` declares no dependencies at all and
133
+ imports `pkg_resources`, which setuptools removed in 82+. Its `__init__.py`
134
+ swallows the resulting `ImportError` and sets `PerthImplicitWatermarker = None`,
135
+ so chatterbox fails later at model load with a confusing
136
+ `TypeError: 'NoneType' object is not callable`. Upstream is affected by this
137
+ too; it is simply undeclared there.
138
+
139
+ ## Relationship to upstream
140
+
141
+ No functional changes are intended, ever. If Resemble AI relaxes their pins,
142
+ this fork becomes unnecessary and should be abandoned in favour of
143
+ `chatterbox-tts`.
144
+
145
+ To rebase onto a new upstream release: replace `src/chatterbox/` wholesale,
146
+ re-apply the one-line `__version__` change in `chatterbox/__init__.py`, verify
147
+ every other file is byte-identical to the new sdist, bump `version` to
148
+ `<upstream>.postN`, and re-check the dependency table above.
149
+
150
+ ## License
151
+
152
+ MIT, Copyright (c) 2025 Resemble AI — preserved verbatim in [LICENSE](LICENSE).
153
+ See [NOTICE](NOTICE) for the fork's provenance statement. Model weights are not
154
+ redistributed; they are fetched at runtime from the Hugging Face Hub.
@@ -0,0 +1,100 @@
1
+ # videopython-chatterbox
2
+
3
+ [Chatterbox TTS](https://github.com/resemble-ai/chatterbox) by Resemble AI, republished with corrected dependency metadata.
4
+
5
+ **The Python source is unchanged from upstream `chatterbox-tts` 0.1.7 except for a single line** (the
6
+ self-version lookup in `chatterbox/__init__.py`, which must name this distribution or the package fails
7
+ to import). Everything else that differs is dependency metadata in `pyproject.toml`.
8
+
9
+ ```bash
10
+ pip install videopython-chatterbox
11
+ ```
12
+
13
+ The import name is unchanged, so this is a drop-in replacement:
14
+
15
+ ```python
16
+ from chatterbox.mtl_tts import ChatterboxMultilingualTTS
17
+ ```
18
+
19
+ > **Conflict warning:** this package and `chatterbox-tts` both install a top-level
20
+ > `chatterbox` package. Install one or the other, never both.
21
+
22
+ ## Why this fork exists
23
+
24
+ Upstream `chatterbox-tts` 0.1.7 pins `diffusers==0.29.0`, `torch==2.6.0`,
25
+ `torchaudio==2.6.0`, `transformers==5.2.0` and `safetensors==0.5.3`. Those `==`
26
+ pins make it unsatisfiable alongside any modern ML stack — for example
27
+ `pyannote-audio>=4.0` requires `torch>=2.8.0`, so the two cannot coexist:
28
+
29
+ ```console
30
+ $ pip install chatterbox-tts diffusers>=0.35.0
31
+ × No solution found: chatterbox-tts==0.1.7 depends on diffusers==0.29.0
32
+ ```
33
+
34
+ The pins are not load-bearing. Chatterbox touches diffusers in exactly one
35
+ place — its vendored Matcha-TTS decoder — importing 9 symbols (`GEGLU`, `GELU`,
36
+ `AdaLayerNorm`, `AdaLayerNormZero`, `ApproximateGELU`, `Attention`,
37
+ `LoRACompatibleLinear`, `maybe_allow_in_graph`, `get_activation`). All of them
38
+ still exist and behave identically in diffusers 0.39.
39
+
40
+ ## Verification
41
+
42
+ Real synthesis and voice cloning were run on
43
+ **torch 2.13.0 / diffusers 0.39.0 / transformers 5.14.1 / numpy 2.4.6**, then
44
+ repeated under upstream's pinned `transformers==5.2.0`, with fixed seeds:
45
+
46
+ | seed | samples | identical | max abs diff |
47
+ |---|---|---|---|
48
+ | 1234 | 91200 | yes | 0.0 |
49
+ | 1235 | 86400 | yes | 0.0 |
50
+ | 1236 | 144000 | yes | 0.0 |
51
+
52
+ Output is **bit-identical**. Generations were also transcribed with Whisper to
53
+ confirm the audio matches the requested text, rather than merely being
54
+ non-silent.
55
+
56
+ ## Metadata changes
57
+
58
+ | dependency | upstream 0.1.7 | here | why |
59
+ |---|---|---|---|
60
+ | `numpy` | `<2.0.0` (py<3.13) | `>=1.24.0` | verified on 2.4.6 |
61
+ | `librosa` | `==0.11.0` | `>=0.11.0` | 0.11.0 is still latest |
62
+ | `torch` | `==2.6.0` | `>=2.6.0` | verified on 2.13.0 |
63
+ | `torchaudio` | `==2.6.0` | `>=2.6.0` | follows torch |
64
+ | `transformers` | `==5.2.0` | `>=5.2.0` | verified bit-identical on 5.14.1 |
65
+ | `diffusers` | `==0.29.0` | `>=0.29.0,<1.0` | verified on 0.39.0; see cap below |
66
+ | `conformer` | `==0.3.2` | `>=0.3.2` | 0.3.2 is still latest |
67
+ | `safetensors` | `==0.5.3` | `>=0.5.3` | verified on 0.8.0 |
68
+ | `pykakasi` | `==2.3.0` | `>=2.3.0` | 2.3.0 is still latest |
69
+ | `gradio` | `==6.8.0` | *removed* | not imported anywhere in the package |
70
+ | `setuptools` | *undeclared* | `<81` | see below |
71
+
72
+ Two of these are deliberate constraints rather than relaxations:
73
+
74
+ **`diffusers<1.0`** — `LoRACompatibleLinear` is deprecated with removal
75
+ scheduled for diffusers 1.0.0. It is the one symbol that will genuinely break,
76
+ so the cap is real.
77
+
78
+ **`setuptools<81`** — `resemble-perth` declares no dependencies at all and
79
+ imports `pkg_resources`, which setuptools removed in 82+. Its `__init__.py`
80
+ swallows the resulting `ImportError` and sets `PerthImplicitWatermarker = None`,
81
+ so chatterbox fails later at model load with a confusing
82
+ `TypeError: 'NoneType' object is not callable`. Upstream is affected by this
83
+ too; it is simply undeclared there.
84
+
85
+ ## Relationship to upstream
86
+
87
+ No functional changes are intended, ever. If Resemble AI relaxes their pins,
88
+ this fork becomes unnecessary and should be abandoned in favour of
89
+ `chatterbox-tts`.
90
+
91
+ To rebase onto a new upstream release: replace `src/chatterbox/` wholesale,
92
+ re-apply the one-line `__version__` change in `chatterbox/__init__.py`, verify
93
+ every other file is byte-identical to the new sdist, bump `version` to
94
+ `<upstream>.postN`, and re-check the dependency table above.
95
+
96
+ ## License
97
+
98
+ MIT, Copyright (c) 2025 Resemble AI — preserved verbatim in [LICENSE](LICENSE).
99
+ See [NOTICE](NOTICE) for the fork's provenance statement. Model weights are not
100
+ redistributed; they are fetched at runtime from the Hugging Face Hub.
@@ -0,0 +1,64 @@
1
+ [project]
2
+ name = "videopython-chatterbox"
3
+ version = "0.1.7.post1"
4
+ description = "Chatterbox TTS (Resemble AI) with corrected dependency metadata. Upstream source, one line changed."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ license = { file = "LICENSE" }
8
+ authors = [{ name = "resemble-ai", email = "engineering@resemble.ai" }]
9
+ maintainers = [{ name = "Bartosz Wójtowicz", email = "bartoszwojtowicz@outlook.com" }]
10
+ keywords = ["tts", "text-to-speech", "voice-cloning", "chatterbox"]
11
+ classifiers = [
12
+ "License :: OSI Approved :: MIT License",
13
+ "Programming Language :: Python :: 3",
14
+ "Operating System :: OS Independent",
15
+ ]
16
+
17
+ # Upstream chatterbox-tts 0.1.7 pins these with `==`, which makes it
18
+ # unsatisfiable alongside any modern ML stack. Verified on 2026-08-02 that the
19
+ # pins are not load-bearing: real synthesis + voice cloning on
20
+ # torch 2.13.0 / diffusers 0.39.0 / transformers 5.14.1 / numpy 2.4.6 produces
21
+ # output bit-identical (seeded, max|diff| = 0.0) to the same run under the
22
+ # upstream pins. See README.md for the full comparison.
23
+ dependencies = [
24
+ "numpy>=1.24.0", # upstream: <2.0.0 for py<3.13
25
+ "librosa>=0.11.0", # upstream: ==0.11.0
26
+ "s3tokenizer",
27
+ "torch>=2.6.0", # upstream: ==2.6.0
28
+ "torchaudio>=2.6.0", # upstream: ==2.6.0
29
+ "transformers>=5.2.0", # upstream: ==5.2.0
30
+ # Upstream: ==0.29.0. Only the vendored Matcha-TTS decoder touches diffusers
31
+ # (9 symbols, all still present in 0.39). The <1.0 cap IS load-bearing:
32
+ # LoRACompatibleLinear is deprecated for removal in diffusers 1.0.0.
33
+ "diffusers>=0.29.0,<1.0",
34
+ "resemble-perth>=1.0.0",
35
+ "conformer>=0.3.2", # upstream: ==0.3.2
36
+ "safetensors>=0.5.3", # upstream: ==0.5.3
37
+ "spacy-pkuseg",
38
+ "pykakasi>=2.3.0", # upstream: ==2.3.0
39
+ "pyloudnorm",
40
+ "omegaconf",
41
+ # Not declared upstream, but required: resemble-perth declares no
42
+ # dependencies at all and imports pkg_resources, which setuptools removed in
43
+ # 82+. perth/__init__.py swallows the ImportError and sets
44
+ # PerthImplicitWatermarker = None, so chatterbox fails at model load with a
45
+ # confusing `TypeError: 'NoneType' object is not callable` instead.
46
+ "setuptools<81",
47
+ ]
48
+ # gradio==6.8.0 is intentionally dropped: it is not imported anywhere in the
49
+ # shipped package (it backs upstream's demo app, which this fork does not ship).
50
+
51
+ [project.urls]
52
+ Homepage = "https://github.com/BartWojtowicz/videopython-chatterbox"
53
+ Repository = "https://github.com/BartWojtowicz/videopython-chatterbox"
54
+ Upstream = "https://github.com/resemble-ai/chatterbox"
55
+
56
+ [build-system]
57
+ requires = ["hatchling"]
58
+ build-backend = "hatchling.build"
59
+
60
+ [tool.hatch.build.targets.wheel]
61
+ packages = ["src/chatterbox"]
62
+
63
+ [tool.hatch.build.targets.sdist]
64
+ include = ["src/chatterbox", "LICENSE", "NOTICE", "README.md"]
@@ -0,0 +1,14 @@
1
+ try:
2
+ from importlib.metadata import version
3
+ except ImportError:
4
+ from importlib_metadata import version # For Python <3.8
5
+
6
+ # FORK: upstream reads version("chatterbox-tts"). This distribution is named
7
+ # videopython-chatterbox, so that lookup raises PackageNotFoundError at import.
8
+ # This is the only line that differs from upstream 0.1.7.
9
+ __version__ = version("videopython-chatterbox")
10
+
11
+
12
+ from .tts import ChatterboxTTS
13
+ from .vc import ChatterboxVC
14
+ from .mtl_tts import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES
@@ -0,0 +1,2 @@
1
+ from .s3gen import S3Token2Wav as S3Gen
2
+ from .const import S3GEN_SR
@@ -0,0 +1,10 @@
1
+ from ..utils import AttrDict
2
+
3
+ CFM_PARAMS = AttrDict({
4
+ "sigma_min": 1e-06,
5
+ "solver": "euler",
6
+ "t_scheduler": "cosine",
7
+ "training_cfg_rate": 0.2,
8
+ "inference_cfg_rate": 0.7,
9
+ "reg_loss_type": "l1"
10
+ })
@@ -0,0 +1,2 @@
1
+ S3GEN_SR = 24000
2
+ S3GEN_SIL = 4299