SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.06885 · 2024

F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.06885.json · badge: /api/ran/2410.06885.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
SWivid/F5-TTS canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
get_librispeech_test_clean_metainfo Ran
ran; our contract draft was wrong, not the code
SWivid/F5-TTS/src/f5_tts/eval/utils_eval.py
code served (permissive licence) · get_code("3b68dbc8027d3614")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

# Create temporary files and directories for the function to use
temp_dir = tempfile.mkdtemp()

# Create a temporary metalst file with sample data
metalst_file = os.path.join(temp_dir, 'metalst.txt')
with open(metalst_file, 'w') as f:
    # Format: ref_utt, ref_dur, ref_txt, gen_utt, gen_dur, gen_txt
    f.write("121-121121-0001\t5.2\tthe quick brown fox\t122-122122-0001\t5.1\tthe quick brown fox\n")
    f.write("123-123123-0002\t3.8\tjumps over the lazy dog\t124-124124-0002\t3.9\tjumps over the lazy dog\n")

# Create the librispeech_test_clean_path directory structure
librispeech_test_clean_path = os.path.join(temp_dir, 'librispeech_test_clean')
os.makedirs(librispeech_test_clean_path, exist_ok=True)

# Create the directory structure for reference utterances
os.makedirs(os.path.join(librispeech_test_clean_path, '121', '121121'), exist_ok=True)
os.makedirs(os.path.join(librispeech_test_clean_path, '123', '123123'), exist_ok=True)

# Create the directory structure for generated utterances
os.makedirs(os.path.join(librispeech_test_clean_path, '122', '122122'), exist_ok=True)
os.makedirs(os.path.join(librispeech_test_clean_path, '124', '124124'), exist_ok=True)

# Create dummy .flac files (empty placeholder files)
open(os.path.join(librispeech_test_clean_path, '121', '121121', '121-121121-0001.flac'), 'w').close()
open(os.path.join(librispeech_test_clean_path, '122', '122122', '122-122122-0001.flac'), 'w').close()
open(os.path.join(librispeech_test_clean_path, '123', '123123', '123-123123-0002.flac'), 'w').close()
open(os.path.join(librispeech_test_clean_path, '124', '124124', '124-124124-0002.flac'), 'w').close()

ARGS = {
    'metalst': metalst_file,
    'librispeech_test_clean_path': librispeech_test_clean_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_seedtts_testset_metainfo Ran
ran; our contract draft was wrong, not the code
SWivid/F5-TTS/src/f5_tts/eval/utils_eval.py
code served (permissive licence) · get_code("4c897c4d6c2139e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

# Create a temporary directory and metadata file for testing
temp_dir = tempfile.mkdtemp()
wavs_dir = os.path.join(temp_dir, 'wavs')
os.makedirs(wavs_dir, exist_ok=True)

# Create a metadata file with test data
metalst_path = os.path.join(temp_dir, 'metadata.txt')
with open(metalst_path, 'w') as f:
    # Write a line with 5 fields (utt, prompt_text, prompt_wav, gt_text, gt_wav)
    f.write('utt001|This is prompt text|prompt_wavs/prompt001.wav|This is ground truth text|wavs/utt001.wav\n')
    # Write a line with 4 fields (utt, prompt_text, prompt_wav, gt_text) - gt_wav will be inferred
    f.write('utt002|Another prompt|prompt_wavs/prompt002.wav|Another ground truth\n')

ARGS = {
    'metalst': metalst_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
padded_mel_batch Ran
ran, honoured the contract we drafted
SWivid/F5-TTS/src/f5_tts/eval/utils_eval.py
code served (permissive licence) · get_code("212eceb8638061fc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (3, 7, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a list of mel spectrograms with different lengths
# Each mel has shape (num_mels, time_steps)
ref_mels = [
    torch.randn(4, 5),      # mel 1: 4 mel bins, 5 time steps
    torch.randn(4, 3),      # mel 2: 4 mel bins, 3 time steps
    torch.randn(4, 7),      # mel 3: 4 mel bins, 7 time steps
]

ARGS = {
    "ref_mels": ref_mels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 7, 4) — shape (3, 7, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_gpu_nums Ran
ran, honoured the contract we drafted
SWivid/F5-TTS/src/f5_tts/eval/eval_librispeech_test_clean.py
code served (permissive licence) · get_code("742a3f057beccdd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import ast

def parse_gpu_nums(gpu_nums_str):
    try:
        if gpu_nums_str.startswith('[') and gpu_nums_str.endswith(']'):
            gpu_list = ast.literal_eval(gpu_nums_str)
            if isinstance(gpu_list, list):
                return gpu_list
        return list(range(int(gpu_nums_str)))
    except (ValueError, SyntaxError):
        raise argparse.ArgumentTypeError(f'Invalid GPU specification: {gpu_nums_str}. Use a number (e.g., 8) or a list (e.g., [0,1,2,3])')

ARGS = {
    'gpu_nums_str': '[0,1,2,3]'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ECAPA_TDNN_SMALL Not yet run
unverified (harvested, no recorded run)
SWivid/F5-TTS/src/f5_tts/eval/ecapa_tdnn.py
code served (permissive licence) · get_code("bea543d0e76dfc84")
How it ran

no invocation recorded.

gpu_decorator Not yet run
unverified (harvested, no recorded run)
SWivid/F5-TTS/src/f5_tts/infer/infer_gradio.py
code served (permissive licence) · get_code("812b7ebd84894f26")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
ECAPA_TDNN_SMALL 1 other paper
1 later
2605.06407 (2026-05)
WavCube: Unifying Speech Representation for Understanding and Generation via Semantic-Acoustic Joint Modeling

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper introduces F5-TTS, a fully non-autoregressive text-to-speech system based on flow matching with Diffusion Transformer (DiT). Without requiring complex designs such as duration model, text encoder, and phoneme alignment, the text input is simply padded with filler tokens to the same length as input speech, and then the denoising is performed for speech generation, which was originally proved feasible by E2 TTS. However, the original design of E2 TTS makes it hard to follow due to its slow convergence and low robustness. To address these issues, we first model the input with ConvNeXt to refine the text representation, making it easy to align with the speech. We further propose an inference-time Sway Sampling strategy, which significantly improves our model's performance and efficiency. This sampling strategy for flow step can be easily applied to existing flow matching based models without retraining. Our design allows faster training and achieves an inference RTF of 0.15, which is greatly improved compared to state-of-the-art diffusion-based TTS models. Trained on a public 100K hours multilingual dataset, our F5-TTS exhibits highly natural and expressive zero-shot ability, seamless code-switching capability, and speed control efficiency. We have released all codes and checkpoints to promote community development, at https://SWivid.github.io/F5-TTS/.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.06885")
get_code_for_paper("2410.06885")
have("2410.06885")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.06885.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.06885.svg)](https://syntology.ai/paper/2410.06885)

Connect an agent — have() is free.