AI Slop Code RIsk Monitor

k2-fsa/sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, speech enhancement, source separation, and VAD using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, HarmonyOS, Raspberry Pi, RISC-V, RK NPU, Axera NPU, Ascend NPU, x86_64 servers, websocket server/client, support 12 programming languages

9.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for k2-fsa/sherpa-onnx, a C++ project with 15,217 GitHub stars. SynthScan examined 435,102 lines of code across 4117 source files, recording 1770 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 9.1 (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.

9.1
Adjusted Signal
9.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
15.2K
Stars
C++
Language
435.1K
Lines of Code
4.1K
Files
1.8K
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 12.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.7/100 · LOW

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

Agent Over-Engineering Ratio 27.4/100 · MEDIUM

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

PR Review Velocity Impact 40.1/100 · MEDIUM

Which changes need focused human review? 1770 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 6HIGH 461MEDIUM 165LOW 1138

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 1770 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition440 hits · 2200 pts
SeverityFileLineSnippetContext
HIGHsherpa-onnx/python/tests/test_offline_recognizer.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHsherpa-onnx/python/tests/test_keyword_spotter.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHsherpa-onnx/python/tests/test_speaker_recognition.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHsherpa-onnx/python/tests/test_online_recognizer.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHpython-api-examples/spoken-language-identification.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…ples/offline-websocket-client-decode-files-paralell.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHpython-api-examples/offline-decode-files.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHpython-api-examples/online-decode-files.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGHpython-api-examples/keyword-spotter.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…n-api-examples/online-zipformer-ctc-hlg-decode-file.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…es/offline-websocket-client-decode-files-sequential.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…vad-non-streaming-asr-from-file/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGH…er-examples/offline-punctuation/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGHflutter-examples/tts/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGHflutter-examples/vad-from-file/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGH…er-examples/vad-from-microphone/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGH…ter-examples/online-punctuation/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGH…n-streaming-asr-from-microphone/generate-asset-list.py0this file assumes that assets: is the last line in ./pubspec.yaml it reads the file names of all files from the ./assetsSTRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGHflutter-examples/tts/lib/web_audio.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGH…-streaming-asr-from-microphone/lib/save_file_stub.dart0(function() { var bytes = window._sherpadownloadbytes; var name = window._sherpadownloadfilename || 'audio.wav'; var bloSTRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(async function() { var bytes = window._sherpasavebytes; var name = window._sherpasavefilename || 'audio.wav'; var blob STRING
HIGHflutter-examples/tts/lib/web_audio.dart0(async function() { var bytes = window._sherpasavebytes; var name = window._sherpasavefilename || 'audio.wav'; var blob STRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(async function() { var bytes = window._sherpasavebytes; var name = window._sherpasavefilename || 'audio.wav'; var blob STRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(async function() { var bytes = window._sherpasavebytes; var name = window._sherpasavefilename || 'audio.wav'; var blob STRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(async function() { var bytes = window._sherpasavebytes; var name = window._sherpasavefilename || 'audio.wav'; var blob STRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(function() { var id = $id; var sr = $samplerate; // capture data immediately in closure to avoid race with next chunk. STRING
HIGHflutter-examples/tts/lib/web_audio.dart0(function() { var id = $id; var sr = $samplerate; // capture data immediately in closure to avoid race with next chunk. STRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(function() { var id = $id; var sr = $samplerate; // capture data immediately in closure to avoid race with next chunk. STRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(function() { var id = $id; var sr = $samplerate; // capture data immediately in closure to avoid race with next chunk. STRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(function() { var id = $id; var sr = $samplerate; // capture data immediately in closure to avoid race with next chunk. STRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(function() { if (window._sherpaaudioctx) { window._sherpaaudioctx.close(); window._sherpaaudioctx = null; } window._sheSTRING
HIGHflutter-examples/tts/lib/web_audio.dart0(function() { if (window._sherpaaudioctx) { window._sherpaaudioctx.close(); window._sherpaaudioctx = null; } window._sheSTRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(function() { if (window._sherpaaudioctx) { window._sherpaaudioctx.close(); window._sherpaaudioctx = null; } window._sheSTRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(function() { if (window._sherpaaudioctx) { window._sherpaaudioctx.close(); window._sherpaaudioctx = null; } window._sheSTRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(function() { if (window._sherpaaudioctx) { window._sherpaaudioctx.close(); window._sherpaaudioctx = null; } window._sheSTRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(function() { // stop previous audio. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); window._sherSTRING
HIGHflutter-examples/tts/lib/web_audio.dart0(function() { // stop previous audio. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); window._sherSTRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(function() { // stop previous audio. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); window._sherSTRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(function() { // stop previous audio. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); window._sherSTRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(function() { // stop previous audio. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); window._sherSTRING
HIGH…les/vad-non-streaming-asr-from-file/lib/web_audio.dart0(function() { // stop audio element playback. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); windSTRING
HIGHflutter-examples/tts/lib/web_audio.dart0(function() { // stop audio element playback. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); windSTRING
HIGHflutter-examples/vad-from-file/lib/web_audio.dart0(function() { // stop audio element playback. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); windSTRING
HIGHflutter-examples/vad-from-microphone/lib/web_audio.dart0(function() { // stop audio element playback. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); windSTRING
HIGH…d-non-streaming-asr-from-microphone/lib/web_audio.dart0(function() { // stop audio element playback. if (window._sherpacurrentaudio) { window._sherpacurrentaudio.pause(); windSTRING
HIGHscripts/omnilingual-asr/export-onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/vits/export-onnx-ljs.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/vits/export-onnx-vctk.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/vits/inflect/micro_v2/export_onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/vits/inflect/nano_v2/export_onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/sense-voice/export_onnx_nano.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/sense-voice/export-onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/sense-voice/rknn/export-onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/sense-voice/qnn/export-onnx.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/wespeaker/add_meta_data.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGHscripts/tele-speech/add-metadata.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
380 more matches not shown…
Over-Commented Block567 hits · 567 pts
SeverityFileLineSnippetContext
LOWbuild-ohos-x86-64.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-ohos-x86-64.sh21 OHOS_SDK_NATIVE_DIR=/star-fj/fangjun/software/huawei/command-line-tools/sdk/default/openharmony/native/COMMENT
LOWbuild-aarch64-linux-gnu.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-aarch64-linux-gnu.sh21# export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.16.0COMMENT
LOWbuild-axera-linux-aarch64.sh1#!/usr/bin/env bashCOMMENT
LOWCMakeLists.txt81option(SHERPA_ONNX_ENABLE_QNN "Whether to build for Qualcomm NPU" OFF)COMMENT
LOWbuild-android-x86-64.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-x86-64.sh41 exit 1COMMENT
LOWbuild-ios-shared-sherpa-with-static-onnxruntime.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-arm64-v8a.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-arm64-v8a.sh41 exit 1COMMENT
LOWbuild-android-arm64-v8a.sh241# 2. Login into AndroidCOMMENT
LOWbuild-android-arm64-v8a.sh261#COMMENT
LOWbuild-ohos-arm64-v8a.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-ohos-arm64-v8a.sh21 OHOS_SDK_NATIVE_DIR=/star-fj/fangjun/software/huawei/command-line-tools/sdk/default/openharmony/native/COMMENT
LOWbuild-android-armv7-eabi.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-armv7-eabi.sh41 exit 1COMMENT
LOWbuild-android-x86.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-x86.sh41 exit 1COMMENT
LOWbuild-ohos-armeabi-v7a.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-ohos-armeabi-v7a.sh21 OHOS_SDK_NATIVE_DIR=/star-fj/fangjun/software/huawei/command-line-tools/sdk/default/openharmony/native/COMMENT
LOWbuild-axcl-linux-aarch64.sh1#!/usr/bin/env bashCOMMENT
LOW…aOnnxSpeakerIdentification/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOW…ony-os/SherpaOnnxHar/sherpa_onnx/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOW…ony-os/SherpaOnnxHar/sherpa_onnx/src/main/cpp/macros.h1// scripts/node-addon-api/src/macros.hCOMMENT
LOW…pa_onnx/src/main/cpp/include/sherpa-onnx/c-api/c-api.h81// We will set SHERPA_ONNX_BUILD_SHARED_LIBS and SHERPA_ONNX_BUILD_MAIN_LIB inCOMMENT
LOW…pa_onnx/src/main/cpp/include/sherpa-onnx/c-api/c-api.h101#endif // WIN32COMMENT
LOWharmony-os/SherpaOnnxHar/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOW…-os/SherpaOnnxStreamingAsr/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOW…erpaOnnxSpeakerDiarization/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOWharmony-os/SherpaOnnxVadAsr/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOWharmony-os/SherpaOnnxTts/entry/obfuscation-rules.txt1# Define project specific obfuscation rules here.COMMENT
LOW…eamingSpeechRecognition/StreamingSpeechRecognition.cpp1COMMENT
LOW…eamingSpeechRecognition/StreamingSpeechRecognition.cpp41 // Create the shell manager, in case the dialog containsCOMMENT
LOWmfc-examples/StreamingSpeechRecognition/pch.h1// pch.h: This is a precompiled header file.COMMENT
LOWmfc-examples/StreamingSpeechRecognition/targetver.h1#pragma onceCOMMENT
LOWmfc-examples/StreamingSpeechRecognition/pch.cpp1// pch.cpp: source file corresponding to the pre-compiled headerCOMMENT
LOWmfc-examples/StreamingSpeechRecognition/Resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWmfc-examples/StreamingSpeechRecognition/framework.h1#pragma onceCOMMENT
LOWmfc-examples/StreamingSpeechRecognition/framework.h21#endifCOMMENT
LOW…treamingSpeechRecognition/StreamingSpeechRecognition.h1COMMENT
LOW…ingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp1COMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/pch.h1// pch.h: This is a precompiled header file.COMMENT
LOW…amingSpeechRecognition/NonStreamingSpeechRecognition.h1COMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/targetver.h1#pragma onceCOMMENT
LOW…SpeechRecognition/NonStreamingSpeechRecognitionDlg.cpp1COMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/pch.cpp1// pch.cpp: source file corresponding to the pre-compiled headerCOMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/Resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…ingSpeechRecognition/NonStreamingSpeechRecognition.cpp1COMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/framework.h1#pragma onceCOMMENT
LOWmfc-examples/NonStreamingSpeechRecognition/framework.h21#endifCOMMENT
LOWmfc-examples/NonStreamingTextToSpeech/pch.h1// pch.h: This is a precompiled header file.COMMENT
LOWmfc-examples/NonStreamingTextToSpeech/targetver.h1#pragma onceCOMMENT
LOWmfc-examples/NonStreamingTextToSpeech/Resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWmfc-examples/NonStreamingTextToSpeech/Resource.h21#ifndef APSTUDIO_READONLY_SYMBOLSCOMMENT
LOW…nStreamingTextToSpeech/NonStreamingTextToSpeechDlg.cpp1COMMENT
LOWsherpa-onnx/csrc/offline-zipformer-ctc-model.h1// sherpa-onnx/csrc/offline-zipformer-ctc-model.hCOMMENT
LOW…erpa-onnx/csrc/offline-speech-denoiser-dpdfnet-model.h1// sherpa-onnx/csrc/offline-speech-denoiser-dpdfnet-model.hCOMMENT
LOWsherpa-onnx/csrc/keyword-spotter.h1// sherpa-onnx/csrc/keyword-spotter.hCOMMENT
LOWsherpa-onnx/csrc/keyword-spotter.h21 /// The triggered keyword.COMMENT
507 more matches not shown…
Decorative Section Separators68 hits · 204 pts
SeverityFileLineSnippetContext
MEDIUMbuild-android-arm64-v8a.sh251# ----------------------------------------COMMENT
MEDIUMbuild-android-arm64-v8a.sh253# ----------------------------------------COMMENT
MEDIUM…d-non-streaming-asr-from-file/lib/vad_asr_manager.dart194// ── Messages ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…d-non-streaming-asr-from-file/lib/vad_asr_manager.dart240// ── Worker Isolate (VAD + ASR in one isolate) ─────────────────────────────COMMENT
MEDIUM…xamples/vad-non-streaming-asr-from-file/lib/model.dart60// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUM…er-examples/offline-punctuation/lib/punct_manager.dart21// ── Messages from main isolate → background isolate (native only) ────────COMMENT
MEDIUM…er-examples/offline-punctuation/lib/punct_manager.dart32// ── Messages from background isolate → main isolate (native only) ────────COMMENT
MEDIUM…er-examples/offline-punctuation/lib/punct_manager.dart49// ── PunctManager ─────────────────────────────────────────────────────────COMMENT
MEDIUM…er-examples/offline-punctuation/lib/punct_manager.dart116 // ── Web (Web Worker) ──────────────────────────────────────────────────COMMENT
MEDIUM…er-examples/offline-punctuation/lib/punct_manager.dart146 // ── Native (isolate-based) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/offline-punctuation/lib/model.dart31// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/web/tts-worker.js7// ── Messages: Main Thread → Worker ─────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/web/tts-worker.js37// ── Messages: Worker → Main Thread ─────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/web/tts-worker.js71// ── Emscripten FS helpers ────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/web/tts-worker.js94// ── Message handler ──────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart10// ── Native Isolate Message Protocol ────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart63// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart83// ── Messages from main isolate → background isolate (native only) ────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart101// ── Messages from background isolate → main isolate (native only) ────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart138// ── Pending generate tracking ────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart153// ── TtsManager ───────────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart275 // ── Web (Web Worker) ──────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/tts_manager.dart310 // ── Native (isolate-based) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart38 // ── VITS Piper (English) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart52 // ── VITS Piper (Chinese) ─────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart67 // ── VITS Piper (English, libritts) ────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart81 // ── VITS (English, inflect-nano-v2) ──────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart96 // ── Kokoro (English) ──────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart112 // ── Kokoro (Chinese + English) ────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart129 // ── MatchaTTS (English) ───────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart144 // ── MatchaTTS (Chinese + English) ────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart162 // ── KittenTTS (English) ───────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart177 // ── Pocket TTS (English) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model_config.dart195 // ── Supertonic TTS (English) ──────────────────────────────────────────COMMENT
MEDIUMflutter-examples/tts/lib/model.dart108// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/model.dart44// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart22// ── Messages from main isolate → background isolate (native only) ────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart60// ── Messages from background isolate → main isolate (native only) ────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart83// ── VadSegment ───────────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart93// ── VadResult ────────────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart107// ── VadManager ───────────────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart203 // ── Web (Web Worker) ──────────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-file/lib/vad_manager.dart240 // ── Native (isolate-based) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/vad-from-microphone/lib/model.dart44// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUM…tter-examples/vad-from-microphone/lib/vad_manager.dart22// ── Messages from main isolate → background isolate (native only) ────────COMMENT
MEDIUM…tter-examples/vad-from-microphone/lib/vad_manager.dart55// ── Messages from background isolate → main isolate (native only) ────────COMMENT
MEDIUM…tter-examples/vad-from-microphone/lib/vad_manager.dart110// ── VadMicManager ────────────────────────────────────────────────────────COMMENT
MEDIUM…tter-examples/vad-from-microphone/lib/vad_manager.dart196 // ── Web (Web Worker) ──────────────────────────────────────────────────COMMENT
MEDIUM…tter-examples/vad-from-microphone/lib/vad_manager.dart243 // ── Native (isolate-based) ──────────────────────────────────────────────COMMENT
MEDIUM…ter-examples/online-punctuation/lib/punct_manager.dart21// ── Messages from main isolate → background isolate (native only) ────────COMMENT
MEDIUM…ter-examples/online-punctuation/lib/punct_manager.dart32// ── Messages from background isolate → main isolate (native only) ────────COMMENT
MEDIUM…ter-examples/online-punctuation/lib/punct_manager.dart49// ── PunctManager ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ter-examples/online-punctuation/lib/punct_manager.dart116 // ── Web (Web Worker) ──────────────────────────────────────────────────COMMENT
MEDIUM…ter-examples/online-punctuation/lib/punct_manager.dart146 // ── Native (isolate-based) ──────────────────────────────────────────────COMMENT
MEDIUMflutter-examples/online-punctuation/lib/model.dart32// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUM…s/vad-non-streaming-asr-from-microphone/lib/model.dart59// ── Asset copy helpers ───────────────────────────────────────────────────COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py83# ---------------------------------------------------------------------------COMMENT
8 more matches not shown…
Hyper-Verbose Identifiers209 hits · 192 pts
SeverityFileLineSnippetContext
LOWcmake/download-all-deps.py128def parse_windows_onnxruntime(filepath, crt, build_type):CODE
LOWcmake/download-all-deps.py413def build_canonical_filename_lookup(cmake_dir):CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py1106 def get_result_as_json_string(self, s: OnlineStream) -> str:CODE
LOWsherpa-onnx/python/sherpa_onnx/display.py35 def finalize_current_sentence(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py51 def test_transducer_single_file(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py84 def test_transducer_multiple_files(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py130 def test_paraformer_single_file(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py153 def test_paraformer_multiple_files(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py195 def test_nemo_ctc_single_file(self):CODE
LOWsherpa-onnx/python/tests/test_offline_recognizer.py222 def test_nemo_ctc_multiple_files(self):CODE
LOWsherpa-onnx/python/tests/test_keyword_spotter.py49 def test_zipformer_transducer_en(self):CODE
LOWsherpa-onnx/python/tests/test_keyword_spotter.py111 def test_zipformer_transducer_cn(self):CODE
LOWsherpa-onnx/python/tests/test_fast_clustering.py31 def test_construct_by_num_clusters(self):CODE
LOWsherpa-onnx/python/tests/test_fast_clustering.py58 def test_construct_by_threshold(self):CODE
LOWsherpa-onnx/python/tests/test_fast_clustering.py85 def test_cluster_speaker_embeddings(self):CODE
LOWsherpa-onnx/python/tests/test_speaker_recognition.py46def load_speaker_embedding_model(model_filename):CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py50 def test_transducer_single_file(self):CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py90 def test_transducer_multiple_files(self):CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py147 def test_nemotron_streaming_english(self):CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py181 def test_nemotron_multilingual_streaming(self):CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py289 def test_streaming_paraformer(self):CODE
LOWwasm/nodejs/sherpa-onnx-punctuation.js13function initSherpaOnnxOfflinePunctuationModelConfig(config, Module) {CODE
LOWwasm/nodejs/sherpa-onnx-punctuation.js47function initSherpaOnnxOfflinePunctuationConfig(config, Module) {CODE
LOWwasm/nodejs/sherpa-onnx-punctuation.js66function initSherpaOnnxOnlinePunctuationModelConfig(config, Module) {CODE
LOWwasm/nodejs/sherpa-onnx-punctuation.js107function initSherpaOnnxOnlinePunctuationConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js26function initSherpaOnnxOfflineSpeakerSegmentationPyannoteModelConfig(CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js53function initSherpaOnnxOfflineSpeakerSegmentationModelConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js90function initSherpaOnnxSpeakerEmbeddingExtractorConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js126function initSherpaOnnxFastClusteringConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js146function initSherpaOnnxOfflineSpeakerDiarizationConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js286function createOfflineSpeakerDiarization(Module, myConfig) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js21function initSherpaOnnxOfflineSpeechDenoiserGtcrnModelConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js50function initSherpaOnnxOfflineSpeechDenoiserDpdfNetModelConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js72function initSherpaOnnxOfflineSpeechDenoiserModelConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js118function initSherpaOnnxOfflineSpeechDenoiserConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js145function initSherpaOnnxOnlineSpeechDenoiserConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js276function createOfflineSpeechDenoiser(Module, myConfig) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js291function createOnlineSpeechDenoiser(Module, myConfig) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js114function initSherpaOnnxOnlineTransducerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js151function initSherpaOnnxOnlineParaformerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js198function initSherpaOnnxOnlineNemoCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js216function initSherpaOnnxOnlineToneCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js234function initSherpaOnnxOnlineModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js393function initSherpaOnnxFeatureConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js402function initSherpaOnnxHomophoneReplacerConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js432function initSherpaOnnxOnlineCtcFstDecoderConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js445function initSherpaOnnxOfflineCtcFstDecoderConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js458function initSherpaOnnxOnlineRecognizerConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js695function initSherpaOnnxOfflineTransducerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js732function initSherpaOnnxOfflineParaformerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js751function initSherpaOnnxOfflineNemoEncDecCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js770function initSherpaOnnxOfflineDolphinModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js789function initSherpaOnnxOfflineZipformerCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js808function initSherpaOnnxOfflineWenetCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js827function initSherpaOnnxOfflineOmnilingualAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js846function initSherpaOnnxOfflineMedAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js865function initSherpaOnnxOfflineFireRedAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js884function initSherpaOnnxOfflineFunAsrNanoModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1031function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1079function initSherpaOnnxOfflineCanaryModelConfig(config, Module) {CODE
149 more matches not shown…
Self-Referential Comments46 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMbuild-macos.sh46# Create a framework bundle (like onnxruntime does) so SPM can resolve the moduleCOMMENT
MEDIUMbuild-macos-shared.sh29# Create a framework bundle (like onnxruntime does) so SPM can resolve the moduleCOMMENT
MEDIUMscripts/sense-voice/adaptor.py196 # This class is copied and modified fromCOMMENT
MEDIUMscripts/sense-voice/torch_model.py1# This file is modified fromCOMMENT
MEDIUMscripts/sense-voice/rknn/adaptor.py196 # This class is copied and modified fromCOMMENT
MEDIUMscripts/sense-voice/rknn/torch_model.py1# This file is modified fromCOMMENT
MEDIUMscripts/sense-voice/ascend-npu/torch_model.py1# This file is modified fromCOMMENT
MEDIUMscripts/apk/build-apk-vad.sh12 # This function is from espnetCOMMENT
MEDIUMscripts/apk/build-apk-kws.sh12 # This function is from espnetCOMMENT
MEDIUMscripts/spleeter/convert_to_torch.py16 # This function is modified fromCOMMENT
MEDIUMscripts/nemo/parakeet-unified-en-0.6b/run.sh7 # This function is from espnetCOMMENT
MEDIUMscripts/nemo/parakeet-unified-en-0.6b/run-streaming.sh7 # This function is from espnetCOMMENT
MEDIUMscripts/nemo/canary/run_180m_flash.sh7 # This function is from espnetCOMMENT
MEDIUMscripts/nemo/parakeet-tdt-0.6b-v2/run.sh7 # This function is from espnetCOMMENT
MEDIUMscripts/nemo/parakeet-tdt-0.6b-v3/run.sh7 # This function is from espnetCOMMENT
MEDIUM…-hybrid-transducer-ctc/run-transducer-non-streaming.sh7 # This function is from espnetCOMMENT
MEDIUM…ormer-hybrid-transducer-ctc/run-ctc-non-streaming-2.sh7 # This function is from espnetCOMMENT
MEDIUM…ybrid-transducer-ctc/run-transducer-non-streaming-2.sh7 # This function is from espnetCOMMENT
MEDIUM…nformer-hybrid-transducer-ctc/run-ctc-non-streaming.sh7 # This function is from espnetCOMMENT
MEDIUM.github/workflows/test-rust.yaml122 # Create an archive with the exact name and structure build.rs expectsCOMMENT
MEDIUM.github/workflows/test-rust.yaml407 # Create an archive with the exact name build.rs expects for AndroidCOMMENT
MEDIUM.github/scripts/test-spoken-language-identification.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-transducer.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-cxx-api.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-moonshine.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-paraformer.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-cohere-transcribe.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-kws.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-c-api.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-python.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-tts.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-speech-denoiser.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-ctc.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-punctuation.sh10 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-transducer.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-source-separation.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-audio-tagging.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-speaker-diarization.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-punctuation.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-ctc.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-diacritization.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-fire-red-asr.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-speaker-recognition-python.sh7 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-whisper.sh7 # This function is from espnetCOMMENT
MEDIUMpython-api-examples/offline-tts-play.py405 """This function is called whenever max_num_sentences sentencesSTRING
MEDIUMpython-api-examples/pocket-tts-play.py98 """This function is called whenever max_num_sentences sentencesSTRING
Unused Imports166 hits · 129 pts
SeverityFileLineSnippetContext
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
LOWsherpa-onnx/python/sherpa_onnx/__init__.py1CODE
106 more matches not shown…
Excessive Try-Catch Wrapping57 hits · 93 pts
SeverityFileLineSnippetContext
LOWcmake/download-all-deps.py498 except Exception as e:CODE
MEDIUM…les/vad-non-streaming-asr-from-file/lib/save_file.dart14 print('Error in saveFileAs: $e');CODE
MEDIUM…les/vad-non-streaming-asr-from-file/lib/save_file.dart26 print('Error in saveWavBytes: $e');CODE
MEDIUM…les/vad-non-streaming-asr-from-file/lib/save_file.dart59 print('Error saving text: $e');CODE
MEDIUMflutter-examples/tts/lib/save_file.dart39 print('Error in saveFileAs: $e');CODE
MEDIUMflutter-examples/vad-from-file/lib/save_file.dart14 print('Error in saveFileAs: $e');CODE
MEDIUMflutter-examples/vad-from-file/lib/save_file.dart26 print('Error in saveWavBytes: $e');CODE
MEDIUMflutter-examples/vad-from-microphone/lib/save_file.dart14 print('Error in saveFileAs: $e');CODE
MEDIUMflutter-examples/vad-from-microphone/lib/save_file.dart26 print('Error in saveWavBytes: $e');CODE
MEDIUM…d-non-streaming-asr-from-microphone/lib/save_file.dart14 print('Error in saveFileAs: $e');CODE
MEDIUM…d-non-streaming-asr-from-microphone/lib/save_file.dart26 print('Error in saveWavBytes: $e');CODE
LOWscripts/vits/inflect/micro_v2/test.py14except Exception as ex:CODE
LOWscripts/vits/inflect/nano_v2/test.py14except Exception as ex:CODE
LOWscripts/sense-voice/test_nano_torch.py25 except Exception as ex:CODE
LOWscripts/sense-voice/rknn/test_nano_torch.py25 except Exception as ex:CODE
LOWscripts/kitten-tts/nano_v0_1/test.py13except Exception as ex:CODE
LOWscripts/kitten-tts/mini_v0_1/test.py13except Exception as ex:CODE
LOWscripts/kitten-tts/nano_v0_2/test.py13except Exception as ex:CODE
LOWscripts/matcha-tts/zh-en/test.py33except Exception as ex:CODE
LOWscripts/matcha-tts/fa-en/test.py26except Exception as ex:CODE
LOWscripts/vocos/test.py13except Exception as ex:CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py19 print(f"Error: {json_path} does not exist")CODE
LOW⚡scripts/supertonic/generate_indexer_bin.py25 except Exception as e:CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py26 print(f"Error: failed to read JSON {json_path}: {e}")CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py30 print(f"Error: JSON must be an array of integers, got {type(arr)}")CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py35 print(f"Error: JSON element {i} is not an integer: {x} (type={type(x)})")CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py38 print(f"Error: JSON element {i} out of int32 range: {x}")CODE
LOW⚡scripts/supertonic/generate_indexer_bin.py46 except Exception as e:CODE
MEDIUM⚡scripts/supertonic/generate_indexer_bin.py47 print(f"Error: failed to write {bin_path}: {e}")CODE
LOW⚡scripts/supertonic/convert.py32except Exception:CODE
LOW⚡scripts/supertonic/convert.py39except Exception:CODE
LOW⚡scripts/supertonic/convert.py43 except Exception:CODE
LOWscripts/supertonic/convert.py86 except Exception:CODE
LOWscripts/supertonic/convert.py106 except Exception:CODE
LOWscripts/supertonic/convert.py257 except Exception:CODE
LOWscripts/supertonic/convert.py273 except Exception as e:CODE
LOWscripts/supertonic/convert.py330 except Exception as e:CODE
LOWscripts/supertonic/convert.py468 except Exception:CODE
MEDIUMscripts/supertonic/convert.py231def get_next(self) -> Optional[Dict[str, np.ndarray]]:CODE
MEDIUM⚡scripts/supertonic/generate_voices_bin.py103 print(f"Error: input dir does not exist or not a directory: {input_dir}")CODE
LOW⚡scripts/supertonic/generate_voices_bin.py113 except Exception as e:CODE
MEDIUM⚡scripts/supertonic/generate_voices_bin.py114 print(f"Error: {e}")CODE
MEDIUMscripts/supertonic/generate_nfkd_table.py73 print("Error: decomposition pool no longer fits in uint16_t offsets")CODE
LOWscripts/kokoro/v0.19/test.py22except Exception as ex:CODE
LOWscripts/kokoro/v1.0/test.py16except Exception as ex:CODE
LOWscripts/kokoro/v1.1-zh/test.py16except Exception as ex:CODE
LOWscripts/whisper/test.py262 except Exception:CODE
MEDIUMpython-api-examples/zipvoice-tts.py87 print("Error in generating audios. Please read previous error messages.")CODE
MEDIUMpython-api-examples/offline-funasr-nano-decode-files.py218 print(f"Error: File not found: {sound_file}", file=sys.stderr)CODE
MEDIUMpython-api-examples/offline-tts-play.py567 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMpython-api-examples/supertonic-tts.py79 print("Error in generating audios. Please read previous error messages.")CODE
LOWpython-api-examples/generate-subtitles-doubao.py547 except Exception as e:CODE
MEDIUMpython-api-examples/pocket-tts-play.py234 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMpython-api-examples/pocket-tts.py85 print("Error in generating audios. Please read previous error messages.")CODE
MEDIUMpython-api-examples/offline-tts.py433 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMpython-api-examples/zipvoice-tts-play.py204 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMswift-api-examples/generate-subtitles.swift227 print("Error writing: \(error.localizedDescription)")CODE
Deep Nesting89 hits · 89 pts
SeverityFileLineSnippetContext
LOWcmake/cmake_extension.py134CODE
LOWcmake/download-all-deps.py233CODE
LOWcmake/download-all-deps.py434CODE
LOWcmake/download-all-deps.py523CODE
LOWsherpa-onnx/python/sherpa_onnx/cli.py67CODE
LOWsherpa-onnx/python/sherpa_onnx/utils.py8CODE
LOWsherpa-onnx/python/sherpa_onnx/utils.py86CODE
LOWsherpa-onnx/python/tests/test_keyword_spotter.py49CODE
LOWsherpa-onnx/python/tests/test_keyword_spotter.py111CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py90CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py238CODE
LOWsherpa-onnx/python/tests/test_online_recognizer.py327CODE
LOW…vad-non-streaming-asr-from-file/generate-asset-list.py14CODE
LOW…er-examples/offline-punctuation/generate-asset-list.py14CODE
LOWflutter-examples/tts/generate-asset-list.py14CODE
LOWflutter-examples/vad-from-file/generate-asset-list.py14CODE
LOW…er-examples/vad-from-microphone/generate-asset-list.py14CODE
LOW…ter-examples/online-punctuation/generate-asset-list.py14CODE
LOW…n-streaming-asr-from-microphone/generate-asset-list.py14CODE
LOWscripts/text2token.py128CODE
LOWscripts/benchmark/run_timestamp_benchmark.py296CODE
LOWscripts/benchmark/run_timestamp_benchmark.py346CODE
LOWscripts/omnilingual-asr/test.py79CODE
LOWscripts/pocket-tts/test_tokenizer.py29CODE
LOWscripts/sense-voice/test_nano_torch.py13CODE
LOWscripts/sense-voice/rknn/test_nano_torch.py13CODE
LOWscripts/silero_vad/v4/test-onnx.py85CODE
LOWscripts/silero_vad/v4/test-on-rk3588-board.py83CODE
LOW…s/nemo/parakeet-unified-en-0.6b/test_onnx_streaming.py122CODE
LOWscripts/nemo/canary/test_180m_flash.py188CODE
LOW…emo/qnn/nemotron-speech-streaming-en-0.6b/test_onnx.py211CODE
LOW…/nemo/qnn/nemotron-3.5-asr-streaming-0.6b/test_onnx.py212CODE
LOWscripts/matcha-tts/zh-en/generate_lexicon.py18CODE
LOWscripts/matcha-tts/zh-en/test.py214CODE
LOWscripts/tauri/generate-vad-asr.py1070CODE
LOWscripts/pyannote/segmentation/vad-onnx.py83CODE
LOW…ipts/pyannote/segmentation/speaker-diarization-onnx.py146CODE
LOW…ipts/pyannote/segmentation/speaker-diarization-onnx.py225CODE
LOW…ipts/pyannote/segmentation/speaker-diarization-onnx.py303CODE
LOWscripts/wheel/patch_wheel.py30CODE
LOWscripts/wheel/sherpa-onnx-core/sherpa_onnx/__main__.py5CODE
LOWscripts/piper/generate.py2225CODE
LOWscripts/melo-tts/test.py49CODE
LOWscripts/melo-tts/export-onnx.py21CODE
LOWscripts/supertonic/convert.py47CODE
LOWscripts/supertonic/convert.py48CODE
LOWscripts/kokoro/v1.0/test.py112CODE
LOWscripts/kokoro/v1.0/generate_voices_bin.py71CODE
LOWscripts/kokoro/v1.1-zh/test.py112CODE
LOWscripts/kokoro/v1.1-zh/generate_lexicon_zh.py23CODE
LOWscripts/kokoro/7m-distill/dynamic_quantization.py21CODE
LOWscripts/kokoro/7m-distill/dynamic_quantization.py95CODE
LOWscripts/whisper/export_onnx.py314CODE
LOWscripts/whisper/export-onnx.py314CODE
LOWscripts/whisper/rknn/test_on_rk3588_board.py234CODE
LOWscripts/whisper/rknn/test_onnx.py117CODE
LOWscripts/whisper/rknn/export_onnx.py419CODE
LOWscripts/whisper/ascend-npu/test_om.py123CODE
LOWscripts/whisper/ascend-npu/export_onnx.py419CODE
LOWscripts/whisper/qnn/test_onnx.py117CODE
29 more matches not shown…
Hallucination Indicators6 hits · 80 pts
SeverityFileLineSnippetContext
CRITICAL…pp/src/main/java/com/k2fsa/sherpa/onnx/MainActivity.kt188 if (isEndpoint && recognizer.config.modelConfig.paraformer.encoder.isNotBlank()) {CODE
CRITICAL⚡…pa/onnx/simulate/streaming/asr/SimulateStreamingAsr.kt162 if (config.modelConfig.senseVoice.qnnConfig.backendLib.isEmpty()CODE
CRITICAL⚡…pa/onnx/simulate/streaming/asr/SimulateStreamingAsr.kt163 && config.modelConfig.zipformerCtc.qnnConfig.backendLib.isEmpty()CODE
CRITICAL⚡…pa/onnx/simulate/streaming/asr/SimulateStreamingAsr.kt164 && config.modelConfig.paraformer.qnnConfig.backendLib.isEmpty()CODE
CRITICAL⚡…pa/onnx/simulate/streaming/asr/SimulateStreamingAsr.kt165 && config.modelConfig.transducer.qnnConfig.backendLib.isEmpty()CODE
CRITICALpython-api-examples/web/js/jquery-3.6.0.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Empty Error Handlers11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHcmake/download-all-deps.py214except (ValueError, EOFError):CODE
HIGHscripts/benchmark/download_librispeech_test_data.py110except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGHscripts/benchmark/download_librispeech_test_data.py121except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGH…ts/nemo/nemotron-3.5-asr-streaming-0.6b/export_onnx.py47except ImportError:CODE
HIGHscripts/3dspeaker/export-onnx.py79except FileNotFoundError:CODE
HIGHscripts/supertonic/convert.py257except Exception:CODE
HIGHscripts/supertonic/convert.py86except Exception:CODE
HIGHscripts/kokoro/7m-distill/export_onnx.py57except ImportError:CODE
HIGHpython-api-examples/non_streaming_server.py844except asyncio.QueueEmpty:CODE
HIGHpython-api-examples/streaming_server.py574except asyncio.QueueEmpty:CODE
HIGHpython-api-examples/two-pass-wss.py535except asyncio.QueueEmpty:CODE
Slop Phrases17 hits · 48 pts
SeverityFileLineSnippetContext
LOWbuild-rknn-linux-aarch64.sh5# Before you run this file, make sure you have first clonedCOMMENT
LOWbuild-axcl-linux-aarch64.sh22# Before you run this file, make sure you have first clonedCOMMENT
MEDIUM…aming-speech-enhancement-dpdfnet/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…api-examples/speaker-diarization/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…xamples/speech-enhancement-gtcrn/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMdart-api-examples/streaming-asr/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMdart-api-examples/keyword-spotter/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…t-api-examples/non-streaming-asr/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…-examples/speaker-identification/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMdart-api-examples/tts/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…rt-api-examples/add-punctuations/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…mples/vad-with-non-streaming-asr/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMdart-api-examples/audio-tagging/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMdart-api-examples/vad/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…mples/speech-enhancement-dpdfnet/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…reaming-speech-enhancement-gtcrn/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMpython-api-examples/generate-subtitles.py838 # speech is detected, you can useCOMMENT
AI Structural Patterns39 hits · 39 pts
SeverityFileLineSnippetContext
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py98CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py392CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py521CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py656CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py780CODE
LOWsherpa-onnx/python/sherpa_onnx/online_recognizer.py904CODE
LOWsherpa-onnx/python/sherpa_onnx/keyword_spotter.py81CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py104CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py267CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py357CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py461CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py555CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py636CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py716CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py946CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1027CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1109CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1213CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1326CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1406CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1503CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1592CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1673CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1754CODE
LOWscripts/whisper/rknn/test_on_rk3588_board.py204CODE
LOWscripts/whisper/rknn/test_onnx.py101CODE
LOWscripts/whisper/ascend-npu/test_om.py198CODE
LOWscripts/whisper/qnn/test_onnx.py101CODE
LOWscripts/paraformer/rknn/torch_model.py362CODE
LOWscripts/paraformer/rknn/torch_model.py865CODE
LOWscripts/paraformer/rknn/torch_model.py1112CODE
LOWscripts/paraformer/ascend-npu/torch_model.py362CODE
LOWscripts/paraformer/ascend-npu/torch_model.py865CODE
LOWscripts/paraformer/ascend-npu/torch_model.py1112CODE
LOWscripts/paraformer/qnn/torch_model.py362CODE
LOWscripts/paraformer/qnn/torch_model.py865CODE
LOWscripts/paraformer/qnn/torch_model.py1112CODE
LOWpython-api-examples/offline-funasr-nano-decode-files.py204CODE
LOWpython-api-examples/web/generate-certificate.py37CODE
Cross-Language Confusion4 hits · 25 pts
SeverityFileLineSnippetContext
HIGHcmake/download-all-deps.py49 cd sherpa-onnx && mkdir build && cd buildSTRING
HIGH⚡scripts/go/generate.py59 build_info = "//go:build (windows && amd64) || (windows && 386) || (windows && arm64)"CODE
HIGH⚡scripts/go/generate.py61 build_info = "//go:build (!android && linux && arm64) || (!android && linux && amd64 && !musl) || (!android && lCODE
HIGH⚡scripts/go/generate.py63 build_info = "//go:build (darwin && amd64 && !ios) || (darwin && arm64 && !ios)"CODE
TODO Padding11 hits · 16 pts
SeverityFileLineSnippetContext
LOWflutter/sherpa_onnx/lib/src/web/keyword_spotter.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOWflutter/sherpa_onnx/lib/src/web/online_stream.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOW…erpa_onnx/lib/src/web/offline_speaker_diarization.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOW…er/sherpa_onnx/lib/src/web/online_speech_denoiser.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOWflutter/sherpa_onnx/lib/src/web/wave_reader.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOWflutter/sherpa_onnx/lib/src/web/wave_writer.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOW…a_onnx/lib/src/web/spoken_language_identification.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOWflutter/sherpa_onnx/lib/src/web/online_recognizer.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOW…er/sherpa_onnx/lib/src/web/speaker_identification.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOWflutter/sherpa_onnx/lib/src/web/audio_tagging.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
LOW…r/sherpa_onnx/lib/src/web/offline_speech_denoiser.dart3// TODO: implement using dart:js_interop and the corresponding JS wrapper.COMMENT
Structural Annotation Overuse11 hits · 16 pts
SeverityFileLineSnippetContext
LOWflutter-examples/hello_world/README.md7### Step 1: Create the Flutter projectCOMMENT
LOWflutter-examples/hello_world/README.md14### Step 2: Add sherpa_onnx dependencyCOMMENT
LOWflutter-examples/hello_world/README.md32### Step 3: Replace lib/main.dartCOMMENT
LOWflutter-examples/hello_world/README.md81### Step 4: Run the appCOMMENT
LOWflutter-examples/hello_world/README.md150### Step 1: List available simulatorsCOMMENT
LOWflutter-examples/hello_world/README.md162### Step 2: Run on the simulatorCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py222 # Step 1: Download LibriSpeech dev-cleanCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py235 # Step 2: Download MFA alignmentsCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py249 # Step 3: Find alignment files for dev-cleanCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py262 # Step 4: Find corresponding audio files and convertCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py302 # Step 5: Write manifestCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHscripts/whisper/export_onnx.py315Load a Whisper model by name. For standard OpenAI models (tiny, base, small, medium, large, etc.), this uses whSTRING
HIGHscripts/whisper/export-onnx.py315Load a Whisper model by name. For standard OpenAI models (tiny, base, small, medium, large, etc.), this uses whSTRING
HIGHscripts/whisper/export-onnx-with-attention.py118Get alignment heads for a model. If ALIGNMENT_HEADS[name] is USE_MODEL_METADATA, alignment heads are read from STRING
AI Slop Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMsherpa-onnx/csrc/offline-stream.h70 // trained on. Models that are robust to the 5 ms offset (e.g. WhisperCOMMENT
MEDIUM.github/scripts/common.sh3# Provides robust download functions with retry logic, validation, and automatic cleanupCOMMENT
LOW.github/scripts/wheels/linux_x64_cuda.py27# To add a new onnxruntime version, just add entries here.COMMENT
LOW.github/scripts/libs/windows_x64_cuda.py35# To add a new onnxruntime version, just add entries here.COMMENT
LOW.github/scripts/libs/linux_x64_cuda.py31# To add a new onnxruntime version, just add entries here.COMMENT
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMrust-api-examples/README.md47| 2 | [pocket_tts](#example-2-tts-with-pocket-tts-zero-shot-voice-cloning) | Text-to-speech with zero-shot voice cloningCODE
MEDIUMrust-api-examples/README.md49| 4 | [zipvoice_tts](#example-4-tts-with-zipvoice-zero-shot-voice-cloning) | Text-to-speech with ZipVoice zero-shot voicCODE
MEDIUMrust-api-examples/README.md112### Example 2: TTS with Pocket TTS (zero-shot voice cloning)COMMENT
MEDIUMrust-api-examples/README.md124### Example 4: TTS with ZipVoice zero-shot voice cloningCOMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWcmake/download-all-deps.py461 # Check if basename contains the suffix or vice versaCOMMENT
LOW…pts/zipformer-transducer/x-asr/qnn/export-streaming.sh23 # Check if file existsCOMMENT
LOW…pts/zipformer-transducer/x-asr/qnn/export-streaming.sh30 # Check if file is HTML (error page)COMMENT
LOWscripts/moonshine/v2/qnn/test_onnx.py177 # Check if this is a hex string like <0xE5>COMMENT
LOWscripts/whisper/find_alignment_heads.py242 # Check if model already has alignment headsCOMMENT
Verbosity Indicators5 hits · 8 pts
SeverityFileLineSnippetContext
LOWscripts/benchmark/download_librispeech_test_data.py222 # Step 1: Download LibriSpeech dev-cleanCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py235 # Step 2: Download MFA alignmentsCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py249 # Step 3: Find alignment files for dev-cleanCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py262 # Step 4: Find corresponding audio files and convertCOMMENT
LOWscripts/benchmark/download_librispeech_test_data.py302 # Step 5: Write manifestCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHscripts/zipformer-transducer/reazonspeech/run.sh20# I have created a PyTorch checkpoint from it and put it inCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/node-addon-api/lib/streaming-asr.js28 print(idx, text) {CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtauri-examples/hello_world/src-tauri/setup-ios.sh5# Usage:COMMENT
LOWscripts/check_style_cpplint.sh17# Usage:COMMENT
LOWscripts/nemo/generate_bpe_vocab.py9# Usage:COMMENT
Magic Placeholder Names1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHpython-api-examples/generate-subtitles-doubao.py40 export DOUBAO_API_KEY=<your_api_key>STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMscripts/sense-voice/ascend-npu/test_om_static.py31CODE