/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
parler_tts · dense
Библиотека
transformers
Опубликована
30 авг 2025

indic-parler-tts

Синтез речиТекст → аудио3 профессии

Мультиязычная модель преобразует текст и описание желаемого звучания в речь на английском и языках Индии.

2 322скачиваний за 30 дней0лайковвеса обновлены30 авг 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Indic Parler-TTS — мультиязычная модель синтеза речи, разработанная в сотрудничестве команд Hugging Face Audio и AI4Bharat. Это дообученная версия Indic Parler-TTS Pretrained на наборе данных объёмом 1 806 часов; модель построена на архитектуре Parler-TTS и распространяется в формате Safetensors через Transformers.

Модель преобразует текст в речь на 21 языке, включая английский и 20 языков Индии. Дополнительное текстовое описание задаёт характеристики звучания: голос, темп, высоту, эмоциональную окраску, выразительность, акцент, реверберацию и фоновый шум. Заявлена поддержка 69 голосов; для трёх дополнительных языков — чхаттисгархи, кашмири и пенджаби — поддержка неофициальная.

Эмоциональные подсказки официально поддерживаются для десяти языков, а для остальных заявлены без подробного тестирования. Рекомендуемые голоса и качество могут различаться по языкам; смена языка определяется по тексту запроса. Лицензия — Apache-2.0.

Сценарии применения

  • озвучивание текста на языках Индии
  • генерация речи с заданным темпом и высотой голоса
  • синтез эмоциональной речи для аудиоконтента
  • создание озвучки с индийскими английскими акцентами
  • настройка голоса и условий записи с помощью текстового описания

Ограничения

Эмоциональные подсказки проверены для ограниченного набора языков; для других языков эта возможность протестирована недостаточно. Поддержка чхаттисгархи, кашмири и пенджаби обозначена как неофициальная.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Indic Parler-TTS

Indic Parler-TTS is a multilingual Indic extension of Parler-TTS Mini.

It is a fine-tuned version of Indic Parler-TTS Pretrained, trained on a 1,806 hours multilingual Indic and English dataset.

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.

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.

🚨 This work is the result of a collaboration between the HuggingFace audio team and the AI4Bharat team. 🚨

📖 Quick Index

👨‍💻 Installation

Using Parler-TTS is as simple as "bonjour". Simply install the library once:

pip install git+https://github.com/huggingface/parler-tts.git

🛠️ Key capabilities

The model accepts two primary inputs:

  1. Transcript - The text to be converted to speech.
  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."

Key Features

  1. Language Support

    • 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.
    • Unofficial support: Chhattisgarhi, Kashmiri, Punjabi.
  2. Speaker Diversity

    • 69 unique voices across the supported languages.
    • Supported languages have a set of recommended voices optimized for naturalness and intelligibility.
  3. Emotion Rendering

    • 10 languages officially support emotion-specific prompts: Assamese, Bengali, Bodo, Dogri, Kannada, Malayalam, Marathi, Sanskrit, Nepali, and Tamil.
    • Emotion support for other languages exists but has not been extensively tested.
    • Available emotions include: Command, Anger, Narration, Conversation, Disgust, Fear, Happy, Neutral, Proper Noun, News, Sad, and Surprise.
  4. Accent Flexibility

    • The model officially supports Indian English accents through its English voices, providing clear and natural speech.
    • 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.
  5. Customizable Output
    Indic Parler-TTS offers precise control over various speech characteristics using the caption input:

    • Background Noise: Adjust the noise level in the audio, from clear to slightly noisy environments.
    • Reverberation: Control the perceived distance of the voice, from close-sounding to distant-sounding speech.
    • Expressivity: Specify how dynamic or monotone the speech should be, ranging from expressive to slightly expressive or monotone.
    • Pitch: Modify the pitch of the speech, including high, low, or balanced tones.
    • Speaking Rate: Change the speaking rate, from slow to fast.
    • Voice Quality: Control the overall clarity and naturalness of the speech, adjusting from basic to refined voice quality.

🎲 Random voice

🚨 Unlike previous versions of Parler-TTS, here we use two tokenizers - one for the prompt and one for the description. 🚨

Indic Parler-TTS has been trained to generate speech with features that can be controlled with a simple text prompt, for example:

import torch
from parler_tts import ParlerTTSForConditionalGeneration
from transformers import AutoTokenizer
import soundfile as sf

device = "cuda:0" if torch.cuda.is_available() else "cpu"

model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)

prompt = "Hey, how are you doing today?"
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."

description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)

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)
audio_arr = generation.cpu().numpy().squeeze()
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)

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:

Control TypeCapabilities
Background NoiseAdjusts the level of background noise, supporting clear and slightly noisy environments.
ReverberationControls the perceived distance of the speaker’s voice, allowing close or distant sounds.
ExpressivityModulates the emotional intensity of speech, from monotone to highly expressive.
PitchVaries the pitch to achieve high, low, or moderate tonal output.
Speaking RateChanges the speed of speech delivery, ranging from slow to fast-paced.
Speech QualityImproves or degrades the overall audio clarity, supporting basic to refined outputs.

🌍 Switching languages

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:

import torch
from parler_tts import ParlerTTSForConditionalGeneration
from transformers import AutoTokenizer
import soundfile as sf

device = "cuda:0" if torch.cuda.is_available() else "cpu"

model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)

prompt = "अरे, तुम आज कैसे हो?"
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."

description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)

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)
audio_arr = generation.cpu().numpy().squeeze()
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)

🎯 Using a specific speaker

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, ...). 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.

import torch
from parler_tts import ParlerTTSForConditionalGeneration
from transformers import AutoTokenizer
import soundfile as sf

device = "cuda:0" if torch.cuda.is_available() else "cpu"

model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
description_tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder._name_or_path)

prompt = "अरे, तुम आज कैसे हो?"
description = "Divya's voice is monotone yet slightly fast in delivery, with a very close recording that almost has no background noise."

description_input_ids = description_tokenizer(description, return_tensors="pt").to(device)
prompt_input_ids = tokenizer(prompt, return_tensors="pt").to(device)

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)
audio_arr = generation.cpu().numpy().squeeze()
sf.write("indic_tts_out.wav", audio_arr, model.config.sampling_rate)

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.

Here is the table based on the provided data:

LanguageAvailable SpeakersRecommended Speakers
AssameseAmit, Sita, Poonam, RakeshAmit, Sita
BengaliArjun, Aditi, Tapan, Rashmi, Arnav, RiyaArjun, Aditi
BodoBikram, Maya, KalpanaBikram, Maya
ChhattisgarhiBhanu, ChampaBhanu, Champa
DogriKaranKaran
EnglishThoma, Mary, Swapna, Dinesh, Meera, Jatin, Aakash, Sneha, Kabir, Tisha, Chingkhei, Thoiba, Priya, Tarun, Gauri, Nisha, Raghav, Kavya, Ravi, Vikas, RiyaThoma, Mary
GujaratiYash, NehaYash, Neha
HindiRohit, Divya, Aman, RaniRohit, Divya
KannadaSuresh, Anu, Chetan, VidyaSuresh, Anu
MalayalamAnjali, Anju, HarishAnjali, Harish
ManipuriLaishram, RanjitLaishram, Ranjit
MarathiSanjay, Sunita, Nikhil, Radha, Varun, IshaSanjay, Sunita
NepaliAmritaAmrita
OdiaManas, DebjaniManas, Debjani
PunjabiDivjot, GurpreetDivjot, Gurpreet
SanskritAryanAryan
TamilKavitha, JayaJaya
TeluguPrakash, Lalitha, KiranPrakash, Lalitha

Tips:

  • We've set up an inference guide to make generation faster. Think SDPA, torch.compile, batching and streaming!
  • Include the term "very clear audio" to generate the highest quality audio, and "very noisy audio" for high levels of background noise
  • Punctuation can be used to control the prosody of the generations, e.g. use commas to add small breaks in speech
  • The remaining speech features (gender, speaking rate, pitch and reverberation) can be controlled directly through the prompt

Some Description Examples

  1. Aditi - Slightly High-Pitched, Expressive Tone:
    "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."

  2. Sita - Rapid, Slightly Monotone:
    "Sita speaks at a fast pace with a slightly low-pitched voice, captured clearly in a close-sounding environment with excellent recording quality."

  3. Tapan - Male, Moderate Pace, Slightly Monotone:
    "Tapan speaks at a moderate pace with a slightly monotone tone. The recording is clear, with a close sound and only minimal ambient noise."

  4. Sunita - High-Pitched, Happy Tone:
    "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."

  5. Karan - High-Pitched, Positive Tone:
    "Karan’s high-pitched, engaging voice is captured in a clear, close-sounding recording. His slightly slower delivery conveys a positive tone."

  6. Amrita - High-Pitched, Flat Tone:
    "Amrita speaks with a high pitch at a slow pace. Her voice is clear, with excellent recording quality and only moderate background noise."

  7. Aditi - Slow, Slightly Expressive:
    "Aditi speaks slowly with a high pitch and expressive tone. The recording is clear, showcasing her energetic and emotive voice."

  8. Young Male Speaker, American Accent:
    "A young male speaker with a high-pitched American accent delivers speech at a slightly fast pace in a clear, close-sounding recording."

  9. Bikram - High-Pitched, Urgent Tone:
    "Bikram speaks with a higher pitch and fast pace, conveying urgency. The recording is clear and intimate, with great emotional depth."

  10. Anjali - High-Pitched, Neutral Tone:
    "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."

📐 Evaluation

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.

NSS stands for Native Speaker Score:

LanguageNSS Pretrained (%)NSS Finetuned (%)Highlights
Assamese82.56 ± 1.8087.36 ± 1.81Clear, natural synthesis with excellent expressiveness.
Bengali77.41 ± 2.1486.16 ± 1.85High-quality outputs with smooth intonation.
Bodo90.83 ± 4.5494.47 ± 4.12Near-perfect accuracy for a lesser-resourced language.
Dogri82.61 ± 4.9888.80 ± 3.57Robust and consistent synthesis for Dogri.
Gujarati75.28 ± 1.9475.36 ± 1.78Strong clarity and naturalness even for smaller languages.
Hindi83.43 ± 1.5384.79 ± 2.09Reliable and expressive outputs for India's most widely spoken language.
Kannada77.97 ± 3.4388.17 ± 2.81Highly natural and accurate voices for Kannada.
Konkani87.20 ± 3.5876.60 ± 4.14Produces clear and natural outputs for diverse speakers.
Maithili89.07 ± 4.4795.36 ± 2.52Exceptionally accurate, showcasing fine-tuning success.
Malayalam82.02 ± 2.0686.54 ± 1.67Smooth, high-quality synthesis with expressive outputs.
Manipuri89.58 ± 1.3385.63 ± 2.60Natural intonation with minimal errors.
Marathi73.81 ± 1.9376.96 ± 1.45Maintains clarity and naturalness across speakers.
Nepali64.05 ± 8.3380.02 ± 5.75Strong synthesis for native and proximal Nepali speakers.
Odia90.28 ± 2.5288.94 ± 3.26High expressiveness and quality for Odia speakers.
Sanskrit99.71 ± 0.5899.79 ± 0.34Near-perfect synthesis, ideal for classical use cases.
Sindhi76.44 ± 2.2676.46 ± 1.29Clear and natural voices for underrepresented languages.
Tamil69.68 ± 2.7375.48 ± 2.18Delivers intelligible and expressive speech.
Telugu89.77 ± 2.2088.54 ± 1.86Smooth and natural tonal quality for Telugu.
Urdu77.15 ± 3.4777.75 ± 3.82Produces high-quality speech despite resource constraints.

Key Strengths:

  • Exceptional performance for native speakers, with top scores for Maithili (95.36), Sanskrit (99.79), and Bodo (94.47).
  • Competitive results for lesser-resourced and unofficially supported languages like Kashmiri (55.30) and Sindhi (76.46).
  • Adaptability to non-native and anonymous speaker scenarios with consistently high clarity.

Motivation

Parler-TTS is a reproduction of work from the paper Natural language guidance of high-fidelity text-to-speech with synthetic annotations by Dan Lyth and Simon King, from Stability AI and Edinburgh University respectively.

Parler-TTS was released alongside:

Training dataset

  • Description:
    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.

  • Key Statistics:

DatasetDuration (hrs)Languages CoveredNo. of UtterancesLicense
GLOBE535.01581,725CC V1
IndicTTS382.012220,606CC BY 4.0
LIMMITS568.07246,008CC BY 4.0
Rasa288.09155,734CC BY 4.0
  • Languages Covered:
    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.

  • Language-Wise Data Breakdown:

Here’s the table combining the duration (hours) and the number of utterances from the provided stats:

LanguageDuration (hrs)No. of Utterances
Assamese69.7841,210
Bengali140.0470,305
Bodo49.1427,012
Chhattisgarhi80.1138,148
Dogri16.147,823
English802.81735,482
Gujarati21.245,679
Hindi107.0046,135
Kannada125.0154,575
Malayalam25.2114,988
Manipuri20.7719,232
Marathi122.4754,894
Nepali28.6516,016
Odia19.1811,558
Punjabi11.076,892
Sanskrit19.918,720
Tamil52.2529,204
Telugu95.9137,405

Citation

If you found this repository useful, please consider citing this work and also the original Stability AI paper:

@misc{lacombe-etal-2024-indic-parler-tts,
  author = {Yoach Lacombe, Ashwin Sankar, Sherry Thomas, Praveen Srinivasa Varadhan, Sanchit Gandhi, Mitesh Khapra,
  title = {Indic Parler-TTS},
  year = {2024},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  howpublished = {\url{https://huggingface.co/ai4bharat/indic-parler-tts}}
}
@misc{lacombe-etal-2024-parler-tts,
  author = {Yoach Lacombe and Vaibhav Srivastav and Sanchit Gandhi},
  title = {Parler-TTS},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/huggingface/parler-tts}}
}
@misc{lyth2024natural,
      title={Natural language guidance of high-fidelity text-to-speech with synthetic annotations},
      author={Dan Lyth and Simon King},
      year={2024},
      eprint={2402.01912},
      archivePrefix={arXiv},
      primaryClass={cs.SD}
}

License

This model is permissively licensed under the Apache 2.0 license.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Архитектура parler_tts неизвестна transformers в образе рантайма.

Класс архитектуры
ParlerTTSForConditionalGeneration
Ревизия весов
6ffcecc

0 моделей