AI Slop Code RIsk Monitor

moonshine-ai/moonshine

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

6.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for moonshine-ai/moonshine, a C++ project with 11,210 GitHub stars. SynthScan examined 527,139 lines of code across 1784 source files, recording 3186 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 6.3 (Moderate 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.

6.3
Adjusted Signal
6.3
Raw Pattern Score
100%
Time Factor
2026-10-02
Last Push
11.2K
Stars
C++
Language
527.1K
Lines of Code
1.8K
Files
3.2K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 20.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 9.2/100 · LOW

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

PR Review Velocity Impact 30.0/100 · MEDIUM

Which changes need focused human review? 3186 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 35MEDIUM 202LOW 2949

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 3186 distinct pattern matches across 22 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.

Over-Commented Block2355 hits · 1890 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
2295 more matches not shown…
Decorative Section Separators150 hits · 528 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
MEDIUM⚡micro/neural-tts/host/CMakeLists.txt104# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡micro/neural-tts/host/CMakeLists.txt106# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡micro/neural-tts/host/CMakeLists.txt114# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡micro/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
MEDIUMexamples/python/agent_flow.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py241# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/python/agent_flow.py243# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/start-candidate.sh3# =============================================================================COMMENT
MEDIUMscripts/start-candidate.sh5# =============================================================================COMMENT
MEDIUM⚡scripts/start-candidate.sh45# =============================================================================COMMENT
MEDIUM⚡scripts/start-candidate.sh47# =============================================================================COMMENT
MEDIUMscripts/reliability-remote.sh108# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh111# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh157# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh159# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh180# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh182# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh327# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/reliability-remote.sh329# ---------------------------------------------------------------------------COMMENT
90 more matches not shown…
Hyper-Verbose Identifiers232 hits · 228 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
LOWexamples/python/basic_transcription.py16def transcribe_without_streaming(CODE
LOWexamples/python/basic_transcription.py30def transcribe_with_streaming(CODE
LOWexamples/web/assets/moonshine-ui.js244export async function purgeModelCacheIfRequested() {CODE
LOWexamples/web/assets/moonshine-ui.js461export function setPreferredSnippetLanguage(language) {CODE
LOWexamples/web/assets/moonshine-ui.js489export function setPreferredAudioDeviceId(deviceId) {CODE
LOWexamples/web/assets/moonshine-ui.js538export async function preferredAudioDeviceLabel() {CODE
LOWscripts/check-ort-weight-storage.py52def initializer_bytes_by_dtype(path: Path) -> dict[str, int]:CODE
LOWscripts/eval-alphanumeric.py46def folder_name_to_expected_char(name: str, matcher: AlphanumericMatcher) -> str:CODE
LOWscripts/tts_g2p_intelligibility.py226def moonshine_tag_to_wikipedia_lang(tag: str) -> Optional[str]:CODE
LOWscripts/tts_g2p_intelligibility.py238def moonshine_tag_to_whisper_language(tag: str) -> Optional[str]:CODE
LOWscripts/tts_g2p_intelligibility.py250def moonshine_tag_to_upstream_kokoro_lang_code(tag: str) -> Optional[str]:CODE
LOWscripts/tts_g2p_intelligibility.py325def _wiki_max_graphemes_for_moonshine_tag(tag: Optional[str], base_max: int = 450) -> int:CODE
LOWscripts/tts_g2p_intelligibility.py360def _split_oversized_wiki_piece(CODE
LOWscripts/tts_g2p_intelligibility.py446def wikipedia_paragraph_to_candidates(CODE
LOWscripts/tts_g2p_intelligibility.py486def _parse_datasets_version_tuple(version: str) -> Tuple[int, int, int]:CODE
LOWscripts/tts_g2p_intelligibility.py506def require_datasets_compatible_with_python() -> None:CODE
LOWscripts/tts_g2p_intelligibility.py569def _prefers_natural_wikipedia_prose_for_tag(tag: Optional[str]) -> bool:CODE
LOWscripts/tts_g2p_intelligibility.py576def _german_wikipedia_lead_penalty(line: str) -> int:CODE
LOWscripts/tts_g2p_intelligibility.py655def fetch_lines_for_moonshine_language(CODE
LOWscripts/tts_g2p_intelligibility.py672def all_moonshine_tts_language_tags() -> List[str]:CODE
LOWscripts/tts_g2p_intelligibility.py754def _tts_track_to_engine_slug(track: str) -> str:CODE
LOWscripts/tts_g2p_intelligibility.py766def _tts_sentence_prefix_for_cache(text: str, max_chars: int = 12) -> str:CODE
LOWscripts/tts_g2p_intelligibility.py785def _tts_cache_wav_and_meta_paths(root: Path, lang: str, stem: str) -> Tuple[Path, Path]:CODE
LOWscripts/tts_g2p_intelligibility.py955def overlay_repo_tts_data_into_asset_root(CODE
LOWscripts/tts_g2p_intelligibility.py989def _kokoro_ja_text_for_misaki_cutlet(text: str) -> str:CODE
LOWscripts/tts_g2p_intelligibility.py995def moonshine_kokoro_catalog_voice_to_package_voice(catalog_id: str) -> str:CODE
LOWscripts/tts_g2p_intelligibility.py1023def ensure_piper_espeak_phonemizer_uses_nfc_for_eval() -> None:CODE
LOWscripts/tts_g2p_intelligibility.py1094def build_upstream_kokoro_pipeline(CODE
LOWscripts/tts_g2p_intelligibility.py1112def synthesize_upstream_kokoro_package(CODE
LOWscripts/tts_g2p_intelligibility.py1144def synthesize_upstream_piper_package(CODE
LOWscripts/tts_g2p_intelligibility.py1518def _reference_cer_from_upstream_averages(CODE
LOWscripts/tts_g2p_intelligibility.py1532def format_cer_summary_markdown_table(CODE
LOWlanguage-bindings/python/tests/test_import_isolation.py18def test_inference_import_does_not_load_requests():STRING
LOWlanguage-bindings/python/tests/test_agent_flow_api.py23def test_otherwise_receives_speech_that_matched_nothing(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py31def test_otherwise_does_not_see_triggers_or_answers(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py51def test_the_built_in_cancel_stops_the_active_flow(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py69def test_the_built_in_start_over_restarts_the_active_flow(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py86def test_the_built_in_globals_do_not_claim_speech_outside_a_flow(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py102def test_registering_a_built_in_phrase_with_always_makes_it_live(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py114def test_otherwise_silences_the_didnt_get_that_cue(agent):CODE
LOW⚡language-bindings/python/tests/test_agent_flow_api.py126def test_otherwise_returns_the_agent_for_chaining(agent):CODE
LOW⚡language-bindings/python/tests/test_agent_flow_api.py130def test_a_failing_otherwise_handler_is_reported_not_raised(agent):CODE
LOW⚡language-bindings/python/tests/test_agent_flow_api.py140def test_say_stream_speaks_the_pieces_a_flow_yields(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py153def test_a_failing_say_stream_source_is_reported_not_raised(agent):CODE
LOWlanguage-bindings/python/tests/test_agent_flow_api.py172def test_say_stream_outside_a_flow_speaks_as_one_utterance(agent):CODE
LOWlanguage-bindings/python/tests/test_lora_isolation.py26def test_inference_import_does_not_load_training_stack():STRING
172 more matches not shown…
Empty Error Handlers30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHmicro/stt-training/tools/mine_peoples_speech.py126except Exception: # noqa: BLE001CODE
HIGHmicro/stt-training/tools/synthesize.py71except Exception: # noqa: BLE001 - fall back to the baked-in listCODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py96except termios.error:CODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py416except KeyboardInterrupt:CODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py212except queue.Full:CODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py264except queue.Empty:CODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py308except OSError:CODE
HIGHmicro/examples/rp2350/scripts/usb_audio_bridge.py331except (IndexError, ValueError):CODE
HIGHmicro/examples/rp2350/scripts/capture_stt.py66except termios.error:CODE
HIGHexamples/python/mic_transcription.py60except KeyboardInterrupt:CODE
HIGHexamples/python/ollama-voice/ollama_voice.py150except KeyboardInterrupt:CODE
HIGHscripts/export-decoder-with-attention.py137except (IndexError, ValueError):CODE
HIGHscripts/eval-librispeech.py723except ImportError:CODE
HIGHscripts/export_zipvoice_voices_for_cpp.py173except Exception:CODE
HIGHlanguage-bindings/python/tests/test_docs.py195except SyntaxError:CODE
HIGH…bindings/python/src/moonshine_voice/mic_transcriber.py634except KeyboardInterrupt:CODE
HIGH…age-bindings/python/src/moonshine_voice/transcriber.py743except Exception:CODE
HIGH…age-bindings/python/src/moonshine_voice/transcriber.py741except Exception:CODE
HIGHlanguage-bindings/python/src/moonshine_voice/tts.py352except (IndexError, KeyError, TypeError):CODE
HIGHlanguage-bindings/python/src/moonshine_voice/tts.py1776except Exception:CODE
HIGHlanguage-bindings/python/src/moonshine_voice/tts.py1045except (IndexError, KeyError, TypeError):CODE
HIGH…uage-bindings/python/src/moonshine_voice/agent_flow.py1727except Exception:CODE
HIGH…uage-bindings/python/src/moonshine_voice/agent_flow.py2397except Exception:CODE
HIGH…uage-bindings/python/src/moonshine_voice/agent_flow.py2462except Exception:CODE
HIGH…uage-bindings/python/src/moonshine_voice/agent_flow.py2418except Exception:CODE
HIGHlanguage-bindings/python/src/moonshine_voice/cli.py67except ImportError: # pragma: no cover - Python < 3.8 has no importlib.metadataCODE
HIGHlanguage-bindings/python/src/moonshine_voice/cli.py65except PackageNotFoundError:CODE
HIGH…gs/python/src/moonshine_voice/alphanumeric_listener.py1093except KeyboardInterrupt:CODE
HIGHlanguage-bindings/python/src/moonshine_voice/g2p.py163except (AttributeError, ValueError):CODE
HIGHlanguage-bindings/python/src/moonshine_voice/g2p.py114except Exception:CODE
Unused Imports122 hits · 107 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
LOWexamples/python/finetune/publish_uwb_splits.py7CODE
LOWscripts/piper-stream-prototype.py39CODE
LOWscripts/split-kokoro-stages.py31CODE
LOWscripts/zipvoice-chunk-cost.py29CODE
LOWscripts/check-ort-weight-storage.py15CODE
LOWscripts/kokoro-stream-timing.py25CODE
LOWscripts/split-piper-stages.py33CODE
LOWscripts/build-cached-embeddings.py21CODE
LOWscripts/split-model-weights.py26CODE
LOWscripts/convert_tokenizer.py24CODE
LOWscripts/kokoro-stream-prototype.py91CODE
LOWscripts/check-ep-partitioning.py29CODE
LOWscripts/build-piper-stages.py25CODE
LOWscripts/generate-diarization-test-audio.py14CODE
LOWscripts/generate-diarization-test-audio.py18CODE
LOWscripts/convert-models-to-ort.py49CODE
LOWscripts/eval-model-accuracy.py16CODE
LOWscripts/eval-model-accuracy.py21CODE
LOWscripts/eval-model-accuracy.py22CODE
LOWscripts/eval-model-accuracy.py24CODE
62 more matches not shown…
Excessive Try-Catch Wrapping107 hits · 104 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.py158 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
LOWscripts/generate-ort-op-config.py231 except Exception as error: # noqa: BLE001 - reported, not swallowedCODE
LOWscripts/check-ort-weight-storage.py105 except Exception as exc: # noqa: BLE001 - report the file, keep walkingCODE
LOWscripts/list-manifest-assets.py99 except Exception as err:CODE
LOWscripts/split-piper-stages.py418 except Exception as error: # noqa: BLE001CODE
LOWscripts/eval-alphanumeric.py221 except Exception as e:CODE
MEDIUMscripts/convert_tokenizer.py56 print("Error: sentencepiece package required. Install with: pip install sentencepiece")CODE
MEDIUMscripts/convert_tokenizer.py94 print("Error: Could not find vocabulary in tokenizer.json")CODE
MEDIUMscripts/convert_tokenizer.py139 print(f"Error: Input file not found: {input_path}")CODE
MEDIUMscripts/convert_tokenizer.py149 print(f"Error: Unknown file type: {input_path.suffix}")CODE
LOWscripts/convert-models-to-ort.py191 except Exception as exc: # noqa: BLE001 - report rather than abort the batchCODE
LOWscripts/convert-models-to-ort.py207 except Exception as exc: # noqa: BLE001CODE
MEDIUMscripts/tts_g2p_intelligibility.py477def try_import_datasets():CODE
MEDIUMscripts/tts_g2p_intelligibility.py894def try_import_cer():CODE
LOWscripts/tts_g2p_intelligibility.py678 except Exception:CODE
LOWscripts/tts_g2p_intelligibility.py721 except Exception as e:CODE
LOWscripts/tts_g2p_intelligibility.py1108 except Exception as e: # noqa: BLE001CODE
LOWscripts/tts_g2p_intelligibility.py1299 except Exception as e: # noqa: BLE001CODE
MEDIUM⚡scripts/export-decoder-with-attention.py70 print(f"Error: No decoder model found in {model_dir}", file=sys.stderr)CODE
MEDIUMscripts/export-decoder-with-attention.py113 print("Error: Could not detect encoder_attn Softmax nodes.", file=sys.stderr)CODE
MEDIUMscripts/export-decoder-with-attention.py172 print("Error: Could not detect cross-attention Softmax nodes.", file=sys.stderr)CODE
LOWscripts/generate-model-file-metadata.py290 except Exception as exc: # noqa: BLE001CODE
LOWscripts/eval-librispeech.py732 except Exception:CODE
MEDIUMscripts/eval-librispeech.py378def language_config(language):CODE
LOWscripts/export_zipvoice_voices_for_cpp.py173 except Exception:CODE
MEDIUMscripts/export_zipvoice_voices_for_cpp.py170def close(self):CODE
LOW…age-bindings/python/src/moonshine_voice/voice_clone.py290 except Exception as e:CODE
LOW…bindings/python/src/moonshine_voice/mic_transcriber.py278 except Exception as e:CODE
LOW…bindings/python/src/moonshine_voice/mic_transcriber.py427 except Exception as e:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py589 except Exception as e:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py727 except Exception as e:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py741 except Exception:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py743 except Exception:CODE
LOW⚡…nguage-bindings/python/src/moonshine_voice/download.py489 except Exception:CODE
LOW…nguage-bindings/python/src/moonshine_voice/download.py591 except Exception as exc: # pragma: no cover - best-effort prefetchCODE
MEDIUMlanguage-bindings/python/src/moonshine_voice/tts.py1773def __del__(self) -> None:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py121 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py143 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py290 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py297 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py334 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py338 except Exception as e:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py971 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py1039 except Exception:CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py1060 except Exception as e:CODE
47 more matches not shown…
Example Usage Blocks32 hits · 49 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.h893/// Example usage:COMMENT
LOWcore/moonshine-cpp.h1061/// Example usage:COMMENT
LOWscripts/measure-mobile-size.sh14# Usage:COMMENT
LOWscripts/test-android.sh12# Usage:COMMENT
LOWscripts/check-banned-constructs.sh21# Usage:COMMENT
LOWscripts/test-mobile-latency.sh9# Usage:COMMENT
LOWscripts/build-android.sh15# Usage:COMMENT
LOWscripts/finish-release.sh7# Usage:COMMENT
LOWscripts/test-model-downloads.sh32# Usage:COMMENT
LOWscripts/tag-hf-voice-assets.sh4# Usage:COMMENT
LOWscripts/test-python.sh11# Usage:COMMENT
LOWscripts/web-example-archive.sh15# Usage:COMMENT
LOWscripts/build-ort-android.sh30# Usage:COMMENT
LOWscripts/check-clang-tidy.sh16# Usage:COMMENT
LOWscripts/fetch-voice-assets.sh14# Usage:COMMENT
LOWscripts/test-examples.sh18# Usage:COMMENT
LOWscripts/format-core.sh8# Usage:COMMENT
LOW⚡scripts/start-candidate.sh49# 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.sh18# Usage:COMMENT
LOWscripts/preflight-release.sh7# Usage:COMMENT
LOWscripts/build-ort-ios.sh32# Usage:COMMENT
LOWscripts/windows-vm/create-vm.sh14# Usage:COMMENT
LOWscripts/windows-vm/send-keys.sh9# Usage:COMMENT
LOW…e-bindings/python/src/moonshine_voice/download_file.py289# Example usageCOMMENT
Deep Nesting57 hits · 48 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
LOWexamples/python/ollama-voice/ollama_voice.py69CODE
LOWscripts/split-kokoro-stages.py109CODE
LOWscripts/split-piper-stages.py240CODE
LOWscripts/eval-keyterm-biasing.py154CODE
LOWscripts/eval-keyterm-biasing.py217CODE
LOWscripts/eval-alphanumeric.py138CODE
LOWscripts/make-keyterm-testset.py131CODE
LOWscripts/convert_tokenizer.py29CODE
LOWscripts/convert-models-to-ort.py249CODE
LOWscripts/tts_g2p_intelligibility.py360CODE
LOWscripts/tts_g2p_intelligibility.py1205CODE
LOWscripts/tts_g2p_intelligibility.py1569CODE
LOWscripts/export-decoder-with-attention.py33CODE
LOWscripts/generate-model-file-metadata.py65CODE
LOWscripts/generate-model-file-metadata.py135CODE
LOWlanguage-bindings/python/tests/test_docs.py217CODE
LOW…bindings/python/src/moonshine_voice/mic_transcriber.py247CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py232CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py706CODE
LOW…nguage-bindings/python/src/moonshine_voice/download.py730CODE
LOW…nguage-bindings/python/src/moonshine_voice/download.py1113CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py1803CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py1505CODE
LOWlanguage-bindings/python/src/moonshine_voice/tts.py1737CODE
LOW…e-bindings/python/src/moonshine_voice/moonshine_api.py208CODE
LOW…e-bindings/python/src/moonshine_voice/moonshine_api.py226CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py2335CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py399CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1616CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1759CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1811CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1830CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1891CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py2072CODE
LOWlanguage-bindings/python/src/moonshine_voice/utils.py50CODE
LOWlanguage-bindings/python/src/moonshine_voice/errors.py107CODE
LOW…e-bindings/python/src/moonshine_voice/download_file.py94CODE
LOW…gs/python/src/moonshine_voice/alphanumeric_listener.py1059CODE
LOW…ge-bindings/python/src/moonshine_voice/lora/adapter.py94CODE
LOW…uage-bindings/python/src/moonshine_voice/lora/train.py274CODE
AI Slop Vocabulary16 hits · 45 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
MEDIUMscripts/publish-examples.sh82 # Internal latency harness, not a user-facing example (uses in-treeCOMMENT
MEDIUMscripts/test-examples.sh735 # Internal on-device latency harness (scripts/test-mobile-latency.sh); itCOMMENT
LOWscripts/reliability-remote.sh410 # cheap threaded sanity check. Building the whole tree would just add minutes.COMMENT
MEDIUMscripts/eval-librispeech.py801 # the longest clips. Seeded shuffle matches the internal eval harness.COMMENT
LOW…age-bindings/python/src/moonshine_voice/transcriber.py586 # transcribe() already calls _notify_from_transcript(), so we just call itCOMMENT
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
LOW⚡core/word-alignment.cpp196 // Step 1: Copy cross_attention_data into a working bufferCOMMENT
LOW⚡core/word-alignment.cpp204 // Step 2: Z-score normalize per head (along the time/encoder_frames axis)COMMENT
LOW⚡core/word-alignment.cpp242 // Step 3: Median filter (width=7) along the last axisCOMMENT
LOW⚡core/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
LOW⚡scripts/export-decoder-with-attention.py76 # Step 1: Load the original .ort and save as ONNXCOMMENT
LOW⚡scripts/export-decoder-with-attention.py84 # Step 2: Modify the ONNX graph to add attention outputsCOMMENT
LOW⚡scripts/export-decoder-with-attention.py194 # Step 3: Convert to ORT formatCOMMENT
LOW⚡scripts/export-decoder-with-attention.py204 # Step 4: VerifyCOMMENT
Modern AI Meta-Vocabulary11 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMcore/moonshine-tts/CMakeLists.txt177 # ZipVoice zero-shot voice-cloning engine: compiled-in ai.zipvoice custom ops + embedded VCTKCOMMENT
MEDIUMdocs/api/classes.md231A flow is an ordinary Python generator function that takes a [`Dialog`](classes.md#dialog) as its argument and yields prCODE
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.py14# 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
MEDIUM…bindings/python/src/moonshine_voice/embedding_model.py58 # Create the embedding modelCOMMENT
MEDIUM⚡…bindings/python/src/moonshine_voice/embedding_model.py77 # Create embedding modelCOMMENT
MEDIUM⚡…bindings/python/src/moonshine_voice/embedding_model.py85 # Free embedding modelCOMMENT
MEDIUM…nguage-bindings/python/src/moonshine_voice/download.py40# The speech-to-text and embedding model tables used to be duplicated here. TheyCOMMENT
MEDIUM⚡…uage-bindings/python/src/moonshine_voice/agent_flow.py2330# and every trigger / confirmation / choice goes through the embedding model.COMMENT
MEDIUM…uage-bindings/python/src/moonshine_voice/agent_flow.py670 # utterances) fall through to the embedding model, whichCOMMENT
Self-Referential Comments10 hits · 30 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
MEDIUMscripts/eval-speaker-id.py100 # 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-swift.sh73# Create the release without assets first, then upload with --clobber.COMMENT
MEDIUMscripts/publish-binary.sh125 # Create the release if needed and upload with a bounded per-attempt timeoutCOMMENT
MEDIUM…bindings/python/src/moonshine_voice/embedding_model.py58 # Create the embedding modelCOMMENT
MEDIUM…age-bindings/python/src/moonshine_voice/transcriber.py145 # Create a ctypes array from the options listCOMMENT
Verbosity Indicators12 hits · 24 pts
SeverityFileLineSnippetContext
LOW⚡core/word-alignment.cpp196 // Step 1: Copy cross_attention_data into a working bufferCOMMENT
LOW⚡core/word-alignment.cpp204 // Step 2: Z-score normalize per head (along the time/encoder_frames axis)COMMENT
LOW⚡core/word-alignment.cpp242 // Step 3: Median filter (width=7) along the last axisCOMMENT
LOW⚡core/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
LOW⚡scripts/export-decoder-with-attention.py76 # Step 1: Load the original .ort and save as ONNXCOMMENT
LOW⚡scripts/export-decoder-with-attention.py84 # Step 2: Modify the ONNX graph to add attention outputsCOMMENT
LOW⚡scripts/export-decoder-with-attention.py194 # Step 3: Convert to ORT formatCOMMENT
LOW⚡scripts/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
HIGHlanguage-bindings/python/src/moonshine_voice/utils.py51 Load a WAV file and return audio data as float array and sample rate. Supports 16-bit and 24-bit PCM WAV filesSTRING
HIGH…e-bindings/python/src/moonshine_voice/download_file.py105 Download a file with progress bar, resume support, and integrity checking. Args: url: URL to download STRING
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/stt_training/__init__.py14__all__ = [CODE
LOW…bindings/python/src/moonshine_voice/mic_transcriber.py472 def set_keyterms(self, keyterms: Optional[Sequence[str]]) -> None:CODE
LOW…bindings/python/src/moonshine_voice/mic_transcriber.py487 def set_context(self, context: Optional[str], max_terms: int = 0) -> None:CODE
LOW⚡…bindings/python/src/moonshine_voice/mic_transcriber.py530 def set_transcribe_flags(self, flags: int) -> None:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py317 def set_keyterms(self, keyterms: Optional[Sequence[str]]) -> None:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py358 def set_context(self, context: Optional[str], max_terms: int = 0) -> None:CODE
LOW…age-bindings/python/src/moonshine_voice/transcriber.py562 def set_transcribe_flags(self, flags: int) -> None:CODE
LOW…nguage-bindings/python/src/moonshine_voice/__init__.py299__all__ = [CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1077 def set_spelling_mode(active: bool) -> None:CODE
LOW…uage-bindings/python/src/moonshine_voice/agent_flow.py1654 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
Fake / Example Data5 hits · 5 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
LOWexamples/web/agent-flow/index.html200 <span class="placeholder">CODE
LOWexamples/web/stt/index.html109 <span class="placeholder">Your words will appear here.</span>CODE
LOWexamples/web/stt/index.html313 '<span class="placeholder">Your words will appear here.</span>';CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/generate-model-file-metadata.py250 " if (it != end && it->url == key) {",CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWmicro/stt-training/stt_training/features.py23CODE
LOWmicro/stt-training/stt_training/augment.py36CODE
LOW…uage-bindings/python/src/moonshine_voice/lora/train.py274CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/c++/download-library.sh29# Set MOONSHINE_LIBRARY_ARCHIVE to a moonshine-voice-<platform>.tar.gz you builtCOMMENT
LOWscripts/publish-examples.sh42# Check if the GitHub release exists; create it if missingCOMMENT
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