Repository Analysis

moonshine-ai/moonshine

Very low latency speech to text, intent recognition, and text to speech, for building voice agents and interfaces

5.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of moonshine-ai/moonshine, a C++ project with 10,579 GitHub stars. SynthScan v2.0 examined 651,967 lines of code across 1736 source files, recording 3687 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 5.0 places this repository in the Low 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).

5.0
Adjusted Score
5.0
Raw Score
100%
Time Factor
2026-08-02
Last Push
10.6K
Stars
C++
Language
652.0K
Lines of Code
1.7K
Files
3.7K
Pattern Hits
2026-08-02
Scan Date
0.00
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 5MEDIUM 173LOW 3509

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 3687 distinct pattern matches across 21 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.

Over-Commented Block3086 hits · 2226 pts
SeverityFileLineSnippetContext
LOWmicro/CMakeLists.txt1# moonshine-micro -- on-device spelling recognition for the Raspberry Pi Pico 2COMMENT
LOWmicro/CMakeLists.txt21# Builds one .uf2 per app under build/examples/rp2350/:COMMENT
LOWmicro/CMakeLists.txt101COMMENT
LOWmicro/feature-generation/CMakeLists.txt1# feature-generation -- portable log-mel front-end (batch + streaming).COMMENT
LOW…ration/include/feature_generation/feature_generation.h1// feature-generation -- portable, heap-free log-mel spectrogram front-end.COMMENT
LOW…ration/include/feature_generation/feature_generation.h21// on fatal misconfiguration). No app, VAD, or STT dependencies -- so the moduleCOMMENT
LOW…ration/include/feature_generation/feature_generation.h141 // Active views: either the precomputed flash arrays or the *_storage_COMMENT
LOWmicro/feature-generation/src/fft_scratch.h1// Shared FFT scratch pool for the on-device log-mel front-ends.COMMENT
LOWmicro/stt-training/requirements.txt1# Python dependencies for the moonshine-micro STT training recipe.COMMENT
LOWmicro/stt-training/words.txt1# Robot command vocabulary -- the ONLY file you normally need to edit.COMMENT
LOWmicro/neural-tts/host/CMakeLists.txt1# Native (desktop) build of the on-device neural TTS engine.COMMENT
LOWmicro/neural-tts/host/tflm_ref/host_platform.cpp1// Host (desktop) implementations of the TFLM platform hooks the RP2350 buildCOMMENT
LOWmicro/neural-tts/host/tflm_ref/transpose_conv.cpp21#include "tensorflow/lite/c/builtin_op_data.h"COMMENT
LOWmicro/neural-tts/host/tflm_ref/conv.cpp21// reusing conv_common.cpp's ConvInit / ConvPrepare so the Prepare-stageCOMMENT
LOWmicro/neural-tts/host/tflm_ref/add.cpp21#include "tensorflow/lite/c/common.h"COMMENT
LOWmicro/neural-tts/include/neural_tts/neural_tts.h1// neural_tts -- black-box text-to-speech for the RP2350.COMMENT
LOWmicro/neural-tts/include/neural_tts/neural_tts.h21//COMMENT
LOWmicro/neural-tts/include/neural_tts/pack_format.h1// Binary layout of the neural-TTS flash pack, mirroringCOMMENT
LOWmicro/neural-tts/include/neural_tts/pack_format.h21COMMENT
LOWmicro/neural-tts/include/neural_tts/pb_decoder.h1// TFLM wrapper for the Phase B RVQ decoder (s16x8: int16 activations,COMMENT
LOWmicro/neural-tts/include/neural_tts/pb_decoder.h61 static void GetFrameThunk(void* user, int t, WorldFrame* frame);COMMENT
LOWmicro/neural-tts/include/neural_tts/worldlite_synth.h1// WORLD-lite vocoder synthesis (float32, kissfft) for the RP2350.COMMENT
LOWmicro/klatt-tts/include/tts/synth_internal.h1// Shared internals for the batch (synth.cc) and streaming (synth_stream.cc)COMMENT
LOWmicro/klatt-tts/include/tts/tts.h1// tts -- portable, dependency-free formant (Klatt-style) text-to-speech.COMMENT
LOWmicro/klatt-tts/include/tts/tts.h21// float buf[256];COMMENT
LOWmicro/klatt-tts/include/tts/config.h1// Externalized, tunable voice parameters.COMMENT
LOWmicro/klatt-tts/include/tts/config.h41 // --- Legacy Rosenberg pulse shape (fractions of a pitch period) ---COMMENT
LOWmicro/klatt-tts/include/tts/config.h61 // single 0..1 control, but they are independently tunable (e.g. raise pitchCOMMENT
LOWmicro/klatt-tts/include/tts/phonemes.h1// English phoneme inventory for the formant synthesizer.COMMENT
LOWmicro/klatt-tts/include/tts/synth_stream.h1// Streaming, caller-arena formant synthesizer for the RP2350 (and desktop).COMMENT
LOWmicro/klatt-tts/include/tts/synth_stream.h21#ifndef TTS_SYNTH_STREAM_H_COMMENT
LOWmicro/klatt-tts/include/tts/klatt.h1// Klatt-style cascade formant synthesizer (simplified).COMMENT
LOWmicro/klatt-tts/include/tts/klatt.h81 // Cycle-to-cycle micro-perturbations applied once per glottal period: jitterCOMMENT
LOWmicro/g2p/include/g2p/g2p_dict.h1// Baked common-word pronunciation dictionary + runtime override table.COMMENT
LOWmicro/g2p/include/g2p/g2p.h1// English grapheme-to-phoneme front end.COMMENT
LOWmicro/g2p/include/g2p/g2p.h21#include <vector>COMMENT
LOWmicro/g2p/src/g2p_dict_data.h1// AUTO-GENERATED by tools/build_g2p_dict.py -- do not edit by hand.COMMENT
LOWmicro/g2p/src/g2p_rules.h1// Rule-based English letter-to-sound (grapheme -> IPA).COMMENT
LOWmicro/g2p/src/g2p_numbers.h1// English number-token normalization (numeral -> IPA).COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt1# examples/rp2350 -- the RP2350 (Raspberry Pi Pico 2) firmware that ties theCOMMENT
LOWmicro/examples/rp2350/CMakeLists.txt181# target. Shared by both WiFi apps (USB-bridge audio and on-board hardwareCOMMENT
LOWmicro/examples/rp2350/lwipopts.h1// Minimal lwIP configuration for the voice WiFi-setup app (moonshine_micro_echo_wifi).COMMENT
LOWmicro/examples/rp2350/lwipopts.h21#define LWIP_SOCKET 0COMMENT
LOWmicro/examples/rp2350/lwipopts.h41#define LWIP_ICMP 1COMMENT
LOWmicro/examples/rp2350/lwipopts.h61#define MEM_STATS 0COMMENT
LOWmicro/examples/rp2350/scripts/flash.sh1#!/usr/bin/env bashCOMMENT
LOWmicro/examples/rp2350/scripts/flash.sh21# Build directory:COMMENT
LOWmicro/examples/rp2350/scripts/flash.sh41# first. The RP2350 bootrom usually labels its mass-storage volumeCOMMENT
LOWmicro/examples/rp2350/scripts/build.sh1#!/usr/bin/env bashCOMMENT
LOWmicro/examples/rp2350/scripts/build.sh21# configure step (e.g. -DSPELLING_TINY_VAD=ON).COMMENT
LOWmicro/examples/rp2350/scripts/monitor.sh1#!/usr/bin/env bashCOMMENT
LOWmicro/examples/rp2350/scripts/monitor.sh21# /dev/tty.usbmodem* - "modem callin" device. open() blocks untilCOMMENT
LOWmicro/examples/rp2350/scripts/monitor.sh41# - Polls for /dev/cu.usbmodem* until it appears (or honors anCOMMENT
LOWmicro/examples/rp2350/scripts/monitor.sh61# moonshine-micro/examples/rp2350/scripts/monitor.sh /dev/cu.usbmodem1101COMMENT
LOWmicro/examples/rp2350/src/i2s_audio_out.h1// I2S speaker output for the on-board echo service (MAX98357A / Adafruit 3006).COMMENT
LOWmicro/examples/rp2350/src/audio_service.h1// Live USB audio service: turns the laptop into the RP2350's mic + speaker.COMMENT
LOWmicro/examples/rp2350/src/audio_service.h41// front-align the 1 s clip into `window`, classify it with the SpellingCNN, andCOMMENT
LOWmicro/examples/rp2350/src/wifi_hardware_app.h1// Voice-driven WiFi setup on the on-board hardware audio I/O (I2S mic + I2SCOMMENT
LOWmicro/examples/rp2350/src/test_app.h1// The embedded-clip accuracy sweep (the moonshine_micro_echo_test target): runCOMMENT
LOWmicro/examples/rp2350/src/op_profiler.h1// Lightweight per-op profiler for the moonshine-micro SpellingCNN build.COMMENT
3026 more matches not shown…
Decorative Section Separators126 hits · 418 pts
SeverityFileLineSnippetContext
MEDIUMmicro/CMakeLists.txt35# ===========================================================================COMMENT
MEDIUMmicro/CMakeLists.txt37# ===========================================================================COMMENT
MEDIUMmicro/CMakeLists.txt68# ===========================================================================COMMENT
MEDIUMmicro/CMakeLists.txt70# ===========================================================================COMMENT
MEDIUMmicro/stt-training/tools/mine_peoples_speech.py66# --------------------------------------------------------------------------COMMENT
MEDIUMmicro/stt-training/tools/mine_peoples_speech.py68# --------------------------------------------------------------------------COMMENT
MEDIUMmicro/stt-training/tools/mine_peoples_speech.py184# --------------------------------------------------------------------------COMMENT
MEDIUMmicro/stt-training/tools/mine_peoples_speech.py186# --------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt31# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt33# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt104# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt106# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt114# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/neural-tts/host/CMakeLists.txt117# ---------------------------------------------------------------------------COMMENT
MEDIUMmicro/klatt-tts/include/tts/klatt.h13// aspiration noise ─────────────────────┘ │COMMENT
MEDIUMmicro/klatt-tts/include/tts/klatt.h17// frication noise ► [highpass] ► R_fric ──────────┴──► outputCOMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt25# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt216# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt225# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt239# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt269# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt307# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt335# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt383# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt415# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt445# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt500# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt705# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt746# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/examples/rp2350/CMakeLists.txt784# ----------------------------------------------------------------------------COMMENT
MEDIUMmicro/third-party/pico-tflmicro/CMakeLists_template.txt14# ====================================================================================COMMENT
MEDIUMmicro/third-party/pico-tflmicro/sync/create_tests.py16# ==============================================================================COMMENT
MEDIUM…cro/third-party/pico-tflmicro/sync/transform_source.py15# ==============================================================================COMMENT
MEDIUM…ird-party/pico-tflmicro/sync/fix_arduino_subfolders.py15# ==============================================================================COMMENT
MEDIUM…/third-party/pico-tflmicro/sync/create_tflm_arduino.py15# ==============================================================================COMMENT
MEDIUMmicro/stt/scripts/generate_embedded_data.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/download.py203# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/download.py205# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/download.py287# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/download.py289# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/download.py396# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/download.py398# ============================================================================COMMENT
MEDIUMpython/src/moonshine_voice/cached_embeddings.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/cached_embeddings.py255# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/moonshine_api.py10# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/moonshine_api.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py241# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py244# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py257# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py260# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py274# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py333# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py344# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py403# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/moonshine_voice/alphanumeric_listener.py405# ---------------------------------------------------------------------------COMMENT
66 more matches not shown…
Hyper-Verbose Identifiers106 hits · 103 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/stt_training/checkpoint.py61def load_representative_waveforms(CODE
LOWmicro/stt-training/stt_training/export.py197def _default_calibration_roots(args: argparse.Namespace) -> list[str]:CODE
LOWmicro/stt-training/stt_training/dataset.py120def speaker_independent_split(CODE
LOWmicro/stt-training/stt_training/dataset.py142def build_class_balanced_sampler(CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py73def add_example_ino_library_include(input_text):CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py79def replace_arduino_example_includes(line, _):CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py93def replace_esp_example_includes(line, source_path):CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py110def transform_arduino_sources(input_lines, flags):CODE
LOW…ird-party/pico-tflmicro/sync/fix_arduino_subfolders.py29def rename_example_subfolder_files(library_dir):CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py75def _remove_empty_directories_recursive(paths: Iterable[Path],CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py281 def _create_output_directories(CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py421 def _generate_base_paths_relative(CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py474 def _generate_repo_paths_relative(CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py511 def _remove_empty_directories(self) -> None:CODE
LOWpython/tests/test_mic_transcriber_threading.py165def test_capture_callback_is_not_blocked_by_transcription(monkeypatch):CODE
LOWpython/tests/test_cli.py58def test_console_scripts_are_installed(name):CODE
LOWpython/tests/test_cli.py65def test_help_lists_every_command():CODE
LOWpython/tests/test_cli.py72def test_version_reports_package_name():CODE
LOWpython/tests/test_cli.py78def test_unknown_command_is_a_usage_error():CODE
LOWpython/tests/test_cli.py84def test_subcommand_help_parses(command):CODE
LOWpython/tests/test_modules.py59def test_transcriber_transcribes_bundled_audio():CODE
LOWpython/tests/test_modules.py69def test_diarization_finds_two_speakers_on_endgame_clip():CODE
LOWpython/tests/test_modules.py137def test_intent_recognizer_matches_transcribed_command():CODE
LOWpython/tests/test_modules.py174def test_download_tts_assets_zipvoice_fetches_model_files():CODE
LOWpython/tests/test_modules.py189def test_dialog_flow_lists_output_devices():CODE
LOWpython/tests/test_modules.py201def test_mic_module_arguments_parse(module, args):CODE
LOWpython/src/moonshine_voice/intent_recognizer.py109 def _setup_function_signatures(self):CODE
LOWpython/src/moonshine_voice/mic_transcriber.py60 def _query_device_default_samplerate(self) -> Optional[int]:CODE
LOWpython/src/moonshine_voice/mic_transcriber.py286 def update_last_terminal_line(self, line: TranscriptLine):CODE
LOWpython/src/moonshine_voice/transcriber.py190 def transcribe_without_streaming(CODE
LOWpython/src/moonshine_voice/transcriber.py749 def format_line_by_speaker_spans(line: TranscriptLine) -> List[str]:CODE
LOWpython/src/moonshine_voice/transcriber.py772 def format_conversation_with_speakers(transcript: Transcript) -> str:CODE
LOWpython/src/moonshine_voice/download.py208def supported_embedding_models() -> list[str]:CODE
LOWpython/src/moonshine_voice/download.py213def supported_embedding_models_friendly() -> str:CODE
LOWpython/src/moonshine_voice/download.py220def get_embedding_model_variants(model_name: str = "embeddinggemma-300m") -> list[str]:CODE
LOWpython/src/moonshine_voice/download.py292def _spelling_group_from_manifest(manifest: dict) -> Optional[dict]:CODE
LOWpython/src/moonshine_voice/download.py403def normalize_moonshine_language_tag(language: str) -> str:CODE
LOWpython/src/moonshine_voice/download.py409def _normalize_tts_language_tag_display(tag: str) -> str:CODE
LOWpython/src/moonshine_voice/download.py416def dedupe_tts_language_tags_for_display(tags: List[str]) -> List[str]:CODE
LOWpython/src/moonshine_voice/download.py161def supported_languages_friendly() -> str:CODE
LOWpython/src/moonshine_voice/download.py171def get_components_for_model_info(model_info: dict) -> list[str]:CODE
LOWpython/src/moonshine_voice/download.py306def download_spelling_model_for_language(CODE
LOWpython/src/moonshine_voice/download.py453def _options_specify_asset_root(opts: Dict[str, Union[str, int, float, bool]]) -> bool:CODE
LOWpython/src/moonshine_voice/download.py505def _entries_to_present_and_downloadable(entries: List[TtsVoiceEntry]) -> TtsVoicesByAvailability:CODE
LOWpython/src/moonshine_voice/download.py511def _tts_voices_json_to_catalog(raw: str) -> Dict[str, List[TtsVoiceEntry]]:CODE
LOWpython/src/moonshine_voice/download.py643def _normalize_tts_voice_stem(stem: str) -> str:CODE
LOWpython/src/moonshine_voice/download.py653def _is_bare_tts_engine_selector(voice: str) -> bool:CODE
LOWpython/src/moonshine_voice/download.py683def validate_tts_voice_downloaded(CODE
LOWpython/src/moonshine_voice/download.py754def ensure_tts_voice_downloaded(CODE
LOWpython/src/moonshine_voice/download.py797def is_downloadable_tts_asset_key(key: str) -> bool:CODE
LOWpython/src/moonshine_voice/download.py805def cdn_url_for_tts_asset_key(key: str) -> str:CODE
LOWpython/src/moonshine_voice/tts.py129def _resolve_default_output_index(sd: Any) -> Optional[int]:CODE
LOWpython/src/moonshine_voice/tts.py219def _say_enumerate_output_devices(sd) -> List[Tuple[int, str]]:CODE
LOWpython/src/moonshine_voice/tts.py270def _select_output_sample_rate(CODE
LOWpython/src/moonshine_voice/tts.py360def _normalize_clone_argument(CODE
LOWpython/src/moonshine_voice/tts.py389def _autotranscribe_clone_pcm(CODE
LOWpython/src/moonshine_voice/tts.py423def _say_resolve_output_index(CODE
LOWpython/src/moonshine_voice/tts.py636 def _init_zipvoice_from_clone(CODE
LOWpython/src/moonshine_voice/tts.py734 def _announce_resolved_device(self, sd: Any, resolved: Optional[int]) -> None:CODE
LOWpython/src/moonshine_voice/cached_embeddings.py62def default_cached_embeddings_path() -> str:CODE
46 more matches not shown…
Excessive Try-Catch Wrapping99 hits · 96 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/tools/mine_peoples_speech.py114 except Exception as exc: # noqa: BLE001CODE
LOWmicro/stt-training/tools/mine_peoples_speech.py126 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/tools/mine_peoples_speech.py168 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/tools/synthesize.py71 except Exception: # noqa: BLE001 - fall back to the baked-in listCODE
LOWmicro/stt-training/tools/synthesize.py157 except Exception as exc: # noqa: BLE001CODE
LOWmicro/stt-training/tools/download_musan_rirs.py89 except Exception as exc: # noqa: BLE001CODE
LOWmicro/stt-training/tools/extract_clips.py248 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/tools/extract_clips.py298 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/stt_training/checkpoint.py76 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/stt_training/augment.py93 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/stt_training/augment.py119 except Exception: # noqa: BLE001CODE
LOWmicro/stt-training/stt_training/dataset.py95 except Exception as exc: # noqa: BLE001CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py191 except Exception as exc: # noqa: BLE001CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py202 except Exception as exc: # noqa: BLE001CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py303 except Exception as exc: # noqa: BLE001CODE
MEDIUMmicro/examples/rp2350/scripts/usb_audio_bridge.py108def _fill(self) -> bool:CODE
LOWpython/src/moonshine_voice/mic_transcriber.py180 except Exception as e:CODE
LOWpython/src/moonshine_voice/transcriber.py495 except Exception as e:CODE
LOWpython/src/moonshine_voice/transcriber.py612 except Exception as e:CODE
LOWpython/src/moonshine_voice/transcriber.py626 except Exception:CODE
LOWpython/src/moonshine_voice/transcriber.py628 except Exception:CODE
LOWpython/src/moonshine_voice/download.py323 except Exception:CODE
LOWpython/src/moonshine_voice/download.py372 except Exception as exc: # pragma: no cover - best-effort prefetchCODE
MEDIUMpython/src/moonshine_voice/tts.py1326def __del__(self) -> None:CODE
LOWpython/src/moonshine_voice/tts.py141 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py148 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py185 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py189 except Exception as e:CODE
LOWpython/src/moonshine_voice/tts.py405 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py672 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py764 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py785 except Exception as e:CODE
LOWpython/src/moonshine_voice/tts.py1051 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1088 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1193 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1233 except Exception as stop_err: # pragma: no cover - defensiveCODE
LOWpython/src/moonshine_voice/tts.py1251 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1279 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1306 except Exception:CODE
LOWpython/src/moonshine_voice/tts.py1329 except Exception:CODE
LOWpython/src/moonshine_voice/cached_embeddings.py113 except Exception as e:CODE
LOWpython/src/moonshine_voice/cli.py64 except Exception: # pragma: no cover - defensive fallbackCODE
MEDIUMpython/src/moonshine_voice/cli.py50def _package_version() -> str:CODE
LOWpython/src/moonshine_voice/download_file.py18except Exception: # pragma: no cover - optional acceleration onlyCODE
LOWpython/src/moonshine_voice/alphanumeric_listener.py948 except Exception as e:CODE
LOWpython/src/moonshine_voice/alphanumeric_listener.py973 except Exception as e:CODE
LOWpython/src/moonshine_voice/alphanumeric_listener.py1045 except Exception as e:CODE
LOWpython/src/moonshine_voice/g2p.py114 except Exception:CODE
MEDIUMpython/src/moonshine_voice/g2p.py111def __del__(self) -> None:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1901 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1911 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py293 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py321 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py330 except Exception as exc:CODE
LOWpython/src/moonshine_voice/dialog_flow.py920 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py962 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1064 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1072 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1203 except Exception as e:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1229 except Exception as e:CODE
39 more matches not shown…
Unused Imports109 hits · 95 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/tools/mine_peoples_speech.py32CODE
LOWmicro/stt-training/tools/synthesize.py19CODE
LOWmicro/stt-training/tools/download_musan_rirs.py20CODE
LOWmicro/stt-training/tools/extract_clips.py21CODE
LOWmicro/stt-training/stt_training/checkpoint.py3CODE
LOWmicro/stt-training/stt_training/__init__.py12CODE
LOWmicro/stt-training/stt_training/__init__.py12CODE
LOWmicro/stt-training/stt_training/__init__.py12CODE
LOWmicro/stt-training/stt_training/__init__.py12CODE
LOWmicro/stt-training/stt_training/features.py8CODE
LOWmicro/stt-training/stt_training/export.py24CODE
LOWmicro/stt-training/stt_training/augment.py12CODE
LOWmicro/stt-training/stt_training/augment.py18CODE
LOWmicro/stt-training/stt_training/model.py9CODE
LOWmicro/stt-training/stt_training/model.py14CODE
LOWmicro/stt-training/stt_training/dataset.py8CODE
LOWmicro/stt-training/stt_training/train.py14CODE
LOWmicro/stt-training/stt_training/words.py7CODE
LOWmicro/stt-training/stt_training/evaluate.py14CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py30CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py36CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py219CODE
LOW…examples/rp2350/scripts/generate_speaker_test_clips.py11CODE
LOWmicro/examples/rp2350/scripts/capture_neural_tts.py11CODE
LOWmicro/examples/rp2350/scripts/capture_stt.py25CODE
LOWmicro/third-party/pico-tflmicro/sync/create_tests.py19CODE
LOWmicro/third-party/pico-tflmicro/sync/create_tests.py20CODE
LOWmicro/third-party/pico-tflmicro/sync/create_tests.py21CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py21CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py22CODE
LOW…cro/third-party/pico-tflmicro/sync/transform_source.py23CODE
LOW…ird-party/pico-tflmicro/sync/fix_arduino_subfolders.py18CODE
LOW…ird-party/pico-tflmicro/sync/fix_arduino_subfolders.py19CODE
LOW…ird-party/pico-tflmicro/sync/fix_arduino_subfolders.py20CODE
LOWmicro/vad/scripts/generate_vad_embedded_data.py23CODE
LOWmicro/vad/scripts/generate_vad_embedded_data.py26CODE
LOWmicro/stt/scripts/desktop_parity.py21CODE
LOWmicro/stt/scripts/desktop_parity.py25CODE
LOWmicro/stt/scripts/generate_embedded_data.py32CODE
LOWmicro/stt/scripts/generate_embedded_data.py36CODE
LOWpython/src/moonshine_voice/mic_transcriber.py8CODE
LOWpython/src/moonshine_voice/transcriber.py22CODE
LOWpython/src/moonshine_voice/cached_embeddings.py38CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py8CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py18CODE
LOWpython/src/moonshine_voice/__init__.py27CODE
LOWpython/src/moonshine_voice/__init__.py27CODE
LOWpython/src/moonshine_voice/__init__.py27CODE
LOWpython/src/moonshine_voice/__init__.py27CODE
49 more matches not shown…
Structural Annotation Overuse24 hits · 44 pts
SeverityFileLineSnippetContext
LOWmicro/examples/rp2350/CMakeLists.txt502# Step 1: blink the LED, nothing else.COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt523# Step 2: blinky + one printf per second over USB CDC.COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt537# Step 3: step 2 + heap probe + kissfft plans + one FFT per tick.COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt551# Step 4: same code as step 3, but with the TTS app's custom memoryCOMMENT
LOWmicro/examples/rp2350/CMakeLists.txt570# Step 5: step 4 + real WorldLiteSynth construction + FFT self-test/tick.COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt588# Step 6: step 5 + PbDecoder (TFLM) + one tile decode per tick.COMMENT
LOWmicro/examples/rp2350/CMakeLists.txt619 # Step 7: step 6 + full synthesis per utterance, PCM discarded.COMMENT
LOW…arty/pico-tflmicro/src/tensorflow/lite/core/c/common.h1428// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOW…arty/pico-tflmicro/src/tensorflow/lite/core/c/common.h1434// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOW…arty/pico-tflmicro/src/tensorflow/lite/core/c/common.h1440// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOW…arty/pico-tflmicro/src/tensorflow/lite/core/c/common.h1009 /// NOTE: This function is expected to be paired with ReleaseSubgraphContext()COMMENT
LOW…arty/pico-tflmicro/src/tensorflow/lite/core/c/common.h1020 /// NOTE: This function is expected to be used after AcquireSubgraphContext()COMMENT
LOWcore/word-alignment.cpp196 // Step 1: Copy cross_attention_data into a working bufferCOMMENT
LOWcore/word-alignment.cpp204 // Step 2: Z-score normalize per head (along the time/encoder_frames axis)COMMENT
LOWcore/word-alignment.cpp242 // Step 3: Median filter (width=7) along the last axisCOMMENT
LOWcore/word-alignment.cpp248 // Step 4: Average across all heads/layers -> [n_steps, encoder_frames]COMMENT
LOWcore/word-alignment.cpp267 // Step 5: Run DTW on the negated matrixCOMMENT
LOWcore/word-alignment.cpp279 // Step 6: Group tokens into words using SentencePiece word boundariesCOMMENT
LOWcore/word-alignment.cpp332 // Step 7: Map DTW alignment to word start/end timesCOMMENT
LOWcore/word-alignment.cpp383 // Step 8: Fix overlapping word boundaries (snap to midpoint)COMMENT
LOWscripts/export-decoder-with-attention.py76 # Step 1: Load the original .ort and save as ONNXCOMMENT
LOWscripts/export-decoder-with-attention.py84 # Step 2: Modify the ONNX graph to add attention outputsCOMMENT
LOWscripts/export-decoder-with-attention.py194 # Step 3: Convert to ORT formatCOMMENT
LOWscripts/export-decoder-with-attention.py204 # Step 4: VerifyCOMMENT
Deep Nesting45 hits · 39 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/tools/mine_peoples_speech.py131CODE
LOWmicro/stt-training/tools/mine_peoples_speech.py247CODE
LOWmicro/stt-training/tools/synthesize.py85CODE
LOWmicro/stt-training/tools/download_musan_rirs.py37CODE
LOWmicro/stt-training/tools/download_musan_rirs.py67CODE
LOWmicro/stt-training/tools/extract_clips.py171CODE
LOWmicro/stt-training/stt_training/model.py146CODE
LOWmicro/stt-training/stt_training/train.py88CODE
LOWmicro/stt-training/stt_training/evaluate.py38CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py140CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py224CODE
LOWmicro/examples/rp2350/scripts/usb_audio_bridge.py268CODE
LOWmicro/examples/rp2350/scripts/capture_stt.py117CODE
LOWmicro/third-party/pico-tflmicro/sync/create_tests.py33CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py358CODE
LOW…/third-party/pico-tflmicro/sync/create_tflm_arduino.py421CODE
LOWmicro/stt/scripts/generate_embedded_data.py617CODE
LOWpython/tests/test_docs.py185CODE
LOWpython/src/moonshine_voice/transcriber.py231CODE
LOWpython/src/moonshine_voice/transcriber.py591CODE
LOWpython/src/moonshine_voice/download.py511CODE
LOWpython/src/moonshine_voice/tts.py1356CODE
LOWpython/src/moonshine_voice/tts.py1288CODE
LOWpython/src/moonshine_voice/moonshine_api.py182CODE
LOWpython/src/moonshine_voice/moonshine_api.py200CODE
LOWpython/src/moonshine_voice/utils.py47CODE
LOWpython/src/moonshine_voice/errors.py107CODE
LOWpython/src/moonshine_voice/download_file.py75CODE
LOWpython/src/moonshine_voice/alphanumeric_listener.py1063CODE
LOWpython/src/moonshine_voice/dialog_flow.py2120CODE
LOWpython/src/moonshine_voice/dialog_flow.py380CODE
LOWpython/src/moonshine_voice/dialog_flow.py1684CODE
LOWpython/src/moonshine_voice/dialog_flow.py1865CODE
LOWexamples/python/ollama-voice/ollama_voice.py69CODE
LOWscripts/analyze_ko_phoneme_patterns.py98CODE
LOWscripts/eval-alphanumeric.py138CODE
LOWscripts/convert_tokenizer.py29CODE
LOWscripts/analyze_ko_stress.py198CODE
LOWscripts/compare_ko_phonemes.py87CODE
LOWscripts/tts_g2p_intelligibility.py360CODE
LOWscripts/tts_g2p_intelligibility.py1197CODE
LOWscripts/tts_g2p_intelligibility.py1556CODE
LOWscripts/export-decoder-with-attention.py33CODE
LOWscripts/generate-model-file-metadata.py44CODE
LOWscripts/generate-model-file-metadata.py78CODE
AI Slop Vocabulary13 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM…arty/flatbuffers/include/flatbuffers/vector_downward.h34// Essentially, this supports 2 std::vectors in a single buffer.COMMENT
MEDIUM…tflmicro/src/tensorflow/lite/micro/micro_interpreter.h144 // utilize the space. If it's not the case, the optimial arena size would beCOMMENT
MEDIUM…src/tensorflow/lite/micro/kernels/micro_tensor_utils.h41// TODO(b/230666277): consider removing this since micro does not utilize itCOMMENT
MEDIUM…ensorflow/lite/kernels/internal/optimized/neon_check.h18// TFLM does not need to utilize any Neon optimizations.COMMENT
MEDIUMcore/third-party/Eigen/src/Core/ConditionEstimator.h128 // added to make the algorithm more robust in certain corner cases whereCOMMENT
MEDIUMcore/third-party/Eigen/src/Core/arch/SSE/PacketMath.h123// to leverage AVX instructions.COMMENT
MEDIUMcore/third-party/Eigen/src/Core/arch/SSE/Complex.h26// to leverage AVX instructions.COMMENT
MEDIUMcore/third-party/Eigen/src/Core/arch/SSE/Complex.h194// to leverage AVX instructions.COMMENT
MEDIUMcore/third-party/Eigen/src/Core/arch/AVX/PacketMath.h56// to leverage AVX512 instructions.COMMENT
MEDIUMcore/third-party/Eigen/src/Core/arch/AVX/PacketMath.h638// NOTE: leverage _mm256_i32gather_ps and _mm256_i32gather_pd if AVX2 instructions are availableCOMMENT
MEDIUMcore/third-party/Eigen/src/Geometry/AngleAxis.h200 // let's use the robust Quaternion implementation:COMMENT
LOWpython/src/moonshine_voice/transcriber.py492 # transcribe() already calls _notify_from_transcript(), so we just call itCOMMENT
LOWscripts/reliability-remote.sh357 # cheap threaded sanity check. Building the whole tree would just add minutes.COMMENT
Example Usage Blocks23 hits · 35 pts
SeverityFileLineSnippetContext
LOWmicro/examples/rp2350/scripts/flash.sh5# Usage:COMMENT
LOWmicro/examples/rp2350/scripts/build.sh14# Usage:COMMENT
LOWmicro/examples/rp2350/scripts/monitor.sh59# Usage:COMMENT
LOW…co-tflmicro/src/tensorflow/lite/micro/micro_profiler.h108// Usage example:COMMENT
LOWcore/moonshine-cpp.h705/// Example usage:COMMENT
LOWcore/moonshine-cpp.h805/// Example usage:COMMENT
LOWpython/src/moonshine_voice/download_file.py255# Example usageCOMMENT
LOWscripts/test-android.sh12# Usage:COMMENT
LOWscripts/check-banned-constructs.sh21# Usage:COMMENT
LOWscripts/build-android.sh15# Usage:COMMENT
LOWscripts/finish-release.sh7# Usage:COMMENT
LOWscripts/test-model-downloads.sh32# Usage:COMMENT
LOWscripts/test-python.sh8# Usage:COMMENT
LOWscripts/check-clang-tidy.sh16# Usage:COMMENT
LOWscripts/test-examples.sh12# Usage:COMMENT
LOWscripts/format-core.sh8# Usage:COMMENT
LOWscripts/start-candidate.sh47# Usage:COMMENT
LOWscripts/update-version.sh5# Usage:COMMENT
LOWscripts/test-docs.sh11# Usage:COMMENT
LOWscripts/gh-upload-retry.sh14# Usage:COMMENT
LOWscripts/build-all-platforms.sh5# Usage:COMMENT
LOWscripts/reliability.sh17# Usage:COMMENT
LOWscripts/preflight-release.sh7# Usage:COMMENT
Modern AI Meta-Vocabulary11 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md1036One common issue to watch out for if you're using models that don't use the Latin alphabet (so any languages except EnglCODE
MEDIUMREADME.md1286A flow is an ordinary Python generator function that takes a [`Dialog`](#dialog) as its argument and yields prompt objecCODE
MEDIUMcore/moonshine-tts/CMakeLists.txt166 # ZipVoice zero-shot voice-cloning engine: compiled-in ai.zipvoice custom ops + embedded VCTKCOMMENT
MEDIUMpython/README.md48# We use an event-driven interface to respond in real timeCOMMENT
MEDIUMpython/src/moonshine_voice/download.py39# The speech-to-text and embedding model tables used to be duplicated here. TheyCOMMENT
MEDIUMpython/src/moonshine_voice/tts.py491 # ZipVoice zero-shot voice cloning: supply your own reference clip via ``clone`` (a .wavCOMMENT
MEDIUMpython/src/moonshine_voice/dialog_flow.py2115# and every trigger / confirmation / choice goes through the embedding model.COMMENT
MEDIUMpython/src/moonshine_voice/dialog_flow.py637 # utterances) fall through to the embedding model, whichCOMMENT
MEDIUMexamples/raspberry-pi/my-dalek/my-dalek.py36# embedding model it downloads and loads for us. These are "globals": one-shotCOMMENT
MEDIUMscripts/eval-speaker-id.py12# Starting point for v1 of speaker identification (embedding model +COMMENT
MEDIUMscripts/eval-model-accuracy.py131 # so we can use a lower max tokens per second to avoid hallucinations.COMMENT
Self-Referential Comments9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…o/third-party/pico-tflmicro/sync/sync_with_upstream.sh22# Create the TFLM base treeCOMMENT
MEDIUM…o/third-party/pico-tflmicro/sync/sync_with_upstream.sh30# Create the final tree in ${ARDUINO_REPO_DIR} using the base tree in ${TFLM_TREE_DIR}COMMENT
MEDIUMmicro/third-party/pico-tflmicro/sync/MANIFEST.ini2# This file is parsed by the create_tflm_arduino.py script usingCOMMENT
MEDIUMmicro/third-party/pico-tflmicro/sync/MANIFEST.ini11# The following sections are required:COMMENT
MEDIUMpython/src/moonshine_voice/intent_recognizer.py92 # Create the intent recognizerCOMMENT
MEDIUMpython/src/moonshine_voice/transcriber.py144 # Create a ctypes array from the options listCOMMENT
MEDIUMscripts/eval-speaker-id.py46 # Create a new transcriber for each sample to avoid remembering previous speaker IDs.COMMENT
MEDIUMscripts/gh-upload-retry.sh31# Create the release if it is missing. Pass -R explicitly because callers mayCOMMENT
MEDIUMscripts/publish-binary.sh122 # Create the release if needed and upload with a bounded per-attempt timeoutCOMMENT
Verbosity Indicators12 hits · 24 pts
SeverityFileLineSnippetContext
LOWcore/word-alignment.cpp196 // Step 1: Copy cross_attention_data into a working bufferCOMMENT
LOWcore/word-alignment.cpp204 // Step 2: Z-score normalize per head (along the time/encoder_frames axis)COMMENT
LOWcore/word-alignment.cpp242 // Step 3: Median filter (width=7) along the last axisCOMMENT
LOWcore/word-alignment.cpp248 // Step 4: Average across all heads/layers -> [n_steps, encoder_frames]COMMENT
LOWcore/word-alignment.cpp267 // Step 5: Run DTW on the negated matrixCOMMENT
LOWcore/word-alignment.cpp279 // Step 6: Group tokens into words using SentencePiece word boundariesCOMMENT
LOWcore/word-alignment.cpp332 // Step 7: Map DTW alignment to word start/end timesCOMMENT
LOWcore/word-alignment.cpp383 // Step 8: Fix overlapping word boundaries (snap to midpoint)COMMENT
LOWscripts/export-decoder-with-attention.py76 # Step 1: Load the original .ort and save as ONNXCOMMENT
LOWscripts/export-decoder-with-attention.py84 # Step 2: Modify the ONNX graph to add attention outputsCOMMENT
LOWscripts/export-decoder-with-attention.py194 # Step 3: Convert to ORT formatCOMMENT
LOWscripts/export-decoder-with-attention.py204 # Step 4: VerifyCOMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcore/third-party/Eigen/src/Core/arch/SSE/PacketMath.h547 // In this implementation, we take advantage of the fact that pmin/pmax for SSECOMMENT
HIGHcore/third-party/Eigen/src/Core/arch/SSE/PacketMath.h556 // In this implementation, we take advantage of the fact that pmin/pmax for SSECOMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpython/src/moonshine_voice/utils.py48 Load a WAV file and return audio data as float array and sample rate. Supports 16-bit and 24-bit PCM WAV filesSTRING
HIGHpython/src/moonshine_voice/download_file.py85 Download a file with progress bar, resume support, and integrity checking. Args: url: URL to download STRING
Modern Structural Boilerplate7 hits · 6 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/stt_training/__init__.py14__all__ = [CODE
LOWpython/src/moonshine_voice/intent_recognizer.py454 def set_on_intent(self, callback: Optional[Callable[[IntentMatch], None]]) -> None:CODE
LOWpython/src/moonshine_voice/mic_transcriber.py227 def set_transcribe_flags(self, flags: int) -> None:CODE
LOWpython/src/moonshine_voice/transcriber.py468 def set_transcribe_flags(self, flags: int) -> None:CODE
LOWpython/src/moonshine_voice/__init__.py266__all__ = [CODE
LOWpython/src/moonshine_voice/dialog_flow.py1010 def set_spelling_mode(active: bool) -> None:CODE
LOWpython/src/moonshine_voice/dialog_flow.py1519 def _set_spelling_mode(self, active: bool) -> None:CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcore/third-party/Eigen/src/Core/util/SymbolicIndex.h19 * Here is a simple example:COMMENT
MEDIUM…hird-party/Eigen/src/Core/arch/AltiVec/MatrixProduct.h114 * As mentioned earlier MatrixProduct breaks complex numbers into a real vector and a complex vector so packing hasCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/generate-model-file-metadata.py157 " if (it != end && it->url == key) {",CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/src/moonshine_voice/download_file.py114 # Check if already downloaded and valid. For cached files we only verifyCOMMENT
LOWscripts/analyze_ko_stress.py150 # Check if everything before ˈ is consonantal onsetCOMMENT
LOWscripts/publish-examples.sh13# Check if the GitHub release exists; create it if missingCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/stt_training/features.py23CODE
LOWmicro/stt-training/stt_training/augment.py36CODE
LOWpython/src/moonshine_voice/mic_transcriber.py22CODE
LOWpython/src/moonshine_voice/tts.py477CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcore/moonshine-utils/debug-utils-test.cpp71 "Lorem ipsum dolor sit amet, consectetur adipiscing "CODE
LOWcore/moonshine-utils/debug-utils-test.cpp71 "Lorem ipsum dolor sit amet, consectetur adipiscing "CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…rd_party/flatbuffers/include/flatbuffers/flexbuffers.h128// TODO: implement proper support for 8/16bit floats, or decide not toCOMMENT