AI Slop Code RIsk Monitor

SWivid/F5-TTS

Official code for "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"

9.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for SWivid/F5-TTS, a Python project with 15,371 GitHub stars. SynthScan examined 21,032 lines of code across 81 source files, recording 153 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 9.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

9.8
Adjusted Signal
9.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
15.4K
Stars
Python
Language
21.0K
Lines of Code
81
Files
153
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 80 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.4/100 · LOW

Are imports declared and package/API names verified? 38 finding(s).

Agent Over-Engineering Ratio 24.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 71 finding(s).

PR Review Velocity Impact 41.4/100 · MEDIUM

Which changes need focused human review? 153 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 10MEDIUM 11LOW 132

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 153 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Unused Imports37 hits · 34 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py24CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py25CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py26CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py27CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py30CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py38CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py39CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py40CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py42CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py43CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py44CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py45CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py46CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py48CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py49CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py51CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py54CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py54CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py54CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py55CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py57CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py58CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py59CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/f5tts/model.py1CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/f5tts/modules.py1CODE
LOWsrc/f5_tts/model/cfm.py11CODE
LOWsrc/f5_tts/model/__init__.py1CODE
LOWsrc/f5_tts/model/__init__.py2CODE
LOWsrc/f5_tts/model/__init__.py3CODE
LOWsrc/f5_tts/model/__init__.py4CODE
LOWsrc/f5_tts/model/__init__.py5CODE
LOWsrc/f5_tts/model/utils.py3CODE
LOWsrc/f5_tts/model/modules.py11CODE
LOWsrc/f5_tts/model/trainer.py1CODE
LOWsrc/f5_tts/model/backbones/mmdit.py11CODE
LOWsrc/f5_tts/model/backbones/unett.py11CODE
LOWsrc/f5_tts/model/backbones/dit.py11CODE
Deep Nesting27 hits · 27 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/socket_server.py180CODE
LOWsrc/f5_tts/socket_server.py43CODE
LOWsrc/f5_tts/runtime/triton_trtllm/benchmark.py275CODE
LOW…time/triton_trtllm/model_repo_f5_tts/f5_tts/1/model.py57CODE
LOW…ts/runtime/triton_trtllm/scripts/convert_checkpoint.py26CODE
LOW…ts/runtime/triton_trtllm/scripts/convert_checkpoint.py113CODE
LOW…ts/runtime/triton_trtllm/scripts/convert_checkpoint.py253CODE
LOWsrc/f5_tts/model/utils.py112CODE
LOWsrc/f5_tts/model/utils.py148CODE
LOWsrc/f5_tts/model/trainer.py150CODE
LOWsrc/f5_tts/model/trainer.py265CODE
LOWsrc/f5_tts/model/backbones/unett.py244CODE
LOWsrc/f5_tts/train/finetune_gradio.py342CODE
LOWsrc/f5_tts/train/finetune_gradio.py714CODE
LOWsrc/f5_tts/train/finetune_gradio.py226CODE
LOWsrc/f5_tts/train/finetune_cli.py81CODE
LOWsrc/f5_tts/train/datasets/prepare_emilia_v2.py21CODE
LOWsrc/f5_tts/train/datasets/prepare_csv_wavs.py106CODE
LOWsrc/f5_tts/train/datasets/prepare_emilia.py111CODE
LOWsrc/f5_tts/infer/utils_infer.py298CODE
LOWsrc/f5_tts/infer/utils_infer.py440CODE
LOWsrc/f5_tts/infer/infer_gradio.py133CODE
LOWsrc/f5_tts/eval/ecapa_tdnn.py165CODE
LOWsrc/f5_tts/eval/eval_seedtts_testset.py48CODE
LOWsrc/f5_tts/eval/eval_librispeech_test_clean.py49CODE
LOWsrc/f5_tts/eval/eval_infer_batch.py39CODE
LOWsrc/f5_tts/eval/utils_eval.py308CODE
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHsrc/f5_tts/model/cfm.py0ein notation: b - batch n - sequence nt - text sequence nw - raw wave length d - dimensionSTRING
HIGHsrc/f5_tts/model/modules.py0ein notation: b - batch n - sequence nt - text sequence nw - raw wave length d - dimensionSTRING
HIGHsrc/f5_tts/model/backbones/mmdit.py0ein notation: b - batch n - sequence nt - text sequence nw - raw wave length d - dimensionSTRING
HIGHsrc/f5_tts/model/backbones/unett.py0ein notation: b - batch n - sequence nt - text sequence nw - raw wave length d - dimensionSTRING
HIGHsrc/f5_tts/model/backbones/dit.py0ein notation: b - batch n - sequence nt - text sequence nw - raw wave length d - dimensionSTRING
Excessive Try-Catch Wrapping17 hits · 21 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/socket_client.py53 except Exception as e:CODE
LOWsrc/f5_tts/socket_server.py194 except Exception as inner_e:CODE
LOWsrc/f5_tts/socket_server.py198 except Exception as e:CODE
MEDIUMsrc/f5_tts/socket_server.py180def handle_client(conn, processor):CODE
LOW…ts/runtime/triton_trtllm/scripts/convert_checkpoint.py264 except Exception as e:CODE
LOWsrc/f5_tts/model/utils.py46 except Exception:CODE
LOWsrc/f5_tts/train/finetune_gradio.py489 except Exception as e:CODE
LOWsrc/f5_tts/train/finetune_gradio.py591 except Exception as e: # Catch all exceptionsCODE
LOWsrc/f5_tts/train/finetune_gradio.py782 except Exception as e:CODE
MEDIUMsrc/f5_tts/train/finetune_gradio.py784 print(f"Error processing {file_audio}: {e}")CODE
LOWsrc/f5_tts/train/finetune_gradio.py970 except Exception as e:CODE
MEDIUMsrc/f5_tts/train/finetune_gradio.py314def terminate_process_tree(pid, including_parent=True):CODE
LOWsrc/f5_tts/train/datasets/prepare_csv_wavs.py87 except Exception as e:CODE
LOWsrc/f5_tts/train/datasets/prepare_csv_wavs.py145 except Exception as e:CODE
MEDIUMsrc/f5_tts/train/datasets/prepare_csv_wavs.py146 print(f"Error processing file: {e}")CODE
LOWsrc/f5_tts/train/datasets/prepare_csv_wavs.py176 except Exception as e:CODE
LOWsrc/f5_tts/train/datasets/prepare_csv_wavs.py205 except Exception as e:CODE
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/api.py24CODE
LOWsrc/f5_tts/api.py98CODE
LOWsrc/f5_tts/runtime/triton_trtllm/client_http.py106CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/f5tts/modules.py276CODE
LOWsrc/f5_tts/model/cfm.py35CODE
LOWsrc/f5_tts/model/cfm.py84CODE
LOWsrc/f5_tts/model/dataset.py83CODE
LOWsrc/f5_tts/model/modules.py35CODE
LOWsrc/f5_tts/model/trainer.py27CODE
LOWsrc/f5_tts/model/backbones/mmdit.py88CODE
LOWsrc/f5_tts/model/backbones/mmdit.py262CODE
LOWsrc/f5_tts/model/backbones/unett.py109CODE
LOWsrc/f5_tts/model/backbones/dit.py171CODE
LOWsrc/f5_tts/model/backbones/dit.py370CODE
LOWsrc/f5_tts/infer/utils_infer.py384CODE
LOWsrc/f5_tts/infer/utils_infer.py440CODE
LOWsrc/f5_tts/eval/ecapa_tdnn.py53CODE
LOWsrc/f5_tts/eval/ecapa_tdnn.py86CODE
LOWsrc/f5_tts/eval/ecapa_tdnn.py165CODE
LOWsrc/f5_tts/eval/ecapa_tdnn.py310CODE
LOWsrc/f5_tts/eval/utils_eval.py72CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsrc/f5_tts/train/finetune_gradio.py325except OSError:CODE
HIGHsrc/f5_tts/train/finetune_gradio.py330except OSError:CODE
HIGHsrc/f5_tts/train/finetune_gradio.py548except queue.Empty:CODE
HIGHsrc/f5_tts/train/finetune_gradio.py558except queue.Empty:CODE
Hyper-Verbose Identifiers15 hits · 15 pts
SeverityFileLineSnippetContext
LOW…time/triton_trtllm/model_repo_f5_tts/f5_tts/1/model.py155 def get_vocos_mel_spectrogram(self, waveform):CODE
LOW…ts/runtime/triton_trtllm/scripts/convert_checkpoint.py113def convert_pytorch_dit_to_trtllm_weight(args, mapping, dtype="float32", use_ema=True):CODE
LOWsrc/f5_tts/model/utils.py61def mask_from_start_end_indices(seq_len: int["b"], start: int["b"], end: int["b"]):CODE
LOWsrc/f5_tts/model/modules.py35def get_bigvgan_mel_spectrogram(CODE
LOWsrc/f5_tts/model/modules.py80def get_vocos_mel_spectrogram(CODE
LOWsrc/f5_tts/model/backbones/dit.py55 def average_upsample_text_by_mask(self, text, text_mask, target_lens):CODE
LOWsrc/f5_tts/train/finetune_gradio.py1128def get_random_sample_prepare(project_name):CODE
LOWsrc/f5_tts/train/finetune_gradio.py1141def get_random_sample_transcribe(project_name):CODE
LOWsrc/f5_tts/infer/utils_infer.py298def preprocess_ref_audio_text(ref_audio_orig, ref_text, show_info=print):CODE
LOWsrc/f5_tts/infer/utils_infer.py540 def infer_single_process_streaming(gen_text, fix_dur):CODE
LOWsrc/f5_tts/infer/utils_infer.py612def remove_silence_for_generated_wav(filename):CODE
LOWsrc/f5_tts/infer/infer_gradio.py541 def make_insert_speech_type_fn(index):CODE
LOWsrc/f5_tts/infer/infer_gradio.py611 def generate_multistyle_speech(CODE
LOWsrc/f5_tts/eval/utils_eval.py18def get_seedtts_testset_metainfo(metalst):CODE
LOWsrc/f5_tts/eval/utils_eval.py36def get_librispeech_test_clean_metainfo(metalst, librispeech_test_clean_path):CODE
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/runtime/triton_trtllm/benchmark.py1# Copyright (c) 2024 Tsinghua Univ. (authors: Xingchen Song)COMMENT
LOWsrc/f5_tts/runtime/triton_trtllm/client_http.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWsrc/f5_tts/runtime/triton_trtllm/client_grpc.py1#!/usr/bin/env python3COMMENT
LOW…time/triton_trtllm/model_repo_f5_tts/f5_tts/1/model.py1# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py1# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…untime/triton_trtllm/scripts/export_vocoder_to_onnx.py1# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.COMMENT
LOW…_tts/runtime/triton_trtllm/scripts/export_vocos_trt.sh1#!/bin/bashCOMMENT
LOWsrc/f5_tts/runtime/triton_trtllm/scripts/conv_stft.py1# Modified from https://github.com/echocatzh/conv-stft/blob/master/conv_stft/conv_stft.pyCOMMENT
LOWsrc/f5_tts/runtime/triton_trtllm/scripts/conv_stft.py21# Permission is hereby granted, free of charge, to any person obtaining a copyCOMMENT
LOWsrc/f5_tts/train/datasets/prepare_wenetspeech4tts.py121 # pinyin vocab size 1349 1348 1344 (no polyphone)COMMENT
LOWsrc/f5_tts/train/datasets/prepare_emilia.py221 # Emilia ZH & ENCOMMENT
LOWsrc/f5_tts/infer/speech_edit.py81fix_duration = [COMMENT
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMsrc/f5_tts/infer/utils_infer.py50# -----------------------------------------COMMENT
MEDIUMsrc/f5_tts/infer/utils_infer.py67# -----------------------------------------COMMENT
MEDIUMsrc/f5_tts/eval/eval_seedtts_testset.py70 # --------------------------------------------------------------------------COMMENT
MEDIUMsrc/f5_tts/eval/eval_librispeech_test_clean.py71 # --------------------------------------------------------------------------COMMENT
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/socket_client.py11logger = logging.getLogger(__name__)CODE
LOWsrc/f5_tts/socket_server.py29logger = logging.getLogger(__name__)CODE
LOWsrc/f5_tts/runtime/triton_trtllm/patch/__init__.py65__all__ = [CODE
LOWsrc/f5_tts/model/__init__.py8__all__ = ["CFM", "UNetT", "DiT", "MMDiT", "Trainer"]CODE
LOWsrc/f5_tts/model/dataset.py224 def set_epoch(self, epoch: int) -> None:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/f5_tts/train/finetune_gradio.py390 # Check if a training process is already runningCOMMENT
LOWsrc/f5_tts/infer/infer_gradio.py722 # Check if all speech types in text are availableCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/f5_tts/train/datasets/prepare_emilia.py2# if use updated new version, i.e. WebDataset, feel free to modify / draft your own scriptCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/f5_tts/infer/utils_infer.py600 # Create a combined spectrogramCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/f5_tts/infer/speech_edit.py66# [leverage https://github.com/MahmoudAshraf97/ctc-forced-aligner to get char level alignment]COMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHsrc/f5_tts/runtime/triton_trtllm/benchmark.py26--tllm-model-dir $TRTLLM_ENGINE_DIR || exit 1STRING