Instructions to use naklitechie/indic-parler-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use naklitechie/indic-parler-tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="naklitechie/indic-parler-tts")# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("naklitechie/indic-parler-tts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Mirror of ai4bharat/indic-parler-tts (Apache-2.0) for ungated install
Browse files- LICENSE +202 -0
- NOTICE.md +42 -0
- README.md +396 -3
- config.json +274 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +43 -0
LICENSE
ADDED
|
@@ -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.
|
NOTICE.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NOTICE — provenance of this mirror
|
| 2 |
+
|
| 3 |
+
This repository is a **verbatim public mirror** of the upstream model:
|
| 4 |
+
|
| 5 |
+
> **Original**: [`ai4bharat/indic-parler-tts`](https://huggingface.co/ai4bharat/indic-parler-tts)
|
| 6 |
+
> Maintained by [AI4Bharat](https://ai4bharat.iitm.ac.in/), IIT Madras,
|
| 7 |
+
> in collaboration with the Hugging Face Parler-TTS team.
|
| 8 |
+
|
| 9 |
+
The upstream model is licensed under the **Apache License 2.0**, which
|
| 10 |
+
permits redistribution. This mirror exists so that downstream products
|
| 11 |
+
(notably [prashnam-voice](https://github.com/prashnam/prashnam-voice))
|
| 12 |
+
can install the model without users having to accept Hugging Face's
|
| 13 |
+
gated-access flow on every fresh install.
|
| 14 |
+
|
| 15 |
+
**No modifications have been made to the model weights or supporting
|
| 16 |
+
files.** Bytes are byte-identical to the upstream snapshot at the time
|
| 17 |
+
of cloning. If you want the canonical, latest version, please use the
|
| 18 |
+
upstream repo and credit AI4Bharat.
|
| 19 |
+
|
| 20 |
+
## Citation
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
@misc{ai4bharat-indic-parler-tts,
|
| 24 |
+
title = {Indic Parler-TTS: Multilingual TTS for Indian Languages},
|
| 25 |
+
author = {AI4Bharat and the Parler-TTS team},
|
| 26 |
+
year = {2024},
|
| 27 |
+
howpublished = {\url{https://huggingface.co/ai4bharat/indic-parler-tts}}
|
| 28 |
+
}
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## License terms preserved
|
| 32 |
+
|
| 33 |
+
This mirror redistributes the upstream model under the same Apache 2.0
|
| 34 |
+
terms. The Apache 2.0 license requires:
|
| 35 |
+
|
| 36 |
+
- Preservation of the license text and copyright notice (this NOTICE +
|
| 37 |
+
the upstream README's metadata satisfy that).
|
| 38 |
+
- Documentation of any modifications made — **none have been made**.
|
| 39 |
+
- A statement of changes, if any — **none**.
|
| 40 |
+
|
| 41 |
+
For the full text of the Apache License 2.0, see
|
| 42 |
+
<https://www.apache.org/licenses/LICENSE-2.0>.
|
README.md
CHANGED
|
@@ -1,3 +1,396 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- text-to-speech
|
| 5 |
+
- annotation
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- as
|
| 10 |
+
- bn
|
| 11 |
+
- gu
|
| 12 |
+
- hi
|
| 13 |
+
- kn
|
| 14 |
+
- ks
|
| 15 |
+
- or
|
| 16 |
+
- ml
|
| 17 |
+
- mr
|
| 18 |
+
- ne
|
| 19 |
+
- pa
|
| 20 |
+
- sa
|
| 21 |
+
- sd
|
| 22 |
+
- ta
|
| 23 |
+
- te
|
| 24 |
+
- ur
|
| 25 |
+
- om
|
| 26 |
+
pipeline_tag: text-to-speech
|
| 27 |
+
inference: false
|
| 28 |
+
datasets:
|
| 29 |
+
- ai4b-hf/GLOBE-annotated
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
<img src="https://huggingface.co/datasets/parler-tts/images/resolve/main/Indic%20Parler-TTS.png" alt="Indic Parler Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
| 33 |
+
|
| 34 |
+
# Indic Parler-TTS
|
| 35 |
+
|
| 36 |
+
<a target="_blank" href="https://huggingface.co/spaces/ai4bharat/indic-parler-tts">
|
| 37 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="Open in HuggingFace"/>
|
| 38 |
+
</a>
|
| 39 |
+
|
| 40 |
+
**Indic Parler-TTS** is a multilingual Indic extension of [Parler-TTS Mini](https://huggingface.co/parler-tts/parler-tts-mini-v1.1).
|
| 41 |
+
|
| 42 |
+
It is a fine-tuned version of [Indic Parler-TTS Pretrained](https://huggingface.co/ai4bharat/indic-parler-tts-pretrained), trained on a **1,806 hours** multilingual Indic and English dataset.
|
| 43 |
+
|
| 44 |
+
**Indic Parler-TTS Mini** can officially speak in 20 Indic languages, making it comprehensive for regional language technologies, and in English. The **21 languages** supported are: Assamese, Bengali, Bodo, Dogri, English, Gujarati, Hindi, Kannada, Konkani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Odia, Sanskrit, Santali, Sindhi, Tamil, Telugu, and Urdu.
|
| 45 |
+
|
| 46 |
+
Thanks to its **better prompt tokenizer**, it can easily be extended to other languages. This tokenizer has a larger vocabulary and handles byte fallback, which simplifies multilingual training.
|
| 47 |
+
|
| 48 |
+
🚨 This work is the result of a collaboration between the **HuggingFace audio team** and the **[AI4Bharat](https://ai4bharat.iitm.ac.in/) team**. 🚨
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
## 📖 Quick Index
|
| 52 |
+
* [👨💻 Installation](#👨💻-installation)
|
| 53 |
+
* [🛠️ Key capabilities](#🛠️-key-capabilities)
|
| 54 |
+
* [🎲 Using a random voice](#🎲-random-voice)
|
| 55 |
+
* [🌍 Switching languages](#[🌍-switching-languages)
|
| 56 |
+
* [🎯 Using a specific speaker](#🎯-using-a-specific-speaker)
|
| 57 |
+
* [Some Description Examples](#some-description-examples)
|
| 58 |
+
* [📐Evaluation](#📐-evaluation)
|
| 59 |
+
* [Motivation](#motivation)
|
| 60 |
+
* [Optimizing inference](https://github.com/huggingface/parler-tts/blob/main/INFERENCE.md)
|
| 61 |
+
|
| 62 |
+
### 👨💻 Installation
|
| 63 |
+
|
| 64 |
+
Using Parler-TTS is as simple as "bonjour". Simply install the library once:
|
| 65 |
+
|
| 66 |
+
```sh
|
| 67 |
+
pip install git+https://github.com/huggingface/parler-tts.git
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## 🛠️ Key capabilities
|
| 71 |
+
|
| 72 |
+
The model accepts two primary inputs:
|
| 73 |
+
1. **Transcript** - The text to be converted to speech.
|
| 74 |
+
2. **Caption** - A detailed description of how the speech should sound, e.g., "Leela speaks in a high-pitched, fast-paced, and cheerful tone, full of energy and happiness. The recording is very high quality with no background noise."
|
| 75 |
+
|
| 76 |
+
### Key Features
|
| 77 |
+
|
| 78 |
+
1. **Language Support**
|
| 79 |
+
- **Officially supported languages**: Assamese, Bengali, Bodo, Dogri, Kannada, Malayalam, Marathi, Sanskrit, Nepali, English, Telugu, Hindi, Gujarati, Konkani, Maithili, Manipuri, Odia, Santali, Sindhi, Tamil, and Urdu.
|
| 80 |
+
- **Unofficial support**: Chhattisgarhi, Kashmiri, Punjabi.
|
| 81 |
+
|
| 82 |
+
2. **Speaker Diversity**
|
| 83 |
+
- **69 unique voices** across the supported languages.
|
| 84 |
+
- Supported languages have a set of **recommended voices** optimized for naturalness and intelligibility.
|
| 85 |
+
|
| 86 |
+
3. **Emotion Rendering**
|
| 87 |
+
- **10 languages** officially support emotion-specific prompts: Assamese, Bengali, Bodo, Dogri, Kannada, Malayalam, Marathi, Sanskrit, Nepali, and Tamil.
|
| 88 |
+
- Emotion support for other languages exists but has not been extensively tested.
|
| 89 |
+
- **Available emotions** include: Command, Anger, Narration, Conversation, Disgust, Fear, Happy, Neutral, Proper Noun, News, Sad, and Surprise.
|
| 90 |
+
|
| 91 |
+
4. **Accent Flexibility**
|
| 92 |
+
- The model **officially supports Indian English accents** through its English voices, providing clear and natural speech.
|
| 93 |
+
- For other accents, the model allows customization by specifying accent details, such as "A male British speaker" or "A female American speaker," using style transfer for more dynamic and personalized outputs.
|
| 94 |
+
|
| 95 |
+
5. **Customizable Output**
|
| 96 |
+
Indic Parler-TTS offers precise control over various speech characteristics using the **caption** input:
|
| 97 |
+
|
| 98 |
+
- **Background Noise**: Adjust the noise level in the audio, from clear to slightly noisy environments.
|
| 99 |
+
- **Reverberation**: Control the perceived distance of the voice, from close-sounding to distant-sounding speech.
|
| 100 |
+
- **Expressivity**: Specify how dynamic or monotone the speech should be, ranging from expressive to slightly expressive or monotone.
|
| 101 |
+
- **Pitch**: Modify the pitch of the speech, including high, low, or balanced tones.
|
| 102 |
+
- **Speaking Rate**: Change the speaking rate, from slow to fast.
|
| 103 |
+
- **Voice Quality**: Control the overall clarity and naturalness of the speech, adjusting from basic to refined voice quality.
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
## 🎲 Random voice
|
| 107 |
+
|
| 108 |
+
🚨 Unlike previous versions of Parler-TTS, here we use two tokenizers - one for the prompt and one for the description. 🚨
|
| 109 |
+
|
| 110 |
+
**Indic Parler-TTS** has been trained to generate speech with features that can be controlled with a simple text prompt, for example:
|
| 111 |
+
|
| 112 |
+
```py
|
| 113 |
+
import torch
|
| 114 |
+
from parler_tts import ParlerTTSForConditionalGeneration
|
| 115 |
+
from transformers import AutoTokenizer
|
| 116 |
+
import soundfile as sf
|
| 117 |
+
|
| 118 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 119 |
+
|
| 120 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
|
| 121 |
+
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
|
| 122 |
+
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)
|
| 123 |
+
|
| 124 |
+
prompt = "Hey, how are you doing today?"
|
| 125 |
+
description = "A female speaker with a British accent delivers a slightly expressive and animated speech with a moderate speed and pitch. The recording is of very high quality, with the speaker's voice sounding clear and very close up."
|
| 126 |
+
|
| 127 |
+
description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
|
| 128 |
+
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)
|
| 129 |
+
|
| 130 |
+
generation = model.generate(input_ids=description_input_ids.input_ids, attention_mask=description_input_ids.attention_mask, prompt_input_ids=prompt_input_ids.input_ids, prompt_attention_mask=prompt_input_ids.attention_mask)
|
| 131 |
+
audio_arr = generation.cpu().numpy().squeeze()
|
| 132 |
+
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
Indic Parler-TTS provides highly effective control over key aspects of speech synthesis using descriptive captions. Below is a summary of what each control parameter can achieve:
|
| 136 |
+
|
| 137 |
+
| **Control Type** | **Capabilities** |
|
| 138 |
+
|--------------------------|----------------------------------------------------------------------------------|
|
| 139 |
+
| **Background Noise** | Adjusts the level of background noise, supporting clear and slightly noisy environments. |
|
| 140 |
+
| **Reverberation** | Controls the perceived distance of the speaker’s voice, allowing close or distant sounds. |
|
| 141 |
+
| **Expressivity** | Modulates the emotional intensity of speech, from monotone to highly expressive. |
|
| 142 |
+
| **Pitch** | Varies the pitch to achieve high, low, or moderate tonal output. |
|
| 143 |
+
| **Speaking Rate** | Changes the speed of speech delivery, ranging from slow to fast-paced. |
|
| 144 |
+
| **Speech Quality** | Improves or degrades the overall audio clarity, supporting basic to refined outputs. |
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
## 🌍 Switching languages
|
| 148 |
+
|
| 149 |
+
The model automatically adapts to the language it detects in the prompt. You don't need to specify the language you want to use. For example, to switch to Hindi, simply use an Hindi prompt:
|
| 150 |
+
|
| 151 |
+
```py
|
| 152 |
+
import torch
|
| 153 |
+
from parler_tts import ParlerTTSForConditionalGeneration
|
| 154 |
+
from transformers import AutoTokenizer
|
| 155 |
+
import soundfile as sf
|
| 156 |
+
|
| 157 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 158 |
+
|
| 159 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
|
| 160 |
+
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
|
| 161 |
+
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)
|
| 162 |
+
|
| 163 |
+
prompt = "अरे, तुम आज कैसे हो?"
|
| 164 |
+
description = "A female speaker delivers a slightly expressive and animated speech with a moderate speed and pitch. The recording is of very high quality, with the speaker's voice sounding clear and very close up."
|
| 165 |
+
|
| 166 |
+
description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
|
| 167 |
+
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)
|
| 168 |
+
|
| 169 |
+
generation = model.generate(input_ids=description_input_ids.input_ids, attention_mask=description_input_ids.attention_mask, prompt_input_ids=prompt_input_ids.input_ids, prompt_attention_mask=prompt_input_ids.attention_mask)
|
| 170 |
+
audio_arr = generation.cpu().numpy().squeeze()
|
| 171 |
+
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
## 🎯 Using a specific speaker
|
| 175 |
+
|
| 176 |
+
To ensure speaker consistency across generations, this checkpoint was also trained on pre-determined speakers, characterized by name (e.g. Rohit, Karan, Leela, Maya, Sita, ...).
|
| 177 |
+
To take advantage of this, simply adapt your text description to specify which speaker to use: `Divya's voice is monotone yet slightly fast in delivery, with a very close recording that almost has no background noise.`
|
| 178 |
+
|
| 179 |
+
```py
|
| 180 |
+
import torch
|
| 181 |
+
from parler_tts import ParlerTTSForConditionalGeneration
|
| 182 |
+
from transformers import AutoTokenizer
|
| 183 |
+
import soundfile as sf
|
| 184 |
+
|
| 185 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 186 |
+
|
| 187 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
|
| 188 |
+
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
|
| 189 |
+
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)
|
| 190 |
+
|
| 191 |
+
prompt = "अरे, तुम आज कैस��� हो?"
|
| 192 |
+
description = "Divya's voice is monotone yet slightly fast in delivery, with a very close recording that almost has no background noise."
|
| 193 |
+
|
| 194 |
+
description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
|
| 195 |
+
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)
|
| 196 |
+
|
| 197 |
+
generation = model.generate(input_ids=description_input_ids.input_ids, attention_mask=description_input_ids.attention_mask, prompt_input_ids=prompt_input_ids.input_ids, prompt_attention_mask=prompt_input_ids.attention_mask)
|
| 198 |
+
audio_arr = generation.cpu().numpy().squeeze()
|
| 199 |
+
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
The model includes **69 speakers** across 18 officially supported languages, with each language having a set of recommended voices for optimal performance. Below is a table summarizing the available speakers for each language, along with the recommended ones.
|
| 203 |
+
|
| 204 |
+
Here is the table based on the provided data:
|
| 205 |
+
|
| 206 |
+
| **Language** | **Available Speakers** | **Recommended Speakers** |
|
| 207 |
+
|--------------------|-------------------------------------------------------------|---------------------------------|
|
| 208 |
+
| Assamese | Amit, Sita, Poonam, Rakesh | Amit, Sita |
|
| 209 |
+
| Bengali | Arjun, Aditi, Tapan, Rashmi, Arnav, Riya | Arjun, Aditi |
|
| 210 |
+
| Bodo | Bikram, Maya, Kalpana | Bikram, Maya |
|
| 211 |
+
| Chhattisgarhi | Bhanu, Champa | Bhanu, Champa |
|
| 212 |
+
| Dogri | Karan | Karan |
|
| 213 |
+
| English | Thoma, Mary, Swapna, Dinesh, Meera, Jatin, Aakash, Sneha, Kabir, Tisha, Chingkhei, Thoiba, Priya, Tarun, Gauri, Nisha, Raghav, Kavya, Ravi, Vikas, Riya | Thoma, Mary |
|
| 214 |
+
| Gujarati | Yash, Neha | Yash, Neha |
|
| 215 |
+
| Hindi | Rohit, Divya, Aman, Rani | Rohit, Divya |
|
| 216 |
+
| Kannada | Suresh, Anu, Chetan, Vidya | Suresh, Anu |
|
| 217 |
+
| Malayalam | Anjali, Anju, Harish | Anjali, Harish |
|
| 218 |
+
| Manipuri | Laishram, Ranjit | Laishram, Ranjit |
|
| 219 |
+
| Marathi | Sanjay, Sunita, Nikhil, Radha, Varun, Isha | Sanjay, Sunita |
|
| 220 |
+
| Nepali | Amrita | Amrita |
|
| 221 |
+
| Odia | Manas, Debjani | Manas, Debjani |
|
| 222 |
+
| Punjabi | Divjot, Gurpreet | Divjot, Gurpreet |
|
| 223 |
+
| Sanskrit | Aryan | Aryan |
|
| 224 |
+
| Tamil | Kavitha, Jaya | Jaya |
|
| 225 |
+
| Telugu | Prakash, Lalitha, Kiran | Prakash, Lalitha |
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
**Tips**:
|
| 229 |
+
* We've set up an [inference guide](https://github.com/huggingface/parler-tts/blob/main/INFERENCE.md) to make generation faster. Think SDPA, torch.compile, batching and streaming!
|
| 230 |
+
* Include the term "very clear audio" to generate the highest quality audio, and "very noisy audio" for high levels of background noise
|
| 231 |
+
* Punctuation can be used to control the prosody of the generations, e.g. use commas to add small breaks in speech
|
| 232 |
+
* The remaining speech features (gender, speaking rate, pitch and reverberation) can be controlled directly through the prompt
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
## Some Description Examples
|
| 236 |
+
|
| 237 |
+
1. **Aditi - Slightly High-Pitched, Expressive Tone**:
|
| 238 |
+
*"Aditi speaks with a slightly higher pitch in a close-sounding environment. Her voice is clear, with subtle emotional depth and a normal pace, all captured in high-quality recording."*
|
| 239 |
+
|
| 240 |
+
2. **Sita - Rapid, Slightly Monotone**:
|
| 241 |
+
*"Sita speaks at a fast pace with a slightly low-pitched voice, captured clearly in a close-sounding environment with excellent recording quality."*
|
| 242 |
+
|
| 243 |
+
3. **Tapan - Male, Moderate Pace, Slightly Monotone**:
|
| 244 |
+
*"Tapan speaks at a moderate pace with a slightly monotone tone. The recording is clear, with a close sound and only minimal ambient noise."*
|
| 245 |
+
|
| 246 |
+
4. **Sunita - High-Pitched, Happy Tone**:
|
| 247 |
+
*"Sunita speaks with a high pitch in a close environment. Her voice is clear, with slight dynamic changes, and the recording is of excellent quality."*
|
| 248 |
+
|
| 249 |
+
5. **Karan - High-Pitched, Positive Tone**:
|
| 250 |
+
*"Karan’s high-pitched, engaging voice is captured in a clear, close-sounding recording. His slightly slower delivery conveys a positive tone."*
|
| 251 |
+
|
| 252 |
+
6. **Amrita - High-Pitched, Flat Tone**:
|
| 253 |
+
*"Amrita speaks with a high pitch at a slow pace. Her voice is clear, with excellent recording quality and only moderate background noise."*
|
| 254 |
+
|
| 255 |
+
7. **Aditi - Slow, Slightly Expressive**:
|
| 256 |
+
*"Aditi speaks slowly with a high pitch and expressive tone. The recording is clear, showcasing her energetic and emotive voice."*
|
| 257 |
+
|
| 258 |
+
8. **Young Male Speaker, American Accent**:
|
| 259 |
+
*"A young male speaker with a high-pitched American accent delivers speech at a slightly fast pace in a clear, close-sounding recording."*
|
| 260 |
+
|
| 261 |
+
9. **Bikram - High-Pitched, Urgent Tone**:
|
| 262 |
+
*"Bikram speaks with a higher pitch and fast pace, conveying urgency. The recording is clear and intimate, with great emotional depth."*
|
| 263 |
+
|
| 264 |
+
10. **Anjali - High-Pitched, Neutral Tone**:
|
| 265 |
+
*"Anjali speaks with a high pitch at a normal pace in a clear, close-sounding environment. Her neutral tone is captured with excellent audio quality."*
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
## 📐 Evaluation
|
| 269 |
+
|
| 270 |
+
Indic Parler-TTS has been evaluated using a MOS-like framework by native and non-native speakers. The results highlight its exceptional performance in generating natural and intelligible speech, especially for native speakers of Indian languages.
|
| 271 |
+
|
| 272 |
+
**NSS** stands for **Native Speaker Score**:
|
| 273 |
+
|
| 274 |
+
| **Language** | **NSS Pretrained (%)** | **NSS Finetuned (%)** | **Highlights** |
|
| 275 |
+
|----------------|-------------------------|------------------------|--------------------------------------------------------------------------------------------------|
|
| 276 |
+
| Assamese | 82.56 ± 1.80 | 87.36 ± 1.81 | Clear, natural synthesis with excellent expressiveness. |
|
| 277 |
+
| Bengali | 77.41 ± 2.14 | 86.16 ± 1.85 | High-quality outputs with smooth intonation. |
|
| 278 |
+
| Bodo | 90.83 ± 4.54 | 94.47 ± 4.12 | Near-perfect accuracy for a lesser-resourced language. |
|
| 279 |
+
| Dogri | 82.61 ± 4.98 | 88.80 ± 3.57 | Robust and consistent synthesis for Dogri. |
|
| 280 |
+
| Gujarati | 75.28 ± 1.94 | 75.36 ± 1.78 | Strong clarity and naturalness even for smaller languages. |
|
| 281 |
+
| Hindi | 83.43 ± 1.53 | 84.79 ± 2.09 | Reliable and expressive outputs for India's most widely spoken language. |
|
| 282 |
+
| Kannada | 77.97 ± 3.43 | 88.17 ± 2.81 | Highly natural and accurate voices for Kannada. |
|
| 283 |
+
| Konkani | 87.20 ± 3.58 | 76.60 ± 4.14 | Produces clear and natural outputs for diverse speakers. |
|
| 284 |
+
| Maithili | 89.07 ± 4.47 | 95.36 ± 2.52 | Exceptionally accurate, showcasing fine-tuning success. |
|
| 285 |
+
| Malayalam | 82.02 ± 2.06 | 86.54 ± 1.67 | Smooth, high-quality synthesis with expressive outputs. |
|
| 286 |
+
| Manipuri | 89.58 ± 1.33 | 85.63 ± 2.60 | Natural intonation with minimal errors. |
|
| 287 |
+
| Marathi | 73.81 ± 1.93 | 76.96 ± 1.45 | Maintains clarity and naturalness across speakers. |
|
| 288 |
+
| Nepali | 64.05 ± 8.33 | 80.02 ± 5.75 | Strong synthesis for native and proximal Nepali speakers. |
|
| 289 |
+
| Odia | 90.28 ± 2.52 | 88.94 ± 3.26 | High expressiveness and quality for Odia speakers. |
|
| 290 |
+
| Sanskrit | 99.71 ± 0.58 | 99.79 ± 0.34 | Near-perfect synthesis, ideal for classical use cases. |
|
| 291 |
+
| Sindhi | 76.44 ± 2.26 | 76.46 ± 1.29 | Clear and natural voices for underrepresented languages. |
|
| 292 |
+
| Tamil | 69.68 ± 2.73 | 75.48 ± 2.18 | Delivers intelligible and expressive speech. |
|
| 293 |
+
| Telugu | 89.77 ± 2.20 | 88.54 ± 1.86 | Smooth and natural tonal quality for Telugu. |
|
| 294 |
+
| Urdu | 77.15 ± 3.47 | 77.75 ± 3.82 | Produces high-quality speech despite resource constraints. |
|
| 295 |
+
|
| 296 |
+
**Key Strengths**:
|
| 297 |
+
- Exceptional performance for native speakers, with top scores for **Maithili (95.36)**, **Sanskrit (99.79)**, and **Bodo (94.47)**.
|
| 298 |
+
- Competitive results for lesser-resourced and unofficially supported languages like **Kashmiri (55.30)** and **Sindhi (76.46)**.
|
| 299 |
+
- Adaptability to non-native and anonymous speaker scenarios with consistently high clarity.
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
## Motivation
|
| 303 |
+
|
| 304 |
+
Parler-TTS is a reproduction of work from the paper [Natural language guidance of high-fidelity text-to-speech with synthetic annotations](https://www.text-description-to-speech.com) by Dan Lyth and Simon King, from Stability AI and Edinburgh University respectively.
|
| 305 |
+
|
| 306 |
+
Parler-TTS was released alongside:
|
| 307 |
+
* [The Parler-TTS repository](https://github.com/huggingface/parler-tts) - you can train and fine-tuned your own version of the model.
|
| 308 |
+
* [The Data-Speech repository](https://github.com/huggingface/dataspeech) - a suite of utility scripts designed to annotate speech datasets.
|
| 309 |
+
* [The Parler-TTS organization](https://huggingface.co/parler-tts) - where you can find the annotated datasets as well as the future checkpoints.
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
## Training dataset
|
| 313 |
+
|
| 314 |
+
- **Description**:
|
| 315 |
+
The model was fine-tuned on a subset of the dataset used to train the pre-trained version: **Indic-Parler Dataset**, a large-scale multilingual speech corpus designed to train the **Indic Parler-TTS** model.
|
| 316 |
+
|
| 317 |
+
- **Key Statistics**:
|
| 318 |
+
|
| 319 |
+
| Dataset | Duration (hrs) | Languages Covered | No. of Utterances | License |
|
| 320 |
+
|:---------------:|:--------------:|:-----------------:|:-----------------:|:------------:|
|
| 321 |
+
| GLOBE | 535.0 | 1 | 581,725 | CC V1 |
|
| 322 |
+
| IndicTTS | 382.0 | 12 | 220,606 | CC BY 4.0 |
|
| 323 |
+
| LIMMITS | 568.0 | 7 | 246,008 | CC BY 4.0 |
|
| 324 |
+
| Rasa | 288.0 | 9 | 155,734 | CC BY 4.0 |
|
| 325 |
+
|
| 326 |
+
- **Languages Covered**:
|
| 327 |
+
The dataset supports **16 official languages** of India, along with English and Chhattisgarhi, making it comprehensive for regional language technologies. These languages include Assamese, Bengali, Bodo, Chhattisgarhi, Dogri, English, Gujarati, Hindi, Kannada, Malayalam, Manipuri, Marathi, Nepali, Odia, Punjabi, Sanskrit, Tamil and Telugu.
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
- **Language-Wise Data Breakdown**:
|
| 331 |
+
|
| 332 |
+
Here’s the table combining the duration (hours) and the number of utterances from the provided stats:
|
| 333 |
+
|
| 334 |
+
| Language | Duration (hrs) | No. of Utterances |
|
| 335 |
+
|:---------------:|:--------------:|:-----------------:|
|
| 336 |
+
| Assamese | 69.78 | 41,210 |
|
| 337 |
+
| Bengali | 140.04 | 70,305 |
|
| 338 |
+
| Bodo | 49.14 | 27,012 |
|
| 339 |
+
| Chhattisgarhi | 80.11 | 38,148 |
|
| 340 |
+
| Dogri | 16.14 | 7,823 |
|
| 341 |
+
| English | 802.81 | 735,482 |
|
| 342 |
+
| Gujarati | 21.24 | 5,679 |
|
| 343 |
+
| Hindi | 107.00 | 46,135 |
|
| 344 |
+
| Kannada | 125.01 | 54,575 |
|
| 345 |
+
| Malayalam | 25.21 | 14,988 |
|
| 346 |
+
| Manipuri | 20.77 | 19,232 |
|
| 347 |
+
| Marathi | 122.47 | 54,894 |
|
| 348 |
+
| Nepali | 28.65 | 16,016 |
|
| 349 |
+
| Odia | 19.18 | 11,558 |
|
| 350 |
+
| Punjabi | 11.07 | 6,892 |
|
| 351 |
+
| Sanskrit | 19.91 | 8,720 |
|
| 352 |
+
| Tamil | 52.25 | 29,204 |
|
| 353 |
+
| Telugu | 95.91 | 37,405 |
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
## Citation
|
| 357 |
+
|
| 358 |
+
If you found this repository useful, please consider citing this work and also the original Stability AI paper:
|
| 359 |
+
|
| 360 |
+
```
|
| 361 |
+
@inproceedings{sankar25_interspeech,
|
| 362 |
+
title = {{Rasmalai : Resources for Adaptive Speech Modeling in IndiAn Languages with Accents and Intonations}},
|
| 363 |
+
author = {Ashwin Sankar and Yoach Lacombe and Sherry Thomas and Praveen {Srinivasa Varadhan} and Sanchit Gandhi and Mitesh M. Khapra},
|
| 364 |
+
year = {2025},
|
| 365 |
+
booktitle = {{Interspeech 2025}},
|
| 366 |
+
pages = {4128--4132},
|
| 367 |
+
doi = {10.21437/Interspeech.2025-2758},
|
| 368 |
+
issn = {2958-1796},
|
| 369 |
+
}
|
| 370 |
+
```
|
| 371 |
+
|
| 372 |
+
```
|
| 373 |
+
@misc{lacombe-etal-2024-parler-tts,
|
| 374 |
+
author = {Yoach Lacombe and Vaibhav Srivastav and Sanchit Gandhi},
|
| 375 |
+
title = {Parler-TTS},
|
| 376 |
+
year = {2024},
|
| 377 |
+
publisher = {GitHub},
|
| 378 |
+
journal = {GitHub repository},
|
| 379 |
+
howpublished = {\url{https://github.com/huggingface/parler-tts}}
|
| 380 |
+
}
|
| 381 |
+
```
|
| 382 |
+
|
| 383 |
+
```
|
| 384 |
+
@misc{lyth2024natural,
|
| 385 |
+
title={Natural language guidance of high-fidelity text-to-speech with synthetic annotations},
|
| 386 |
+
author={Dan Lyth and Simon King},
|
| 387 |
+
year={2024},
|
| 388 |
+
eprint={2402.01912},
|
| 389 |
+
archivePrefix={arXiv},
|
| 390 |
+
primaryClass={cs.SD}
|
| 391 |
+
}
|
| 392 |
+
```
|
| 393 |
+
|
| 394 |
+
## License
|
| 395 |
+
|
| 396 |
+
This model is permissively licensed under the Apache 2.0 license.
|
config.json
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/fsx/yoach/tmp/artefacts/training-multilingual-mini-indic-finetuning-on-base/",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ParlerTTSForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"audio_encoder": {
|
| 7 |
+
"_name_or_path": "ylacombe/dac_44khz",
|
| 8 |
+
"add_cross_attention": false,
|
| 9 |
+
"architectures": [
|
| 10 |
+
"DacModel"
|
| 11 |
+
],
|
| 12 |
+
"bad_words_ids": null,
|
| 13 |
+
"begin_suppress_tokens": null,
|
| 14 |
+
"bos_token_id": null,
|
| 15 |
+
"chunk_size_feed_forward": 0,
|
| 16 |
+
"codebook_dim": 8,
|
| 17 |
+
"codebook_loss_weight": 1.0,
|
| 18 |
+
"codebook_size": 1024,
|
| 19 |
+
"commitment_loss_weight": 0.25,
|
| 20 |
+
"cross_attention_hidden_size": null,
|
| 21 |
+
"decoder_hidden_size": 1536,
|
| 22 |
+
"decoder_start_token_id": null,
|
| 23 |
+
"diversity_penalty": 0.0,
|
| 24 |
+
"do_sample": false,
|
| 25 |
+
"downsampling_ratios": [
|
| 26 |
+
2,
|
| 27 |
+
4,
|
| 28 |
+
8,
|
| 29 |
+
8
|
| 30 |
+
],
|
| 31 |
+
"early_stopping": false,
|
| 32 |
+
"encoder_hidden_size": 64,
|
| 33 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 34 |
+
"eos_token_id": null,
|
| 35 |
+
"exponential_decay_length_penalty": null,
|
| 36 |
+
"finetuning_task": null,
|
| 37 |
+
"forced_bos_token_id": null,
|
| 38 |
+
"forced_eos_token_id": null,
|
| 39 |
+
"hidden_size": 1024,
|
| 40 |
+
"hop_length": 512,
|
| 41 |
+
"id2label": {
|
| 42 |
+
"0": "LABEL_0",
|
| 43 |
+
"1": "LABEL_1"
|
| 44 |
+
},
|
| 45 |
+
"is_decoder": false,
|
| 46 |
+
"is_encoder_decoder": false,
|
| 47 |
+
"label2id": {
|
| 48 |
+
"LABEL_0": 0,
|
| 49 |
+
"LABEL_1": 1
|
| 50 |
+
},
|
| 51 |
+
"length_penalty": 1.0,
|
| 52 |
+
"max_length": 20,
|
| 53 |
+
"min_length": 0,
|
| 54 |
+
"model_type": "dac",
|
| 55 |
+
"n_codebooks": 9,
|
| 56 |
+
"no_repeat_ngram_size": 0,
|
| 57 |
+
"num_beam_groups": 1,
|
| 58 |
+
"num_beams": 1,
|
| 59 |
+
"num_return_sequences": 1,
|
| 60 |
+
"output_attentions": false,
|
| 61 |
+
"output_hidden_states": false,
|
| 62 |
+
"output_scores": false,
|
| 63 |
+
"pad_token_id": null,
|
| 64 |
+
"prefix": null,
|
| 65 |
+
"problem_type": null,
|
| 66 |
+
"pruned_heads": {},
|
| 67 |
+
"quantizer_dropout": 0.0,
|
| 68 |
+
"remove_invalid_values": false,
|
| 69 |
+
"repetition_penalty": 1.0,
|
| 70 |
+
"return_dict": true,
|
| 71 |
+
"return_dict_in_generate": false,
|
| 72 |
+
"sampling_rate": 44100,
|
| 73 |
+
"sep_token_id": null,
|
| 74 |
+
"suppress_tokens": null,
|
| 75 |
+
"task_specific_params": null,
|
| 76 |
+
"temperature": 1.0,
|
| 77 |
+
"tf_legacy_loss": false,
|
| 78 |
+
"tie_encoder_decoder": false,
|
| 79 |
+
"tie_word_embeddings": true,
|
| 80 |
+
"tokenizer_class": null,
|
| 81 |
+
"top_k": 50,
|
| 82 |
+
"top_p": 1.0,
|
| 83 |
+
"torch_dtype": "float32",
|
| 84 |
+
"torchscript": false,
|
| 85 |
+
"typical_p": 1.0,
|
| 86 |
+
"upsampling_ratios": [
|
| 87 |
+
8,
|
| 88 |
+
8,
|
| 89 |
+
4,
|
| 90 |
+
2
|
| 91 |
+
],
|
| 92 |
+
"use_bfloat16": false
|
| 93 |
+
},
|
| 94 |
+
"decoder": {
|
| 95 |
+
"_name_or_path": "/fsx/yoach/tmp/artefacts/parler-tts-mini-v2-empty/decoder",
|
| 96 |
+
"activation_dropout": 0.0,
|
| 97 |
+
"activation_function": "gelu",
|
| 98 |
+
"add_cross_attention": true,
|
| 99 |
+
"architectures": [
|
| 100 |
+
"ParlerTTSForCausalLM"
|
| 101 |
+
],
|
| 102 |
+
"attention_dropout": 0.0,
|
| 103 |
+
"bad_words_ids": null,
|
| 104 |
+
"begin_suppress_tokens": null,
|
| 105 |
+
"bos_token_id": 1025,
|
| 106 |
+
"chunk_size_feed_forward": 0,
|
| 107 |
+
"codebook_weights": null,
|
| 108 |
+
"cross_attention_hidden_size": null,
|
| 109 |
+
"cross_attention_implementation_strategy": null,
|
| 110 |
+
"decoder_start_token_id": null,
|
| 111 |
+
"delay_strategy": "delay",
|
| 112 |
+
"diversity_penalty": 0.0,
|
| 113 |
+
"do_sample": false,
|
| 114 |
+
"dropout": 0.1,
|
| 115 |
+
"early_stopping": false,
|
| 116 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 117 |
+
"eos_token_id": 1024,
|
| 118 |
+
"exponential_decay_length_penalty": null,
|
| 119 |
+
"ffn_dim": 4096,
|
| 120 |
+
"finetuning_task": null,
|
| 121 |
+
"forced_bos_token_id": null,
|
| 122 |
+
"forced_eos_token_id": null,
|
| 123 |
+
"hidden_size": 1024,
|
| 124 |
+
"id2label": {
|
| 125 |
+
"0": "LABEL_0",
|
| 126 |
+
"1": "LABEL_1"
|
| 127 |
+
},
|
| 128 |
+
"initializer_factor": 0.02,
|
| 129 |
+
"is_decoder": true,
|
| 130 |
+
"is_encoder_decoder": false,
|
| 131 |
+
"label2id": {
|
| 132 |
+
"LABEL_0": 0,
|
| 133 |
+
"LABEL_1": 1
|
| 134 |
+
},
|
| 135 |
+
"layerdrop": 0.0,
|
| 136 |
+
"length_penalty": 1.0,
|
| 137 |
+
"max_length": 20,
|
| 138 |
+
"max_position_embeddings": 4096,
|
| 139 |
+
"min_length": 0,
|
| 140 |
+
"model_type": "parler_tts_decoder",
|
| 141 |
+
"no_repeat_ngram_size": 0,
|
| 142 |
+
"num_attention_heads": 16,
|
| 143 |
+
"num_beam_groups": 1,
|
| 144 |
+
"num_beams": 1,
|
| 145 |
+
"num_codebooks": 9,
|
| 146 |
+
"num_cross_attention_key_value_heads": 16,
|
| 147 |
+
"num_hidden_layers": 24,
|
| 148 |
+
"num_key_value_heads": 16,
|
| 149 |
+
"num_return_sequences": 1,
|
| 150 |
+
"output_attentions": false,
|
| 151 |
+
"output_hidden_states": false,
|
| 152 |
+
"output_scores": false,
|
| 153 |
+
"pad_token_id": 1024,
|
| 154 |
+
"prefix": null,
|
| 155 |
+
"problem_type": null,
|
| 156 |
+
"pruned_heads": {},
|
| 157 |
+
"remove_invalid_values": false,
|
| 158 |
+
"repetition_penalty": 1.0,
|
| 159 |
+
"return_dict": true,
|
| 160 |
+
"return_dict_in_generate": false,
|
| 161 |
+
"rope_embeddings": false,
|
| 162 |
+
"rope_theta": 10000.0,
|
| 163 |
+
"scale_embedding": false,
|
| 164 |
+
"sep_token_id": null,
|
| 165 |
+
"suppress_tokens": null,
|
| 166 |
+
"task_specific_params": null,
|
| 167 |
+
"temperature": 1.0,
|
| 168 |
+
"tf_legacy_loss": false,
|
| 169 |
+
"tie_encoder_decoder": false,
|
| 170 |
+
"tie_word_embeddings": false,
|
| 171 |
+
"tokenizer_class": null,
|
| 172 |
+
"top_k": 50,
|
| 173 |
+
"top_p": 1.0,
|
| 174 |
+
"torch_dtype": "float32",
|
| 175 |
+
"torchscript": false,
|
| 176 |
+
"typical_p": 1.0,
|
| 177 |
+
"use_bfloat16": false,
|
| 178 |
+
"use_cache": true,
|
| 179 |
+
"use_fused_lm_heads": true,
|
| 180 |
+
"vocab_size": 1088
|
| 181 |
+
},
|
| 182 |
+
"decoder_start_token_id": 1025,
|
| 183 |
+
"is_encoder_decoder": true,
|
| 184 |
+
"model_type": "parler_tts",
|
| 185 |
+
"pad_token_id": 1024,
|
| 186 |
+
"prompt_cross_attention": false,
|
| 187 |
+
"text_encoder": {
|
| 188 |
+
"_name_or_path": "google/flan-t5-large",
|
| 189 |
+
"add_cross_attention": false,
|
| 190 |
+
"architectures": [
|
| 191 |
+
"T5ForConditionalGeneration"
|
| 192 |
+
],
|
| 193 |
+
"bad_words_ids": null,
|
| 194 |
+
"begin_suppress_tokens": null,
|
| 195 |
+
"bos_token_id": null,
|
| 196 |
+
"chunk_size_feed_forward": 0,
|
| 197 |
+
"classifier_dropout": 0.0,
|
| 198 |
+
"cross_attention_hidden_size": null,
|
| 199 |
+
"d_ff": 2816,
|
| 200 |
+
"d_kv": 64,
|
| 201 |
+
"d_model": 1024,
|
| 202 |
+
"decoder_start_token_id": 0,
|
| 203 |
+
"dense_act_fn": "gelu_new",
|
| 204 |
+
"diversity_penalty": 0.0,
|
| 205 |
+
"do_sample": false,
|
| 206 |
+
"dropout_rate": 0.1,
|
| 207 |
+
"early_stopping": false,
|
| 208 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 209 |
+
"eos_token_id": 1,
|
| 210 |
+
"exponential_decay_length_penalty": null,
|
| 211 |
+
"feed_forward_proj": "gated-gelu",
|
| 212 |
+
"finetuning_task": null,
|
| 213 |
+
"forced_bos_token_id": null,
|
| 214 |
+
"forced_eos_token_id": null,
|
| 215 |
+
"id2label": {
|
| 216 |
+
"0": "LABEL_0",
|
| 217 |
+
"1": "LABEL_1"
|
| 218 |
+
},
|
| 219 |
+
"initializer_factor": 1.0,
|
| 220 |
+
"is_decoder": false,
|
| 221 |
+
"is_encoder_decoder": true,
|
| 222 |
+
"is_gated_act": true,
|
| 223 |
+
"label2id": {
|
| 224 |
+
"LABEL_0": 0,
|
| 225 |
+
"LABEL_1": 1
|
| 226 |
+
},
|
| 227 |
+
"layer_norm_epsilon": 1e-06,
|
| 228 |
+
"length_penalty": 1.0,
|
| 229 |
+
"max_length": 20,
|
| 230 |
+
"min_length": 0,
|
| 231 |
+
"model_type": "t5",
|
| 232 |
+
"n_positions": 512,
|
| 233 |
+
"no_repeat_ngram_size": 0,
|
| 234 |
+
"num_beam_groups": 1,
|
| 235 |
+
"num_beams": 1,
|
| 236 |
+
"num_decoder_layers": 24,
|
| 237 |
+
"num_heads": 16,
|
| 238 |
+
"num_layers": 24,
|
| 239 |
+
"num_return_sequences": 1,
|
| 240 |
+
"output_attentions": false,
|
| 241 |
+
"output_hidden_states": false,
|
| 242 |
+
"output_past": true,
|
| 243 |
+
"output_scores": false,
|
| 244 |
+
"pad_token_id": 0,
|
| 245 |
+
"prefix": null,
|
| 246 |
+
"problem_type": null,
|
| 247 |
+
"pruned_heads": {},
|
| 248 |
+
"relative_attention_max_distance": 128,
|
| 249 |
+
"relative_attention_num_buckets": 32,
|
| 250 |
+
"remove_invalid_values": false,
|
| 251 |
+
"repetition_penalty": 1.0,
|
| 252 |
+
"return_dict": true,
|
| 253 |
+
"return_dict_in_generate": false,
|
| 254 |
+
"sep_token_id": null,
|
| 255 |
+
"suppress_tokens": null,
|
| 256 |
+
"task_specific_params": null,
|
| 257 |
+
"temperature": 1.0,
|
| 258 |
+
"tf_legacy_loss": false,
|
| 259 |
+
"tie_encoder_decoder": false,
|
| 260 |
+
"tie_word_embeddings": false,
|
| 261 |
+
"tokenizer_class": null,
|
| 262 |
+
"top_k": 50,
|
| 263 |
+
"top_p": 1.0,
|
| 264 |
+
"torch_dtype": null,
|
| 265 |
+
"torchscript": false,
|
| 266 |
+
"typical_p": 1.0,
|
| 267 |
+
"use_bfloat16": false,
|
| 268 |
+
"use_cache": true,
|
| 269 |
+
"vocab_size": 32128
|
| 270 |
+
},
|
| 271 |
+
"torch_dtype": "float32",
|
| 272 |
+
"transformers_version": "4.46.0.dev0",
|
| 273 |
+
"vocab_size": 90714
|
| 274 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1025,
|
| 4 |
+
"decoder_start_token_id": 1025,
|
| 5 |
+
"do_sample": true,
|
| 6 |
+
"eos_token_id": 1024,
|
| 7 |
+
"max_length": 2610,
|
| 8 |
+
"pad_token_id": 1024,
|
| 9 |
+
"transformers_version": "4.46.0.dev0"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c68daecb60f80c8f1faf0a6d2e6ddd6de8e224fb19750f3e9a33bca43c552c90
|
| 3 |
+
size 3751321772
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"feature_extractor_type": "DacFeatureExtractor",
|
| 3 |
+
"feature_size": 1,
|
| 4 |
+
"hop_length": 512,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"padding_value": 0.0,
|
| 7 |
+
"return_attention_mask": true,
|
| 8 |
+
"sampling_rate": 44100
|
| 9 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<unk>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc8fa773221597d09cfadb23a2b1bd717488a0481505469ea56d42cb044de9b5
|
| 3 |
+
size 1795391
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": true,
|
| 5 |
+
"added_tokens_decoder": {
|
| 6 |
+
"0": {
|
| 7 |
+
"content": "<unk>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false,
|
| 12 |
+
"special": true
|
| 13 |
+
},
|
| 14 |
+
"1": {
|
| 15 |
+
"content": "<s>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false,
|
| 20 |
+
"special": true
|
| 21 |
+
},
|
| 22 |
+
"2": {
|
| 23 |
+
"content": "</s>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false,
|
| 28 |
+
"special": true
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"bos_token": "<s>",
|
| 32 |
+
"clean_up_tokenization_spaces": false,
|
| 33 |
+
"eos_token": "</s>",
|
| 34 |
+
"legacy": false,
|
| 35 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 36 |
+
"pad_token": "<unk>",
|
| 37 |
+
"padding_side": "left",
|
| 38 |
+
"sp_model_kwargs": {},
|
| 39 |
+
"spaces_between_special_tokens": false,
|
| 40 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 41 |
+
"unk_token": "<unk>",
|
| 42 |
+
"use_default_system_prompt": false
|
| 43 |
+
}
|