AI Slop Code Risk Monitor

huggingface/speech-to-speech

SlopCodeMonitor badge for huggingface/speech-to-speech Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Build voice agents with open-source models

35.7 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for huggingface/speech-to-speech, a Python project with 13,613 GitHub stars. SynthScan examined 111,291 lines of code across 364 source files, recording 3161 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 35.7 (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.

35.7
Adjusted Signal
35.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
13.6K
Stars
Python
Language
111.3K
Lines of Code
364
Files
3.2K
Pattern Hits
2026-10-31
Scan Date
0.33
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 60.6/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 21.8/100 · LOW

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

Agent Over-Engineering Ratio 77.3/100 · CRITICAL

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

PR Review Velocity Impact 85.6/100 · CRITICAL

Which changes need focused human review? 3161 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 1HIGH 119MEDIUM 273LOW 2768

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 3161 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.

Hyper-Verbose Identifiers2236 hits · 1942 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py131def oauth_login_required_reason(request) -> "str | None":CODE
LOWdemo/server.py536def _log_load_balancer_failure(operation: str, response: httpx.Response) -> None:CODE
LOWdemo/s2s-realtime-client.js64export function normalizePlaybackBufferMs(value) {CODE
LOWdemo/main.js446function updateRestartAvailability() {CODE
LOWdemo/main.js984function createResumedAudioContext() {CODE
LOWdemo/main.js1243function supportsAudioOutputSelection() {CODE
LOWdemo/ws/codec.js21export function extractResponseTranscript(response) {CODE
LOW⚡tests/test_faster_whisper_language_reporting.py154def test_detected_language_is_reported_with_the_auto_suffix(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py164def test_auto_suffix_depends_on_the_request_not_the_detection(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py174def test_reported_language_resolves_to_an_llm_language_name(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py182def test_languages_outside_the_original_map_now_resolve(handler_module, code):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py220def test_auto_is_removed_from_gen_kwargs(handler_module, value):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py230def test_absent_language_is_treated_as_auto_detect(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py237def test_explicit_none_is_treated_as_auto_detect(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py244def test_invalid_language_is_passed_through_rather_than_silently_auto(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py256def test_missing_language_on_info_falls_back_to_the_request(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py262def test_missing_language_on_info_in_auto_mode_reports_none(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py268def test_empty_detected_language_falls_back_to_the_request(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py275def test_empty_transcription_still_yields_nothing(handler_module, language):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py282def test_segment_text_is_joined_and_stripped(handler_module):CODE
LOW⚡tests/test_faster_whisper_language_reporting.py292def test_timing_logs_only_final_transcriptions(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py102def test_reports_the_transcribed_language_not_the_requested_one(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py112def test_pinned_language_is_reported_when_the_model_honours_it(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py126def test_session_selection_overrides_faster_whisper_setup(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py140def test_session_auto_removes_faster_whisper_setup_language(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py195def test_setup_does_not_mutate_the_caller_gen_kwargs(handler_module):CODE
LOWtests/test_faster_whisper_language_reporting.py206def test_setup_does_not_mutate_the_caller_gen_kwargs_when_pinned(handler_module):CODE
LOWtests/test_pipeline_messages.py5def test_partial_transcription_event_retains_delta_constructor():CODE
LOWtests/test_pipeline_messages.py11def test_prefetch_transaction_commits_cleanup_once_across_completion_order():CODE
LOWtests/test_pipeline_messages.py27def test_prefetch_transaction_discards_deferred_cleanup():CODE
LOWtests/test_pipeline_messages.py36def test_prefetch_transaction_aborts_only_unclaimed_work():CODE
LOWtests/test_pipeline_messages.py52def test_prefetch_transaction_abort_failure_does_not_skip_remaining_cleanup():CODE
LOWtests/test_parakeet_transcription_events.py19def test_show_progressive_transcription_returns_combined_text(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py34def test_live_transcription_clears_terminal_line_before_each_update(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py62def test_live_transcription_truncates_terminal_updates(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py86def test_live_transcription_uses_lines_for_non_terminal_logs(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py105def test_process_yields_partial_tagged_tuple(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py125def test_progressive_update_skips_busy_mlx_lock_without_warning(monkeypatch, caplog):CODE
LOWtests/test_parakeet_transcription_events.py151def test_process_yields_final_transcript(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py177def test_configured_language_does_not_relabel_decoded_text(monkeypatch, backend, detected_language):CODE
LOWtests/test_parakeet_transcription_events.py220def test_mlx_live_final_detects_combined_text_without_using_configured_language(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py265def test_session_auto_reset_does_not_report_setup_language(CODE
LOWtests/test_parakeet_transcription_events.py302def test_session_auto_reset_keeps_transcript_when_language_detection_fails(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py340def test_parakeet_timing_logs_only_final_transcriptions():CODE
LOWtests/test_parakeet_transcription_events.py349def test_final_transcription_resets_live_streaming_state(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py377def test_turn_change_resets_live_streaming_state_before_progressive(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py410def test_mlx_final_ignores_fixed_text_that_exceeds_current_audio(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py449def test_final_transcription_prevents_stale_fixed_window_on_next_progressive(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py490def test_on_session_end_resets_streaming_state():CODE
LOWtests/test_parakeet_transcription_events.py506def test_superseded_progressive_attempt_cleans_recreated_latency(monkeypatch, outcome):CODE
LOWtests/test_parakeet_transcription_events.py537 def supersede_before_tracker_binding(*args):CODE
LOWtests/test_responses_reasoning.py90def test_assistant_message_payload_survives_complete_reasoning_tool_continuation(stream, content):CODE
LOWtests/test_responses_reasoning.py158def test_consecutive_tools_replay_all_reasoning_since_user(stream):CODE
LOWtests/test_responses_reasoning.py190def test_reasoning_before_assistant_message_is_retained_without_client_output(stream):CODE
LOWtests/test_responses_reasoning.py216def test_reasoning_and_fast_tool_output_are_rolled_back(discard, with_message):CODE
LOWtests/test_responses_reasoning.py241def test_stale_speculative_turn_rolls_back_reasoning_and_call():CODE
LOWtests/test_responses_reasoning.py259def test_out_of_band_reasoning_does_not_enter_default_history(stream, with_message):CODE
LOWtests/test_responses_reasoning.py278def test_out_of_band_opaque_provider_call_can_continue_with_explicit_client_input(stream):CODE
LOWtests/test_responses_reasoning.py312def test_fast_output_does_not_allow_eviction_before_late_stream_reasoning_commits():CODE
LOWtests/test_responses_reasoning.py345def test_out_of_band_snapshot_omits_reasoning_for_unresolved_call(stream, completed_prefix, with_message):CODE
2176 more matches not shown…
Decorative Section Separators258 hits · 905 pts
SeverityFileLineSnippetContext
MEDIUMdemo/main.js46// ── Noise gate ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js63// ── Tools ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js309// ── Connection target ────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js341// ── Tool state ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js369// ── Chat view ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js380// ── Account / limiter ─────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js493// ── Radial gate arc (around the mic button, live during a call) ─────────────COMMENT
MEDIUMdemo/main.js619// ── Tools panel ───────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js707// ── Camera ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js825// ── Tool executor ─────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js1352// ── "Your turn" join countdown ──────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js1549// ── Conversation-time heartbeat ─────────────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py44# ── Tunables (env-overridable) ───────────────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py155# ── Internal helpers (call under _lock) ───────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py183# ── Public API ────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js48 // ── User transcript state (keyed by item_id) ───────────────────────────COMMENT
MEDIUMdemo/ui/chat.js69 // ── Assistant transcript state (keyed by response_id) ──────────────────COMMENT
MEDIUMdemo/ui/chat.js73 // ── Ephemeral bubble auto-dismiss ──────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js91 // ── Panel ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js124 // ── Shared rendering ──────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js141 // ── Ephemeral bubbles ───────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js296 // ── History ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js431 // ── Client event handlers ─────────────────────────────────────────────────COMMENT
MEDIUMtests/test_responses_api_language_model.py1704# ── Out-of-band (conversation="none") responses ──────────────────────────COMMENT
MEDIUMtests/test_qwen3_asr_transcription_events.py143# ── language and device helpers ──────────────────────────────────────COMMENT
MEDIUMtests/test_qwen3_asr_transcription_events.py189# ── transcription events ─────────────────────────────────────────────COMMENT
MEDIUMtests/test_qwen3_asr_transcription_events.py371# ── setup ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_qwen3_asr_transcription_events.py427# ── registry and CLI wiring ──────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_chat_completions_backend.py180# ── Converter tests ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_chat_completions_backend.py832# ── tool_choice decoupled from tools ──────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py55# ── Fakes ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py327# ── Streaming / non-streaming parse tests ─────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py768# ── Text-only (output_modalities=["text"]) ────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py851# ── Error propagation ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py974# ── Out-of-band (conversation="none") responses ───────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py992# ── Standalone runner (no pytest required) ────────────────────────────────────COMMENT
MEDIUM⚡tests/test_chat.py113# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py115# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py171# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py173# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py195# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py197# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py293# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py295# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py386# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py388# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py640# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py642# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1001# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1003# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1064# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1066# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1509# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1511# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1565# ===================================================================COMMENT
MEDIUM⚡tests/test_chat.py1567# ===================================================================COMMENT
MEDIUMtests/test_chat.py45# ===================================================================COMMENT
MEDIUMtests/test_chat.py47# ===================================================================COMMENT
MEDIUMtests/test_chat.py128# ===================================================================COMMENT
MEDIUMtests/test_chat.py130# ===================================================================COMMENT
198 more matches not shown…
Cross-Language Confusion76 hits · 362 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_openai_tts_handler.py550 parts = [resampler.push(chunk) for chunk in chunks[:-1]]CODE
HIGH⚡tests/test_openai_tts_handler.py551 parts.append(resampler.push(chunks[-1], final=final_with_input))CODE
HIGH⚡tests/test_openai_tts_handler.py555 assert resampler.push(np.empty(0)).size == 0CODE
HIGH⚡tests/test_openai_tts_handler.py556 tail = resampler.push(np.empty(0), final=True)CODE
HIGH⚡tests/test_minimax_tts_handler.py183 body = b'data: {"data":null,"base_resp":{"status_code":0}}\n\n'CODE
HIGH⚡tests/test_phonon_tts_handler.py442 return sum(part.size for part in trimmer.push(samples.astype(np.float32)))CODE
HIGH⚡tests/test_phonon_tts_handler.py455 np.testing.assert_array_equal(np.concatenate(list(trimmer.push(quiet))), quiet)CODE
HIGH⚡tests/test_phonon_tts_handler.py456 list(trimmer.push(np.ones(160, np.float32)))CODE
HIGH⚡tests/test_phonon_tts_handler.py457 list(trimmer.push(quiet))CODE
HIGH⚡tests/test_streaming_stt_handler.py770 b"".join(chunked.push(audio[index : index + 1024]) for index in range(0, len(audio), 1024))CODE
HIGH⚡tests/test_streaming_stt_handler.py774 contiguous_audio = contiguous.push(audio) + contiguous.finish_utterance()CODE
HIGHtests/test_demo_server.py598globalThis.localStorage = { getItem() { return null; } };CODE
HIGHtests/test_demo_server.py638globalThis.localStorage = { getItem() { return null; } };CODE
HIGH⚡tests/test_demo_agents_adapter.py30globalThis.localStorage = { getItem() { return null; } };STRING
HIGH⚡tests/test_demo_agents_adapter.py35globalThis.Audio = class Audio { constructor() { this.autoplay = false; this.srcObject = null; } };STRING
HIGH⚡tests/test_demo_agents_adapter.py140 onmessage: null,STRING
HIGH⚡tests/test_demo_agents_adapter.py142 this.messages.push(message);STRING
HIGH⚡tests/test_demo_agents_adapter.py143 if (name === "mic-capture" && message?.kind === "probe" && captureConfig !== undefined) {STRING
HIGH⚡tests/test_demo_agents_adapter.py148 nodes.push(this);STRING
HIGH⚡tests/test_demo_agents_adapter.py241 calls.push(call);STRING
HIGH⚡tests/test_demo_agents_adapter.py245client._session = { addImage(image, options) { images.push([image, options]); } };STRING
HIGH⚡tests/test_demo_agents_adapter.py249 undefined,STRING
HIGH⚡tests/test_demo_agents_adapter.py256if (images.length !== 1 || images[0][1].triggerResponse !== false) {STRING
HIGH⚡tests/test_demo_agents_adapter.py266globalThis.localStorage = { getItem() { return null; } };STRING
HIGH⚡tests/test_demo_agents_adapter.py270globalThis.Audio = class Audio { constructor() { this.autoplay = false; this.srcObject = null; } };STRING
HIGH⚡tests/test_demo_agents_adapter.py277 set(value) { enabled = value; timeline.push(`mic:${value}`); },STRING
HIGH⚡tests/test_demo_agents_adapter.py281 async connect() { timeline.push("connect"); }STRING
HIGH⚡tests/test_demo_agents_adapter.py282 sendMessage(message) { timeline.push(`greeting:${message}`); }STRING
HIGHtests/test_demo_agents_adapter.py52 sessions.push(this);STRING
HIGHtests/test_demo_agents_adapter.py56 sendMessage(message) { this.messages.push(message); }STRING
HIGHtests/test_demo_agents_adapter.py129 audioWorklet: { async addModule(url) { modules.push(url); } },STRING
HIGHtests/test_demo_agents_adapter.py204 await setupAudio(undefined);STRING
HIGHtests/test_demo_agents_adapter.py220globalThis.localStorage = { getItem() { return null; } };STRING
HIGHtests/test_demo_agents_adapter.py316globalThis.localStorage = { getItem() { return null; } };STRING
HIGHtests/test_demo_agents_adapter.py353globalThis.localStorage = { getItem() { return null; } };STRING
HIGHtests/test_demo_agents_adapter.py379error = undefined;STRING
HIGHtests/test_demo_input_transcription.py248globalThis.localStorage = {{ getItem() {{ return null; }} }};CODE
HIGHtests/test_demo_input_transcription.py265client.addEventListener("transcript", (event) => transcripts.push(event.detail));CODE
HIGHtests/test_demo_input_transcription.py266client.addEventListener("status", (event) => statuses.push(event.detail.status));CODE
HIGH⚡tests/test_demo_user_audio.py86if (first.durationMs !== 100 || reopened.durationMs !== 200) {STRING
HIGH⚡tests/test_demo_user_audio.py99globalThis.localStorage = { getItem() { return null; } };STRING
HIGH⚡tests/test_demo_user_audio.py116let recording = null;STRING
HIGH⚡tests/test_demo_user_audio.py124 turnEvents.push(["started", event.detail.itemId]);STRING
HIGH⚡tests/test_demo_user_audio.py127 turnEvents.push(["stopped", event.detail.itemId]);STRING
HIGH⚡tests/test_demo_user_audio.py212 querySelector() { return null; },STRING
HIGH⚡tests/test_demo_user_audio.py214let dismissed = null;STRING
HIGH⚡tests/test_demo_user_audio.py219if (view._activeUserBubble !== null) throw new Error("active voice bubble was not released");STRING
HIGH⚡tests/test_demo_user_audio.py262if (view._activeUserBubble !== null) {STRING
HIGH⚡tests/test_demo_user_audio.py268if (spawned !== 1 || view._activeUserBubble !== bubble) {STRING
HIGHtests/test_demo_user_audio.py244 querySelector() { return null; },STRING
HIGHtests/test_demo_user_audio.py326 onmessage: null,STRING
HIGHtests/test_demo_user_audio.py327 postMessage(message) { messages.push(message); },STRING
HIGHtests/test_demo_user_audio.py351if (config.inputRate !== 48000 || config.outputRate !== 24000) {STRING
HIGHtests/test_demo_user_audio.py369 if ((pcm[i - 1] < 0 && pcm[i] >= 0) || (pcm[i - 1] >= 0 && pcm[i] < 0)) {STRING
HIGHtests/test_demo_user_audio.py373if (zeroCrossings < 78 || zeroCrossings > 82) {STRING
HIGH⚡tests/test_diarization_transformers.py50 segments.extend(diarizer.push(audio[start : start + 173], sample_rate=16000))CODE
HIGHtests/test_diarization_transformers.py70 segments = diarizer.push(audio, sample_rate=16000)CODE
HIGHtests/test_streaming_diarization.py126 segments.extend(diarizer.push(audio[start : start + block_size], sample_rate=20))CODE
HIGH⚡tests/test_streaming_diarization.py145 segments = diarizer.push(np.zeros(length, dtype=np.float32), sample_rate=20) + diarizer.finish()CODE
HIGH⚡tests/test_streaming_diarization.py153 diarizer.push(np.zeros(1, dtype=np.float32), sample_rate=20)CODE
16 more matches not shown…
Empty Error Handlers37 hits · 185 pts
SeverityFileLineSnippetContext
HIGHdemo/server.py106except ValueError:CODE
HIGHdemo/server.py320except Exception:CODE
HIGHtests/test_minimax_tts_handler.py99except OSError:CODE
HIGHtests/test_stt_stale_filter.py258except Empty:CODE
HIGHtests/test_openai_stt_lifecycle.py107except ConnectionResetError:CODE
HIGHtests/test_openai_stt_lifecycle.py201except OSError:CODE
HIGHtests/test_configured_runtime.py349except runtime.ConfiguredRuntimeError:CODE
HIGHtests/test_configured_runtime.py436except runtime.ConfiguredRuntimeError:CODE
HIGHtests/openai_realtime/test_websocket_router.py1911except Exception:CODE
HIGHtests/openai_realtime/test_audio_client.py1901except (EOFError, OSError):CODE
HIGHtests/openai_realtime/test_webrtc.py783except asyncio.TimeoutError:CODE
HIGHexamples/realtime_youcom_search_tool.py114except ValueError:CODE
HIGHexamples/realtime_web_search_tool.py83except ValueError:CODE
HIGHscripts/benchmark_tts.py209except Exception:CODE
HIGHsrc/speech_to_speech/LLM/language_model.py272except Empty:CODE
HIGHsrc/speech_to_speech/LLM/language_model.py889except Exception:CODE
HIGHsrc/speech_to_speech/LLM/language_model.py1074except Exception:CODE
HIGHsrc/speech_to_speech/LLM/language_model.py878except (RuntimeError, ValueError):CODE
HIGHsrc/speech_to_speech/LLM/language_model.py1066except (RuntimeError, ValueError):CODE
HIGH…to_speech/LLM/base_openai_compatible_language_model.py390except Exception:CODE
HIGH…to_speech/LLM/base_openai_compatible_language_model.py921except Exception:CODE
HIGHsrc/speech_to_speech/LLM/compaction_prompt.py119except json.JSONDecodeError:CODE
HIGHsrc/speech_to_speech/TTS/openai_compatible_handler.py236except RuntimeError:CODE
HIGHsrc/speech_to_speech/TTS/qwen3_tts_handler.py1039except Exception:CODE
HIGHsrc/speech_to_speech/TTS/qwen3_tts_handler.py1046except Exception:CODE
HIGHsrc/speech_to_speech/api/openai_realtime/llm_proxy.py241except ValueError:CODE
HIGH…c/speech_to_speech/api/openai_realtime/audio_client.py1258except (EOFError, OSError):CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py373except KeyError:CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py578except TimeoutError:CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py598except asyncio.CancelledError:CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py605except Exception:CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py1004except Empty:CODE
HIGH…eech_to_speech/api/openai_realtime/websocket_router.py1217except Empty:CODE
HIGHsrc/speech_to_speech/api/openai_realtime/transports.py114except Exception: # noqa: BLE001CODE
HIGH…ech_to_speech/api/openai_realtime/handlers/response.py282except ValueError:CODE
HIGHsrc/speech_to_speech/STT/openai_compatible_handler.py124except RuntimeError:CODE
HIGHsrc/speech_to_speech/STT/streaming_handler.py782except Empty:CODE
Unused Imports187 hits · 175 pts
SeverityFileLineSnippetContext
LOWarchive/TTS/parler_handler.py1CODE
LOWarchive/TTS/melo_handler.py1CODE
LOWtests/test_faster_whisper_language_reporting.py20CODE
LOWtests/test_nemotron_transcribe_stt.py1CODE
LOWtests/test_openai_tts_handler.py1CODE
LOWtests/test_nemotron_farsi_stt.py1CODE
LOWtests/test_nemo_asr_stt_latency.py1CODE
LOWtests/test_chat_turn_order.py8CODE
LOWtests/test_handler_logging_hygiene.py10CODE
LOWtests/test_chattts_streaming.py1CODE
LOWtests/test_minimax_tts_handler.py3CODE
LOWtests/test_facebookmms_tts_latency.py1CODE
LOWtests/test_language_prompt.py11CODE
LOWtests/test_openai_stt_handler.py1CODE
LOWtests/test_turn_latency.py1CODE
LOWtests/test_transcript_log_hygiene.py3CODE
LOWtests/test_kitten_tts_handler.py1CODE
LOWtests/test_nemotron_streaming_stt.py1CODE
LOWtests/test_phonon_tts_handler.py1CODE
LOWtests/test_response_overrides.py1CODE
LOWtests/test_chattts_tts_latency.py1CODE
LOWtests/test_stt_stale_filter.py1CODE
LOWtests/test_streaming_stt_handler.py1CODE
LOWtests/test_kitten_tts_latency.py1CODE
LOWtests/test_whisper_language_detection.py21CODE
LOWtests/test_parakeet_language_reporting.py3CODE
LOWtests/test_qwen3_asr_transcription_events.py1CODE
LOWtests/test_chat_completions_backend.py10CODE
LOWtests/test_kokoro_language_voice.py1CODE
LOWtests/test_mlx_audio_whisper_handler.py16CODE
LOWtests/test_openai_stt_lifecycle.py1CODE
LOWtests/test_chat.py9CODE
LOWtests/test_supertonic_tts_handler.py1CODE
LOWtests/test_paraformer_sensevoice_stt_latency.py1CODE
LOWtests/test_visemes.py41CODE
LOWtests/test_stt_session_language_reset.py13CODE
LOWtests/test_openai_stt_windows.py1CODE
LOWtests/test_nemo_asr_handler.py1CODE
LOWtests/test_device.py1CODE
LOWtests/test_omnivoice_tts_latency.py1CODE
LOWtests/install_smoke.py1CODE
LOWtests/test_auto_language_spelling.py14CODE
LOWtests/test_whisper_progressive_transcription.py23CODE
LOWtests/test_omnivoice_tts_handler.py1CODE
LOWtests/test_kokoro_tts_latency.py1CODE
LOWtests/test_kokoro_device.py1CODE
LOWtests/test_orukeet_stt.py1CODE
LOWtests/test_nemotron_farsi_integration.py7CODE
LOWtests/openai_realtime/agents_sdk_server.py3CODE
LOWtests/openai_realtime/test_send_loop_wakeup.py8CODE
LOWexamples/realtime_youcom_search_tool.py3CODE
LOWexamples/realtime_web_search_tool.py3CODE
LOWscripts/prepare_eval_space.py12CODE
LOWsrc/speech_to_speech/_config_yaml.py3CODE
LOWsrc/speech_to_speech/config.py3CODE
LOWsrc/speech_to_speech/configured_runtime.py3CODE
LOWsrc/speech_to_speech/cli.py1CODE
LOWsrc/speech_to_speech/baseHandler.py1CODE
LOWsrc/speech_to_speech/backend_registry.py1CODE
LOWsrc/speech_to_speech/pipeline/console.py3CODE
127 more matches not shown…
Excessive Try-Catch Wrapping128 hits · 141 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py54except Exception as exc: # pragma: no cover - import guardCODE
LOWdemo/auth.py72 except Exception as exc: # pragma: no cover - defensiveCODE
LOWdemo/auth.py102 except Exception:CODE
LOWdemo/auth.py186 except Exception as exc: # pragma: no cover - network/permission dependentCODE
LOWdemo/server.py224 except Exception as exc: # pragma: no cover - defensiveCODE
LOWdemo/server.py320 except Exception:CODE
LOW⚡demo/server.py674 except Exception:CODE
LOW⚡demo/server.py683 except Exception:CODE
LOW⚡demo/server.py692 except Exception:CODE
MEDIUMdemo/server.py671def _safe_json(response) -> dict:CODE
LOWtests/test_nemotron_transcribe_stt.py287 except Exception as exc:CODE
MEDIUMtests/test_nemotron_transcribe_stt.py284def run():CODE
LOWtests/test_chat_completions_backend.py1017 except Exception as e: # noqa: BLE001CODE
MEDIUMtests/test_openai_stt_lifecycle.py61def run():CODE
MEDIUMtests/test_openai_stt_lifecycle.py127def run():CODE
LOWtests/test_openai_stt_lifecycle.py64 except Exception as exc:CODE
LOWtests/test_openai_stt_lifecycle.py130 except Exception as exc:CODE
MEDIUMtests/openai_realtime/test_turn_latency.py418def work():CODE
LOWtests/openai_realtime/test_turn_latency.py421 except Exception as exc:CODE
LOW⚡tests/openai_realtime/test_websocket_router.py1911 except Exception:CODE
LOWtests/openai_realtime/realtime_contract.py65 except Exception as exc: # pragma: no cover - failure pathCODE
LOWtests/openai_realtime/realtime_contract.py81 except Exception as exc: # pragma: no cover - failure pathCODE
LOWscripts/benchmark_tts.py209 except Exception:CODE
LOWscripts/benchmark_tts.py225 except Exception as e:CODE
LOWscripts/benchmark_stt.py259 except Exception as e:CODE
LOW⚡scripts/synthetic_conversation_realtime_client.py321 except Exception as e: # noqa: BLE001 — diagnostic pathCODE
LOW⚡scripts/synthetic_conversation_realtime_client.py349 except Exception as e: # noqa: BLE001CODE
LOW⚡scripts/synthetic_conversation_realtime_client.py419 except Exception as e: # noqa: BLE001 — diagnostic pathCODE
LOW⚡scripts/synthetic_conversation_realtime_client.py430 except Exception as e: # noqa: BLE001CODE
LOWsrc/speech_to_speech/configured_runtime.py41 except Exception:CODE
LOWsrc/speech_to_speech/cli.py261 except Exception:CODE
LOWsrc/speech_to_speech/baseHandler.py148 except Exception as exc:CODE
LOWsrc/speech_to_speech/baseHandler.py215 except Exception as exc:CODE
LOWsrc/speech_to_speech/pipeline/messages.py303 except Exception as exc:CODE
LOWsrc/speech_to_speech/pipeline/messages.py352 except Exception:CODE
LOWsrc/speech_to_speech/pipeline/history.py95 except Exception:CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py217 except Exception as exc: # noqa: BLE001 — surfaced as a per-item errorCODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py331 except Exception as exc: # noqa: BLE001 — every failure is a comparable data pointCODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py382 except Exception as exc: # noqa: BLE001 — retain other items when an asset failsCODE
LOWsrc/speech_to_speech/evals/big_bench_audio/judge.py87 except Exception as exc: # noqa: BLE001 — a judge outage must not void the runCODE
LOWsrc/speech_to_speech/evals/big_bench_audio/__main__.py124 except Exception as exc: # noqa: BLE001 — the server is still warming upCODE
LOWsrc/speech_to_speech/LLM/language_model.py759 except Exception as exc:CODE
LOWsrc/speech_to_speech/LLM/language_model.py889 except Exception:CODE
LOWsrc/speech_to_speech/LLM/language_model.py1074 except Exception:CODE
MEDIUM…to_speech/LLM/base_openai_compatible_language_model.py398def run() -> None:CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py390 except Exception:CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py831 except Exception as exc:CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py921 except Exception:CODE
LOWsrc/speech_to_speech/LLM/lm_output_processor.py105 except Exception:CODE
LOWsrc/speech_to_speech/LLM/chat.py726 except Exception:CODE
LOWsrc/speech_to_speech/LLM/chat.py1332 except Exception as exc:CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py113 except Exception:CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py389 except Exception:CODE
LOWsrc/speech_to_speech/STV/w2v_stv_handler.py103 except Exception:CODE
LOWsrc/speech_to_speech/TTS/openai_compatible_handler.py138 except Exception as exc:CODE
LOWsrc/speech_to_speech/TTS/openai_compatible_handler.py567 except Exception as exc:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py210 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py355 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py498 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py140 except Exception as exc:CODE
68 more matches not shown…
Modern Structural Boilerplate83 hits · 84 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py288def set_anon_cookie(response, signed: str) -> None:CODE
LOWarchive/TTS/parler_handler.py28logger = logging.getLogger(__name__)CODE
LOWarchive/TTS/melo_handler.py19logger = logging.getLogger(__name__)CODE
LOWarchive/STT/moonshine_handler.py14logger = logging.getLogger(__name__)CODE
LOWtests/test_nemotron_streaming_stt.py69 def set_inference_prompt(self, lang: str) -> None:CODE
LOWexamples/realtime_youcom_search_tool.py14logger = logging.getLogger(__name__)CODE
LOWexamples/realtime_web_search_tool.py14logger = logging.getLogger(__name__)CODE
LOWscripts/benchmark_tts.py28logger = logging.getLogger(__name__)CODE
LOWscripts/benchmark_stt.py30logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/configured_runtime.py22logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/s2s_pipeline.py76logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/baseHandler.py25logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/backend_registry.py63logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/pipeline/language_detection.py17logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/pipeline/__init__.py37__all__ = [CODE
LOWsrc/speech_to_speech/pipeline/transcript_logging.py23logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/pipeline/transcript_logging.py35def set_log_transcripts(enabled: bool) -> None:CODE
LOWsrc/speech_to_speech/pipeline/messages.py29logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/pipeline/speculative_turns.py10logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py36logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/__init__.py36__all__ = [CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/hub.py17logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/judge.py19logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/language_model.py102logger = logging.getLogger(__name__)CODE
LOW…peech_to_speech/LLM/chat_completions_language_model.py41logger = logging.getLogger(__name__)CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py63logger = logging.getLogger(__name__)CODE
LOW⚡src/speech_to_speech/LLM/compaction_prompt.py24logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/lm_output_processor.py41logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/audio_input_notifier.py15logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/chat.py51logger = logging.getLogger(__name__)CODE
LOW…c/speech_to_speech/LLM/responses_api_language_model.py45logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py25logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STV/w2v_stv_handler.py25logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/utils/mlx_lock.py32logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/utils/thread_manager.py6logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/minimax_tts_handler.py25logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/supertonic_tts_handler.py18logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/omnivoice_handler.py22logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/openai_compatible_handler.py28logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/chatTTS_handler.py22logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py31logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py152 def _setup_mlx(self, model_name: str) -> None:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py181 def _setup_kokoro(self) -> None:CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py23logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/kitten_tts_handler.py22logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py24logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/phonon_tts_handler.py21logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py46logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py220 def _setup_faster(self, model_name: str, dtype: Any, attn_implementation: str, backend: str) -> None:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py258 def _setup_mlx(self, model_name: str) -> None:CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py42logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/service.py92logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/server.py11logger = logging.getLogger(__name__)CODE
LOW…speech_to_speech/api/openai_realtime/echo_canceller.py11logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/llm_proxy.py25logger = logging.getLogger(__name__)CODE
LOW…c/speech_to_speech/api/openai_realtime/audio_client.py46logger = logging.getLogger(__name__)CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py72logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/transports.py26logger = logging.getLogger(__name__)CODE
LOW…to_speech/api/openai_realtime/handlers/conversation.py46logger = logging.getLogger(__name__)CODE
LOW…eech_to_speech/api/openai_realtime/handlers/session.py18logger = logging.getLogger(__name__)CODE
23 more matches not shown…
Deep Nesting111 hits · 82 pts
SeverityFileLineSnippetContext
LOWtests/test_provider_response_status.py122CODE
LOWtests/test_provider_response_status.py454CODE
LOWtests/test_minimax_tts_handler.py56CODE
LOWtests/test_minimax_tts_handler.py217CODE
LOWtests/test_minimax_tts_handler.py66CODE
LOWtests/test_pocket_tts_handler.py669CODE
LOWtests/test_openai_stt_handler.py693CODE
LOWtests/test_streaming_stt_handler.py407CODE
LOWtests/test_streaming_stt_handler.py1857CODE
LOWtests/test_streaming_stt_handler.py410CODE
LOWtests/test_streaming_stt_handler.py1862CODE
LOWtests/test_chat_completions_backend.py146CODE
LOWtests/test_openai_stt_lifecycle.py155CODE
LOWtests/test_openai_stt_lifecycle.py164CODE
LOWtests/test_chat.py87CODE
LOWtests/openai_realtime/test_turn_latency.py449CODE
LOWtests/openai_realtime/test_voice_controls.py99CODE
LOWtests/openai_realtime/test_websocket_router.py76CODE
LOWtests/openai_realtime/test_websocket_router.py2076CODE
LOWtests/openai_realtime/test_websocket_router.py591CODE
LOWtests/openai_realtime/test_websocket_router.py698CODE
LOWtests/openai_realtime/test_websocket_router.py901CODE
LOWtests/openai_realtime/test_websocket_router.py1080CODE
LOWtests/openai_realtime/test_websocket_router.py1365CODE
LOWtests/openai_realtime/test_websocket_router.py1939CODE
LOWtests/openai_realtime/test_response_input_identity.py400CODE
LOWtests/openai_realtime/realtime_contract.py88CODE
LOWtests/openai_realtime/realtime_contract.py279CODE
LOWtests/openai_realtime/realtime_contract.py255CODE
LOWscripts/benchmark_tts.py91CODE
LOWscripts/benchmark_stt.py110CODE
LOWscripts/synthetic_conversation_realtime_client.py205CODE
LOWscripts/synthetic_conversation_realtime_client.py283CODE
LOWsrc/speech_to_speech/_config_yaml.py17CODE
LOWsrc/speech_to_speech/config.py178CODE
LOWsrc/speech_to_speech/config.py259CODE
LOWsrc/speech_to_speech/configured_runtime.py53CODE
LOWsrc/speech_to_speech/configured_runtime.py209CODE
LOWsrc/speech_to_speech/s2s_pipeline.py586CODE
LOWsrc/speech_to_speech/s2s_pipeline.py749CODE
LOWsrc/speech_to_speech/baseHandler.py131CODE
LOWsrc/speech_to_speech/pipeline/console.py55CODE
LOWsrc/speech_to_speech/pipeline/turn_latency.py326CODE
LOWsrc/speech_to_speech/pipeline/turn_latency.py390CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py178CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/runner.py367CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/dataset.py153CODE
LOWsrc/speech_to_speech/evals/big_bench_audio/__main__.py94CODE
LOWsrc/speech_to_speech/LLM/language_model.py333CODE
LOWsrc/speech_to_speech/LLM/language_model.py515CODE
LOWsrc/speech_to_speech/LLM/language_model.py601CODE
LOWsrc/speech_to_speech/LLM/language_model.py847CODE
LOWsrc/speech_to_speech/LLM/language_model.py1037CODE
LOWsrc/speech_to_speech/LLM/language_model.py1144CODE
LOWsrc/speech_to_speech/LLM/language_model.py1181CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py593CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py697CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py750CODE
LOWsrc/speech_to_speech/LLM/lm_output_processor.py134CODE
LOWsrc/speech_to_speech/LLM/chat.py346CODE
51 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/test_cli_defaults.py0schema_version: 1 blocks: vad: {kind: vad, backend: silero} stt: {kind: stt, backend: openai} llm: {kind: llm, backend: STRING
HIGHtests/test_config.py0schema_version: 1 blocks: vad: {kind: vad, backend: silero} stt: {kind: stt, backend: openai} llm: {kind: llm, backend: STRING
HIGHtests/test_configured_runtime.py0schema_version: 1 blocks: vad: {kind: vad, backend: silero} stt: {kind: stt, backend: openai} llm: {kind: llm, backend: STRING
HIGHsrc/speech_to_speech/STT/faster_whisper_handler.py0handles the speech to text generation using a whisper model.STRING
HIGH…/speech_to_speech/STT/lightning_whisper_mlx_handler.py0handles the speech to text generation using a whisper model.STRING
HIGHsrc/speech_to_speech/STT/whisper_stt_handler.py0handles the speech to text generation using a whisper model.STRING
AI Structural Patterns15 hits · 12 pts
SeverityFileLineSnippetContext
LOWarchive/TTS/parler_handler.py53CODE
LOWtests/test_streaming_stt_handler.py112CODE
LOWsrc/speech_to_speech/LLM/language_model.py182CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py183CODE
LOWsrc/speech_to_speech/TTS/minimax_tts_handler.py45CODE
LOWsrc/speech_to_speech/TTS/omnivoice_handler.py28CODE
LOWsrc/speech_to_speech/TTS/drama3_handler.py22CODE
LOWsrc/speech_to_speech/TTS/openai_compatible_handler.py354CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py92CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py69CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py33CODE
LOWsrc/speech_to_speech/TTS/phonon_tts_handler.py97CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py108CODE
LOWsrc/speech_to_speech/VAD/vad_handler.py61CODE
LOWsrc/speech_to_speech/STT/openai_compatible_handler.py266CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/speech_to_speech/TTS/pocket_tts_handler.py247 tokens = len(self.model.flow_lm.conditioner.tokenizer.sp.encode(phonemes))CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…to_speech/LLM/base_openai_compatible_language_model.py748 # ── orchestration ─────────────────────────────────────────────────────────COMMENT
MEDIUM…eech_to_speech/api/openai_realtime/websocket_router.py74# Upper bound on how long the event-driven send loop idles between outputCOMMENT
MEDIUMsrc/speech_to_speech/STT/nemotron_transcribe.py128 # A token-limit cutoff can contain repetitive noise hallucinations.COMMENT
Over-Commented Block8 hits · 7 pts
SeverityFileLineSnippetContext
LOWdemo/server.py61# Speech-to-speech load balancer URL. When set, the browser POSTs /api/sessionCOMMENT
LOWdemo/main.js301/** @type {HTMLElement} */COMMENT
LOWdemo/ui/chat.js61 // RTC media and data-channel events are not ordered relative to each other.COMMENT
LOWsrc/speech_to_speech/LLM/chat.py141 """COMMENT
LOWsrc/speech_to_speech/TTS/kokoro_handler.py41 "pt": "p", # PortugueseCOMMENT
LOWsrc/speech_to_speech/api/openai_realtime/service.py281 # Keyed by output index so response.done can preserve interleaving withCOMMENT
LOWsrc/speech_to_speech/api/openai_realtime/service.py301 input_turn_by_call_id: dict[str, InputTurnReference] = Field(default_factory=dict)COMMENT
LOW…eech_to_speech/api/openai_realtime/websocket_router.py81SEND_LOOP_HOLD_RETRY_S = 0.01COMMENT
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡scripts/synthetic_conversation_realtime_client.py317 # Step 1: allocate a slot via the LB (if configured).COMMENT
LOW⚡scripts/synthetic_conversation_realtime_client.py343 # Step 3: tell the LB the client actually connected (clears theCOMMENT
LOW⚡scripts/synthetic_conversation_realtime_client.py423 # Step 5: release the LB slot, regardless of how the ws session ended.COMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡scripts/synthetic_conversation_realtime_client.py317 # Step 1: allocate a slot via the LB (if configured).COMMENT
LOW⚡scripts/synthetic_conversation_realtime_client.py343 # Step 3: tell the LB the client actually connected (clears theCOMMENT
LOW⚡scripts/synthetic_conversation_realtime_client.py423 # Step 5: release the LB slot, regardless of how the ws session ended.COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/speech_to_speech/VAD/vad_handler.py677 # Check if we're currently in a speech segment.COMMENT
LOWsrc/speech_to_speech/STT/mlx_audio_whisper_handler.py63 # Check if processor was loaded, if not, load it manually from original modelCOMMENT
LOWsrc/speech_to_speech/STT/smart_progressive_streaming.py122 # Check if window exceeds max_window_sizeCOMMENT
LOWsrc/speech_to_speech/STT/smart_progressive_streaming.py195 # Check if window exceeds max_window_sizeCOMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_qwen3_tts_handler_backend.py759CODE
MEDIUMtests/openai_realtime/test_turn_latency.py412CODE