SuperAPIAI Directory

parler-tts

github.com · AI developer platforms

Inference and training library for high-quality TTS models.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

Usage

Parler-TTS is an inference and training library for lightweight text-to-speech (TTS) models that can generate high-quality, natural-sounding speech and can mimic the style of a specific speaker (including gender, pitch, speaking style, etc.). It is a reproduction of the paper "Natural language guidance of high-fidelity text-to-speech with synthetic annotations" by Dan Lyth of Stability AI and Simon King of the University of Edinburgh. Unlike other TTS models, Parler-TTS is a fully open-source release, with all datasets, preprocessing, training code, and weights publicly available under permissive licenses, making it easy for the community to build their own TTS models on top of it. This repository contains the inference and training code for Parler-TTS and is designed to work with the Data-Speech repository for dataset annotation.

Main Capabilities

  • Supports controlling the characteristics of generated speech through simple text prompts, such as gender, speaking rate, pitch, and reverb.
  • Supports random timbres as well as specified speakers. The model is trained on 34 named speakers, including Laura, Gary, Jon, Lea, Karen, Rick, Brenda, David, Eileen, Jordan, Mike, Yann, Joy, James, Eric, Lauren, Rose, Will, Jason, Aaron, Naomie, Alisa, Patrick, Jerry, Tina, Jenna, Bill, Tom, Carol, Barbara, Rebecca, Anna, Bruce, Emily. By replacing the name in the description, the voice characteristics of different speakers can be used.
  • Adding "very clear audio" to the text description generates the highest-quality audio, while adding "very noisy audio" generates audio with high background noise.
  • Punctuation can be used to control the prosody of generated speech, for example, using commas to add brief pauses in speech.
  • On August 8, 2024, two new checkpoints were released: Parler-TTS Mini (880M parameters) and Parler-TTS Large (2.3B parameters), both trained on 45k hours of audiobook data.The code is optimized for faster generation, adds SDPA and Flash Attention 2 compatibility, and supports compiled models.
  • Inference speed optimization: provides an inference guide covering SDPA, torch.compile, and streaming generation.
  • Training and fine-tuning: the training folder contains all the information needed to train or fine-tune your own Parler-TTS model, including an architecture introduction, getting-started steps, and a training guide. Officially provides a command-line way to reproduce the Parler-TTS Mini v1 training recipe, as well as a fine-tuning guide for single-speaker datasets.

Usage

Parler-TTS has lightweight dependencies and can be installed with a single command. Apple Silicon users need to run an additional command to use the nightly PyTorch (2.4) build for bfloat16 support. After installation, Parler-TTS can be used as simply as saying "bonjour". An official interactive demo is provided for direct trial. When generating speech, features are controlled through text prompts, for example specifying the speaker: "Jon's voice is monotone yet slightly fast in delivery, with a very close recording that almost has no background noise." Replace "Jon" with any name from the above list to use the characteristics of different speakers. For more detailed information about speaker performance and voice consistency, please refer to the inference guide. For training, official provides a training guide and a fine-tuning guide; to reproduce the Parler-TTS Mini v1 training recipe, use the specified command line after completing the installation steps.

Use Cases

  • Applications that require high-quality, natural speech synthesis, especially scenarios where you want to control speaker style and speech features with simple text prompts.
  • Researchers and developers who want to perform secondary development, training, or fine-tuning of their own TTS models based on a fully open-source TTS model.
  • Scenarios that require multi-speaker speech generation and the ability to select a specific speaker by name.
  • Dataset annotation scenarios, which can be used together with the Data-Speech repository.

Limitations

  • The materials do not specify the supported platform range, language support (training mentions exploring multilingual, but the supported languages are not confirmed), specific hardware requirements, the specific license name, or charging or pricinginformation.
  • Details such as the specific download methods and sizes of model weights and datasets: the materials only mention that they are public, without providing specific links or explanations.
  • Features not yet provided: PEFT compatibility (for LoRA fine-tuning), training without a description column, notebook training, multilingual training, single-speaker fine-tuning, more architectures, etc., are all in an unexplored state.
  • In terms of evaluation, there are plans to add more evaluation metrics; specific metrics are not currently provided.

Acknowledgements and Contributions

This library is built on many open-source projects, with special thanks to the research papers by Dan Lyth and Simon King, 🤗 datasets, 🤗 accelerate, jiwer, wandb, 🤗 transformers, Descript's DAC codec model, and the computing resources provided by Hugging Face. The project welcomes contributions, and there is still much room for improvement in areas such as datasets, training, and optimization.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools