﻿# F5-TTS reference text: transcript mismatch also changes duration preparation

Treat F5-TTS reference audio and its transcript as a paired condition, and inspect duration estimation and reference-prefix removal before diagnosing synthesis quality.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-f5-tts-reference-transcript-duration-coupling/
Language: en

## Separate reference content from the new script

The [F5-TTS paper](https://arxiv.org/abs/2410.06885) presents flow-matching speech generation without the conventional explicit phoneme-alignment and duration-model design. That simplification does not mean a reference recording can be paired with arbitrary descriptive text. In a reference-conditioned request, the text attached to the reference describes what that recording says; the generation text specifies the new utterance. Treating the reference transcript as a style description changes the intended conditioning relationship.

## Inspect automatic transcript preparation

The [official repository](https://github.com/SWivid/F5-TTS) exposes separate reference-audio, reference-text, and generation-text arguments. It also documents automatic transcription when the reference text is omitted. That adds an upstream recognition operation with its own potential errors and resource use. A failed transcript can therefore affect synthesis even if the main speech generator is unchanged. Preserve the effective transcript rather than recording only that an automatic mode was requested.

## Follow the duration heuristic

The [inference utility source](https://raw.githubusercontent.com/SWivid/F5-TTS/main/src/f5_tts/infer/utils_infer.py) combines reference and generation text and, when duration is not explicitly fixed, estimates a generation length using reference audio length and text-length information. This is preparation logic around the model, not a universal calibrated law of speaking speed. A mismatched reference transcript can alter this estimate as well as the conditioning content, so apparently unrelated timing defects may share an upstream cause.

## Verify the reference-prefix boundary

The same source removes the reference portion from the generated mel representation before waveform decoding. A wrapper should preserve that boundary rather than returning the conditioning recording again or cutting into the new speech. Consider a short reference followed by a longer requested utterance: inspect the prepared duration and final retained region before increasing the flow-step count. Additional sampling computation does not automatically repair an incorrectly described reference or a misplaced output boundary.

## Record the complete conditioned request

Keep the processed reference audio, effective transcript, new script, duration policy, model variant, vocoder, and output trimming behavior together. Use [artifact validation](/journal/safetensors-artifact-validation/) and [inference evaluation](/journal/inference-benchmark-method/) for supporting records. Compare reference correctness, script fidelity, and timing separately. The practical acceptance target is a coherent reference-and-text contract throughout preparation and decoding, rather than the assumption that a plausible voice and a successful waveform export prove correct conditioning.
