Text-to-Speech
Transformers
Safetensors
parler_tts
text2text-generation
annotation
ylacombe commited on
Commit
a78bda1
·
verified ·
1 Parent(s): 05382e4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +140 -36
README.md CHANGED
@@ -31,7 +31,6 @@ datasets:
31
 
32
  <img src="https://huggingface.co/datasets/parler-tts/images/resolve/main/thumbnail.png" alt="Parler Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
33
 
34
-
35
  # Indic Parler-TTS
36
 
37
  <a target="_blank" href="https://huggingface.co/spaces/PHBJT/multi_parler_tts">
@@ -51,17 +50,15 @@ Thanks to its **better prompt tokenizer**, it can easily be extended to other la
51
 
52
  ## 📖 Quick Index
53
  * [👨‍💻 Installation](#👨‍💻-installation)
 
54
  * [🎲 Using a random voice](#🎲-random-voice)
55
  * [🌍 Switching languages](#[🌍-switching-languages)
56
  * [🎯 Using a specific speaker](#🎯-using-a-specific-speaker)
 
57
  * [📐Evaluation](#📐-evaluation)
58
  * [Motivation](#motivation)
59
  * [Optimizing inference](https://github.com/huggingface/parler-tts/blob/main/INFERENCE.md)
60
 
61
- ## 🛠️ Usage
62
-
63
- 🚨 Unlike previous versions of Parler-TTS, here we use two tokenizers - one for the prompt and one for the description. 🚨
64
-
65
  ### 👨‍💻 Installation
66
 
67
  Using Parler-TTS is as simple as "bonjour". Simply install the library once:
@@ -70,9 +67,45 @@ Using Parler-TTS is as simple as "bonjour". Simply install the library once:
70
  pip install git+https://github.com/huggingface/parler-tts.git
71
  ```
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
- ### 🎲 Random voice
 
 
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  **Parler-TTS** has been trained to generate speech with features that can be controlled with a simple text prompt, for example:
78
 
@@ -99,7 +132,19 @@ audio_arr = generation.cpu().numpy().squeeze()
99
  sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
100
  ```
101
 
102
- ### 🌍 Switching languages
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
  The template 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:
105
 
@@ -126,7 +171,7 @@ audio_arr = generation.cpu().numpy().squeeze()
126
  sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
127
  ```
128
 
129
- ### 🎯 Using a specific speaker
130
 
131
  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, ...).
132
  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.`
@@ -153,34 +198,30 @@ audio_arr = generation.cpu().numpy().squeeze()
153
  sf.write("parler_tts_out.wav", audio_arr, model.config.sampling_rate)
154
  ```
155
 
156
- Here is the list of speakers:
157
-
158
- | Language | Male | Female |
159
- |---------------|----------|----------|
160
- | Assamese | Amit | Aditi |
161
- | Bengali | Arjun | Sita |
162
- | Bodo | Bikram | Maya |
163
- | Chhattisgarhi | Bhanu | Champa |
164
- | Dogri | Karan | Leela |
165
- | English | Thoma | Mary |
166
- | Gujarati | Yash | Neha |
167
- | Hindi | Rohit | Divya |
168
- | Kannada | Suresh | Anu |
169
- | Kashmiri | Rohit | Shabnam |
170
- | Konkani | Deepak | Sunita |
171
- | Maithili | Anil | Divya |
172
- | Malayalam | Harish | Anjali |
173
- | Manipuri | Ranjit | Laishram |
174
- | Marathi | Sanjay | Sunita |
175
- | Nepali | Ram | Amrita |
176
- | Odia | Manas | Debjani |
177
- | Punjabi | Gurpreet | Divjot |
178
- | Sanskrit | Aryan | Vasudha |
179
- | Santali | Arjun | Pushpa |
180
- | Sindhi | Rajesh | Rekha |
181
- | Tamil | NA | Jaya |
182
- | Telugu | Prakash | Lalitha |
183
- | Urdu | Rohit | Zainab |
184
 
185
 
186
  **Tips**:
@@ -190,8 +231,71 @@ Here is the list of speakers:
190
  * The remaining speech features (gender, speaking rate, pitch and reverberation) can be controlled directly through the prompt
191
 
192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  ## 📐 Evaluation
194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  ## Motivation
196
 
197
  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.
 
31
 
32
  <img src="https://huggingface.co/datasets/parler-tts/images/resolve/main/thumbnail.png" alt="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/PHBJT/multi_parler_tts">
 
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:
 
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
+ IndicParlerTTS 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
  **Parler-TTS** has been trained to generate speech with features that can be controlled with a simple text prompt, for example:
111
 
 
132
  sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)
133
  ```
134
 
135
+ IndicParlerTTS 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 template 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
 
 
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.`
 
198
  sf.write("parler_tts_out.wav", audio_arr, model.config.sampling_rate)
199
  ```
200
 
201
+ 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.
202
+
203
+ Here is the table based on the provided data:
204
+
205
+ | **Language** | **Available Speakers** | **Recommended Speakers** |
206
+ |--------------------|-------------------------------------------------------------|---------------------------------|
207
+ | Assamese | Amit, Sita, Poonam, Rakesh | Amit, Sita |
208
+ | Bengali | Arjun, Aditi, Tapan, Rashmi, Arnav, Riya | Arjun, Aditi |
209
+ | Bodo | Bikram, Maya, Kalpana | Bikram, Maya |
210
+ | Chhattisgarhi | Bhanu, Champa | Bhanu, Champa |
211
+ | Dogri | Karan | Karan |
212
+ | English | Thoma, Mary, Swapna, Dinesh, Meera, Jatin, Aakash, Sneha, Kabir, Tisha, Chingkhei, Thoiba, Priya, Tarun, Gauri, Nisha, Raghav, Kavya, Ravi, Vikas, Riya | Thoma, Mary |
213
+ | Gujarati | Yash, Neha | Yash, Neha |
214
+ | Hindi | Rohit, Divya, Aman, Rani | Rohit, Divya |
215
+ | Kannada | Suresh, Anu, Chetan, Vidya | Suresh, Anu |
216
+ | Malayalam | Anjali, Anju, Harish | Anjali, Harish |
217
+ | Manipuri | Laishram, Ranjit | Laishram, Ranjit |
218
+ | Marathi | Sanjay, Sunita, Nikhil, Radha, Varun, Isha | Sanjay, Sunita |
219
+ | Nepali | Amrita | Amrita |
220
+ | Odia | Manas, Debjani | Manas, Debjani |
221
+ | Punjabi | Divjot, Gurpreet | Divjot, Gurpreet |
222
+ | Sanskrit | Aryan | Aryan |
223
+ | Tamil | Kavitha, Jaya | Jaya |
224
+ | Telugu | Prakash, Lalitha, Kiran | Prakash, Lalitha |
 
 
 
 
225
 
226
 
227
  **Tips**:
 
231
  * The remaining speech features (gender, speaking rate, pitch and reverberation) can be controlled directly through the prompt
232
 
233
 
234
+ ## Some Description Examples
235
+
236
+ 1. **Aditi - Slightly High-Pitched, Expressive Tone**:
237
+ *"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."*
238
+
239
+ 2. **Sita - Rapid, Slightly Monotone**:
240
+ *"Sita speaks at a fast pace with a slightly low-pitched voice, captured clearly in a close-sounding environment with excellent recording quality."*
241
+
242
+ 3. **Tapan - Male, Moderate Pace, Slightly Monotone**:
243
+ *"Tapan speaks at a moderate pace with a slightly monotone tone. The recording is clear, with a close sound and only minimal ambient noise."*
244
+
245
+ 4. **Sunita - High-Pitched, Happy Tone**:
246
+ *"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."*
247
+
248
+ 5. **Karan - High-Pitched, Positive Tone**:
249
+ *"Karan’s high-pitched, engaging voice is captured in a clear, close-sounding recording. His slightly slower delivery conveys a positive tone."*
250
+
251
+ 6. **Amrita - High-Pitched, Flat Tone**:
252
+ *"Amrita speaks with a high pitch at a slow pace. Her voice is clear, with excellent recording quality and only moderate background noise."*
253
+
254
+ 7. **Aditi - Slow, Slightly Expressive**:
255
+ *"Aditi speaks slowly with a high pitch and expressive tone. The recording is clear, showcasing her energetic and emotive voice."*
256
+
257
+ 8. **Young Male Speaker, American Accent**:
258
+ *"A young male speaker with a high-pitched American accent delivers speech at a slightly fast pace in a clear, close-sounding recording."*
259
+
260
+ 9. **Bikram - High-Pitched, Urgent Tone**:
261
+ *"Bikram speaks with a higher pitch and fast pace, conveying urgency. The recording is clear and intimate, with great emotional depth."*
262
+
263
+ 10. **Anjali - High-Pitched, Neutral Tone**:
264
+ *"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."*
265
+
266
+
267
  ## 📐 Evaluation
268
 
269
+ IndicParlerTTS 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.
270
+
271
+ | **Language** | **Native Speaker Score (%)** | **Highlights** |
272
+ |--------------|-------------------------------|--------------------------------------------------------------------------------------------------|
273
+ | Assamese | 87.36 ± 1.81 | Clear, natural synthesis with excellent expressiveness. |
274
+ | Bengali | 86.16 ± 1.85 | High-quality outputs with smooth intonation. |
275
+ | Bodo | 94.47 ± 4.12 | Near-perfect accuracy for a lesser-resourced language. |
276
+ | Dogri | 88.80 ± 3.57 | Robust and consistent synthesis for Dogri. |
277
+ | Gujarati | 75.36 ± 1.78 | Strong clarity and naturalness even for smaller languages. |
278
+ | Hindi | 84.79 ± 2.09 | Reliable and expressive outputs for India's most widely spoken language. |
279
+ | Kannada | 88.17 ± 2.81 | Highly natural and accurate voices for Kannada. |
280
+ | Konkani | 76.60 ± 4.14 | Produces clear and natural outputs for diverse speakers. |
281
+ | Maithili | 95.36 ± 2.52 | Exceptionally accurate, showcasing fine-tuning success. |
282
+ | Malayalam | 86.54 ± 1.67 | Smooth, high-quality synthesis with expressive outputs. |
283
+ | Manipuri | 85.63 ± 2.60 | Natural intonation with minimal errors. |
284
+ | Marathi | 76.96 ± 1.45 | Maintains clarity and naturalness across speakers. |
285
+ | Nepali | 80.02 ± 5.75 | Strong synthesis for native and proximal Nepali speakers. |
286
+ | Odia | 88.94 ± 3.26 | High expressiveness and quality for Odia speakers. |
287
+ | Sanskrit | 99.79 ± 0.34 | Near-perfect synthesis, ideal for classical use cases. |
288
+ | Sindhi | 76.46 ± 1.29 | Clear and natural voices for underrepresented languages. |
289
+ | Tamil | 75.48 ± 2.18 | Delivers intelligible and expressive speech. |
290
+ | Telugu | 88.54 ± 1.86 | Smooth and natural tonal quality for Telugu. |
291
+ | Urdu | 77.75 ± 3.82 | Produces high-quality speech despite resource constraints. |
292
+
293
+ **Key Strengths**:
294
+ - Exceptional performance for native speakers, with top scores for **Maithili (95.36)**, **Sanskrit (99.79)**, and **Bodo (94.47)**.
295
+ - Competitive results for lesser-resourced and unofficially supported languages like **Kashmiri (55.30)** and **Sindhi (76.46)**.
296
+ - Adaptability to non-native and anonymous speaker scenarios with consistently high clarity.
297
+
298
+
299
  ## Motivation
300
 
301
  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.