Skip to content

Dia - Text to Dialogue: Nari Labs' Open 1.6B Dialogue Model

AINewss Editorial Team

Dia - Text to Dialogue is Nari Labs' 1.6B open-weight model for generating multi-speaker audio from scripts. This guide explains its byte-tokenizer and DAC architecture, the [S1]/[S2] script format, non-verbal sounds, voice cloning by audio conditioning, runnable Transformers code and documented limits.

View 1 reference
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

Two speaker labels in a dialogue script with sound waves and expression tags.

What is Dia - Text to Dialogue?

Dia - Text to Dialogue is a 1.6-billion-parameter open-weight text-to-speech model from Nari Labs that generates realistic multi-speaker conversations from a transcript. Its distinguishing feature is dialogue structure: speakers are marked explicitly, and non-verbal sounds are part of the output.

Unlike a single-voice narrator, Dia is built around exchanges. It can produce laughter and coughing, and it supports emotion and tone control through audio conditioning. The original code is at github.com/nari-labs/dia, with checkpoints under the nari-labs Hugging Face organization. Dia is integrated into Transformers through AutoProcessor and DiaForConditionalGeneration. Transformers documentation

How does the Dia model generate dialogue?

Dia uses an encoder-decoder Transformer with RoPE, a byte tokenizer on the text side and a pretrained DAC codec on the audio side. The decoder predicts discrete codec tokens that DAC converts back into waveform audio. Speaker identity comes from transcript markers rather than separate voice models.

The encoder configuration in the documentation has 12 hidden layers, 1024 hidden dimensions, 16 attention heads and a 256-token byte vocabulary. The decoder has 18 layers, 2048 hidden dimensions, 9 audio channels, a 1028-token vocabulary and a delay pattern of [0, 8, 9, 10, 11, 12, 13, 14, 15]. Speaker identity comes from transcript markers rather than from separate voice models. This is a text-to-dialogue design: you supply the words, and the model supplies the delivery. Architecture details

How do you write a script for Dia - Text to Dialogue?

Write a transcript with [S1] and [S2] speaker tags in sequence, and optionally add non-verbal cues in parentheses. The model reads the tags as instructions about who speaks next. Since 256 generated tokens correspond to about two seconds of audio, longer scripts need a larger token budget.

A minimal two-speaker script looks like this:

[S1] Dia is an open weights text to dialogue model. [S2] You get full control over scripts and voices. [S1] Wow. Amazing. (laughs)

The docs show multi-turn examples such as [S1] I know. It's going to save me a lot of money, I hope. [S2] I sure hope so for you. Non-verbal communication is a first-class feature: the documentation explicitly names laughter and coughing as outputs. Keep in mind that max_new_tokens=256 corresponds to only about two seconds of audio, so longer scripts need a larger token budget.

It is worth separating the model from similarly named web tools. A site called dia-tts.com offers a browser-based Text to Dialogue editor with up to 12 dialogue blocks and 5,000 characters, using expression tags such as [laughs] and [whispers]. That is a product built around a workflow, not the Nari Labs open model described here. Script format

How do you clone a voice with Dia?

Voice cloning works by passing reference audio to the processor alongside the text. There is no separate endpoint; audio conditioning is part of the same generation call, and get_audio_prompt_len separates cloned prompt audio from newly generated output. The documentation explains how, but not when cloning is appropriate.

The documented pattern casts a dataset audio column to 44.1 kHz, passes it as audio=audio, then uses processor.get_audio_prompt_len(...) to find how much of the decoded output is the new audio rather than the prompt. The text should contain the transcript of the reference clip plus the lines you want to generate.

from transformers import AutoProcessor, DiaForConditionalGeneration

checkpoint = "nari-labs/Dia-1.6B-0626"
processor = AutoProcessor.from_pretrained(checkpoint)
model = DiaForConditionalGeneration.from_pretrained(checkpoint, device_map="auto")

inputs = processor(
    text=["[S1] I know. It's going to save me a lot of money, I hope. [S2] I sure hope so for you."],
    audio=audio, padding=True, return_tensors="pt",
).to(model.device)
prompt_len = processor.get_audio_prompt_len(inputs["decoder_attention_mask"])
outputs = model.generate(**inputs, max_new_tokens=256)
processor.save_audio(outputs, "example_with_audio.wav", audio_prompt_len=prompt_len)

Voice cloning raises consent and impersonation questions that the documentation does not resolve for you. Treat audio conditioning as a capability that needs your own policy around whose voices may be copied. Audio conditioning example

How do you run Dia in Transformers?

Install Transformers with audio dependencies, load the processor and model from nari-labs/Dia-1.6B-0626, generate codec tokens, then decode and save the audio. The processor expects audio shaped as channels by time and recommends passing the sampling rate explicitly to avoid silent errors.

from transformers import AutoProcessor, DiaForConditionalGeneration

checkpoint = "nari-labs/Dia-1.6B-0626"
text = ["[S1] Dia is an open weights text to dialogue model."]

model = DiaForConditionalGeneration.from_pretrained(checkpoint, device_map="auto")
processor = AutoProcessor.from_pretrained(checkpoint)
inputs = processor(text=text, padding=True, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
outputs = processor.batch_decode(outputs)
processor.save_audio(outputs, "example.wav")

The processor expects audio shaped (C, T), where C is channels and T is sample length, and recommends passing the sampling rate explicitly to avoid silent errors. DiaProcessor cannot combine output_labels=True with generation=True; use generation=False and output_labels=True for training. The delay pattern length must match num_channels. These are the kinds of constraints that produce confusing failures if ignored.

What are the limits of Dia - Text to Dialogue?

Dia is a script-to-speech model, not a dialogue writer. It will not invent what two speakers should say; you provide the transcript, and it supplies voices and delivery. The Transformers documentation also omits several things you might expect: a named license, supported languages, quality or latency benchmarks, and an explicit safety policy.

That license gap is the most important limitation. The documentation calls Dia open-source and the example text says "open weights," but neither phrase is a license grant. Check the repository and model card for exact terms before any commercial deployment. The technical limits are clearer: the text encoder caps positions at 1024, the decoder at 3072, max_new_tokens=256 yields roughly two seconds of audio, and audio input must follow the channel-by-time shape above.

Finally, voice cloning means anyone with a short reference clip can imitate a speaker. The docs describe how to do it but not when you should. Add your own consent checks and labeling before publishing generated dialogue that uses a real person's voice. Documentation

Frequently asked questions about Dia - Text to Dialogue

These questions cover what a team checks before adopting Dia: who built it, which checkpoint to load, whether it writes dialogue, whether it makes sound effects, and what the license says. Each answer stays within the official documentation and flags where a legal or policy decision is still required.

Who made Dia?

Nari Labs. The model is hosted under the nari-labs Hugging Face organization and the code is at github.com/nari-labs/dia. Transformers integration was contributed by Jaeyong Sung, Arthur Zucker and Anton Vlasjuk.

What checkpoint should I load?

The documentation uses nari-labs/Dia-1.6B-0626. A related default configuration is nari-labs/Dia-1.6B; check the model card if you need a specific release.

Does Dia write dialogue for me?

No. It converts a transcript into audio. If you need the words written, use a text model first and then pass the script to Dia.

Can it produce sound effects?

It can generate non-verbal communications such as laughter and coughing from cues in the transcript. It is not a general sound-effect generator.

Is Dia free for commercial use?

The Transformers documentation does not state a license. "Open weights" is not a legal term, so verify the repository and model card before using it commercially.

Bottom line

Dia - Text to Dialogue is a practical choice when you already have scripts and want distinct speakers, expressive delivery and non-verbal sounds from a small open model. Two checks come before adoption: confirm the license terms, and set a clear policy for voice cloning. The technical interface is straightforward; the policy questions are not.

References

  1. Dia model documentationhuggingface.co