FireRedTTS-2: Open-Source Long-Form Dialogue Speech Generation, Up to Three Minutes

•1058 words•6 min read•
TTSspeech-synthesisopen-source-modelsPyTorchstreamingsoftware

There are plenty of open-source text-to-speech (TTS) projects, and the results keep getting better as AI advances. From the early ChatTTS, to GPT-SoVITS, to the current FireRedTTS-2, each has pushed the state of TTS a little further.

By now, generating a single sentence is a solved problem. Long-form dialogue, however, still has issues: with long inputs, you often get voice drift, broken prosody, or incoherent context. Put simply, the output sounds less like a "conversation" and more like someone "reading aloud," which is not very natural.

FireRedTTS-2 takes a small step forward on this problem. As an open-source implementation, it performs quite well on long-form dialogue (up to 3 minutes), and it introduces an ultra-low-latency streaming architecture that makes real-time voice interaction possible.

What Makes It Special

1. Long-Form Dialogue Support

FireRedTTS-2 currently supports continuous dialogue generation of up to 3 minutes with 4 speakers, and the model adjusts prosody based on context, so the generated conversation sounds far more natural.

For content creators, that length is convenient. For a 10-minute video, once you strip out silence and sections without dialogue, splitting the script into 3 dialogue segments is enough.

2. Low-Latency Streaming

This is one of the model's most impressive technical breakthroughs. Built on a 12.5Hz streaming speech tokenizer and a dual-Transformer architecture, FireRedTTS-2 uses a text–speech interleaved sequence.

In other words, it can play audio while still generating it. If you happen to find an L20 GPU (roughly $10,000) lying on the street and happen to use it for this open-source project, the time-to-first-token (TTFT) drops below 140ms. That is very fast. In a voice bot, most people would not perceive this delay at all, and the experience feels close to talking to a real person.

3. Consumer GPU Friendly

Of course, not everyone is lucky enough to get an L20. An RTX 3080 or 4070 also works. In a recent update, FireRedTTS-2 added support for bf16 inference, which reduces VRAM usage from 14GB to 9GB. Running this model locally on a 4070 is more than comfortable.

If you have none of these, that is fine too. Google Colab and Kaggle both offer free GPU resources, enough to run some test scripts and get a feel for the model.

give me ad meney, google

4. Multilingual Support and Zero-Shot Cloning

It natively supports Chinese, English, Japanese, Korean, French, German, and Russian, and it has zero-shot voice cloning. Given a short reference audio clip, the model clones the speaker's timbre and supports cross-lingual synthesis (for example, speaking English with a Chinese speaker's voice).

Technical Architecture

These are technical details. Every project builds on the shoulders of giants, combining and refining multiple techniques just to move things forward a small step.

Research is hard work. Respect.

Image
  • Dual-Transformer architecture: Draws on the design of Moshi and Sesame CSM to enable efficient streaming.
  • Text processing: Adopts the tokenizer approach of Qwen2.5-1.5B to improve multilingual text understanding.
  • Acoustic decoding: Uses a Vocos decoder based on Xcodec2 to ensure high-fidelity audio reconstruction.

Getting Started

1. Environment Setup

Conda is recommended for environment isolation, with Python 3.11.

git clone https://github.com/FireRedTeam/FireRedTTS2.git
cd FireRedTTS2

# Create the environment
conda create --name fireredtts2 python==3.11
conda activate fireredtts2

# Install PyTorch (adjust for your CUDA version)
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu126

# Install dependencies
pip install -e .
pip install -r requirements.txt

2. Download Model Weights

The model is hosted on Hugging Face and requires Git LFS to download.

git lfs install
git clone https://huggingface.co/FireRedTeam/FireRedTTS2 pretrained_models/FireRedTTS2

3. Launch the Web UI

For most users, the web interface is the most convenient option. It has an intuitive panel that supports voice cloning and random voice generation.

python gradio_demo.py --pretrained-dir "./pretrained_models/FireRedTTS2"

The panel is shown below. It is built on Gradio and values simplicity and practicality above all.

FireRedTTS-2 Web UI

4. Advanced: Streaming Dialogue Generation Code Example

If you are a developer who wants to integrate FireRedTTS-2 into your own application, you can use its streaming API:

import torch
import torchaudio
from fireredtts2.fireredtts2 import FireRedTTS2_Stream

device = "cuda"

# Initialize the streaming model
fireredtts2 = FireRedTTS2_Stream(
    pretrained_dir="./pretrained_models/FireRedTTS2",
    gen_type="dialogue", # Set to dialogue mode
    device=device,
)

# Prepare the dialogue text (S1 and S2 represent different speakers)
text_list = [
    "[S1]Hi, have you been exploring any new tech lately?",
    "[S2]I've been looking at FireRedTTS-2. Apparently its streaming latency is very low.",
    "[S1]Yeah, and it supports zero-shot cloning too, which makes it great for podcasts."
]

# Prepare reference audio (used for voice cloning)
prompt_wav_list = ["path/to/speaker1.flac", "path/to/speaker2.flac"]
prompt_text_list = ["[S1]Transcript of the reference audio...", "[S2]Transcript of the reference audio..."]

all_audio = []
# Call in generator mode
audio_generator = fireredtts2.generate_dialogue(
    text_list=text_list,
    prompt_wav_list=prompt_wav_list,
    prompt_text_list=prompt_text_list,
    temperature=0.9,
    topk=30,
)

# Process audio chunks in real time
print("Starting streaming generation...")
for audio_chunk in audio_generator:
    # In a real application, you could push audio_chunk straight to a player or network stream
    all_audio.append(audio_chunk)

# Concatenate and save to a file (for demonstration only)
full_audio = torch.cat(all_audio, dim=1)
torchaudio.save("stream_dialogue.wav", full_audio, 24000)

Going Further: Fine-Tuning

The team has kindly published a detailed fine-tuning tutorial. If you are interested, it is well worth a read.

If you have data for a specific speaker, or you want to improve performance in a particular language, you can fine-tune using the example code based on the LJSpeech dataset.

Resources

Final Thoughts

When I was making videos, recording audio was the hardest part. The equipment, the noise reduction, my own voice. I was never happy with any of it. For a long time I resisted using TTS projects for voice-over, because the generated speech sounded stiff and characterless to me. But over the past two years, TTS has progressed remarkably fast, and much of the time the output is indistinguishable from real speech. Whether you want to clone your own voice or a celebrity's, it is now easy and effortless. Once I have time to explore it in depth, I will see about getting back into making videos.

Technology keeps moving forward. Try more things, use more tools, and let the best ones win. You will find the tool that suits you.

Share: