﻿# Dia dialogue inputs: speaker tags organize turns rather than name fixed voices

Prepare original Dia dialogue scripts with consistent speaker turns and reference transcripts, preserving the distinction between symbolic roles and conditioned acoustic identity.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-dia-dialogue-speaker-tags-reference-transcript/
Language: en

## Scope the original Dia release

The [official checkpoint card](https://huggingface.co/nari-labs/Dia-1.6B-0626) presents dialogue generation from a transcript and optional audio conditioning. This guide concerns the original Dia interface. A speaker marker in that interface identifies a script role; it should not be treated as a globally registered voice name that always maps to the same acoustic person across independent unconditioned generations. Distinguish role structure from the evidence used to condition a particular voice.

## Preserve the turn grammar

The [project generation guidelines](https://raw.githubusercontent.com/nari-labs/dia/main/README.md) recommend starting with `[S1]` and alternating it with `[S2]`. A dialogue editor that inserts a marker before every sentence can accidentally create adjacent turns for the same role. Merge or otherwise prepare consecutive material according to the documented input convention before generation. These are model-facing control markers, so removing them as decorative markup changes the input rather than merely improving presentation.

## Bind reference audio to its transcript

For audio-conditioned generation, the project asks for the reference transcript before the new script and consistent speaker tags in that transcript. The [Transformers integration](https://huggingface.co/docs/transformers/model_doc/dia) documents the corresponding model and processor route. A reference file and unrelated text do not form the same conditioning example merely because both are valid inputs separately. Maintain their association and keep the boundary between already spoken reference content and newly requested dialogue explicit in the application.

## Test a script-editor migration

Suppose an editor stores each sentence independently and later assembles a dialogue. Compare the final model-facing script before and after that migration, including role alternation, reference prefix, and nonverbal annotations. A visually unchanged preview can hide normalization that removed tags or moved reference text. Use a short controlled exchange and retain the exact prepared inputs. This checks input integrity without promising identical stochastic audio or implying that every supported nonverbal annotation is guaranteed to appear naturally.

## Evaluate structure and sound separately

Record checkpoint, processor revision, prepared script, reference association, and generation settings. Guides to [audio representations](/journal/audio-codec-token-generation/) and [inference evaluation](/journal/inference-benchmark-method/) provide context. Evaluate spoken-content fidelity, turn attribution, and acoustic continuity separately. A valid waveform and a plausible voice do not prove that the intended dialogue structure survived preprocessing; conversely, correct role markers alone do not establish a persistent acoustic identity across unrelated requests.
