AI Slop Code RIsk Monitor

OpenBMB/VoxCPM

VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning

18.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for OpenBMB/VoxCPM, a Python project with 38,545 GitHub stars. SynthScan examined 14,861 lines of code across 65 source files, recording 202 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 18.3 (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.

18.3
Adjusted Signal
18.3
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
38.5K
Stars
Python
Language
14.9K
Lines of Code
65
Files
202
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 34.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 13.6/100 · LOW

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

Agent Over-Engineering Ratio 46.3/100 · MEDIUM

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

PR Review Velocity Impact 60.0/100 · HIGH

Which changes need focused human review? 202 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 8MEDIUM 15LOW 179

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 202 distinct pattern matches across 10 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.

Hyper-Verbose Identifiers64 hits · 70 pts
SeverityFileLineSnippetContext
LOWlora_ft_webui.py131def load_lora_config_from_checkpoint(lora_path):CODE
LOWlora_ft_webui.py941 def on_pretrained_path_change(path):STRING
LOWtests/test_training_data.py52def test_load_mixed_duration_manifest_and_fill_missing_metadata(tmp_path):CODE
LOWtests/test_training_data.py79def test_existing_duration_does_not_read_audio_file(tmp_path):CODE
LOWtests/test_training_data.py94def test_reference_duration_is_filled_and_used_for_length(tmp_path):CODE
LOWtests/test_training_data.py118def test_compute_lengths_rejects_missing_duration():CODE
LOWtests/test_training_data.py131def test_relative_audio_paths_are_resolved_from_manifest_directory(tmp_path, monkeypatch):CODE
LOWtests/test_training_data.py150def test_rejects_non_positive_worker_count(tmp_path):CODE
LOWtests/test_lora_checkpoint_loading.py118def test_load_lora_weights_accepts_tensor_only_legacy_checkpoints(monkeypatch, tmp_path, module_name):CODE
LOWtests/test_lora_checkpoint_loading.py132def test_load_lora_weights_rejects_malicious_pickle_payloads(monkeypatch, tmp_path, module_name):CODE
LOW⚡tests/test_model_utils.py23def test_resolve_runtime_device_auto_falls_back_to_cpu(monkeypatch):CODE
LOW⚡tests/test_model_utils.py30def test_resolve_runtime_device_auto_uses_mps_when_available(monkeypatch):CODE
LOW⚡tests/test_model_utils.py37def test_resolve_runtime_device_respects_explicit_cpu(monkeypatch):CODE
LOW⚡tests/test_model_utils.py44def test_resolve_runtime_device_rejects_unavailable_explicit_cuda(monkeypatch):CODE
LOW⚡tests/test_model_utils.py52def test_materialize_generation_seed_preserves_explicit_seed():CODE
LOW⚡tests/test_model_utils.py56def test_materialize_generation_seed_creates_concrete_seed_for_none(monkeypatch):CODE
LOW⚡tests/test_model_utils.py62def test_apply_generation_seed_sets_cpu_and_cuda_rng(monkeypatch):CODE
LOWtests/test_timestamps.py14def test_split_word_items_to_chars_evenly_distributes_word_duration():CODE
LOWtests/test_timestamps.py25def test_split_word_items_to_chars_skips_empty_text():CODE
LOWtests/test_validate.py177 def test_validation_result_properties(self):CODE
LOWtests/test_validate.py187 def test_invalid_audio_not_counted_as_valid(self, tmp_dir):CODE
LOWtests/test_validate.py200 def test_sample_rate_mismatch(self, tmp_dir):CODE
LOWtests/test_validate.py222 def test_mixed_ref_audio_warns_for_each_missing(self, tmp_dir):CODE
LOWtests/test_validate.py241 def test_cli_validate_exit_code(self, tmp_dir):CODE
LOWtests/test_cli.py71def test_load_model_respects_no_optimize_for_local_model(monkeypatch):CODE
LOWtests/test_cli.py99def test_load_model_defaults_optimize_for_hf(monkeypatch):CODE
LOWtests/test_cli.py125def test_load_model_respects_no_optimize_for_hf(monkeypatch):CODE
LOWtests/test_cli.py152def test_load_model_passes_explicit_device_to_hf(monkeypatch):CODE
LOWtests/test_cli.py179def test_design_subcommand_applies_control(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py202def test_clone_subcommand_reads_prompt_file(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py279def test_legacy_root_args_still_work_and_warn(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py299def test_batch_subcommand_applies_control(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py326def test_design_writes_timestamp_json_when_requested(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py370def test_timestamp_alignment_failure_warns_by_default(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py395def test_timestamp_alignment_failure_exits_in_strict_mode(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py420def test_batch_writes_one_timestamp_json_per_output(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py460def test_legacy_clone_with_prompt_file_still_works(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py489def test_invalid_prompt_text_and_prompt_file_combination(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py520def test_missing_prompt_file_reports_parser_error(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py546def test_design_rejects_prompt_audio_args(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py572def test_clone_rejects_prompt_audio_without_transcript(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py596def test_clone_rejects_transcript_without_prompt_audio(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py618def test_batch_rejects_control_with_prompt_transcript(monkeypatch, tmp_path, capsys):CODE
LOWtests/test_cli.py648def test_detect_model_architecture_uses_local_configs():CODE
LOWtests/test_cli.py692def test_design_subcommand_passes_seed(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py713def test_batch_subcommand_passes_seed(monkeypatch, tmp_path):CODE
LOWtests/test_torch_load_safety.py49def test_every_torch_load_sets_weights_only_true():CODE
LOWtests/test_torch_load_safety.py67def test_torch_load_weights_only_blocks_malicious_pickle(tmp_path):CODE
LOWsrc/voxcpm/cli.py90def detect_model_architecture(args) -> str | None:CODE
LOWsrc/voxcpm/cli.py112def validate_prompt_related_args(args, parser, prompt_text: str | None):CODE
LOWsrc/voxcpm/cli.py123def validate_reference_support(args, parser):CODE
LOW⚡src/voxcpm/cli.py398def _add_common_generation_args(parser):CODE
LOWsrc/voxcpm/cli.py426def _add_prompt_reference_args(parser):CODE
LOWsrc/voxcpm/timestamps/stable_ts.py81def split_word_items_to_chars(words: list[TimestampItem]) -> list[TimestampItem]:CODE
LOWsrc/voxcpm/training/packers.py322 def process_tts_data_with_ref(CODE
LOW⚡src/voxcpm/model/voxcpm.py596 def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:CODE
LOW⚡src/voxcpm/model/voxcpm.py599 def generate_with_prompt_cache_streaming(CODE
LOW⚡src/voxcpm/model/voxcpm.py605 def _generate_with_prompt_cache(CODE
LOWsrc/voxcpm/model/utils.py27def materialize_generation_seed(seed: Optional[int]) -> int:CODE
LOWsrc/voxcpm/model/utils.py40def mask_multichar_chinese_tokens(tokenizer: PreTrainedTokenizer):CODE
4 more matches not shown…
Excessive Try-Catch Wrapping38 hits · 46 pts
SeverityFileLineSnippetContext
LOWapp_old.py56 except Exception as e:CODE
LOWapp.py419 except Exception as e:CODE
LOWlora_ft_webui.py81 except Exception as e:CODE
LOWlora_ft_webui.py141 except Exception as e:CODE
LOWlora_ft_webui.py217 except Exception as e:CODE
LOWlora_ft_webui.py227 except Exception as e:CODE
LOW⚡lora_ft_webui.py254 except Exception as e:CODE
LOW⚡lora_ft_webui.py260 except Exception as e:CODE
MEDIUM⚡lora_ft_webui.py261 print(f"Error loading LoRA: {e}", file=sys.stderr)CODE
LOWlora_ft_webui.py289 except Exception as e:CODE
LOWlora_ft_webui.py305 except Exception as e:CODE
LOWlora_ft_webui.py387 except Exception:CODE
LOW⚡scripts/train_voxcpm_finetune.py267 except Exception:CODE
LOW⚡scripts/train_voxcpm_finetune.py274 except Exception as e:CODE
MEDIUM⚡scripts/train_voxcpm_finetune.py275 print(f"Error saving checkpoint on signal: {e}", file=sys.stderr)CODE
LOWscripts/train_voxcpm_finetune.py475 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py609 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py665 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py668 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py683 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py851 except Exception:CODE
MEDIUMscripts/train_voxcpm_finetune.py252def _signal_handler(CODE
LOWscripts/test_pick_runtime_dtype.py37 except Exception as e:CODE
LOWscripts/test_pick_runtime_dtype.py56 except Exception as e:CODE
MEDIUMscripts/test_pick_runtime_dtype.py31def expect_raises(fn, exc_type, label):CODE
LOWsrc/voxcpm/zipenhancer.py65 except Exception as e:CODE
LOWsrc/voxcpm/cli.py203 except Exception as e:CODE
LOW⚡src/voxcpm/cli.py222 except Exception as e:CODE
LOWsrc/voxcpm/cli.py352 except Exception as e:CODE
LOWsrc/voxcpm/cli.py381 except Exception as exc:CODE
LOWsrc/voxcpm/training/validate.py52 except Exception as e:CODE
LOWsrc/voxcpm/training/validate.py63 except Exception:CODE
LOWsrc/voxcpm/training/validate.py109 except Exception as e:CODE
LOWsrc/voxcpm/training/data.py86 except Exception as exc:CODE
LOWsrc/voxcpm/model/voxcpm.py248 except Exception as e:CODE
LOWsrc/voxcpm/model/utils.py135 except Exception as e:CODE
LOWsrc/voxcpm/model/voxcpm2.py78 except Exception:CODE
LOWsrc/voxcpm/model/voxcpm2.py298 except Exception as e:CODE
Unused Imports44 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/test_training_data.py3CODE
LOWtests/test_lora_checkpoint_loading.py1CODE
LOWtests/test_model_utils.py1CODE
LOWtests/test_validate.py3CODE
LOWtests/test_validate.py6CODE
LOWtests/test_cli.py1CODE
LOWsrc/voxcpm/__init__.py1CODE
LOWsrc/voxcpm/__init__.py1CODE
LOWsrc/voxcpm/timestamps/stable_ts.py1CODE
LOWsrc/voxcpm/timestamps/postprocess.py1CODE
LOWsrc/voxcpm/timestamps/__init__.py1CODE
LOWsrc/voxcpm/timestamps/__init__.py1CODE
LOWsrc/voxcpm/timestamps/__init__.py2CODE
LOWsrc/voxcpm/timestamps/base.py1CODE
LOWsrc/voxcpm/training/config.py1CODE
LOWsrc/voxcpm/training/__init__.py9CODE
LOWsrc/voxcpm/training/__init__.py10CODE
LOWsrc/voxcpm/training/__init__.py11CODE
LOWsrc/voxcpm/training/__init__.py11CODE
LOWsrc/voxcpm/training/__init__.py11CODE
LOWsrc/voxcpm/training/__init__.py11CODE
LOWsrc/voxcpm/training/__init__.py17CODE
LOWsrc/voxcpm/training/__init__.py18CODE
LOWsrc/voxcpm/training/__init__.py18CODE
LOWsrc/voxcpm/training/tracker.py1CODE
LOWsrc/voxcpm/training/accelerator.py1CODE
LOWsrc/voxcpm/training/state.py1CODE
LOWsrc/voxcpm/model/__init__.py1CODE
LOWsrc/voxcpm/model/__init__.py2CODE
LOWsrc/voxcpm/model/voxcpm.py236CODE
LOWsrc/voxcpm/model/voxcpm2.py286CODE
LOWsrc/voxcpm/modules/layers/__init__.py1CODE
LOWsrc/voxcpm/modules/audiovae/__init__.py1CODE
LOWsrc/voxcpm/modules/audiovae/__init__.py1CODE
LOWsrc/voxcpm/modules/audiovae/__init__.py2CODE
LOWsrc/voxcpm/modules/audiovae/__init__.py2CODE
LOWsrc/voxcpm/modules/locenc/__init__.py1CODE
LOWsrc/voxcpm/modules/minicpm4/__init__.py1CODE
LOWsrc/voxcpm/modules/minicpm4/__init__.py2CODE
LOWsrc/voxcpm/modules/minicpm4/__init__.py3CODE
LOWsrc/voxcpm/modules/locdit/__init__.py1CODE
LOWsrc/voxcpm/modules/locdit/__init__.py1CODE
LOWsrc/voxcpm/modules/locdit/__init__.py2CODE
LOWsrc/voxcpm/modules/locdit/__init__.py3CODE
Decorative Section Separators10 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMsrc/voxcpm/cli.py18# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py20# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py156# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py158# -----------------------------COMMENT
MEDIUM⚡src/voxcpm/cli.py227# -----------------------------COMMENT
MEDIUM⚡src/voxcpm/cli.py229# -----------------------------COMMENT
MEDIUM⚡src/voxcpm/cli.py393# -----------------------------COMMENT
MEDIUM⚡src/voxcpm/cli.py395# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py661# -----------------------------STRING
MEDIUMsrc/voxcpm/cli.py663# -----------------------------STRING
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWapp_old.py152CODE
LOWapp.py354CODE
LOWlora_ft_webui.py86CODE
LOWlora_ft_webui.py192CODE
LOWtests/test_torch_load_safety.py49CODE
LOWscripts/train_voxcpm_finetune.py46CODE
LOWscripts/train_voxcpm_finetune.py391CODE
LOWscripts/train_voxcpm_finetune.py564CODE
LOWscripts/train_voxcpm_finetune.py773CODE
LOWsrc/voxcpm/core.py207CODE
LOWsrc/voxcpm/training/validate.py67CODE
LOWsrc/voxcpm/model/voxcpm.py360CODE
LOWsrc/voxcpm/model/voxcpm.py605CODE
LOWsrc/voxcpm/model/voxcpm.py881CODE
LOWsrc/voxcpm/model/utils.py141CODE
LOWsrc/voxcpm/model/voxcpm2.py468CODE
LOWsrc/voxcpm/model/voxcpm2.py797CODE
LOWsrc/voxcpm/model/voxcpm2.py1134CODE
LOWsrc/voxcpm/modules/audiovae/audio_vae_v2.py219CODE
LOWsrc/voxcpm/modules/audiovae/audio_vae_v2.py532CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHlora_ft_webui.py387except Exception:CODE
HIGHlora_ft_webui.py116except (json.JSONDecodeError, OSError):CODE
HIGHsrc/voxcpm/zipenhancer.py70except OSError:CODE
HIGHsrc/voxcpm/core.py341except OSError:CODE
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsrc/voxcpm/zipenhancer.py41 Audio denoising enhancement Args: input_path: Input audio file path output_pathSTRING
HIGHsrc/voxcpm/core.py150Instantiate ``VoxCPM`` from a Hugging Face Hub snapshot. Args: hf_model_id: Explicit Hugging Face rSTRING
HIGHsrc/voxcpm/core.py348Load LoRA weights from a checkpoint file. Args: lora_weights_path: Path to LoRA weights (.pth file STRING
HIGHsrc/voxcpm/model/utils.py115Call the tokenizer and return token IDs. This method provides the same interface as the original tokenizer STRING
AI Structural Patterns12 hits · 12 pts
SeverityFileLineSnippetContext
LOWapp.py301CODE
LOWlora_ft_webui.py312CODE
LOWscripts/train_voxcpm_finetune.py46CODE
LOWscripts/train_voxcpm_finetune.py391CODE
LOWscripts/train_voxcpm_finetune.py252CODE
LOWsrc/voxcpm/core.py137CODE
LOWsrc/voxcpm/core.py207CODE
LOWsrc/voxcpm/training/data.py118CODE
LOWsrc/voxcpm/model/voxcpm.py360CODE
LOWsrc/voxcpm/model/voxcpm.py605CODE
LOWsrc/voxcpm/model/voxcpm2.py468CODE
LOWsrc/voxcpm/model/voxcpm2.py797CODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWapp.py22logger = logging.getLogger(__name__)CODE
LOWsrc/voxcpm/__init__.py3__all__ = [CODE
LOWsrc/voxcpm/timestamps/__init__.py4__all__ = [CODE
LOWsrc/voxcpm/training/__init__.py20__all__ = [CODE
LOWsrc/voxcpm/model/__init__.py4__all__ = ["VoxCPMModel", "VoxCPM2Model"]CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/voxcpm/model/voxcpm2.py1053 # - Reference-only / zero-shot (feat_mask ends with 0): start from scratch.COMMENT