paradis-tts 0.1.1__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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,9 @@
1
+ include README.md LICENSE NOTICE pyproject.toml
2
+ include paradis_tts/release_assets.json
3
+ prune tests
4
+ include tests/test_public_api.py
5
+ exclude paradis_tts/inference.py
6
+ exclude paradis_tts/onnx_models.py
7
+ exclude paradis_tts/fricative_probe.py
8
+ exclude paradis_tts/softening_probe.py
9
+ exclude paradis_tts/phase_filter_probe.py
@@ -0,0 +1,87 @@
1
+ Paradis-TTS — provenance notices
2
+
3
+ paradis_tts/onnx_models.py adapts the single-sentence text forward and
4
+ convolutional STFT from Paradee training/scripts/export_paradee.py,
5
+ Sahil Mahendrakar, commit 9c8b4d7504cbee7e64de2d0341bb690f0b0ab708,
6
+ Apache-2.0. Changes: French A_full_phase, three explicit deterministic ONNX
7
+ stages, host excitation and host postprocessing, CPU parity checks and
8
+ portable FP32/INT8-weight bundles. See LICENSE and docs/PHASE9_ONNX.md.
9
+
10
+ The portable NumPy phase filter in paradis_tts/audio.py implements the same
11
+ Paradee relative-phase correction described below; existing training sources
12
+ and their licenses are unchanged.
13
+
14
+ Paradis-TTS — phase 0 French feasibility audit
15
+
16
+ The teacher extraction in scripts/test_teacher_fr.py is adapted from:
17
+ Paradee, Sahil Mahendrakar
18
+ https://github.com/sahilmahendrakar/paradee
19
+ Commit: 9c8b4d7504cbee7e64de2d0341bb690f0b0ab708
20
+ File: training/scripts/gen_teacher.py
21
+ License: Apache-2.0 (see LICENSE)
22
+ Changes: French ff_siwis, pinned assets, CPU determinism, strict vocabulary
23
+ validation, hooks for independent parity checks, logs and test artifacts.
24
+
25
+ Kokoro-82M and Kokoro / Misaki software: hexgrad, Apache-2.0.
26
+ https://huggingface.co/hexgrad/Kokoro-82M
27
+ https://github.com/hexgrad/kokoro
28
+ https://github.com/hexgrad/misaki
29
+
30
+ French teacher voice: ff_siwis. Kokoro attributes its source data to:
31
+ Yamagishi, Junichi; Honnet, Pierre-Edouard; Garner, Philip; Lazaridis, Alexandros.
32
+ (2017). The SIWIS French Speech Synthesis Database, 2016 [dataset].
33
+ University of Edinburgh, School of Informatics, Centre for Speech Technology Research.
34
+ https://doi.org/10.7488/ds/1705
35
+ Source-data license: https://creativecommons.org/licenses/by/4.0/
36
+ The included WAVs are synthetic Kokoro outputs from original test sentences;
37
+ they are not recordings downloaded from SIWIS.
38
+
39
+ No WikiText or Wikipedia text is redistributed in phase 0 evidence.
40
+ Phase 1 includes French Wikipedia sentence excerpts in data/:
41
+ Contributors to French Wikipedia; article and history URLs in metadata.jsonl.
42
+ Source: wikimedia/wikipedia, 20231101.fr,
43
+ revision b04c8d1ceb2f5cd4588862100d08de323dccfbaa.
44
+ Original source-declared license: CC BY-SA 3.0.
45
+ Adapted corpus / original coverage sentences: CC BY-SA 4.0.
46
+ See data/README.md and docs/LICENSING.md for notices and changes.
47
+
48
+ Phase 2 extraction adapts Paradee training/scripts/gen_teacher.py and
49
+ training/scripts/regen_audio.py at the same audited Paradee commit.
50
+ Changes include French corpus/voice, stable per-ID seeds, atomic tensor shards,
51
+ checked resume, and a CUDA decoder with original CPU excitation and FFT math.
52
+ Generated teacher audio is kept in tensor shards without additional WAV exports.
53
+ Dependency licenses, including eSpeak NG's GPL, remain separate from this
54
+ repository's source-code license; see docs/LICENSING.md.
55
+
56
+ Phases 3/4 include unmodified Paradee training/scripts/student.py and
57
+ student_decoder.py in training/vendor/, under Apache-2.0 at the audited commit.
58
+ training/batches.py and losses.py adapt its baseline collators and loss formulas.
59
+ Changes: French split-aware smoke subsets, deterministic CPU reflection padding,
60
+ small batches/accumulation, portable RNG/optimizer/scaler checkpoints and Colab tools.
61
+ No English Paradee model weights or English corpus are used for French training.
62
+
63
+ Phase 6 includes unmodified Paradee training/scripts/discriminators.py at the
64
+ same audited commit. training/decoder_training.py and decoder_gan.py adapt
65
+ train_decoder.py: French split-aware data, spectral/GAN stages, CPU reflection
66
+ padding, exact global STFT convergence across accumulated microbatches, full
67
+ optimizer/discriminator/RNG resume, Drive backups and tensor/HTML listening.
68
+
69
+ paradis_tts/phase_lock.py adapts Paradee training/scripts/phase_lock.py at the
70
+ same audited Apache-2.0 commit. It is initially exposed in a CPU listening A/B
71
+ test; the raw student inference and trained checkpoints remain the references.
72
+ tests/fixtures/upstream_phase_lock.py contains the original smooth/lock
73
+ function bodies for a standalone parity test, under the same Apache-2.0 license.
74
+
75
+ The optional high-frequency loss in training/decoder_hf.py adapts the
76
+ --hf-weight objective from Paradee training/scripts/train_decoder.py at
77
+ commit 9c8b4d7504cbee7e64de2d0341bb690f0b0ab708 (Apache-2.0).
78
+ Evaluation uses the non-personalized DNSMOS P.835 windowing/calibration method
79
+ from Microsoft DNS-Challenge, revision 591184a9fcb2cbdec02520fed81a32bbbf9d73ff,
80
+ DNSMOS/dnsmos_local.py. Source repository license: CC BY 4.0.
81
+ https://github.com/microsoft/DNS-Challenge
82
+ https://creativecommons.org/licenses/by/4.0/
83
+ Adaptation: P.835 only (no P.808), SciPy polyphase resampling, explicit CPU thread
84
+ limits, resumable per-sentence logs and integration with held-out TTS evaluation.
85
+ DNSMOS model files are downloaded for evaluation and are not redistributed in
86
+ the Python package or inference archives. This attribution does not imply
87
+ Microsoft endorses Paradis-TTS.
@@ -0,0 +1,127 @@
1
+ Metadata-Version: 2.4
2
+ Name: paradis-tts
3
+ Version: 0.1.1
4
+ Summary: Compact French text-to-speech on CPU, with built-in audio postprocessing
5
+ Author: IvannP39
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/IvannP39/Paradis-TTS-release
8
+ Project-URL: Models, https://huggingface.co/IvannP/Paradis-TTS
9
+ Project-URL: Issues, https://github.com/IvannP39/Paradis-TTS-release/issues
10
+ Keywords: tts,french,onnx,speech-synthesis,offline
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Natural Language :: French
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
17
+ Requires-Python: <3.13,>=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: NOTICE
21
+ Requires-Dist: numpy<2,>=1.26.4
22
+ Requires-Dist: onnxruntime<1.21,>=1.20.1
23
+ Requires-Dist: misaki==0.9.4
24
+ Requires-Dist: num2words==0.5.14
25
+ Requires-Dist: phonemizer-fork==3.3.2
26
+ Requires-Dist: espeakng-loader==0.2.4
27
+ Dynamic: license-file
28
+
29
+ <p align="center"><img src="https://raw.githubusercontent.com/IvannP39/Paradis-TTS-release/main/assets/paradis-banner.png" alt="Paradis — Synthèse vocale française sur CPU" width="100%"></p>
30
+
31
+ <p align="center">
32
+ <a href="https://github.com/IvannP39/Paradis-TTS-release/releases/tag/v0"><img alt="Release v0" src="https://img.shields.io/badge/release-v0-9ee8cb?style=flat-square"></a>
33
+ <a href="https://huggingface.co/IvannP/Paradis-TTS"><img alt="Hugging Face" src="https://img.shields.io/badge/Hugging_Face-mod%C3%A8les-ffd681?style=flat-square"></a>
34
+ <img alt="CPU et ONNX" src="https://img.shields.io/badge/runtime-CPU_%C2%B7_ONNX-c3dbe6?style=flat-square">
35
+ <a href="https://github.com/IvannP39/Paradis-TTS-release/blob/main/LICENSE"><img alt="Apache 2.0" src="https://img.shields.io/badge/code_%26_poids-Apache_2.0-c3dbe6?style=flat-square"></a>
36
+ </p>
37
+
38
+ **Une voix française compacte, directement dans votre application.**
39
+ Paradis-TTS transforme du texte en audio sur CPU, avec 8,08 millions de paramètres,
40
+ des poids ONNX FP32 ou INT8, et un post-traitement intégré. Après le premier
41
+ téléchargement, la synthèse fonctionne entièrement hors ligne.
42
+
43
+ [Écouter la voix](https://huggingface.co/IvannP/Paradis-TTS#écouter) ·
44
+ [Télécharger v0](https://github.com/IvannP39/Paradis-TTS-release/releases/tag/v0) ·
45
+ [Documentation Python](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PYTHON_PACKAGE.md)
46
+
47
+ ## Essayer
48
+
49
+ Python 3.10–3.12. Installer le wheel public :
50
+
51
+ ```bash
52
+ python -m pip install https://github.com/IvannP39/Paradis-TTS-release/releases/download/v0/paradis_tts-0.1.1-py3-none-any.whl
53
+ ```
54
+
55
+ ```python
56
+ from paradis_tts import ParadisTTS
57
+
58
+ tts = ParadisTTS()
59
+ audio = tts("Bonjour tout le monde.")
60
+ tts.save(audio, "bonjour.wav")
61
+ ```
62
+
63
+ La construction de `ParadisTTS()` télécharge les poids FP32 depuis Hugging Face
64
+ et les garde en cache après vérification SHA256. Aucun GPU, PyTorch ni
65
+ Kokoro n'est nécessaire. `audio` est un tableau NumPy mono, `float32`, à 24 kHz.
66
+ Le package est prêt pour PyPI ; l'installation ci-dessus utilise la release
67
+ GitHub et ne suppose pas une publication dans l'index PyPI.
68
+
69
+ ## Choisir sa version
70
+
71
+ | | FP32 | INT8 |
72
+ |---|---:|---:|
73
+ | Archive à télécharger | 30.21 Mo | 8.21 Mo |
74
+ | Trois graphes ONNX | 32,82 Mo | 9,19 Mo |
75
+ | Paramètres | 8 082 881 | 8 082 881 |
76
+ | Poids | Flottants | Entiers 8 bits, déquantifiés au calcul |
77
+
78
+ ```python
79
+ tts = ParadisTTS(variant="int8")
80
+ tts = ParadisTTS(post_traitement=False) # sortie brute
81
+ tts = ParadisTTS(model_folder="chemin/vers/fp32") # archive locale décompressée
82
+ ```
83
+
84
+ Le profil audio par défaut associe le filtre de phase 97, une restauration de
85
+ présence jusqu'à 2,5 dB et deux adoucissements du spectre à 1 et 1,5 dB.
86
+ [Réglages et usage hors ligne](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PYTHON_PACKAGE.md).
87
+ L'INT8 réduit le téléchargement ; il ne garantit pas une exécution plus rapide
88
+ et peut modifier la voix. Le FP32 est le choix par défaut.
89
+
90
+ ## Mesures v0
91
+
92
+ 300 phrases inédites, articles séparés du corpus de distillation. CPU AMD Ryzen 7 5800H, Windows, deux threads configurés dans ONNX Runtime/PyTorch.
93
+
94
+ | Moteur | WER ↓ | DNSMOS global ↑ | RTF médian ↓ | Pic RSS |
95
+ |---|---:|---:|---:|---:|
96
+ | Paradis FP32 | 12.51 % | 3.36 | 0.175 | 374 Mio |
97
+ | Paradis INT8 | 12.70 % | 3.35 | 0.183 | 355 Mio |
98
+ | Kokoro ff_siwis | 12.33 % | 3.42 | 0.719 | 4405 Mio |
99
+ | Piper siwis medium | 16.47 % | 3.25 | 0.119 | 497 Mio |
100
+
101
+ WER : taux d’erreurs de mots mesuré par Whisper Small en français. DNSMOS P.835 est un proxy parole/bruit, **pas une note d’écoute humaine ni une mesure suffisante de naturalité**. RTF < 1 signifie une génération plus rapide que la lecture. Les mesures ont eu lieu sur un portable partagé avec un entraînement GPU et d’autres tâches CPU ; elles ne constituent pas un classement en conditions isolées. [Protocole, scores par phrase et limites](https://github.com/IvannP39/Paradis-TTS-release/tree/main/evaluation).
102
+
103
+ ## D'où vient la voix ?
104
+
105
+ Paradis adapte la méthode de [Paradee](https://github.com/sahilmahendrakar/paradee)
106
+ au français et distille [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M),
107
+ voix `ff_siwis`. Cette v0 assemble le modèle texte à 8 000 étapes et le décodeur
108
+ A affiné, figé à **6 500 étapes de sa continuation GAN**. Elle utilise les poids
109
+ `last` bruts, pas une sélection EMA. Le corpus de distillation comporte
110
+ 12 000 phrases françaises d'apprentissage, 500 de validation et 500 de test.
111
+
112
+ **Limites :** une seule voix, français uniquement, quelques artefacts résiduels
113
+ sur les consonnes, normalisation limitée aux formes courantes. La qualité et
114
+ les prononciations du teacher restent des limites. Les autres langues et le
115
+ clonage de voix ne sont pas pris en charge. v0 est une première release expérimentale.
116
+
117
+ ## Pour aller plus loin
118
+
119
+ [Évaluation reproductible](https://github.com/IvannP39/Paradis-TTS-release/blob/main/evaluation/README.md) ·
120
+ [Architecture et exports](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/MODEL.md) ·
121
+ [Normalisation française](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PHASE10_NORMALIZATION.md) ·
122
+ [Code du runtime](https://github.com/IvannP39/Paradis-TTS-release/tree/main/paradis_tts) ·
123
+ [Licences et attributions](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/RELEASE_LICENSES.md)
124
+
125
+ Code et poids : Apache-2.0. Textes Wikipédia : licences CC BY-SA séparées.
126
+ Le G2P installé par pip comprend des composants GPL ; le runtime complet n'est
127
+ pas présenté comme entièrement permissif. Voir les notices avant redistribution.
@@ -0,0 +1,99 @@
1
+ <p align="center"><img src="https://raw.githubusercontent.com/IvannP39/Paradis-TTS-release/main/assets/paradis-banner.png" alt="Paradis — Synthèse vocale française sur CPU" width="100%"></p>
2
+
3
+ <p align="center">
4
+ <a href="https://github.com/IvannP39/Paradis-TTS-release/releases/tag/v0"><img alt="Release v0" src="https://img.shields.io/badge/release-v0-9ee8cb?style=flat-square"></a>
5
+ <a href="https://huggingface.co/IvannP/Paradis-TTS"><img alt="Hugging Face" src="https://img.shields.io/badge/Hugging_Face-mod%C3%A8les-ffd681?style=flat-square"></a>
6
+ <img alt="CPU et ONNX" src="https://img.shields.io/badge/runtime-CPU_%C2%B7_ONNX-c3dbe6?style=flat-square">
7
+ <a href="https://github.com/IvannP39/Paradis-TTS-release/blob/main/LICENSE"><img alt="Apache 2.0" src="https://img.shields.io/badge/code_%26_poids-Apache_2.0-c3dbe6?style=flat-square"></a>
8
+ </p>
9
+
10
+ **Une voix française compacte, directement dans votre application.**
11
+ Paradis-TTS transforme du texte en audio sur CPU, avec 8,08 millions de paramètres,
12
+ des poids ONNX FP32 ou INT8, et un post-traitement intégré. Après le premier
13
+ téléchargement, la synthèse fonctionne entièrement hors ligne.
14
+
15
+ [Écouter la voix](https://huggingface.co/IvannP/Paradis-TTS#écouter) ·
16
+ [Télécharger v0](https://github.com/IvannP39/Paradis-TTS-release/releases/tag/v0) ·
17
+ [Documentation Python](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PYTHON_PACKAGE.md)
18
+
19
+ ## Essayer
20
+
21
+ Python 3.10–3.12. Installer le wheel public :
22
+
23
+ ```bash
24
+ python -m pip install https://github.com/IvannP39/Paradis-TTS-release/releases/download/v0/paradis_tts-0.1.1-py3-none-any.whl
25
+ ```
26
+
27
+ ```python
28
+ from paradis_tts import ParadisTTS
29
+
30
+ tts = ParadisTTS()
31
+ audio = tts("Bonjour tout le monde.")
32
+ tts.save(audio, "bonjour.wav")
33
+ ```
34
+
35
+ La construction de `ParadisTTS()` télécharge les poids FP32 depuis Hugging Face
36
+ et les garde en cache après vérification SHA256. Aucun GPU, PyTorch ni
37
+ Kokoro n'est nécessaire. `audio` est un tableau NumPy mono, `float32`, à 24 kHz.
38
+ Le package est prêt pour PyPI ; l'installation ci-dessus utilise la release
39
+ GitHub et ne suppose pas une publication dans l'index PyPI.
40
+
41
+ ## Choisir sa version
42
+
43
+ | | FP32 | INT8 |
44
+ |---|---:|---:|
45
+ | Archive à télécharger | 30.21 Mo | 8.21 Mo |
46
+ | Trois graphes ONNX | 32,82 Mo | 9,19 Mo |
47
+ | Paramètres | 8 082 881 | 8 082 881 |
48
+ | Poids | Flottants | Entiers 8 bits, déquantifiés au calcul |
49
+
50
+ ```python
51
+ tts = ParadisTTS(variant="int8")
52
+ tts = ParadisTTS(post_traitement=False) # sortie brute
53
+ tts = ParadisTTS(model_folder="chemin/vers/fp32") # archive locale décompressée
54
+ ```
55
+
56
+ Le profil audio par défaut associe le filtre de phase 97, une restauration de
57
+ présence jusqu'à 2,5 dB et deux adoucissements du spectre à 1 et 1,5 dB.
58
+ [Réglages et usage hors ligne](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PYTHON_PACKAGE.md).
59
+ L'INT8 réduit le téléchargement ; il ne garantit pas une exécution plus rapide
60
+ et peut modifier la voix. Le FP32 est le choix par défaut.
61
+
62
+ ## Mesures v0
63
+
64
+ 300 phrases inédites, articles séparés du corpus de distillation. CPU AMD Ryzen 7 5800H, Windows, deux threads configurés dans ONNX Runtime/PyTorch.
65
+
66
+ | Moteur | WER ↓ | DNSMOS global ↑ | RTF médian ↓ | Pic RSS |
67
+ |---|---:|---:|---:|---:|
68
+ | Paradis FP32 | 12.51 % | 3.36 | 0.175 | 374 Mio |
69
+ | Paradis INT8 | 12.70 % | 3.35 | 0.183 | 355 Mio |
70
+ | Kokoro ff_siwis | 12.33 % | 3.42 | 0.719 | 4405 Mio |
71
+ | Piper siwis medium | 16.47 % | 3.25 | 0.119 | 497 Mio |
72
+
73
+ WER : taux d’erreurs de mots mesuré par Whisper Small en français. DNSMOS P.835 est un proxy parole/bruit, **pas une note d’écoute humaine ni une mesure suffisante de naturalité**. RTF < 1 signifie une génération plus rapide que la lecture. Les mesures ont eu lieu sur un portable partagé avec un entraînement GPU et d’autres tâches CPU ; elles ne constituent pas un classement en conditions isolées. [Protocole, scores par phrase et limites](https://github.com/IvannP39/Paradis-TTS-release/tree/main/evaluation).
74
+
75
+ ## D'où vient la voix ?
76
+
77
+ Paradis adapte la méthode de [Paradee](https://github.com/sahilmahendrakar/paradee)
78
+ au français et distille [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M),
79
+ voix `ff_siwis`. Cette v0 assemble le modèle texte à 8 000 étapes et le décodeur
80
+ A affiné, figé à **6 500 étapes de sa continuation GAN**. Elle utilise les poids
81
+ `last` bruts, pas une sélection EMA. Le corpus de distillation comporte
82
+ 12 000 phrases françaises d'apprentissage, 500 de validation et 500 de test.
83
+
84
+ **Limites :** une seule voix, français uniquement, quelques artefacts résiduels
85
+ sur les consonnes, normalisation limitée aux formes courantes. La qualité et
86
+ les prononciations du teacher restent des limites. Les autres langues et le
87
+ clonage de voix ne sont pas pris en charge. v0 est une première release expérimentale.
88
+
89
+ ## Pour aller plus loin
90
+
91
+ [Évaluation reproductible](https://github.com/IvannP39/Paradis-TTS-release/blob/main/evaluation/README.md) ·
92
+ [Architecture et exports](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/MODEL.md) ·
93
+ [Normalisation française](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/PHASE10_NORMALIZATION.md) ·
94
+ [Code du runtime](https://github.com/IvannP39/Paradis-TTS-release/tree/main/paradis_tts) ·
95
+ [Licences et attributions](https://github.com/IvannP39/Paradis-TTS-release/blob/main/docs/RELEASE_LICENSES.md)
96
+
97
+ Code et poids : Apache-2.0. Textes Wikipédia : licences CC BY-SA séparées.
98
+ Le G2P installé par pip comprend des composants GPL ; le runtime complet n'est
99
+ pas présenté comme entièrement permissif. Voir les notices avant redistribution.
@@ -0,0 +1,20 @@
1
+ """French student TTS with an offline phase 7 reference pipeline."""
2
+
3
+ __all__ = ['ParadisTTS', 'OnnxTTS', 'PostProcessing', 'soften_audio', 'save_wav', 'postprocess_wav',
4
+ 'download_model', '__version__']
5
+
6
+
7
+ def __getattr__(name):
8
+ if name in ('ParadisTTS', '__version__', 'download_model'):
9
+ from paradis_tts import api
10
+ return getattr(api,name)
11
+ if name=='OnnxTTS':
12
+ from paradis_tts.onnx_runtime import OnnxTTS
13
+ return OnnxTTS
14
+ if name in ('PostProcessing','soften_audio','save_wav','postprocess_wav'):
15
+ from paradis_tts import audio
16
+ return getattr(audio,name)
17
+ if name=='SynthesisResult':
18
+ from paradis_tts.inference import ParadisTTS, SynthesisResult
19
+ return {'ParadisTTS': ParadisTTS, 'SynthesisResult': SynthesisResult}[name]
20
+ raise AttributeError(name)
@@ -0,0 +1,58 @@
1
+ """Offline ONNX speech/WAV CLI and standalone gentle postprocessing."""
2
+ import argparse
3
+ from dataclasses import replace
4
+ import json
5
+ from pathlib import Path
6
+ from paradis_tts.audio import PostProcessing,read_wav,save_wav,soften_audio
7
+
8
+
9
+ def main():
10
+ parser=argparse.ArgumentParser(prog='python -m paradis_tts')
11
+ commands=parser.add_subparsers(dest='command',required=True)
12
+ synth=commands.add_parser('synthesize',help='Generate an actual 24 kHz WAV using an ONNX bundle')
13
+ synth.add_argument('--model-folder','--bundle',dest='model_folder',type=Path)
14
+ synth.add_argument('--variant',choices=('fp32','int8'),default='fp32')
15
+ synth.add_argument('--no-post-traitement',action='store_true')
16
+ text=synth.add_mutually_exclusive_group(required=True)
17
+ text.add_argument('--text');text.add_argument('--text-file',type=Path)
18
+ synth.add_argument('--speed',type=float,default=1.)
19
+ synth.add_argument('--seed',type=int,default=1729)
20
+ synth.add_argument('--threads',type=int,default=2)
21
+ post=commands.add_parser('postprocess',help='Soften an existing mono 24 kHz PCM16 WAV')
22
+ post.add_argument('input',type=Path)
23
+ for command in (synth,post):
24
+ command.add_argument('--output',type=Path,required=True)
25
+ command.add_argument('--settings',type=Path,help='Standard settings or browser slider JSON')
26
+ command.add_argument('--overwrite',action='store_true')
27
+ for option in ('dynamic-db','upper-db','attack-db','syllable-db','smoothing'):
28
+ command.add_argument('--'+option,type=float)
29
+ args=parser.parse_args()
30
+ settings=PostProcessing.from_file(args.settings) if args.settings else None
31
+ aliases={'dynamic_db':'dynamic_soften_db','upper_db':'upper_soften_db',
32
+ 'attack_db':'attack_soften_db','syllable_db':'syllable_soften_db','smoothing':'dynamics_smoothing'}
33
+ overrides={target:getattr(args,source) for source,target in aliases.items() if getattr(args,source) is not None}
34
+ if args.command=='synthesize' and args.no_post_traitement and (settings is not None or overrides):
35
+ parser.error('--no-post-traitement cannot be combined with processing settings')
36
+ if args.command=='synthesize':
37
+ from paradis_tts.api import ParadisTTS
38
+ model=ParadisTTS(model_folder=args.model_folder,threads=args.threads,postprocessing=settings,
39
+ variant=args.variant,post_traitement=not args.no_post_traitement)
40
+ model.postprocessing=replace(model.postprocessing,**overrides)
41
+ text=args.text if args.text is not None else args.text_file.read_text(encoding='utf-8-sig')
42
+ result=model.to_file(text,args.output,seed=args.seed,speed=args.speed,overwrite=args.overwrite)
43
+ print(json.dumps({'output':str(args.output),'normalized_text':result.normalized_text,**result.audit()},ensure_ascii=False))
44
+ else:
45
+ settings=replace(settings or PostProcessing(),**overrides)
46
+ signal=read_wav(args.input)
47
+ audio=soften_audio(signal,dynamic_db=settings.dynamic_soften_db,upper_db=settings.upper_soften_db,
48
+ attack_db=settings.attack_soften_db,syllable_db=settings.syllable_soften_db,
49
+ smoothing=settings.dynamics_smoothing,match_level=settings.softening_match_level)
50
+ save_wav(audio,args.output,overwrite=args.overwrite)
51
+ metadata={'input':str(args.input),'stage':'softening_only','phase_filter_applied':False,
52
+ 'settings':replace(settings,phase_lock_frames=0,presence_restore=False).to_dict(),
53
+ 'samples':len(audio),'sample_rate':24000}
54
+ args.output.with_suffix(args.output.suffix+'.json').write_text(json.dumps(metadata,indent=2)+'\n',encoding='utf-8')
55
+ print(json.dumps({'output':str(args.output),'sample_rate':24000,'samples':len(audio)}))
56
+
57
+
58
+ if __name__=='__main__': main()