Repository Analysis

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

8.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of k2-fsa/sherpa-onnx, a C++ project with 13,560 GitHub stars. SynthScan v2.0 examined 379,136 lines of code across 3550 source files, recording 1501 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 8.8 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

8.8
Adjusted Score
8.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
13.6K
Stars
C++
Language
379.1K
Lines of Code
3.5K
Files
1.5K
Pattern Hits
2026-07-14
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

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

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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

CRITICAL 6HIGH 406MEDIUM 94LOW 995

Directory Score Breakdown

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

Pattern Findings

The scanner identified 1501 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition397 hits · 1985 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
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/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
HIGHscripts/nemo/speaker-verification/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
HIGH…ripts/nemo/parakeet-tdt_ctc-0.6b-ja/export-onnx-ctc.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/nemo/GigaAM/export-onnx-rnnt-v3-punct.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/nemo/GigaAM/export-onnx-ctc-v3-punct.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/nemo/GigaAM/export-onnx-rnnt.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/nemo/GigaAM/export-onnx-ctc.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/nemo/GigaAM/export-onnx-rnnt-v2.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/nemo/GigaAM/export-onnx-ctc-v2.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/nemo/GigaAM/export-onnx-ctc-v3.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/nemo/GigaAM/export-onnx-rnnt-v3.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/nemo/parakeet-unified-en-0.6b/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/nemo/canary/export_onnx_180m_flash.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGH…/nemo/nemotron-speech-streaming-en-0.6b/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/nemo/parakeet-tdt-0.6b-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/nemo/parakeet-tdt-0.6b-v3/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
HIGH…hybrid-transducer-ctc/export-onnx-ctc-non-streaming.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGH…transducer-ctc/export-onnx-transducer-non-streaming.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGH…ast-conformer-hybrid-transducer-ctc/export-onnx-ctc.py0add meta data to an onnx model. it is changed in-place. args: filename: filename of the onnx model to be changed. meta_dSTRING
HIGH…former-hybrid-transducer-ctc/export-onnx-transducer.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/matcha-tts/fa-en/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/pyannote/segmentation/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/3dspeaker/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/piper/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/melo-tts/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/melo-tts/export-onnx-en.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/wenet/export-onnx-streaming.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/wenet/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/whisper/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/whisper/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/whisper/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/whisper/ascend-npu/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/whisper/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/medasr/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/paraformer/rknn/export_encoder_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/paraformer/qnn/export_encoder_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/test_onnx.py0note: this is for testing the onnx models that would be later used to export to rknnSTRING
HIGHscripts/sense-voice/rknn/test_onnx.py0note: this is for testing the onnx models that would be later used to export to rknnSTRING
HIGHscripts/sense-voice/qnn/test_onnx.py0note: this is for testing the onnx models that would be later used to export to rknnSTRING
HIGHscripts/sense-voice/adaptor.py0transform query, key and value. args: query (torch.tensor): query tensor (#batch, time1, size). key (torch.tensor): key STRING
HIGHscripts/sense-voice/torch_model.py0transform query, key and value. args: query (torch.tensor): query tensor (#batch, time1, size). key (torch.tensor): key STRING
337 more matches not shown…
Over-Commented Block456 hits · 456 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_SPACEMIT "Whether to build for SpacemiT CPUs " OFF)COMMENT
LOWbuild-android-x86-64.sh1#!/usr/bin/env bashCOMMENT
LOWbuild-android-x86-64.sh41 exit 1COMMENT
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.sh41# open $ANDROID_NDK/build/cmake/android.toolchain.cmake for ndk < r23COMMENT
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
LOW…pa_onnx/src/main/cpp/include/sherpa-onnx/c-api/c-api.h4681#if defined(__GNUC__)COMMENT
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
LOWsherpa-onnx/csrc/ort-env.h1// sherpa-onnx/csrc/ort-env.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
396 more matches not shown…
Hyper-Verbose Identifiers216 hits · 200 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
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.js49function initSherpaOnnxOfflineSpeakerSegmentationModelConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js85function initSherpaOnnxSpeakerEmbeddingExtractorConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js121function initSherpaOnnxFastClusteringConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js138function initSherpaOnnxOfflineSpeakerDiarizationConfig(config, Module) {CODE
LOW…speaker-diarization/sherpa-onnx-speaker-diarization.js277function 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.js71function initSherpaOnnxOfflineSpeechDenoiserModelConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js117function initSherpaOnnxOfflineSpeechDenoiserConfig(config, Module) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js251function createOfflineSpeechDenoiser(Module, myConfig) {CODE
LOW…m/speech-enhancement/sherpa-onnx-speech-enhancement.js266function 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 initSherpaOnnxOnlineRecognizerConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js682function initSherpaOnnxOfflineTransducerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js719function initSherpaOnnxOfflineParaformerModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js738function initSherpaOnnxOfflineNemoEncDecCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js757function initSherpaOnnxOfflineDolphinModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js776function initSherpaOnnxOfflineZipformerCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js795function initSherpaOnnxOfflineWenetCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js814function initSherpaOnnxOfflineOmnilingualAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js833function initSherpaOnnxOfflineMedAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js852function initSherpaOnnxOfflineFireRedAsrCtcModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js871function initSherpaOnnxOfflineFunAsrNanoModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1018function initSherpaOnnxOfflineWhisperModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1066function initSherpaOnnxOfflineCanaryModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1113function initSherpaOnnxOfflineMoonshineModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1173function initSherpaOnnxOfflineFireRedAsrModelConfig(config, Module) {CODE
LOWwasm/vad-asr/sherpa-onnx-asr.js1204function initSherpaOnnxOfflineTdnnModelConfig(config, Module) {CODE
156 more matches not shown…
Unused Imports160 hits · 124 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
100 more matches not shown…
Self-Referential Comments42 hits · 122 pts
SeverityFileLineSnippetContext
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/scripts/test-spoken-language-identification.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-transducer.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-cxx-api.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-moonshine.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-paraformer.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-cohere-transcribe.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-kws.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-c-api.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-python.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-tts.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-speech-denoiser.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-ctc.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-online-punctuation.sh9 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-transducer.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-source-separation.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-audio-tagging.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-speaker-diarization.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-punctuation.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-ctc.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-diacritization.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-fire-red-asr.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-speaker-recognition-python.sh6 # This function is from espnetCOMMENT
MEDIUM.github/scripts/test-offline-whisper.sh6 # 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.py99 """This function is called whenever max_num_sentences sentencesSTRING
Deep Nesting80 hits · 80 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.py289CODE
LOWflutter-examples/tts/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.1-zh/test.py112CODE
LOWscripts/kokoro/v1.1-zh/generate_lexicon_zh.py23CODE
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
LOWscripts/whisper/qnn/export_onnx.py419CODE
LOW.github/scripts/export-qnn/generate_zipformer.py20CODE
LOW.github/scripts/export-qnn/generate_parakeet_tdt_ctc.py21CODE
LOWpython-api-examples/non_streaming_server.py168CODE
LOWpython-api-examples/non_streaming_server.py940CODE
LOWpython-api-examples/generate-subtitles.py407CODE
LOWpython-api-examples/generate-subtitles.py622CODE
LOW…aker-identification-with-vad-non-streaming-asr-alsa.py268CODE
LOW…xamples/two-pass-speech-recognition-from-microphone.py247CODE
20 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
Excessive Try-Catch Wrapping43 hits · 68 pts
SeverityFileLineSnippetContext
LOWcmake/download-all-deps.py498 except Exception as e: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
MEDIUMscripts/supertonic/generate_indexer_bin.py19 print(f"Error: {json_path} does not exist")CODE
LOWscripts/supertonic/generate_indexer_bin.py25 except Exception as e:CODE
MEDIUMscripts/supertonic/generate_indexer_bin.py26 print(f"Error: failed to read JSON {json_path}: {e}")CODE
MEDIUMscripts/supertonic/generate_indexer_bin.py30 print(f"Error: JSON must be an array of integers, got {type(arr)}")CODE
MEDIUMscripts/supertonic/generate_indexer_bin.py35 print(f"Error: JSON element {i} is not an integer: {x} (type={type(x)})")CODE
MEDIUMscripts/supertonic/generate_indexer_bin.py38 print(f"Error: JSON element {i} out of int32 range: {x}")CODE
LOWscripts/supertonic/generate_indexer_bin.py46 except Exception as e:CODE
MEDIUMscripts/supertonic/generate_indexer_bin.py47 print(f"Error: failed to write {bin_path}: {e}")CODE
LOWscripts/supertonic/convert.py32except Exception:CODE
LOWscripts/supertonic/convert.py39except Exception:CODE
LOWscripts/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
MEDIUMscripts/supertonic/generate_voices_bin.py103 print(f"Error: input dir does not exist or not a directory: {input_dir}")CODE
LOWscripts/supertonic/generate_voices_bin.py113 except Exception as e:CODE
MEDIUMscripts/supertonic/generate_voices_bin.py114 print(f"Error: {e}")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.py86 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
MEDIUMpython-api-examples/pocket-tts-play.py235 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMpython-api-examples/pocket-tts.py86 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.py203 print("Error in generating audios. Please read previous error messages.")STRING
MEDIUMswift-api-examples/generate-subtitles.swift227 print("Error writing: \(error.localizedDescription)")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.py727 # speech is detected, you can useCOMMENT
Decorative Section Separators14 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMbuild-android-arm64-v8a.sh251# ----------------------------------------COMMENT
MEDIUMbuild-android-arm64-v8a.sh253# ----------------------------------------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
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py184# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/moonshine/v2/qnn/export_onnx.py186# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/whisper/export-onnx-with-attention.py174# =============================================================================COMMENT
MEDIUMscripts/whisper/export-onnx-with-attention.py176# =============================================================================COMMENT
MEDIUMscripts/whisper/export-onnx-with-attention.py409# =============================================================================COMMENT
MEDIUMscripts/whisper/export-onnx-with-attention.py411# =============================================================================COMMENT
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.py1205CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1318CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1398CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1495CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1584CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1665CODE
LOWsherpa-onnx/python/sherpa_onnx/offline_recognizer.py1746CODE
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
HIGHscripts/go/generate.py59 build_info = "//go:build (windows && amd64) || (windows && 386)"CODE
HIGHscripts/go/generate.py61 build_info = "//go:build (!android && linux && arm64) || (!android && linux && amd64 && !musl) || (!android && lCODE
HIGHscripts/go/generate.py63 build_info = "//go:build (darwin && amd64 && !ios) || (darwin && arm64 && !ios)"CODE
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
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.md111### Example 2: TTS with Pocket TTS (zero-shot voice cloning)COMMENT
MEDIUMrust-api-examples/README.md123### 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
Structural Annotation Overuse5 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 Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/check_style_cpplint.sh17# Usage:COMMENT
LOWscripts/nemo/generate_bpe_vocab.py9# Usage:COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMscripts/sense-voice/ascend-npu/test_om_static.py31CODE