AI Slop Code RIsk Monitor

microsoft/VibeVoice

Open-Source Frontier Voice AI

37.2 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for microsoft/VibeVoice, a Python project with 54,738 GitHub stars. SynthScan examined 23,760 lines of code across 65 source files, recording 494 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 37.2 (High 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.

37.2
Adjusted Signal
37.2
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
54.7K
Stars
Python
Language
23.8K
Lines of Code
65
Files
494
Pattern Hits
2026-10-12
Scan Date
1.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 35.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 47.7/100 · MEDIUM

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

Agent Over-Engineering Ratio 60.1/100 · HIGH

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

PR Review Velocity Impact 86.5/100 · CRITICAL

Which changes need focused human review? 494 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 72MEDIUM 49LOW 373

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 494 distinct pattern matches across 17 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.

Cross-Language Confusion33 hits · 210 pts
SeverityFileLineSnippetContext
HIGHdemo/vibevoice_asr_streaming_fastapi_demo.py263let SR = 24000, sock = null, ctxAudio = null, node = null, media = null;CODE
HIGHdemo/vibevoice_asr_streaming_fastapi_demo.py272 return { context_info: $('ctx').value.trim() || null,CODE
HIGH⚡demo/vibevoice_asr_streaming_fastapi_demo.py297 if (node) { node.disconnect(); node = null; }CODE
HIGH⚡demo/vibevoice_asr_streaming_fastapi_demo.py298 if (media) { media.getTracks().forEach(t => t.stop()); media = null; }CODE
HIGH⚡demo/vibevoice_asr_streaming_fastapi_demo.py299 if (ctxAudio) { ctxAudio.close(); ctxAudio = null; }CODE
HIGHdemo/vibevoice_asr_streaming_fastapi_demo.py314 if (!sock || sock.readyState !== WebSocket.OPEN) return;CODE
HIGHdemo/vibevoice_asr_streaming_fastapi_demo.py322 if (sock && sock.readyState === WebSocket.OPEN) sock.send('end');CODE
HIGHvllm_plugin/asr_streaming_server.py348 yield await self.push(window)CODE
HIGHvllm_plugin/asr_streaming_server.py733 texts.append(await session.push(window))CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py341let SR = 24000, MAXTOK = 256, sock = null, ctxAudio = null, node = null,CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py342 media = null, lastSrt = '', segments = [], pcm = null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py349let playPcm = null, micChunks = [], micSamples = 0;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py350let playCtx = null, player = null, playing = null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py352function playable() { return !!(playPcm || micSamples); }CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py359 micChunks.push(q);CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py369 if (a >= b) return null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py383 player.onended = null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py386 player = null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py388 playing = null;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py398 playCtx = playCtx || new AudioContext();CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py404 player.onended = () => { if (playing === i) { playing = null; render(); } };CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py484 if (node) { node.disconnect(); node = null; }CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py485 if (media) { media.getTracks().forEach(t => t.stop()); media = null; }CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py486 if (ctxAudio) { ctxAudio.close(); ctxAudio = null; }CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py492 playPcm = null; micChunks = []; micSamples = 0;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py556 if (!sock || sock.readyState !== WebSocket.OPEN) return;CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py560 if (sock && sock.readyState === WebSocket.OPEN) sock.send('end');CODE
HIGH⚡vllm_plugin/scripts/fastapi_asr_streaming_demo_api.py566 sock = null;CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py291 var t = null;CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py425 return { context_info: $('ctx').value.trim() || null,CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py510 if (!sock || sock.readyState !== WebSocket.OPEN) return;CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py522 if (sock && sock.readyState === WebSocket.OPEN) sock.send('end');CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py529 pcm = null; $('send').disabled = true;CODE
Empty Error Handlers32 hits · 158 pts
SeverityFileLineSnippetContext
HIGHdemo/vibevoice_asr_gradio_demo.py455except ValueError:CODE
HIGHdemo/vibevoice_asr_streaming_fastapi_demo.py183except Exception:CODE
HIGHdemo/web/app.py401except Exception:CODE
HIGHdemo/web/app.py268except (TypeError, ValueError):CODE
HIGHdemo/web/app.py486except Exception:CODE
HIGHvibevoice/modular/streamer.py131except Empty:CODE
HIGHvibevoice/modular/streamer.py249except asyncio.CancelledError:CODE
HIGH…oice/modular/modeling_vibevoice_streaming_inference.py106except AttributeError:CODE
HIGH…oice/modular/modeling_vibevoice_streaming_inference.py96except AttributeError:CODE
HIGH…oice/modular/modeling_vibevoice_streaming_inference.py111except AttributeError:CODE
HIGHvllm_plugin/asr_streaming_server.py772except Exception:CODE
HIGHvllm_plugin/__init__.py46except Exception:CODE
HIGHvllm_plugin/__init__.py52except Exception:CODE
HIGHvllm_plugin/model.py83except (ImportError, AttributeError):CODE
HIGHvllm_plugin/model.py288except StopIteration:CODE
HIGHvllm_plugin/model.py297except StopIteration:CODE
HIGHvllm_plugin/model.py306except StopIteration:CODE
HIGHvllm_plugin/model.py315except StopIteration:CODE
HIGHvllm_plugin/model.py1089except Exception:CODE
HIGHvllm_plugin/model.py537except Exception:CODE
HIGHvllm_plugin/tests/test_api.py216except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py548except ValueError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py950except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py638except Exception:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py963except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py973except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py1572except Exception:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py1578except Exception:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py899except Exception:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py1041except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/gradio_asr_demo_api_video.py891except json.JSONDecodeError:CODE
HIGHvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py157except Exception:CODE
Unused Imports101 hits · 98 pts
SeverityFileLineSnippetContext
LOWdemo/vibevoice_asr_gradio_demo.py14CODE
LOWdemo/vibevoice_asr_gradio_demo.py949CODE
LOWdemo/vibevoice_asr_inference_from_file.py10CODE
LOWdemo/vibevoice_asr_inference_from_file.py13CODE
LOWdemo/vibevoice_asr_inference_from_file.py16CODE
LOWdemo/vibevoice_asr_inference_from_file.py17CODE
LOWdemo/vibevoice_asr_inference_from_file.py19CODE
LOWdemo/vibevoice_asr_inference_from_file.py292CODE
LOWdemo/vibevoice_asr_inference_from_file.py488CODE
LOWdemo/realtime_model_inference_from_file.py3CODE
LOWdemo/realtime_model_inference_from_file.py5CODE
LOWdemo/realtime_model_inference_from_file.py5CODE
LOWdemo/realtime_model_inference_from_file.py5CODE
LOWdemo/realtime_model_inference_from_file.py5CODE
LOWdemo/realtime_model_inference_from_file.py5CODE
LOWdemo/web/app.py2CODE
LOWdemo/web/app.py18CODE
LOWvibevoice/__init__.py2CODE
LOWvibevoice/__init__.py2CODE
LOWvibevoice/__init__.py6CODE
LOWvibevoice/__init__.py6CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py2CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py3CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py5CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py10CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py10CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py57CODE
LOWvibevoice/processor/vibevoice_processor.py2CODE
LOWvibevoice/processor/vibevoice_processor.py61CODE
LOWvibevoice/processor/__init__.py2CODE
LOWvibevoice/processor/__init__.py3CODE
LOWvibevoice/processor/__init__.py4CODE
LOWvibevoice/processor/__init__.py4CODE
LOWvibevoice/processor/vibevoice_tokenizer_processor.py6CODE
LOWvibevoice/processor/vibevoice_tokenizer_processor.py7CODE
LOWvibevoice/processor/vibevoice_asr_processor.py9CODE
LOWvibevoice/processor/audio_utils.py6CODE
LOWvibevoice/processor/audio_utils.py6CODE
LOWvibevoice/processor/audio_utils.py6CODE
LOWvibevoice/processor/audio_utils.py6CODE
LOWvibevoice/modular/modeling_vibevoice.py3CODE
LOWvibevoice/modular/modeling_vibevoice.py4CODE
LOWvibevoice/modular/modeling_vibevoice.py12CODE
LOWvibevoice/modular/modeling_vibevoice.py13CODE
LOWvibevoice/modular/modeling_vibevoice.py17CODE
LOWvibevoice/modular/modeling_vibevoice.py21CODE
LOWvibevoice/modular/modeling_vibevoice.py21CODE
LOWvibevoice/modular/modeling_vibevoice.py21CODE
LOWvibevoice/modular/streamer.py1CODE
LOWvibevoice/modular/streamer.py7CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py3CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py3CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py3CODE
LOWvibevoice/modular/configuration_vibevoice_streaming.py3CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py4CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py15CODE
LOWvibevoice/modular/__init__.py2CODE
LOWvibevoice/modular/__init__.py3CODE
LOWvibevoice/modular/__init__.py4CODE
LOWvibevoice/modular/__init__.py4CODE
41 more matches not shown…
Excessive Try-Catch Wrapping97 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMdemo/vibevoice_asr_gradio_demo.py407 print(f"Error on segment {idx}: {e}")CODE
MEDIUMdemo/vibevoice_asr_gradio_demo.py428 print(f"Error loading audio file: {e}")CODE
MEDIUMdemo/vibevoice_asr_gradio_demo.py623def run_transcription():CODE
LOWdemo/vibevoice_asr_gradio_demo.py43except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py230 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py323 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py338 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py403 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py427 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py512 except Exception as e:CODE
LOWdemo/vibevoice_asr_gradio_demo.py595 except Exception as exc:CODE
LOWdemo/vibevoice_asr_gradio_demo.py635 except Exception as e:CODE
MEDIUMdemo/vibevoice_asr_gradio_demo.py912 print(f"Error during transcription: {e}")STRING
LOWdemo/vibevoice_asr_gradio_demo.py911 except Exception as e:STRING
LOWdemo/vibevoice_asr_streaming_fastapi_demo.py119 except Exception:CODE
LOWdemo/vibevoice_asr_streaming_fastapi_demo.py180 except Exception as e:CODE
LOWdemo/vibevoice_asr_streaming_fastapi_demo.py183 except Exception:CODE
LOWdemo/vibevoice_asr_inference_from_file.py184 except Exception as e:CODE
LOWdemo/vibevoice_asr_inference_from_file.py391 except Exception as e:CODE
MEDIUMdemo/vibevoice_asr_inference_from_file.py392 print(f"Error loading dataset: {e}")CODE
MEDIUM⚡demo/realtime_model_inference_from_file.py149 print(f"Error: txt file not found: {args.txt_path}")CODE
MEDIUM⚡demo/realtime_model_inference_from_file.py158 print("Error: No valid scripts found in the txt file")CODE
LOWdemo/realtime_model_inference_from_file.py201 except Exception as e:CODE
MEDIUMdemo/realtime_model_inference_from_file.py205 print("Error loading the model. Trying to use SDPA. However, note that only flash_attention_2 has been fullyCODE
LOWdemo/web/app.py100 except Exception as e:CODE
MEDIUMdemo/web/app.py102 print("Error loading the model. Trying to use SDPA. However, note that only flash_attention_2 has been fCODE
LOWdemo/web/app.py232 except Exception as exc: # pragma: no cover - diagnostic loggingCODE
LOWdemo/web/app.py259 except Exception as exc:CODE
LOWdemo/web/app.py401 except Exception:CODE
LOWdemo/web/app.py430 except Exception:CODE
LOWdemo/web/app.py473 except Exception as e:CODE
MEDIUMdemo/web/app.py474 print(f"Error in websocket stream: {e}")CODE
LOWdemo/web/app.py486 except Exception:CODE
LOWdemo/web/app.py497 except Exception as e:CODE
MEDIUMdemo/web/app.py498 print(f"Error closing websocket: {e}")CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py80 except Exception as e:STRING
LOWvibevoice/processor/vibevoice_processor.py84 except Exception as e:STRING
LOWvibevoice/processor/vibevoice_asr_processor.py41 except Exception:CODE
LOWvibevoice/processor/vibevoice_asr_processor.py143 except Exception as e:CODE
LOWvibevoice/processor/vibevoice_asr_processor.py325 except Exception as e:CODE
LOWvibevoice/processor/vibevoice_asr_processor.py595 except Exception as e:CODE
LOWvibevoice/processor/audio_utils.py85 except Exception:CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py334 except Exception:CODE
LOWfinetuning-asr/lora_finetune.py234 except Exception as e:CODE
LOWfinetuning-asr/inference_lora.py137 except Exception as e:CODE
LOWvllm_plugin/asr_streaming_server.py599 except Exception as e:CODE
LOWvllm_plugin/asr_streaming_server.py625 except Exception as e:CODE
LOWvllm_plugin/asr_streaming_server.py691 except Exception as e:CODE
LOWvllm_plugin/asr_streaming_server.py768 except Exception as e:CODE
LOWvllm_plugin/asr_streaming_server.py772 except Exception:CODE
LOWvllm_plugin/__init__.py46 except Exception:CODE
LOWvllm_plugin/__init__.py52 except Exception:CODE
LOWvllm_plugin/model.py537 except Exception:CODE
LOWvllm_plugin/model.py1089 except Exception:CODE
LOWvllm_plugin/model.py1203 except Exception as e:CODE
LOWvllm_plugin/tests/test_api_streaming.py72 except Exception as e:CODE
LOWvllm_plugin/tests/test_api_streaming.py84 except Exception as e:CODE
MEDIUMvllm_plugin/tests/test_api_streaming.py85 print(f"Error preparing audio: {e}")CODE
LOWvllm_plugin/tests/test_api_streaming.py136 except Exception as e:CODE
LOWvllm_plugin/tests/test_api.py130 except Exception as e:CODE
37 more matches not shown…
Decorative Section Separators21 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUM…oice/modular/modeling_vibevoice_streaming_inference.py33# ============================================================================COMMENT
MEDIUM…oice/modular/modeling_vibevoice_streaming_inference.py36# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py16# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py18# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py87# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py381 # ==========================================COMMENT
MEDIUMvllm_plugin/model.py383 # ==========================================COMMENT
MEDIUMvllm_plugin/model.py473# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py475# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py1028# ============================================================================COMMENT
MEDIUMvllm_plugin/model.py1030# ============================================================================COMMENT
MEDIUM⚡vllm_plugin/scripts/gradio_asr_demo_api_video.py694# ============================================================================COMMENT
MEDIUM⚡vllm_plugin/scripts/gradio_asr_demo_api_video.py696# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py66# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py68# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py121# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py123# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py1140# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py1142# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py1153# ============================================================================COMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py1155# ============================================================================COMMENT
Hyper-Verbose Identifiers54 hits · 50 pts
SeverityFileLineSnippetContext
LOWdemo/vibevoice_asr_inference_from_file.py72 def _prepare_generation_config(CODE
LOWdemo/vibevoice_asr_inference_from_file.py269def load_dataset_and_concatenate(CODE
LOWvibevoice/schedule/dpm_solver.py87def rescale_zero_terminal_snr(betas):CODE
LOWvibevoice/schedule/dpm_solver.py627 def dpm_solver_first_order_update(CODE
LOWvibevoice/schedule/dpm_solver.py696 def multistep_dpm_solver_second_order_update(CODE
LOWvibevoice/schedule/dpm_solver.py819 def multistep_dpm_solver_third_order_update(CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py170 def process_input_with_cached_prompt(STRING
LOWvibevoice/processor/vibevoice_asr_processor.py522 def post_process_transcription(self, text: str) -> List[Dict[str, Any]]:CODE
LOWvibevoice/processor/audio_utils.py80def _get_ffmpeg_max_concurrency() -> int:CODE
LOWvibevoice/processor/audio_utils.py107def load_audio_bytes_use_ffmpeg(data: bytes, *, resample: bool = False, target_sr: int = 24000):CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py66 def _add_vibevoice_special_tokens(self):CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py163 def _add_vibevoice_special_tokens(self):CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py264 def _add_vibevoice_special_tokens(self):CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py702 def prepare_inputs_for_generation(CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py97def apply_parametrization_norm(module: nn.Module, norm: str = 'none') -> nn.Module:CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py117def _update_model_kwargs_for_generation(CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py242 def prepare_inputs_for_generation(CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py300 def _update_model_kwargs_for_generation(CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py315 def _init_cache_for_generation(self, generation_config, model_kwargs, batch_size, max_cache_length, device):CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py498 def _build_generate_config_model_kwargs(self, generation_config, inputs, tokenizer, return_processors=False, **kwargCODE
LOWtests/test_streaming_audio_inputs.py95def test_disallowed_urls_never_access_network(client, outbound, inference,CODE
LOWtests/test_streaming_audio_inputs.py121def test_inline_audio_reaches_inference(client, outbound, inference, route):CODE
LOWtests/test_streaming_audio_inputs.py130def test_inline_audio_chat_stream(client, outbound, inference):CODE
LOWtests/test_streaming_audio_inputs.py141def test_remote_url_rejected_before_chat_stream(client, outbound, inference):CODE
LOWtests/test_streaming_audio_inputs.py165def test_invalid_data_uri_returns_client_error(client, outbound, inference, url):CODE
LOWtests/test_streaming_audio_inputs.py174def test_inline_audio_size_limit(client, outbound, server, inference,CODE
LOWtests/test_streaming_audio_inputs.py188def test_batch_accepts_multiple_inline_files(client, outbound, inference):CODE
LOWtests/test_streaming_audio_inputs.py200def test_extra_url_cannot_trigger_download_with_inline_audio(CODE
LOWtests/test_streaming_audio_inputs.py211def test_openapi_only_advertises_inline_audio(client):CODE
LOWtests/test_streaming_audio_inputs.py218def test_websocket_audio_still_transcribes(client, outbound, server, inference):CODE
LOWvllm_plugin/model.py272 def _ensure_audio_encoder_dtype(self):CODE
LOWvllm_plugin/model.py598 def get_mm_max_tokens_per_item(CODE
LOWvllm_plugin/model.py720 def get_dummy_processor_inputs(CODE
LOWvllm_plugin/model.py887 def _hf_processor_applies_updates(CODE
LOWvllm_plugin/inputs.py43def vibevoice_audio_input_mapper(ctx, data: Union[str, bytes, np.ndarray, List[str]]) -> MultiModalInputs:CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py167def download_qwen_tokenizer_files(output_dir: str, qwen_model: str = DEFAULT_QWEN_MODEL) -> None:CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py311def generate_added_tokens_json(output_dir: str) -> None:CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py333def generate_special_tokens_map_json(output_dir: str, streaming: bool = False) -> None:CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py374def generate_vibevoice_tokenizer_files(output_dir: str, qwen_model: str = DEFAULT_QWEN_MODEL,CODE
LOWvllm_plugin/tests/test_api_streaming.py48async def test_streaming_with_hotwords(CODE
LOWvllm_plugin/tests/test_api.py47def _get_duration_seconds_ffprobe(path: str) -> float:CODE
LOWvllm_plugin/tests/test_api.py65def _extract_audio_from_video(video_path: str) -> str:CODE
LOWvllm_plugin/tests/test_api.py86def test_transcription_with_hotwords(CODE
LOWvllm_plugin/tests/test_api_auto_recover.py64def _get_duration_seconds_ffprobe(path: str) -> float:CODE
LOWvllm_plugin/tests/test_api_auto_recover.py75def _extract_audio_from_video(video_path: str) -> str:CODE
LOWvllm_plugin/tests/test_api_auto_recover.py102def _find_last_segment_boundary(text: str) -> int:CODE
LOWvllm_plugin/tests/test_api_auto_recover.py114def _find_safe_print_boundary(text: str, max_pos: int) -> int:CODE
LOWvllm_plugin/tests/test_api_auto_recover.py463def test_transcription_with_recovery(CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py144def _get_duration_seconds_ffprobe(path: str) -> float:CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py721 def get_available_models_sync(self) -> List[str]:CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py984 def _parse_truncated_segments(self, text: str) -> Optional[List[Dict]]:CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1054 def _recover_incomplete_segment(self, incomplete_text: str) -> Optional[Dict]:CODE
LOWvllm_plugin/scripts/start_streaming_server.py52def generate_streaming_tokenizer(model_path: str) -> None:CODE
LOWvllm_plugin/scripts/start_streaming_server.py73def check_streaming_checkpoint(model_path: str) -> None:CODE
Deep Nesting47 hits · 42 pts
SeverityFileLineSnippetContext
LOWdemo/vibevoice_asr_gradio_demo.py247CODE
LOWdemo/vibevoice_asr_gradio_demo.py344CODE
LOWdemo/vibevoice_asr_gradio_demo.py518CODE
LOWdemo/vibevoice_asr_gradio_demo.py962CODE
LOWdemo/vibevoice_asr_gradio_demo.py115CODE
LOWdemo/vibevoice_asr_streaming_fastapi_demo.py115CODE
LOWdemo/vibevoice_asr_inference_from_file.py269CODE
LOWdemo/web/app.py367CODE
LOWvibevoice/schedule/dpm_solver.py28CODE
LOWvibevoice/schedule/dpm_solver.py203CODE
LOWvibevoice/schedule/dpm_solver.py321CODE
LOWvibevoice/schedule/dpm_solver.py528CODE
LOWvibevoice/schedule/dpm_solver.py627CODE
LOWvibevoice/schedule/dpm_solver.py696CODE
LOWvibevoice/processor/vibevoice_tokenizer_processor.py65CODE
LOWvibevoice/processor/vibevoice_tokenizer_processor.py282CODE
LOWvibevoice/processor/vibevoice_asr_processor.py299CODE
LOWvibevoice/processor/vibevoice_asr_processor.py522CODE
LOWvibevoice/modular/modeling_vibevoice.py274CODE
LOWvibevoice/modular/streamer.py216CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py210CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py429CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py242CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py788CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py926CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py1079CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py1169CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py242CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py574CODE
LOWfinetuning-asr/lora_finetune.py201CODE
LOWvllm_plugin/asr_streaming_server.py502CODE
LOWvllm_plugin/asr_streaming_server.py547CODE
LOWvllm_plugin/asr_streaming_server.py705CODE
LOWvllm_plugin/model.py318CODE
LOWvllm_plugin/model.py1096CODE
LOWvllm_plugin/model.py1118CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py407CODE
LOWvllm_plugin/tools/generate_tokenizer_files.py434CODE
LOWvllm_plugin/tests/test_api.py86CODE
LOWvllm_plugin/tests/test_api_auto_recover.py220CODE
LOWvllm_plugin/tests/test_api_auto_recover.py143CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1157CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1596CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py776CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py923CODE
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py984CODE
LOWvllm_plugin/scripts/fastapi_asr_streaming_demo_api.py48CODE
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHvibevoice/modular/modeling_vibevoice.py0set the speech tokenizers used for encoding and decoding speech.STRING
HIGHvibevoice/modular/modeling_vibevoice_asr.py0set the speech tokenizers used for encoding and decoding speech.STRING
HIGHvibevoice/modular/modeling_vibevoice_streaming.py0set the speech tokenizers used for encoding and decoding speech.STRING
HIGH…oice/modular/modeling_vibevoice_streaming_inference.py0set the speech tokenizers used for encoding and decoding speech.STRING
HIGHvibevoice/modular/modeling_vibevoice.py0tie the weights between the input embeddings and the output embeddings.STRING
HIGHvibevoice/modular/modeling_vibevoice_asr.py0tie the weights between the input embeddings and the output embeddings.STRING
HIGH…oice/modular/modeling_vibevoice_streaming_inference.py0tie the weights between the input embeddings and the output embeddings.STRING
Redundant / Tautological Comments16 hits · 22 pts
SeverityFileLineSnippetContext
LOWdemo/vibevoice_asr_inference_from_file.py336 # Check if adding this chunk exceeds max_durationCOMMENT
LOWdemo/vibevoice_asr_inference_from_file.py571 # Print resultsCOMMENT
LOWdemo/realtime_model_inference_from_file.py33 # Check if voices directory existsCOMMENT
LOW⚡demo/realtime_model_inference_from_file.py147 # Check if txt file existsCOMMENT
LOWvibevoice/processor/vibevoice_processor.py255 # Check if it's a file pathCOMMENT
LOWvibevoice/processor/vibevoice_processor.py621 # Check if we need to normalize speaker IDs (only if all are > 0)COMMENT
LOWvibevoice/processor/vibevoice_tokenizer_processor.py161 # Check if it's a list of file pathsCOMMENT
LOWvibevoice/processor/vibevoice_tokenizer_processor.py167 # Check if it's batched audio arraysCOMMENT
LOWvibevoice/modular/modeling_vibevoice_asr.py296 # Check if this is the final segmentCOMMENT
LOW…oice/modular/modeling_vibevoice_streaming_inference.py715 # # Check if audio_streamer has been ended (stopped externally)COMMENT
LOWfinetuning-asr/inference_lora.py215 # Print resultsCOMMENT
LOWvllm_plugin/model.py404 # Check if this is the final segmentCOMMENT
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py994 # Check if text starts with arrayCOMMENT
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1213 # Check if uploaded file is a videoCOMMENT
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1327 # Check if stopped by userCOMMENT
LOWvllm_plugin/scripts/gradio_asr_demo_api_video.py1983 # Check if it's a recorded video that needs conversionCOMMENT
Verbosity Indicators16 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py389 # Step 1: Download base files from Qwen2COMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py392 # Step 2: Patch tokenizer_config.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py395 # Step 3: Patch tokenizer.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py398 # Step 4: Generate added_tokens.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py401 # Step 5: Generate special_tokens_map.jsonCOMMENT
LOW⚡vllm_plugin/scripts/start_streaming_server.py225 # Step 1: Install system dependenciesSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py229 # Step 2: Install VibeVoiceSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py232 # Step 3: Download modelSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py235 # Step 4: Refuse a checkpoint that cannot be streamed -- before step 5,STRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py240 # Step 5: Generate tokenizer filesSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py244 # Step 6: Start serverSTRING
LOW⚡vllm_plugin/scripts/start_server.py415 # Step 1: Install system dependenciesSTRING
LOW⚡vllm_plugin/scripts/start_server.py419 # Step 2: Install VibeVoiceSTRING
LOW⚡vllm_plugin/scripts/start_server.py422 # Step 3: Download modelSTRING
LOW⚡vllm_plugin/scripts/start_server.py425 # Step 4: Generate tokenizer filesSTRING
LOW⚡vllm_plugin/scripts/start_server.py429 # Step 5: Start serverSTRING
Structural Annotation Overuse16 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py389 # Step 1: Download base files from Qwen2COMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py392 # Step 2: Patch tokenizer_config.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py395 # Step 3: Patch tokenizer.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py398 # Step 4: Generate added_tokens.jsonCOMMENT
LOW⚡vllm_plugin/tools/generate_tokenizer_files.py401 # Step 5: Generate special_tokens_map.jsonCOMMENT
LOW⚡vllm_plugin/scripts/start_streaming_server.py225 # Step 1: Install system dependenciesSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py229 # Step 2: Install VibeVoiceSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py232 # Step 3: Download modelSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py235 # Step 4: Refuse a checkpoint that cannot be streamed -- before step 5,STRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py240 # Step 5: Generate tokenizer filesSTRING
LOW⚡vllm_plugin/scripts/start_streaming_server.py244 # Step 6: Start serverSTRING
LOW⚡vllm_plugin/scripts/start_server.py415 # Step 1: Install system dependenciesSTRING
LOW⚡vllm_plugin/scripts/start_server.py419 # Step 2: Install VibeVoiceSTRING
LOW⚡vllm_plugin/scripts/start_server.py422 # Step 3: Download modelSTRING
LOW⚡vllm_plugin/scripts/start_server.py425 # Step 4: Generate tokenizer filesSTRING
LOW⚡vllm_plugin/scripts/start_server.py429 # Step 5: Start serverSTRING
AI Structural Patterns20 hits · 18 pts
SeverityFileLineSnippetContext
LOWdemo/vibevoice_asr_gradio_demo.py115CODE
LOWdemo/web/app.py237CODE
LOWvibevoice/schedule/dpm_solver.py203CODE
LOWvibevoice/processor/vibevoice_asr_processor.py225CODE
LOWvibevoice/modular/modeling_vibevoice.py170CODE
LOWvibevoice/modular/modeling_vibevoice.py333CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py136CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py234CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py112CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py343CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py429CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py702CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py90CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py259CODE
LOWvibevoice/modular/configuration_vibevoice.py34CODE
LOWvibevoice/modular/configuration_vibevoice.py97CODE
LOWvibevoice/modular/configuration_vibevoice.py151CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py338CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py401CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py574CODE
Modern Structural Boilerplate18 hits · 18 pts
SeverityFileLineSnippetContext
LOWvibevoice/__init__.py11__all__ = [CODE
LOWvibevoice/processor/vibevoice_streaming_processor.py407__all__ = [CODE
LOWvibevoice/processor/vibevoice_processor.py690__all__ = [CODE
LOWvibevoice/processor/__init__.py6__all__ = [CODE
LOWvibevoice/processor/vibevoice_tokenizer_processor.py413__all__ = ["VibeVoiceTokenizerProcessor", "AudioNormalizer"]CODE
LOWvibevoice/processor/vibevoice_asr_processor.py604__all__ = ["VibeVoiceASRProcessor"]CODE
LOWvibevoice/modular/modeling_vibevoice.py490__all__ = [CODE
LOWvibevoice/modular/modular_vibevoice_text_tokenizer.py318__all__ = [CODE
LOWvibevoice/modular/configuration_vibevoice_streaming.py102__all__ = [CODE
LOWvibevoice/modular/modeling_vibevoice_asr.py794__all__ = [CODE
LOWvibevoice/modular/modular_vibevoice_tokenizer.py1203__all__ = [CODE
LOWvibevoice/modular/__init__.py7__all__ = [CODE
LOWvibevoice/modular/modular_vibevoice_diffusion_head.py285__all__ = [CODE
LOWvibevoice/modular/configuration_vibevoice.py400__all__ = [CODE
LOWvibevoice/modular/modeling_vibevoice_streaming.py187__all__ = [CODE
LOW…oice/modular/modeling_vibevoice_streaming_inference.py904__all__ = [CODE
LOWfinetuning-asr/lora_finetune.py41logger = logging.getLogger(__name__)CODE
LOWvllm_plugin/inputs.py15logger = logging.getLogger(__name__)CODE
Self-Referential Comments7 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMvibevoice/processor/vibevoice_tokenizer_processor.py182 # Create a proper batch dimension (B, T)COMMENT
MEDIUMvibevoice/modular/streamer.py37 # Create a queue for each sample in the batchCOMMENT
MEDIUMvibevoice/modular/modular_vibevoice_tokenizer.py286 # Create a unique layer ID for cache managementCOMMENT
MEDIUMvibevoice/modular/modular_vibevoice_tokenizer.py461 # Create a unique layer ID for cache managementCOMMENT
MEDIUMvibevoice/modular/modular_vibevoice_diffusion_head.py219 # Create the intermediate layersCOMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py1300 # Create a stopped result - parse whatever we have so farCOMMENT
MEDIUMvllm_plugin/scripts/gradio_asr_demo_api_video.py2011 # Create a temp VTT file for the video playerCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
LOWvibevoice/processor/vibevoice_processor.py362 # No padding, just create attention masksCOMMENT
MEDIUMvibevoice/processor/vibevoice_processor.py579 # Use regex to be more robustCOMMENT
MEDIUMvibevoice/processor/audio_utils.py129 # For stdin bytes, we don't have a cheap/robust way to probe original sr.COMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMvllm_plugin/model.py637 # Cannot exceed the model's context windowCOMMENT
MEDIUMvllm_plugin/model.py681 # Cannot exceed model context windowCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWvibevoice/schedule/dpm_solver.py1# Copyright 2024 TSAIL Team and The HuggingFace Team. All rights reserved.COMMENT
LOWvllm_plugin/asr_streaming_server.py181COMMENT
LOWvllm_plugin/asr_streaming_server.py281COMMENT
LOWvllm_plugin/asr_streaming_server.py461# without being rewritten.COMMENT