Repository Analysis

OpenBMB/VoxCPM

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

17.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenBMB/VoxCPM, a Python project with 33,355 GitHub stars. SynthScan v2.0 examined 14,189 lines of code across 61 source files, recording 188 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 17.0 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

17.0
Adjusted Score
17.0
Raw Score
100%
Time Factor
2026-07-08
Last Push
33.4K
Stars
Python
Language
14.2K
Lines of Code
61
Files
188
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 4MEDIUM 15LOW 169

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 188 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers58 hits · 64 pts
SeverityFileLineSnippetContext
LOWlora_ft_webui.py194def load_lora_config_from_checkpoint(lora_path):CODE
LOWlora_ft_webui.py1000 def on_pretrained_path_change(path):STRING
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
LOWtests/test_model_utils.py23def test_resolve_runtime_device_auto_falls_back_to_cpu(monkeypatch):CODE
LOWtests/test_model_utils.py30def test_resolve_runtime_device_auto_uses_mps_when_available(monkeypatch):CODE
LOWtests/test_model_utils.py37def test_resolve_runtime_device_respects_explicit_cpu(monkeypatch):CODE
LOWtests/test_model_utils.py44def test_resolve_runtime_device_rejects_unavailable_explicit_cuda(monkeypatch):CODE
LOWtests/test_model_utils.py52def test_materialize_generation_seed_preserves_explicit_seed():CODE
LOWtests/test_model_utils.py56def test_materialize_generation_seed_creates_concrete_seed_for_none(monkeypatch):CODE
LOWtests/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
LOWsrc/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
LOWsrc/voxcpm/model/voxcpm.py596 def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:CODE
LOWsrc/voxcpm/model/voxcpm.py599 def generate_with_prompt_cache_streaming(CODE
LOWsrc/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
LOWsrc/voxcpm/model/voxcpm2.py788 def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:CODE
LOWsrc/voxcpm/model/voxcpm2.py791 def generate_with_prompt_cache_streaming(CODE
LOWsrc/voxcpm/model/voxcpm2.py797 def _generate_with_prompt_cache(CODE
LOWsrc/voxcpm/modules/layers/lora.py98def apply_lora_to_named_linear_modules(CODE
Excessive Try-Catch Wrapping37 hits · 46 pts
SeverityFileLineSnippetContext
LOWapp_old.py56 except Exception as e:CODE
LOWapp.py419 except Exception as e:CODE
LOWlora_ft_webui.py144 except Exception as e:CODE
LOWlora_ft_webui.py204 except Exception as e:CODE
LOWlora_ft_webui.py280 except Exception as e:CODE
LOWlora_ft_webui.py290 except Exception as e:CODE
LOWlora_ft_webui.py317 except Exception as e:CODE
LOWlora_ft_webui.py323 except Exception as e:CODE
MEDIUMlora_ft_webui.py324 print(f"Error loading LoRA: {e}", file=sys.stderr)CODE
LOWlora_ft_webui.py352 except Exception as e:CODE
LOWlora_ft_webui.py368 except Exception as e:CODE
LOWlora_ft_webui.py447 except Exception:CODE
LOWscripts/train_voxcpm_finetune.py241 except Exception:CODE
LOWscripts/train_voxcpm_finetune.py248 except Exception as e:CODE
MEDIUMscripts/train_voxcpm_finetune.py249 print(f"Error saving checkpoint on signal: {e}", file=sys.stderr)CODE
LOWscripts/train_voxcpm_finetune.py449 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py583 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py639 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py642 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py657 except Exception as e:CODE
LOWscripts/train_voxcpm_finetune.py825 except Exception:CODE
MEDIUMscripts/train_voxcpm_finetune.py226def _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
LOWsrc/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/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 Imports42 hits · 42 pts
SeverityFileLineSnippetContext
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/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
MEDIUMsrc/voxcpm/cli.py227# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py229# -----------------------------COMMENT
MEDIUMsrc/voxcpm/cli.py393# -----------------------------COMMENT
MEDIUMsrc/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.py149CODE
LOWlora_ft_webui.py255CODE
LOWtests/test_torch_load_safety.py49CODE
LOWscripts/train_voxcpm_finetune.py45CODE
LOWscripts/train_voxcpm_finetune.py365CODE
LOWscripts/train_voxcpm_finetune.py538CODE
LOWscripts/train_voxcpm_finetune.py747CODE
LOWsrc/voxcpm/core.py183CODE
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
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.py120Instantiate ``VoxCPM`` from a Hugging Face Hub snapshot. Args: hf_model_id: Explicit Hugging Face rSTRING
HIGHsrc/voxcpm/core.py324Load 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 Patterns11 hits · 11 pts
SeverityFileLineSnippetContext
LOWapp.py301CODE
LOWlora_ft_webui.py375CODE
LOWscripts/train_voxcpm_finetune.py45CODE
LOWscripts/train_voxcpm_finetune.py365CODE
LOWscripts/train_voxcpm_finetune.py226CODE
LOWsrc/voxcpm/core.py107CODE
LOWsrc/voxcpm/core.py183CODE
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