AI Slop Code RIsk Monitor

resemble-ai/chatterbox

SoTA open-source TTS

20.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for resemble-ai/chatterbox, a Python project with 26,834 GitHub stars. SynthScan examined 9,827 lines of code across 62 source files, recording 121 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 20.4 (Elevated 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.

20.4
Adjusted Signal
20.4
Raw Pattern Score
100%
Time Factor
2026-07-21
Last Push
26.8K
Stars
Python
Language
9.8K
Lines of Code
62
Files
121
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 18.4/100 · LOW

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

Agent Over-Engineering Ratio 36.7/100 · MEDIUM

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

PR Review Velocity Impact 68.0/100 · HIGH

Which changes need focused human review? 121 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 15MEDIUM 14LOW 92

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 121 distinct pattern matches across 14 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.

Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/chatterbox/models/s3gen/decoder.py244Forward pass of the UNet1DConditional model. Args: x: (B, 80, T) mask (_type_) STRING
HIGHsrc/chatterbox/models/s3gen/xvector.py16Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_STRING
HIGHsrc/chatterbox/models/s3gen/utils/mask.py19 def subsequent_mask( size: int, device: torch.device = torch.device("cpu"), ) -> torch.Tensor: """CSTRING
HIGHsrc/chatterbox/models/s3gen/utils/mask.py60Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHsrc/chatterbox/models/s3gen/utils/mask.py168Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
HIGHsrc/chatterbox/models/s3gen/matcha/decoder.py364Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channelsSTRING
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/chatterbox/tts.py0quick cleanup func for punctuation from llms or containing chars not seen often in the datasetSTRING
HIGHsrc/chatterbox/tts_turbo.py0quick cleanup func for punctuation from llms or containing chars not seen often in the datasetSTRING
HIGHsrc/chatterbox/mtl_tts.py0quick cleanup func for punctuation from llms or containing chars not seen often in the datasetSTRING
HIGHsrc/chatterbox/tts.py0conditionals for t3 and s3gen - t3 conditionals: - speaker_emb - clap_emb - cond_prompt_speech_tokens - cond_prompt_speeSTRING
HIGHsrc/chatterbox/tts_turbo.py0conditionals for t3 and s3gen - t3 conditionals: - speaker_emb - clap_emb - cond_prompt_speech_tokens - cond_prompt_speeSTRING
HIGHsrc/chatterbox/mtl_tts.py0conditionals for t3 and s3gen - t3 conditionals: - speaker_emb - clap_emb - cond_prompt_speech_tokens - cond_prompt_speeSTRING
Unused Imports25 hits · 25 pts
SeverityFileLineSnippetContext
LOWexample_tts_turbo.py2CODE
LOWexample_tts_nano.py2CODE
LOWsrc/chatterbox/__init__.py9CODE
LOWsrc/chatterbox/__init__.py10CODE
LOWsrc/chatterbox/__init__.py11CODE
LOWsrc/chatterbox/__init__.py11CODE
LOWsrc/chatterbox/models/tokenizers/__init__.py1CODE
LOWsrc/chatterbox/models/tokenizers/__init__.py1CODE
LOWsrc/chatterbox/models/s3tokenizer/__init__.py1CODE
LOWsrc/chatterbox/models/s3tokenizer/__init__.py1CODE
LOWsrc/chatterbox/models/s3tokenizer/__init__.py1CODE
LOWsrc/chatterbox/models/s3tokenizer/__init__.py1CODE
LOWsrc/chatterbox/models/s3tokenizer/__init__.py1CODE
LOWsrc/chatterbox/models/t3/__init__.py1CODE
LOWsrc/chatterbox/models/t3/t3.py4CODE
LOWsrc/chatterbox/models/t3/t3.py4CODE
LOWsrc/chatterbox/models/t3/inference/t3_hf_backend.py4CODE
LOWsrc/chatterbox/models/t3/modules/learned_pos_emb.py1CODE
LOWsrc/chatterbox/models/t3/modules/learned_pos_emb.py4CODE
LOWsrc/chatterbox/models/voice_encoder/__init__.py1CODE
LOWsrc/chatterbox/models/voice_encoder/__init__.py1CODE
LOWsrc/chatterbox/models/s3gen/__init__.py1CODE
LOWsrc/chatterbox/models/s3gen/__init__.py2CODE
LOWsrc/chatterbox/models/s3gen/flow.py23CODE
LOWsrc/chatterbox/models/s3gen/flow_matching.py14CODE
Over-Commented Block19 hits · 19 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/models/t3/t3.py281 speech_head=self.speech_head,COMMENT
LOWsrc/chatterbox/models/s3gen/decoder.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWsrc/chatterbox/models/s3gen/flow.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWsrc/chatterbox/models/s3gen/hifigan.py1# jrm: adapted from CosyVoice/cosyvoice/hifigan/generator.pyCOMMENT
LOWsrc/chatterbox/models/s3gen/f0_predictor.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu)COMMENT
LOWsrc/chatterbox/models/s3gen/s3gen.py1# Modified from CosyVoice https://github.com/FunAudioLLM/CosyVoiceCOMMENT
LOWsrc/chatterbox/models/s3gen/flow_matching.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du)COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/attention.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWsrc/chatterbox/models/s3gen/transformer/attention.py161 Returns:COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/attention.py281 # cache(1, head, 0, d_k * 2) (16/-1, -1/-1, 16/0 mode)COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/subsampling.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/convolution.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOW…hatterbox/models/s3gen/transformer/upsample_encoder.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/embedding.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOW…c/chatterbox/models/s3gen/transformer/encoder_layer.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWsrc/chatterbox/models/s3gen/transformer/activation.py1# Copyright (c) 2020 Johns Hopkins University (Shinji Watanabe)COMMENT
LOW…/models/s3gen/transformer/positionwise_feed_forward.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWsrc/chatterbox/models/s3gen/utils/class_utils.py1# Copyright [2023-11-28] <sxc19@mails.tsinghua.edu.cn, Xingchen Song>COMMENT
LOWsrc/chatterbox/models/s3gen/utils/mask.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
Dead Code9 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py63CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py64CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py66CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py69CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py70CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py71CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py73CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py74CODE
MEDIUMsrc/chatterbox/models/s3gen/flow_matching.py76CODE
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/tts_turbo.py272CODE
LOWsrc/chatterbox/models/t3/t3.py226CODE
LOWsrc/chatterbox/models/s3gen/decoder.py100CODE
LOWsrc/chatterbox/models/s3gen/flow.py44CODE
LOWsrc/chatterbox/models/s3gen/hifigan.py291CODE
LOWsrc/chatterbox/models/s3gen/xvector.py91CODE
LOWsrc/chatterbox/models/s3gen/xvector.py127CODE
LOWsrc/chatterbox/models/s3gen/xvector.py341CODE
LOW…hatterbox/models/s3gen/transformer/upsample_encoder.py101CODE
LOWsrc/chatterbox/models/s3gen/utils/mask.py86CODE
LOWsrc/chatterbox/models/s3gen/utils/mel.py21CODE
LOWsrc/chatterbox/models/s3gen/utils/mel.py36CODE
LOWsrc/chatterbox/models/s3gen/matcha/decoder.py61CODE
LOWsrc/chatterbox/models/s3gen/matcha/decoder.py162CODE
LOWsrc/chatterbox/models/s3gen/matcha/decoder.py201CODE
LOWsrc/chatterbox/models/s3gen/matcha/transformer.py159CODE
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHgradio_tts_turbo_app.py62 if (end < current_text.length && current_text[end] === ' ') suffix = "";CODE
HIGHgradio_tts_app.py61 min_p = gr.Slider(0.00, 1.00, step=0.01, label="min_p || Newer Sampler. Recommend 0.02 > 0.1. Handles HiCODE
HIGHgradio_tts_app.py62 top_p = gr.Slider(0.00, 1.00, step=0.01, label="top_p || Original Sampler. 1.0 Disables(recommended). OrCODE
Excessive Try-Catch Wrapping9 hits · 13 pts
SeverityFileLineSnippetContext
LOW⚡multilingual_app.py150 except Exception as e:CODE
MEDIUM⚡multilingual_app.py151 print(f"Error loading model: {e}")CODE
LOW⚡multilingual_app.py158except Exception as e:CODE
LOWsrc/chatterbox/tts_turbo.py209 except Exception as e:CODE
LOWsrc/chatterbox/tts_turbo.py236 except Exception as e:CODE
MEDIUMsrc/chatterbox/tts_turbo.py228def norm_loudness(self, wav, sr, target_lufs=-27):CODE
LOWsrc/chatterbox/models/tokenizers/tokenizer.py131 except Exception as e:CODE
LOWsrc/chatterbox/models/tokenizers/tokenizer.py187 except Exception as e:CODE
LOWsrc/chatterbox/models/tokenizers/tokenizer.py251 except Exception as e:CODE
Modern AI Meta-Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md46| **Chatterbox-Multilingual V3** [(Language list)](#supported-languages) | **50CODE
MEDIUMREADME.md48| Chatterbox [(Tips and Tricks)](#original-chatterbox-tips) | 500MCODE
MEDIUMsrc/chatterbox/models/s3gen/s3gen.py343 # hallucination prevention, drop special tokensCOMMENT
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/tts_turbo.py24logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/tokenizers/tokenizer.py18logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/t3/t3.py6logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/t3/t3.py30logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/s3gen/flow.py18logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/s3gen/flow.py27logger = logging.getLogger(__name__)CODE
LOWsrc/chatterbox/models/s3gen/utils/mel.py7logger = logging.getLogger(__name__)CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/models/tokenizers/tokenizer.py75CODE
LOWsrc/chatterbox/models/tokenizers/tokenizer.py285CODE
LOWsrc/chatterbox/models/s3gen/decoder.py229CODE
LOWsrc/chatterbox/models/s3gen/xvector.py130CODE
LOWsrc/chatterbox/models/s3gen/utils/mask.py89CODE
LOWsrc/chatterbox/models/s3gen/matcha/decoder.py345CODE
LOWsrc/chatterbox/models/s3gen/matcha/transformer.py96CODE
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWmultilingual_app.py120def get_supported_languages_display() -> str:CODE
LOWsrc/chatterbox/models/t3/inference/t3_hf_backend.py34 def prepare_inputs_for_generation(CODE
LOWsrc/chatterbox/models/t3/modules/perceiver.py22 def _relative_position_bucket(relative_position, causal=True, num_buckets=32, max_distance=128):CODE
LOWsrc/chatterbox/models/t3/modules/perceiver.py84 def scaled_dot_product_attention(self, q, k, v, mask=None):CODE
LOWsrc/chatterbox/models/s3gen/utils/mel.py15def dynamic_range_compression_torch(x, C=1, clip_val=1e-5):CODE
LOWsrc/chatterbox/models/s3gen/utils/intmeanflow.py5def get_intmeanflow_time_mixer(dims):CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/vc.py63 # Check if MPS is available on macOSCOMMENT
LOWsrc/chatterbox/tts.py169 # Check if MPS is available on macOSCOMMENT
LOWsrc/chatterbox/tts_turbo.py193 # Check if MPS is available on macOSCOMMENT
LOWsrc/chatterbox/mtl_tts.py233 # Check if MPS is available on macOSCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/chatterbox/models/s3gen/transformer/convolution.py124 # It's better we just return None if no cache is required,COMMENT