AI Personal Learning
and practical guidance

ChatTTS: a speech generation model that mimics the voice of a real human speaker

General Introduction

ChatTTS is a generative speech model designed for conversational scenarios. It generates natural and expressive speech, supports multiple languages and multiple speakers, and is suitable for interactive conversations. The model outperforms most open-source speech synthesis models by predicting and controlling fine-grained rhythmic features such as laughter, pauses, and interjections.ChatTTS provides pre-trained models to support further research and development, primarily for academic purposes.

 


ChatTTS: Generative Speech Modeling for Conversational Scenarios-1

 

ChatTTS: Generative Speech Modeling for Conversational Scenarios-1

 

 

Function List

  • Multi-language support: Chinese and English are supported, and more languages will be expanded in the future.
  • Multi-talker support: The ability to generate multiple speakers' voices makes it suitable for interactive conversations.
  • Fine-grained rhythmic control: Rhythmic features such as laughter, pauses and interjections can be predicted and controlled.
  • Pre-trained models: Provides 40,000 hours of pre-trained models to support further research and development.
  • open source: The code is open source on GitHub for academic and research use.

 

 

Using Help

Installation process

  1. Cloning Project Code::
    git clone https://github.com/2noise/ChatTTS.git
    
  2. Installation of dependencies::
    cd ChatTTS
    pip install -r requirements.txt
    
  3. Download pre-trained model: Download the pre-trained model from HuggingFace or ModelScope and place it in the specified directory.

Usage

  1. Loading Models::
    from chattts import ChatTTS
    model = ChatTTS.load_model('path/to/pretrained/model')
    
  2. Generate Speech::
    text = "Hello and welcome to ChatTTS!"
    audio = model.synthesize(text)
    
  3. Saving audio files::
    with open('output.wav', 'wb') as f.
        f.write(audio)
    

Detailed Function Operation

  • text input: Supports mixed Chinese and English text input.
  • Rhythmic control: Rhyme features such as laughter, pauses and interjections are controlled by setting parameters.
  • tone control: The generated tone can be controlled by a preset tone seed value or tone code.
  • emotional control: Control the emotional characteristics of the generated speech by setting the emotion volatility and relevance parameters.
  • streaming output: Supports long audio generation and split-role reading for complex dialog scenarios.

sample code (computing)

from chattts import ChatTTS

# loading model
model = ChatTTS.load_model('path/to/pretrained/model')

# Setting Text and Rhyme Parameters
text = "Hello and welcome to ChatTTS!"
params = {
    'laugh': True,
    'pause': True,
    'interjection': True
}

# Generate Voice
audio = model.synthesize(text, params)

# Save Audio Files
with open('output.wav', 'wb') as f.
    f.write(audio)

 

 

ChatTTS Client

 

Quick Experience

web address typology
Original Web Original Web Experience
Forge Web Forge Enhanced Experience
Linux Python Installer
Samples Example of a tone seed
Cloning Tone Cloning Experience

 

functional enhancement

sports event bright spot
jianchang512/ChatTTS-ui Provides an API interface that can be called from a third-party application.
6drf21e/ChatTTS_colab Provides streaming output with support for long audio generation and split-role reading
lenML/ChatTTS-Forge Provides vocal enhancement and background noise reduction, with additional cues available
CCmahua/ChatTTS-Enhanced Supports batch file processing and export of SRT files.
HKoon/ChatTTS-OpenVoice become man and wife OpenVoice Perform sound cloning

 

Functionality Expansion

sports event bright spot
6drf21e/ChatTTS_Speaker Tone Character Marking and Stability Assessment
AIFSH/ComfyUI-ChatTTS ComfyUi version, which can be introduced as a workflow node
MaterialShadow/ChatTTS-manager Provides a tone management system and WebUI interface.
AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " ChatTTS: a speech generation model that mimics the voice of a real human speaker

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish