Repository Analysis

huggingface/speech-to-speech

Build local voice agents with open-source models

43.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/speech-to-speech, a Python project with 10,397 GitHub stars. SynthScan v2.0 examined 43,477 lines of code across 178 source files, recording 1229 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 43.1 places this repository in the Strong 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).

43.1
Adjusted Score
43.1
Raw Score
100%
Time Factor
2026-07-31
Last Push
10.4K
Stars
Python
Language
43.5K
Lines of Code
178
Files
1.2K
Pattern Hits
2026-08-02
Scan Date
0.16
HC Hit Rate

What These Metrics Mean

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

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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

CRITICAL 0HIGH 28MEDIUM 253LOW 948

Directory Score Breakdown

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

Pattern Findings

The scanner identified 1229 distinct pattern matches across 16 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.

Decorative Section Separators248 hits · 868 pts
SeverityFileLineSnippetContext
MEDIUMdemo/main.js56// ── Noise gate ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js73// ── Tools ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js309// ── Connection target ────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js341// ── Tool state ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js378// ── Chat view ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js389// ── Account / limiter ─────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js500// ── Radial gate arc (around the mic button, live during a call) ─────────────COMMENT
MEDIUMdemo/main.js626// ── Tools panel ───────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js714// ── Camera ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js832// ── Tool executor ─────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js1362// ── "Your turn" join countdown ──────────────────────────────────────────────COMMENT
MEDIUMdemo/main.js1555// ── Conversation-time heartbeat ─────────────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py40# ── Tunables (env-overridable) ───────────────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py140# ── Internal helpers (call under _lock) ───────────────────────────────────────COMMENT
MEDIUMdemo/limiter.py168# ── Public API ────────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js49 // ── User transcript state (keyed by item_id) ───────────────────────────COMMENT
MEDIUMdemo/ui/chat.js70 // ── Assistant transcript state (keyed by response_id) ──────────────────COMMENT
MEDIUMdemo/ui/chat.js74 // ── Ephemeral bubble auto-dismiss ──────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js92 // ── Panel ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js125 // ── Shared rendering ──────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js142 // ── Ephemeral bubbles ───────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js297 // ── History ───────────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/ui/chat.js432 // ── Client event handlers ─────────────────────────────────────────────────COMMENT
MEDIUMdemo/rtc/s2s-rtc-client.js141 // ── Response lock ────────────────────────────────────────────────────COMMENT
MEDIUMdemo/rtc/s2s-rtc-client.js319 // ── Audio graph ───────────────────────────────────────────────────────────COMMENT
MEDIUMdemo/rtc/s2s-rtc-client.js386 // ── Output-RMS status + mic level ─────────────────────────────────────────COMMENT
MEDIUMdemo/rtc/s2s-rtc-client.js427 // ── Data channel protocol ─────────────────────────────────────────────────COMMENT
MEDIUMdemo/ws/s2s-ws-client.js188 // ── Response lock ────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_responses_api_language_model.py502# ── Out-of-band (conversation="none") responses ──────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py167# ── Converter tests ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py509# ── tool_choice decoupled from tools ──────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py43# ── Fakes ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py270# ── Streaming / non-streaming parse tests ─────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py445# ── Text-only (output_modalities=["text"]) ────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py528# ── Error propagation ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py563# ── Out-of-band (conversation="none") responses ───────────────────────────────COMMENT
MEDIUMtests/test_chat_completions_backend.py581# ── Standalone runner (no pytest required) ────────────────────────────────────COMMENT
MEDIUMtests/test_chat.py110# ===================================================================COMMENT
MEDIUMtests/test_chat.py112# ===================================================================COMMENT
MEDIUMtests/test_chat.py163# ===================================================================COMMENT
MEDIUMtests/test_chat.py165# ===================================================================COMMENT
MEDIUMtests/test_chat.py187# ===================================================================COMMENT
MEDIUMtests/test_chat.py189# ===================================================================COMMENT
MEDIUMtests/test_chat.py342# ===================================================================COMMENT
MEDIUMtests/test_chat.py344# ===================================================================COMMENT
MEDIUMtests/test_chat.py486# ===================================================================COMMENT
MEDIUMtests/test_chat.py488# ===================================================================COMMENT
MEDIUMtests/test_chat.py745# ===================================================================COMMENT
MEDIUMtests/test_chat.py747# ===================================================================COMMENT
MEDIUMtests/test_chat.py808# ===================================================================COMMENT
MEDIUMtests/test_chat.py810# ===================================================================COMMENT
MEDIUMtests/test_chat.py864# ===================================================================COMMENT
MEDIUMtests/test_chat.py866# ===================================================================COMMENT
MEDIUMtests/test_chat.py908# ===================================================================COMMENT
MEDIUMtests/test_chat.py910# ===================================================================COMMENT
MEDIUMtests/test_chat.py1227# ===================================================================COMMENT
MEDIUMtests/test_chat.py1229# ===================================================================COMMENT
MEDIUMtests/test_chat.py42# ===================================================================COMMENT
MEDIUMtests/test_chat.py44# ===================================================================COMMENT
MEDIUMtests/test_chat.py129# ===================================================================COMMENT
188 more matches not shown…
Hyper-Verbose Identifiers680 hits · 579 pts
SeverityFileLineSnippetContext
LOWdemo/main.js455function updateRestartAvailability() {CODE
LOWdemo/main.js1004function createResumedAudioContext() {CODE
LOWdemo/main.js1253function supportsAudioOutputSelection() {CODE
LOWdemo/ws/codec.js22export function extractResponseTranscript(response) {CODE
LOWtests/test_parakeet_transcription_events.py15def test_show_progressive_transcription_returns_combined_text(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py30def test_live_transcription_clears_terminal_line_before_each_update(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py58def test_live_transcription_truncates_terminal_updates(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py82def test_live_transcription_uses_lines_for_non_terminal_logs(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py101def test_process_yields_partial_tagged_tuple(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py121def test_process_yields_final_transcript(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py144def test_parakeet_timing_logs_only_final_transcriptions():CODE
LOWtests/test_parakeet_transcription_events.py153def test_final_transcription_resets_live_streaming_state(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py180def test_turn_change_resets_live_streaming_state_before_progressive(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py213def test_mlx_final_ignores_fixed_text_that_exceeds_current_audio(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py251def test_final_transcription_prevents_stale_fixed_window_on_next_progressive(monkeypatch):CODE
LOWtests/test_parakeet_transcription_events.py292def test_on_session_end_resets_streaming_state():CODE
LOWtests/test_paraformer_transcription_events.py19def test_progressive_paraformer_transcription_is_partial(monkeypatch):CODE
LOWtests/test_paraformer_transcription_events.py41def test_final_paraformer_transcription_is_final(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py213def test_setup_rejects_incomplete_local_gguf_pair(monkeypatch, tmp_path):CODE
LOWtests/test_qwen3_tts_handler_backend.py223def test_setup_rejects_cached_ggml_references_with_torch_backend(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py233def test_setup_defaults_to_custom_voice_profile_off_darwin(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py414def test_local_gguf_filename_takes_precedence_when_inferring_model_type():CODE
LOWtests/test_qwen3_tts_handler_backend.py422def test_local_gguf_parent_directory_does_not_affect_model_type_inference():CODE
LOWtests/test_qwen3_tts_handler_backend.py430def test_prepare_mlx_ref_audio_normalizes_file_and_caches_result(monkeypatch, tmp_path):CODE
LOWtests/test_qwen3_tts_handler_backend.py906def test_estimate_max_new_tokens_respects_configured_cap():CODE
LOWtests/test_qwen3_tts_handler_backend.py916def test_estimate_max_new_tokens_can_exceed_default_ceiling_when_raised():CODE
LOWtests/test_qwen3_tts_handler_backend.py926def test_process_voice_clone_scales_max_new_tokens_for_faster_backend(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py22def test_setup_uses_mlx_backend_on_darwin_and_maps_qwen_repo_ids(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py51def test_setup_supports_quantized_mlx_mapping_on_darwin(monkeypatch, quantization):CODE
LOWtests/test_qwen3_tts_handler_backend.py73def test_setup_preserves_explicit_mlx_model_suffix_when_quantization_unset(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py94def test_setup_preserves_faster_backend_off_darwin(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py131def test_setup_passes_torch_backend_override_off_darwin(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py153def test_setup_passes_ggml_model_and_cache_options_to_faster_backend(monkeypatch, tmp_path):CODE
LOWtests/test_qwen3_tts_handler_backend.py191def test_setup_passes_ggml_quantization_for_hub_model(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py294def test_setup_preserves_explicit_chunk_size_on_darwin(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py313def test_setup_logs_when_non_streaming_mode_set_on_darwin(monkeypatch, caplog):CODE
LOWtests/test_qwen3_tts_handler_backend.py333def test_setup_rejects_invalid_mlx_quantization(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py351def test_setup_rejects_invalid_faster_backend(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py362def test_warmup_uses_public_faster_backend_api(faster_backend):CODE
LOWtests/test_qwen3_tts_handler_backend.py380def test_warmup_logs_backend_neutral_failure(caplog):CODE
LOWtests/test_qwen3_tts_handler_backend.py398def test_mlx_helper_methods_use_model_config_and_streaming_conversion():CODE
LOWtests/test_qwen3_tts_handler_backend.py462def test_apply_session_voice_override_warns_for_non_file_for_base_model(caplog):CODE
LOWtests/test_qwen3_tts_handler_backend.py476def test_apply_session_voice_override_ignores_unsupported_custom_voice_speaker(caplog):CODE
LOWtests/test_qwen3_tts_handler_backend.py492def test_apply_session_voice_override_accepts_supported_custom_voice_speaker():CODE
LOWtests/test_qwen3_tts_handler_backend.py505def test_process_only_reenables_listening_after_end_of_response(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py531def test_process_waits_for_pending_reopen_and_drops_stale_tts_input():CODE
LOWtests/test_qwen3_tts_handler_backend.py563def test_process_waits_for_pending_reopen_and_drops_stale_end_of_response():CODE
LOWtests/test_qwen3_tts_handler_backend.py587def test_process_waits_for_reopen_grace_and_drops_stale_tts_input():CODE
LOWtests/test_qwen3_tts_handler_backend.py620def test_process_waits_for_reopen_grace_and_drops_stale_end_of_response():CODE
LOWtests/test_qwen3_tts_handler_backend.py645def test_process_commits_turn_before_generating_audio(monkeypatch, caplog):CODE
LOWtests/test_qwen3_tts_handler_backend.py686def test_process_does_not_set_should_listen_when_generation_fails(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py714def test_process_voice_clone_passes_non_streaming_mode_to_faster_backend(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py748def test_process_voice_clone_passes_none_non_streaming_mode_when_unset(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py782def test_process_voice_clone_uses_precomputed_ggml_references_without_audio(monkeypatch):CODE
LOWtests/test_qwen3_tts_handler_backend.py822def test_process_custom_voice_passes_non_streaming_mode_to_faster_backend(monkeypatch, override):CODE
LOWtests/test_qwen3_tts_handler_backend.py857def test_process_voice_design_passes_non_streaming_mode_to_faster_backend(monkeypatch, override):CODE
LOWtests/test_qwen3_tts_handler_backend.py891def test_estimate_max_new_tokens_scales_with_utterance_length():CODE
LOWtests/test_qwen3_tts_handler_backend.py962def test_process_voice_clone_scales_max_tokens_for_mlx_backend(monkeypatch):CODE
LOWtests/test_llm_utils.py12def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:CODE
LOWtests/test_llm_utils.py16def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:CODE
620 more matches not shown…
Cross-Language Confusion23 hits · 118 pts
SeverityFileLineSnippetContext
HIGHtests/test_demo_startup_greeting.py24globalThis.localStorage = {{ getItem() {{ return null; }} }};CODE
HIGHtests/test_demo_startup_greeting.py34client._send = (event) => sent.push(event);CODE
HIGHtests/test_demo_startup_greeting.py35client.requestResponse = () => sent.push({{ type: "response.create" }});CODE
HIGHtests/test_demo_startup_greeting.py68globalThis.localStorage = {{ getItem() {{ return null; }} }};CODE
HIGHtests/test_demo_startup_greeting.py98globalThis.localStorage = { getItem() { return null; } };CODE
HIGHtests/test_demo_startup_greeting.py107 timeline.push(`mic:${value}`);CODE
HIGHtests/test_demo_startup_greeting.py117client._sendSessionUpdate = () => timeline.push("session.update");CODE
HIGHtests/test_demo_startup_greeting.py118client._send = (event) => timeline.push(event.type);CODE
HIGHtests/test_demo_startup_greeting.py119client.requestResponse = () => timeline.push("response.create");CODE
HIGHtests/test_demo_startup_greeting.py154globalThis.localStorage = { getItem() { return null; } };CODE
HIGHtests/test_demo_startup_greeting.py169 events.push(["started", event.detail.itemId]);CODE
HIGHtests/test_demo_startup_greeting.py172 events.push(["stopped", event.detail.itemId]);CODE
HIGHtests/test_demo_user_audio.py83if (first.durationMs !== 100 || reopened.durationMs !== 200) {STRING
HIGHtests/test_demo_user_audio.py96globalThis.localStorage = { getItem() { return null; } };STRING
HIGHtests/test_demo_user_audio.py113let recording = null;STRING
HIGHtests/test_demo_user_audio.py117 turnEvents.push(["started", event.detail.itemId]);STRING
HIGHtests/test_demo_user_audio.py120 turnEvents.push(["stopped", event.detail.itemId]);STRING
HIGHtests/test_demo_user_audio.py202 querySelector() { return null; },STRING
HIGHtests/test_demo_user_audio.py204let dismissed = null;STRING
HIGHtests/test_demo_user_audio.py209if (view._activeUserBubble !== null) throw new Error("active voice bubble was not released");STRING
HIGHtests/test_demo_user_audio.py234 querySelector() { return null; },STRING
HIGHtests/test_demo_user_audio.py252if (view._activeUserBubble !== null) {STRING
HIGHtests/test_demo_user_audio.py258if (spawned !== 1 || view._activeUserBubble !== bubble) {STRING
Excessive Try-Catch Wrapping72 hits · 80 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py52except Exception as exc: # pragma: no cover - import guardCODE
LOWdemo/auth.py70 except Exception as exc: # pragma: no cover - defensiveCODE
LOWdemo/auth.py100 except Exception:CODE
LOWdemo/auth.py154 except Exception as exc: # pragma: no cover - network/permission dependentCODE
LOWdemo/server.py158 except Exception as exc: # pragma: no cover - defensiveCODE
LOWdemo/server.py247 except Exception:CODE
LOWdemo/server.py518 except Exception:CODE
LOWdemo/server.py527 except Exception:CODE
LOWdemo/server.py536 except Exception:CODE
MEDIUMdemo/server.py515def _safe_json(response) -> dict:CODE
LOWtests/test_chat_completions_backend.py590 except Exception as e: # noqa: BLE001CODE
LOWtests/openai_realtime/test_websocket_router.py805 except Exception:CODE
LOWscripts/benchmark_tts.py189 except Exception:CODE
LOWscripts/benchmark_tts.py205 except Exception as e:CODE
LOWscripts/benchmark_stt.py259 except Exception as e:CODE
LOWscripts/synthetic_conversation_realtime_client.py321 except Exception as e: # noqa: BLE001 — diagnostic pathCODE
LOWscripts/synthetic_conversation_realtime_client.py349 except Exception as e: # noqa: BLE001CODE
LOWscripts/synthetic_conversation_realtime_client.py419 except Exception as e: # noqa: BLE001 — diagnostic pathCODE
LOWscripts/synthetic_conversation_realtime_client.py430 except Exception as e: # noqa: BLE001CODE
LOWscripts/listen_and_play_realtime.py202 except Exception:CODE
LOWscripts/listen_and_play_realtime.py228 except Exception:CODE
LOWsrc/speech_to_speech/baseHandler.py99 except Exception as e:CODE
LOWsrc/speech_to_speech/baseHandler.py136 except Exception as e:CODE
LOWsrc/speech_to_speech/LLM/language_model.py600 except Exception as exc:CODE
LOWsrc/speech_to_speech/LLM/language_model.py704 except Exception:CODE
LOWsrc/speech_to_speech/LLM/language_model.py876 except Exception:CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py488 except Exception as exc:CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py500 except Exception:CODE
LOWsrc/speech_to_speech/LLM/chat.py569 except Exception:CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py107 except Exception:CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py283 except Exception:CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py320 except Exception:CODE
LOW…c/speech_to_speech/connections/local_audio_streamer.py56 except Exception:CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py56 except Exception as e:CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py93 except Exception:CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py142 except Exception as e:CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py237 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py212 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py300 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py412 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py134 except Exception as e:CODE
MEDIUMsrc/speech_to_speech/TTS/qwen3_tts_handler.py973def cleanup(self) -> None:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py979 except Exception:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py986 except Exception:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py994 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py487 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py552 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py559 except Exception as e:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py825 except Exception as e:CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py283 except Exception as e: # noqa: BLE001CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py297 except Exception as e: # noqa: BLE001CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py339 except Exception: # noqa: BLE001CODE
LOWsrc/speech_to_speech/api/openai_realtime/llm_proxy.py204 except Exception:CODE
LOWsrc/speech_to_speech/api/openai_realtime/llm_proxy.py255 except Exception:CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py239 except Exception:CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py430 except Exception:CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py496 except Exception as e:CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py618 except Exception as e: # noqa: BLE001CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py670 except Exception as e: # noqa: BLE001CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py680 except Exception as e: # noqa: BLE001CODE
12 more matches not shown…
Unused Imports71 hits · 68 pts
SeverityFileLineSnippetContext
LOWarchive/TTS/parler_handler.py1CODE
LOWarchive/TTS/melo_handler.py1CODE
LOWtests/test_language_prompt.py17CODE
LOWtests/test_stt_stale_filter.py1CODE
LOWtests/test_chat_completions_backend.py10CODE
LOWtests/test_mlx_audio_whisper_handler.py16CODE
LOWtests/test_chat.py9CODE
LOWtests/install_smoke.py1CODE
LOWsrc/speech_to_speech/baseHandler.py1CODE
LOWsrc/speech_to_speech/pipeline/events.py9CODE
LOWsrc/speech_to_speech/pipeline/control.py1CODE
LOWsrc/speech_to_speech/pipeline/__init__.py1CODE
LOWsrc/speech_to_speech/pipeline/__init__.py2CODE
LOWsrc/speech_to_speech/pipeline/__init__.py2CODE
LOWsrc/speech_to_speech/pipeline/__init__.py2CODE
LOWsrc/speech_to_speech/pipeline/__init__.py2CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py8CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/__init__.py17CODE
LOWsrc/speech_to_speech/pipeline/messages.py9CODE
LOWsrc/speech_to_speech/pipeline/handler_types.py8CODE
LOWsrc/speech_to_speech/pipeline/queue_types.py7CODE
LOWsrc/speech_to_speech/pipeline/speculative_turns.py1CODE
LOWsrc/speech_to_speech/LLM/language_model.py1CODE
LOW…peech_to_speech/LLM/chat_completions_language_model.py1CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py1CODE
LOWsrc/speech_to_speech/LLM/compaction_prompt.py14CODE
LOWsrc/speech_to_speech/LLM/lm_output_processor.py9CODE
LOWsrc/speech_to_speech/LLM/chat.py1CODE
LOW…c/speech_to_speech/LLM/responses_api_language_model.py1CODE
LOWsrc/speech_to_speech/utils/utils.py1CODE
LOWsrc/speech_to_speech/TTS/chatTTS_handler.py1CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py11CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py1CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py1CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py8CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py14CODE
LOWsrc/speech_to_speech/api/openai_realtime/transports.py13CODE
LOW…to_speech/api/openai_realtime/handlers/conversation.py1CODE
LOW…eech_to_speech/api/openai_realtime/handlers/session.py1CODE
LOW…ech_to_speech/api/openai_realtime/handlers/__init__.py1CODE
LOW…ech_to_speech/api/openai_realtime/handlers/__init__.py2CODE
LOW…ech_to_speech/api/openai_realtime/handlers/__init__.py3CODE
LOW…ech_to_speech/api/openai_realtime/handlers/__init__.py4CODE
LOW…ech_to_speech/api/openai_realtime/handlers/response.py1CODE
11 more matches not shown…
Modern Structural Boilerplate56 hits · 57 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py235def 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
LOWscripts/benchmark_tts.py28logger = logging.getLogger(__name__)CODE
LOWscripts/benchmark_stt.py30logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/s2s_pipeline.py87logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/baseHandler.py17logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/pipeline/__init__.py31__all__ = [CODE
LOWsrc/speech_to_speech/pipeline/speculative_turns.py9logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/language_model.py80logger = logging.getLogger(__name__)CODE
LOW…peech_to_speech/LLM/chat_completions_language_model.py40logger = logging.getLogger(__name__)CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py44logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/compaction_prompt.py24logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/lm_output_processor.py23logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/chat.py43logger = logging.getLogger(__name__)CODE
LOW…c/speech_to_speech/LLM/responses_api_language_model.py33logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py24logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/utils/mlx_lock.py15logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/utils/thread_manager.py6logger = logging.getLogger(__name__)CODE
LOW…c/speech_to_speech/connections/local_audio_streamer.py12logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/connections/socket_receiver.py12logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/connections/socket_sender.py13logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py16logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/chatTTS_handler.py23logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py28logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py154 def _setup_mlx(self, model_name: str) -> None:CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py183 def _setup_kokoro(self, model_name: str) -> None:CODE
LOWsrc/speech_to_speech/TTS/facebookmms_handler.py21logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py17logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py36logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py201 def _setup_faster(self, model_name: str, dtype: Any, attn_implementation: str, backend: str) -> None:CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py239 def _setup_mlx(self, model_name: str) -> None:CODE
LOW…speech_to_speech/api/openai_realtime/webrtc_session.py36logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/service.py59logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/server.py11logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/llm_proxy.py25logger = logging.getLogger(__name__)CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py62logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/api/openai_realtime/transports.py25logger = logging.getLogger(__name__)CODE
LOW…to_speech/api/openai_realtime/handlers/conversation.py24logger = logging.getLogger(__name__)CODE
LOW…eech_to_speech/api/openai_realtime/handlers/session.py17logger = logging.getLogger(__name__)CODE
LOW…ech_to_speech/api/openai_realtime/handlers/__init__.py6__all__ = [CODE
LOW…ech_to_speech/api/openai_realtime/handlers/response.py30logger = logging.getLogger(__name__)CODE
LOW…speech_to_speech/api/openai_realtime/handlers/audio.py23logger = logging.getLogger(__name__)CODE
LOW…/speech_to_speech/api/openai_realtime/handlers/base.py15logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/VAD/vad_handler.py24logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/base_stt_handler.py13logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/mlx_audio_whisper_handler.py14logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/transcription_notifier.py16logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/faster_whisper_handler.py16logger = logging.getLogger(__name__)CODE
LOW…/speech_to_speech/STT/lightning_whisper_mlx_handler.py16logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/whisper_stt_handler.py16logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/parakeet_tdt_handler.py37logger = logging.getLogger(__name__)CODE
LOWsrc/speech_to_speech/STT/parakeet_tdt_handler.py180 def _setup_mlx(self, model_name: str) -> None:CODE
LOWsrc/speech_to_speech/STT/parakeet_tdt_handler.py193 def _setup_nano_parakeet(self, model_name: str) -> None:CODE
LOWsrc/speech_to_speech/STT/paraformer_handler.py17logger = logging.getLogger(__name__)CODE
Deep Nesting49 hits · 44 pts
SeverityFileLineSnippetContext
LOWdemo/auth.py132CODE
LOWtests/test_chat_completions_backend.py133CODE
LOWtests/test_chat.py84CODE
LOWtests/openai_realtime/test_websocket_router.py466CODE
LOWtests/openai_realtime/test_websocket_router.py847CODE
LOWscripts/benchmark_tts.py91CODE
LOWscripts/benchmark_stt.py110CODE
LOWscripts/synthetic_conversation_realtime_client.py205CODE
LOWscripts/synthetic_conversation_realtime_client.py283CODE
LOWscripts/listen_and_play_realtime.py136CODE
LOWscripts/listen_and_play_realtime.py219CODE
LOWsrc/speech_to_speech/s2s_pipeline.py259CODE
LOWsrc/speech_to_speech/s2s_pipeline.py609CODE
LOWsrc/speech_to_speech/s2s_pipeline.py781CODE
LOWsrc/speech_to_speech/s2s_pipeline.py938CODE
LOWsrc/speech_to_speech/baseHandler.py84CODE
LOWsrc/speech_to_speech/LLM/language_model.py291CODE
LOWsrc/speech_to_speech/LLM/language_model.py944CODE
LOWsrc/speech_to_speech/LLM/language_model.py981CODE
LOW…peech_to_speech/LLM/chat_completions_language_model.py206CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py330CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py411CODE
LOWsrc/speech_to_speech/LLM/chat.py174CODE
LOWsrc/speech_to_speech/LLM/chat.py296CODE
LOWsrc/speech_to_speech/LLM/chat.py369CODE
LOWsrc/speech_to_speech/LLM/chat.py472CODE
LOW…c/speech_to_speech/LLM/responses_api_language_model.py113CODE
LOWsrc/speech_to_speech/LLM/tool_call/function_call.py36CODE
LOW…c/speech_to_speech/connections/local_audio_streamer.py30CODE
LOW…c/speech_to_speech/connections/local_audio_streamer.py35CODE
LOWsrc/speech_to_speech/connections/socket_receiver.py53CODE
LOWsrc/speech_to_speech/connections/socket_sender.py37CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py100CODE
LOWsrc/speech_to_speech/connections/websocket_streamer.py152CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py280CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py98CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py775CODE
LOWsrc/speech_to_speech/api/openai_realtime/llm_proxy.py59CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py125CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py318CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py407CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py510CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py713CODE
LOW…eech_to_speech/api/openai_realtime/websocket_router.py514CODE
LOWsrc/speech_to_speech/VAD/vad_handler.py569CODE
LOW…/speech_to_speech/STT/lightning_whisper_mlx_handler.py70CODE
LOWsrc/speech_to_speech/STT/parakeet_tdt_handler.py236CODE
LOWsrc/speech_to_speech/STT/smart_progressive_streaming.py243CODE
LOWsrc/speech_to_speech/STT/smart_progressive_streaming.py159CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
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
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/speech_to_speech/LLM/README.md67 --responses_api_api_key YOUR_API_KEY \CODE
HIGHsrc/speech_to_speech/LLM/README.md138 --responses_api_api_key YOUR_API_KEYCODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWscripts/synthetic_conversation_realtime_client.py317 # Step 1: allocate a slot via the LB (if configured).COMMENT
LOWscripts/synthetic_conversation_realtime_client.py343 # Step 3: tell the LB the client actually connected (clears theCOMMENT
LOWscripts/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
LOWscripts/synthetic_conversation_realtime_client.py317 # Step 1: allocate a slot via the LB (if configured).COMMENT
LOWscripts/synthetic_conversation_realtime_client.py343 # Step 3: tell the LB the client actually connected (clears theCOMMENT
LOWscripts/synthetic_conversation_realtime_client.py423 # Step 5: release the LB slot, regardless of how the ws session ended.COMMENT
Over-Commented Block6 hits · 6 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 this._activeUserItemId = "";COMMENT
LOWtests/test_llm_utils.py21#COMMENT
LOWsrc/speech_to_speech/TTS/kokoro_handler.py41 # Additional European languages from Parakeet - map to closest Kokoro languageCOMMENT
LOW…eech_to_speech/api/openai_realtime/websocket_router.py61COMMENT
AI Structural Patterns7 hits · 6 pts
SeverityFileLineSnippetContext
LOWarchive/TTS/parler_handler.py53CODE
LOWsrc/speech_to_speech/LLM/language_model.py157CODE
LOW…to_speech/LLM/base_openai_compatible_language_model.py126CODE
LOWsrc/speech_to_speech/TTS/kokoro_handler.py87CODE
LOWsrc/speech_to_speech/TTS/pocket_tts_handler.py27CODE
LOWsrc/speech_to_speech/TTS/qwen3_tts_handler.py94CODE
LOWsrc/speech_to_speech/VAD/vad_handler.py59CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/speech_to_speech/VAD/vad_handler.py571 # Check if we're currently in a speech segment.COMMENT
LOWsrc/speech_to_speech/STT/mlx_audio_whisper_handler.py62 # 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
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…to_speech/LLM/base_openai_compatible_language_model.py440 # ── orchestration ─────────────────────────────────────────────────────────COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_qwen3_tts_handler_backend.py702CODE