TECHNOLOGY

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

In this article
THE QUICK TAKE

Reference text describes the conditioning recording, while generated text supplies the new utterance; their pairing affects both model input and inference preparation.

Separate reference content from the new script

The F5-TTS paper 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 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 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 and inference evaluation 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.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles