VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lora_ft_webui.py | 194 | def load_lora_config_from_checkpoint(lora_path): | CODE |
| LOW | lora_ft_webui.py | 1000 | def on_pretrained_path_change(path): | STRING |
| LOW | tests/test_lora_checkpoint_loading.py | 118 | def test_load_lora_weights_accepts_tensor_only_legacy_checkpoints(monkeypatch, tmp_path, module_name): | CODE |
| LOW | tests/test_lora_checkpoint_loading.py | 132 | def test_load_lora_weights_rejects_malicious_pickle_payloads(monkeypatch, tmp_path, module_name): | CODE |
| LOW⚡ | tests/test_model_utils.py | 23 | def test_resolve_runtime_device_auto_falls_back_to_cpu(monkeypatch): | CODE |
| LOW⚡ | tests/test_model_utils.py | 30 | def test_resolve_runtime_device_auto_uses_mps_when_available(monkeypatch): | CODE |
| LOW⚡ | tests/test_model_utils.py | 37 | def test_resolve_runtime_device_respects_explicit_cpu(monkeypatch): | CODE |
| LOW⚡ | tests/test_model_utils.py | 44 | def test_resolve_runtime_device_rejects_unavailable_explicit_cuda(monkeypatch): | CODE |
| LOW⚡ | tests/test_model_utils.py | 52 | def test_materialize_generation_seed_preserves_explicit_seed(): | CODE |
| LOW⚡ | tests/test_model_utils.py | 56 | def test_materialize_generation_seed_creates_concrete_seed_for_none(monkeypatch): | CODE |
| LOW⚡ | tests/test_model_utils.py | 62 | def test_apply_generation_seed_sets_cpu_and_cuda_rng(monkeypatch): | CODE |
| LOW | tests/test_timestamps.py | 14 | def test_split_word_items_to_chars_evenly_distributes_word_duration(): | CODE |
| LOW | tests/test_timestamps.py | 25 | def test_split_word_items_to_chars_skips_empty_text(): | CODE |
| LOW | tests/test_validate.py | 177 | def test_validation_result_properties(self): | CODE |
| LOW | tests/test_validate.py | 187 | def test_invalid_audio_not_counted_as_valid(self, tmp_dir): | CODE |
| LOW | tests/test_validate.py | 200 | def test_sample_rate_mismatch(self, tmp_dir): | CODE |
| LOW | tests/test_validate.py | 222 | def test_mixed_ref_audio_warns_for_each_missing(self, tmp_dir): | CODE |
| LOW | tests/test_validate.py | 241 | def test_cli_validate_exit_code(self, tmp_dir): | CODE |
| LOW | tests/test_cli.py | 71 | def test_load_model_respects_no_optimize_for_local_model(monkeypatch): | CODE |
| LOW | tests/test_cli.py | 99 | def test_load_model_defaults_optimize_for_hf(monkeypatch): | CODE |
| LOW | tests/test_cli.py | 125 | def test_load_model_respects_no_optimize_for_hf(monkeypatch): | CODE |
| LOW | tests/test_cli.py | 152 | def test_load_model_passes_explicit_device_to_hf(monkeypatch): | CODE |
| LOW | tests/test_cli.py | 179 | def test_design_subcommand_applies_control(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 202 | def test_clone_subcommand_reads_prompt_file(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 279 | def test_legacy_root_args_still_work_and_warn(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 299 | def test_batch_subcommand_applies_control(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 326 | def test_design_writes_timestamp_json_when_requested(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 370 | def test_timestamp_alignment_failure_warns_by_default(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 395 | def test_timestamp_alignment_failure_exits_in_strict_mode(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 420 | def test_batch_writes_one_timestamp_json_per_output(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 460 | def test_legacy_clone_with_prompt_file_still_works(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 489 | def test_invalid_prompt_text_and_prompt_file_combination(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 520 | def test_missing_prompt_file_reports_parser_error(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 546 | def test_design_rejects_prompt_audio_args(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 572 | def test_clone_rejects_prompt_audio_without_transcript(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 596 | def test_clone_rejects_transcript_without_prompt_audio(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 618 | def test_batch_rejects_control_with_prompt_transcript(monkeypatch, tmp_path, capsys): | CODE |
| LOW | tests/test_cli.py | 648 | def test_detect_model_architecture_uses_local_configs(): | CODE |
| LOW | tests/test_cli.py | 692 | def test_design_subcommand_passes_seed(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_cli.py | 713 | def test_batch_subcommand_passes_seed(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_torch_load_safety.py | 49 | def test_every_torch_load_sets_weights_only_true(): | CODE |
| LOW | tests/test_torch_load_safety.py | 67 | def test_torch_load_weights_only_blocks_malicious_pickle(tmp_path): | CODE |
| LOW | src/voxcpm/cli.py | 90 | def detect_model_architecture(args) -> str | None: | CODE |
| LOW | src/voxcpm/cli.py | 112 | def validate_prompt_related_args(args, parser, prompt_text: str | None): | CODE |
| LOW | src/voxcpm/cli.py | 123 | def validate_reference_support(args, parser): | CODE |
| LOW⚡ | src/voxcpm/cli.py | 398 | def _add_common_generation_args(parser): | CODE |
| LOW | src/voxcpm/cli.py | 426 | def _add_prompt_reference_args(parser): | CODE |
| LOW | src/voxcpm/timestamps/stable_ts.py | 81 | def split_word_items_to_chars(words: list[TimestampItem]) -> list[TimestampItem]: | CODE |
| LOW | src/voxcpm/training/packers.py | 322 | def process_tts_data_with_ref( | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm.py | 596 | def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm.py | 599 | def generate_with_prompt_cache_streaming( | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm.py | 605 | def _generate_with_prompt_cache( | CODE |
| LOW | src/voxcpm/model/utils.py | 27 | def materialize_generation_seed(seed: Optional[int]) -> int: | CODE |
| LOW | src/voxcpm/model/utils.py | 40 | def mask_multichar_chinese_tokens(tokenizer: PreTrainedTokenizer): | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm2.py | 788 | def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm2.py | 791 | def generate_with_prompt_cache_streaming( | CODE |
| LOW⚡ | src/voxcpm/model/voxcpm2.py | 797 | def _generate_with_prompt_cache( | CODE |
| LOW | src/voxcpm/modules/layers/lora.py | 98 | def apply_lora_to_named_linear_modules( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app_old.py | 56 | except Exception as e: | CODE |
| LOW | app.py | 419 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 144 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 204 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 280 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 290 | except Exception as e: | CODE |
| LOW⚡ | lora_ft_webui.py | 317 | except Exception as e: | CODE |
| LOW⚡ | lora_ft_webui.py | 323 | except Exception as e: | CODE |
| MEDIUM⚡ | lora_ft_webui.py | 324 | print(f"Error loading LoRA: {e}", file=sys.stderr) | CODE |
| LOW | lora_ft_webui.py | 352 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 368 | except Exception as e: | CODE |
| LOW | lora_ft_webui.py | 447 | except Exception: | CODE |
| LOW⚡ | scripts/train_voxcpm_finetune.py | 241 | except Exception: | CODE |
| LOW⚡ | scripts/train_voxcpm_finetune.py | 248 | except Exception as e: | CODE |
| MEDIUM⚡ | scripts/train_voxcpm_finetune.py | 249 | print(f"Error saving checkpoint on signal: {e}", file=sys.stderr) | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 449 | except Exception as e: | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 583 | except Exception as e: | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 639 | except Exception as e: | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 642 | except Exception as e: | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 657 | except Exception as e: | CODE |
| LOW | scripts/train_voxcpm_finetune.py | 825 | except Exception: | CODE |
| MEDIUM | scripts/train_voxcpm_finetune.py | 226 | def _signal_handler( | CODE |
| LOW | scripts/test_pick_runtime_dtype.py | 37 | except Exception as e: | CODE |
| LOW | scripts/test_pick_runtime_dtype.py | 56 | except Exception as e: | CODE |
| MEDIUM | scripts/test_pick_runtime_dtype.py | 31 | def expect_raises(fn, exc_type, label): | CODE |
| LOW | src/voxcpm/zipenhancer.py | 65 | except Exception as e: | CODE |
| LOW | src/voxcpm/cli.py | 203 | except Exception as e: | CODE |
| LOW⚡ | src/voxcpm/cli.py | 222 | except Exception as e: | CODE |
| LOW | src/voxcpm/cli.py | 352 | except Exception as e: | CODE |
| LOW | src/voxcpm/cli.py | 381 | except Exception as exc: | CODE |
| LOW | src/voxcpm/training/validate.py | 52 | except Exception as e: | CODE |
| LOW | src/voxcpm/training/validate.py | 63 | except Exception: | CODE |
| LOW | src/voxcpm/training/validate.py | 109 | except Exception as e: | CODE |
| LOW | src/voxcpm/model/voxcpm.py | 248 | except Exception as e: | CODE |
| LOW | src/voxcpm/model/utils.py | 135 | except Exception as e: | CODE |
| LOW | src/voxcpm/model/voxcpm2.py | 78 | except Exception: | CODE |
| LOW | src/voxcpm/model/voxcpm2.py | 298 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_lora_checkpoint_loading.py | 1 | CODE | |
| LOW | tests/test_model_utils.py | 1 | CODE | |
| LOW | tests/test_validate.py | 3 | CODE | |
| LOW | tests/test_validate.py | 6 | CODE | |
| LOW | tests/test_cli.py | 1 | CODE | |
| LOW | src/voxcpm/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/timestamps/stable_ts.py | 1 | CODE | |
| LOW | src/voxcpm/timestamps/postprocess.py | 1 | CODE | |
| LOW | src/voxcpm/timestamps/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/timestamps/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/timestamps/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/timestamps/base.py | 1 | CODE | |
| LOW | src/voxcpm/training/config.py | 1 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 9 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 10 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 11 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 11 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 11 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 11 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 17 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 18 | CODE | |
| LOW | src/voxcpm/training/__init__.py | 18 | CODE | |
| LOW | src/voxcpm/training/tracker.py | 1 | CODE | |
| LOW | src/voxcpm/training/accelerator.py | 1 | CODE | |
| LOW | src/voxcpm/training/state.py | 1 | CODE | |
| LOW | src/voxcpm/model/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/model/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 236 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 286 | CODE | |
| LOW | src/voxcpm/modules/layers/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/audiovae/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/audiovae/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/audiovae/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/modules/audiovae/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/modules/locenc/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/minicpm4/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/minicpm4/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/modules/minicpm4/__init__.py | 3 | CODE | |
| LOW | src/voxcpm/modules/locdit/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/locdit/__init__.py | 1 | CODE | |
| LOW | src/voxcpm/modules/locdit/__init__.py | 2 | CODE | |
| LOW | src/voxcpm/modules/locdit/__init__.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/voxcpm/cli.py | 18 | # ----------------------------- | COMMENT |
| MEDIUM | src/voxcpm/cli.py | 20 | # ----------------------------- | COMMENT |
| MEDIUM | src/voxcpm/cli.py | 156 | # ----------------------------- | COMMENT |
| MEDIUM | src/voxcpm/cli.py | 158 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | src/voxcpm/cli.py | 227 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | src/voxcpm/cli.py | 229 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | src/voxcpm/cli.py | 393 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | src/voxcpm/cli.py | 395 | # ----------------------------- | COMMENT |
| MEDIUM | src/voxcpm/cli.py | 661 | # ----------------------------- | STRING |
| MEDIUM | src/voxcpm/cli.py | 663 | # ----------------------------- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app_old.py | 152 | CODE | |
| LOW | app.py | 354 | CODE | |
| LOW | lora_ft_webui.py | 149 | CODE | |
| LOW | lora_ft_webui.py | 255 | CODE | |
| LOW | tests/test_torch_load_safety.py | 49 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 45 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 365 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 538 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 747 | CODE | |
| LOW | src/voxcpm/core.py | 183 | CODE | |
| LOW | src/voxcpm/training/validate.py | 67 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 360 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 605 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 881 | CODE | |
| LOW | src/voxcpm/model/utils.py | 141 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 468 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 797 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 1134 | CODE | |
| LOW | src/voxcpm/modules/audiovae/audio_vae_v2.py | 219 | CODE | |
| LOW | src/voxcpm/modules/audiovae/audio_vae_v2.py | 532 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/voxcpm/zipenhancer.py | 41 | Audio denoising enhancement Args: input_path: Input audio file path output_path | STRING |
| HIGH | src/voxcpm/core.py | 120 | Instantiate ``VoxCPM`` from a Hugging Face Hub snapshot. Args: hf_model_id: Explicit Hugging Face r | STRING |
| HIGH | src/voxcpm/core.py | 324 | Load LoRA weights from a checkpoint file. Args: lora_weights_path: Path to LoRA weights (.pth file | STRING |
| HIGH | src/voxcpm/model/utils.py | 115 | Call the tokenizer and return token IDs. This method provides the same interface as the original tokenizer | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app.py | 301 | CODE | |
| LOW | lora_ft_webui.py | 375 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 45 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 365 | CODE | |
| LOW | scripts/train_voxcpm_finetune.py | 226 | CODE | |
| LOW | src/voxcpm/core.py | 107 | CODE | |
| LOW | src/voxcpm/core.py | 183 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 360 | CODE | |
| LOW | src/voxcpm/model/voxcpm.py | 605 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 468 | CODE | |
| LOW | src/voxcpm/model/voxcpm2.py | 797 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/voxcpm/__init__.py | 3 | __all__ = [ | CODE |
| LOW | src/voxcpm/timestamps/__init__.py | 4 | __all__ = [ | CODE |
| LOW | src/voxcpm/training/__init__.py | 20 | __all__ = [ | CODE |
| LOW | src/voxcpm/model/__init__.py | 4 | __all__ = ["VoxCPMModel", "VoxCPM2Model"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/voxcpm/model/voxcpm2.py | 1053 | # - Reference-only / zero-shot (feat_mask ends with 0): start from scratch. | COMMENT |