OpenViSTAI · Agents · Blockchain · Crypto
Menu
Audio & Voice AI

DIA2

DIA2 is an open-weight streaming dialogue text-to-speech model with 1B and 2B checkpoints and Python inference code. It can start generating audio before the full text is available and can condition generation on audio for conversational use.

Independent OpenViST project profile, based on linked sources.

DIA2 — Streaming dialogue TTS experiments
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use DIA2 when you need a local inference workflow for English dialogue speech that can start before the complete text is available, or when you want to condition generated responses on speaker audio.

Who it is for

  • Researchers evaluating streaming text-to-speech models.
  • Developers prototyping conversational voice systems that generate speech from dialogue text and audio context.

Documented uses

  • Generate speech incrementally as text arrives.
  • Create dialogue audio using speaker-tagged text.
  • Condition generated conversational responses on prior audio.
  • Experiment with the provided 1B and 2B checkpoints.
Before you choose

Requirements & limits

The repository is public and licensed under Apache-2.0; third-party assets retain their own licenses. A Hugging Face Space is linked from the README.

  • The provided checkpoints are 1B and 2B.
  • The README documents English generation up to two minutes.
  • The local CLI requires uv; the README specifies CUDA 12.8+ drivers and says the CLI selects CPU when CUDA is unavailable.
  • Voice and quality vary between generations because the model is not fine-tuned to a specific voice; audio prefixes or fine-tuning are suggested for more stable output.
  • Conditioned generation uses Whisper to transcribe each prefix file, adding processing time.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Generate dialogue audio from a tagged script

Use the repository’s CLI workflow to generate a WAV file from text with speaker tags.

Before you start

  • Install uv.
  • Use CUDA 12.8+ drivers; the CLI selects CPU if CUDA is unavailable.
  • Access to download the model weights and supporting files on first run.

Steps

  1. Install project dependencies with the command below.

    Documented command
    uv sync
  2. Prepare input.txt with dialogue marked using [S1] and [S2] speaker tags.

  3. Run the command below.

    Documented command
    uv run -m dia2.cli --hf nari-labs/Dia2-2B --input input.txt --cfg 6.0 --temperature 0.8 --cuda-graph --verbose output.wav

Expected outcome

The CLI writes generated dialogue audio to `output.wav`.

Guide limitations

  • English generation is limited to up to two minutes.
  • Voice and quality vary between generations; the model is not fine-tuned for a specific voice.
  • The first run downloads weights, tokenizer and Mimi.
Source-based practical guide

Condition dialogue generation on prior audio

Generate a response using audio prefixes as conversational context.

Before you start

  • Install uv and project dependencies; the README specifies CUDA 12.8+ drivers.
  • Prepare a tagged text script and prefix audio files for the two speakers.

Steps

  1. Use the assistant voice as speaker 1’s prefix and the user audio as speaker 2’s prefix, following the repository example.

  2. Run the CLI with --prefix-speaker-1 and --prefix-speaker-2 pointing to the corresponding WAV files, along with the input script and output path.

Expected outcome

The CLI generates a WAV response conditioned on the supplied conversational context.

Guide limitations

  • Whisper transcribes each prefix file, which adds processing time.
  • English generation is limited to up to two minutes, and voice and quality may vary.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
4 November 2026
Original website title
nari-labs/dia2 · Official homepage title · retained in its source language