AI Slop Code RIsk Monitor

PaddlePaddle/PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.

14.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PaddlePaddle/PaddleSpeech, a Python project with 12,695 GitHub stars. SynthScan examined 330,336 lines of code across 2577 source files, recording 3433 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 14.9 (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.

14.9
Adjusted Signal
14.9
Raw Pattern Score
100%
Time Factor
2026-08-12
Last Push
12.7K
Stars
Python
Language
330.3K
Lines of Code
2.6K
Files
3.4K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 32.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 7.5/100 · LOW

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

Agent Over-Engineering Ratio 28.5/100 · MEDIUM

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

PR Review Velocity Impact 54.8/100 · HIGH

Which changes need focused human review? 3433 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 4HIGH 314MEDIUM 100LOW 3015

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

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

Over-Commented Block1450 hits · 1448 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/release_note.py1#!/usr/bin/evn python3COMMENT
LOWtools/release_note.py121 github_request.close()COMMENT
LOWpaddlespeech/__init__.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/audiotools/__init__.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/audiotools/metrics/__init__.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/audiotools/core/audio_signal.py1361 -------COMMENT
LOWpaddlespeech/audiotools/core/__init__.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/audiotools/ml/__init__.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/audiotools/data/__init__.py1# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/arpabet.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/vocab.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/zh_frontend.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/canton_frontend.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/generate_lexicon.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/phonectic.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/sing_frontend.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/punctuation.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/en_frontend.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/polyphonic.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/tone_sandhi.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/mix_frontend.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW…dlespeech/t2s/frontend/rhy_prediction/rhy_predictor.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/rhy_prediction/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/g2pw/onnx_api.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/g2pw/dataset.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/g2pw/utils.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/numbers.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/width.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/abbrrviation.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/normalizer.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/normalizer/acronyms.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/ssml/__init__.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/ssml/xml_processor.py1# -*- coding: utf-8 -*-COMMENT
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/zh_normalization/constants.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/zh_normalization/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW…lespeech/t2s/frontend/zh_normalization/char_convert.py1# coding=utf-8COMMENT
LOW…ddlespeech/t2s/frontend/zh_normalization/chronology.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/frontend/zh_normalization/phonecode.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW…ech/t2s/frontend/zh_normalization/text_normlization.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOW…ddlespeech/t2s/frontend/zh_normalization/quantifier.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/seeding.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/reporter.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/updater.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/experiment.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/cli.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/extension.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/default_config.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/optimizer.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/trainer.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/trigger.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/triggers/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/triggers/time_trigger.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/triggers/interval_trigger.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWpaddlespeech/t2s/training/triggers/limit_trigger.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
1390 more matches not shown…
Cross-File Repetition217 hits · 1085 pts
SeverityFileLineSnippetContext
HIGHpaddlespeech/audiotools/core/_julius.py0return a pure tone, i.e. cosine. args: freq (float): frequency (in hz) sr (float): sample rate (in hz) dur (float): duraSTRING
HIGHtests/unit/audiotools/core/test_lowpass.py0return a pure tone, i.e. cosine. args: freq (float): frequency (in hz) sr (float): sample rate (in hz) dur (float): duraSTRING
HIGHtests/unit/audiotools/core/test_highpass.py0return a pure tone, i.e. cosine. args: freq (float): frequency (in hz) sr (float): sample rate (in hz) dur (float): duraSTRING
HIGHpaddlespeech/t2s/frontend/g2pw/onnx_api.py0credits this code is modified from https://github.com/gitycc/g2pwSTRING
HIGHpaddlespeech/t2s/frontend/g2pw/dataset.py0credits this code is modified from https://github.com/gitycc/g2pwSTRING
HIGHpaddlespeech/t2s/frontend/g2pw/utils.py0credits this code is modified from https://github.com/gitycc/g2pwSTRING
HIGHpaddlespeech/t2s/training/experiment.py0resume from latest checkpoint at checkpoints in the output directory or load a specified checkpoint. if ``args.checkpoinSTRING
HIGHpaddlespeech/s2t/training/trainer.py0resume from latest checkpoint at checkpoints in the output directory or load a specified checkpoint. if ``args.checkpoinSTRING
HIGHpaddlespeech/s2t/exps/wavlm/model.py0resume from latest checkpoint at checkpoints in the output directory or load a specified checkpoint. if ``args.checkpoinSTRING
HIGHpaddlespeech/s2t/exps/hubert/model.py0resume from latest checkpoint at checkpoints in the output directory or load a specified checkpoint. if ``args.checkpoinSTRING
HIGHpaddlespeech/s2t/exps/wav2vec2/model.py0resume from latest checkpoint at checkpoints in the output directory or load a specified checkpoint. if ``args.checkpoinSTRING
HIGHpaddlespeech/t2s/training/experiment.py0the routine of the experiment after setup. this method is intended to be used by the user.STRING
HIGHpaddlespeech/s2t/training/trainer.py0the routine of the experiment after setup. this method is intended to be used by the user.STRING
HIGHpaddlespeech/s2t/exps/u2/trainer.py0the routine of the experiment after setup. this method is intended to be used by the user.STRING
HIGH…speech/t2s/models/parallel_wavegan/parallel_wavegan.py0recursively apply weight normalization to all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/hifigan/hifigan.py0recursively apply weight normalization to all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/melgan/style_melgan.py0recursively apply weight normalization to all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/melgan/melgan.py0recursively apply weight normalization to all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/modules/wavenet_denoiser.py0recursively apply weight normalization to all the convolution layers in the sublayers.STRING
HIGH…speech/t2s/models/parallel_wavegan/parallel_wavegan.py0recursively remove weight normalization from all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/hifigan/hifigan.py0recursively remove weight normalization from all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/melgan/style_melgan.py0recursively remove weight normalization from all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/melgan/melgan.py0recursively remove weight normalization from all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/modules/wavenet_denoiser.py0recursively remove weight normalization from all the convolution layers in the sublayers.STRING
HIGHpaddlespeech/t2s/models/fastspeech2/fastspeech2.py0initialize feed-forward transformer loss module. args: use_masking (bool): whether to apply masking for padded part in lSTRING
HIGHpaddlespeech/t2s/models/diffsinger/diffsinger.py0initialize feed-forward transformer loss module. args: use_masking (bool): whether to apply masking for padded part in lSTRING
HIGHpaddlespeech/t2s/models/diffsinger/fastspeech2midi.py0initialize feed-forward transformer loss module. args: use_masking (bool): whether to apply masking for padded part in lSTRING
HIGHpaddlespeech/t2s/models/jets/alignments.py0generator module in jets. this code is based on https://github.com/imdanboy/jets.STRING
HIGHpaddlespeech/t2s/models/jets/jets_updater.py0generator module in jets. this code is based on https://github.com/imdanboy/jets.STRING
HIGHpaddlespeech/t2s/models/jets/generator.py0generator module in jets. this code is based on https://github.com/imdanboy/jets.STRING
HIGHpaddlespeech/t2s/models/jets/jets.py0generator module in jets. this code is based on https://github.com/imdanboy/jets.STRING
HIGHpaddlespeech/t2s/models/jets/length_regulator.py0generator module in jets. this code is based on https://github.com/imdanboy/jets.STRING
HIGHpaddlespeech/t2s/exps/stream_play_tts.py0streaming inference removes the result of pad inferenceSTRING
HIGH…ddlespeech/server/engine/tts/online/onnx/tts_engine.py0streaming inference removes the result of pad inferenceSTRING
HIGH…lespeech/server/engine/tts/online/python/tts_engine.py0streaming inference removes the result of pad inferenceSTRING
HIGHdemos/speech_web/speech_server/src/SpeechBase/tts.py0streaming inference removes the result of pad inferenceSTRING
HIGH…ts_serving_fastdeploy/streaming_tts_serving/1/model.py0streaming inference removes the result of pad inferenceSTRING
HIGH…dlespeech/dataset/aidatatang_200zh/aidatatang_200zh.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/aidatatang_200zh/aidatatang_200zh.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHpaddlespeech/dataset/aishell/aishell.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/rir_noise/rir_noise.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/musan/musan.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/aishell/aishell.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHtests/unit/cli/aishell_test_prepare.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHtests/test_tipc/conformer/scripts/aishell_tiny.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/voxforge/voxforge.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHdataset/thchs30/thchs30.py0prepare thchs-30 mandarin dataset download, unpack and create manifest files. manifest file is a json-format file with eSTRING
HIGHpaddlespeech/s2t/frontend/utility.py0convert sample type to float32. audio sample type is usually integer or float-point. integers will be scaled to [-1, 1] STRING
HIGHpaddlespeech/audio/text/utility.py0convert sample type to float32. audio sample type is usually integer or float-point. integers will be scaled to [-1, 1] STRING
HIGHpaddlespeech/s2t/frontend/audio.py0convert sample type to float32. audio sample type is usually integer or float-point. integers will be scaled to [-1, 1] STRING
HIGHpaddlespeech/s2t/training/trainer.py0save checkpoint (model parameters and optimizer states). args: tag (int or str, optional): none for step, else using tagSTRING
HIGHpaddlespeech/s2t/exps/wavlm/model.py0save checkpoint (model parameters and optimizer states). args: tag (int or str, optional): none for step, else using tagSTRING
HIGHpaddlespeech/s2t/exps/hubert/model.py0save checkpoint (model parameters and optimizer states). args: tag (int or str, optional): none for step, else using tagSTRING
HIGHpaddlespeech/s2t/exps/wav2vec2/model.py0save checkpoint (model parameters and optimizer states). args: tag (int or str, optional): none for step, else using tagSTRING
HIGHpaddlespeech/s2t/io/speechbrain/sb_pipeline.py0this function prepares the datasets to be used in the brain class. it also defines the data processing pipeline through STRING
HIGHpaddlespeech/s2t/exps/wavlm/model.py0this function prepares the datasets to be used in the brain class. it also defines the data processing pipeline through STRING
HIGHpaddlespeech/s2t/exps/hubert/model.py0this function prepares the datasets to be used in the brain class. it also defines the data processing pipeline through STRING
HIGHpaddlespeech/s2t/exps/wav2vec2/model.py0this function prepares the datasets to be used in the brain class. it also defines the data processing pipeline through STRING
HIGHpaddlespeech/s2t/utils/tensor_utils.py0pad a list of variable length tensors with ``padding_value`` ``pad_sequence`` stacks a list of tensors along a new dimenSTRING
HIGHpaddlespeech/audio/utils/tensor_utils.py0pad a list of variable length tensors with ``padding_value`` ``pad_sequence`` stacks a list of tensors along a new dimenSTRING
157 more matches not shown…
Unused Imports495 hits · 474 pts
SeverityFileLineSnippetContext
LOWpaddlespeech/audiotools/__init__.py14CODE
LOWpaddlespeech/audiotools/__init__.py15CODE
LOWpaddlespeech/audiotools/__init__.py16CODE
LOWpaddlespeech/audiotools/__init__.py17CODE
LOWpaddlespeech/audiotools/__init__.py18CODE
LOWpaddlespeech/audiotools/__init__.py19CODE
LOWpaddlespeech/audiotools/__init__.py20CODE
LOWpaddlespeech/audiotools/__init__.py21CODE
LOWpaddlespeech/audiotools/__init__.py22CODE
LOWpaddlespeech/audiotools/__init__.py23CODE
LOWpaddlespeech/audiotools/__init__.py24CODE
LOWpaddlespeech/audiotools/__init__.py25CODE
LOWpaddlespeech/audiotools/metrics/__init__.py17CODE
LOWpaddlespeech/audiotools/metrics/quality.py36CODE
LOWpaddlespeech/audiotools/metrics/quality.py40CODE
LOWpaddlespeech/audiotools/core/util.py16CODE
LOWpaddlespeech/audiotools/core/util.py19CODE
LOWpaddlespeech/audiotools/core/util.py21CODE
LOWpaddlespeech/audiotools/core/util.py36CODE
LOWpaddlespeech/audiotools/core/util.py559CODE
LOWpaddlespeech/audiotools/core/_julius.py14CODE
LOWpaddlespeech/audiotools/core/_julius.py15CODE
LOWpaddlespeech/audiotools/core/_julius.py23CODE
LOWpaddlespeech/audiotools/core/ffmpeg.py6CODE
LOWpaddlespeech/audiotools/core/ffmpeg.py9CODE
LOWpaddlespeech/audiotools/core/__init__.py14CODE
LOWpaddlespeech/audiotools/core/__init__.py15CODE
LOWpaddlespeech/audiotools/core/__init__.py16CODE
LOWpaddlespeech/audiotools/core/__init__.py17CODE
LOWpaddlespeech/audiotools/core/__init__.py18CODE
LOWpaddlespeech/audiotools/core/__init__.py19CODE
LOWpaddlespeech/audiotools/core/__init__.py20CODE
LOWpaddlespeech/audiotools/core/__init__.py21CODE
LOWpaddlespeech/audiotools/core/__init__.py22CODE
LOWpaddlespeech/audiotools/core/__init__.py23CODE
LOWpaddlespeech/audiotools/core/__init__.py24CODE
LOWpaddlespeech/audiotools/core/__init__.py25CODE
LOWpaddlespeech/audiotools/core/__init__.py26CODE
LOWpaddlespeech/audiotools/core/__init__.py27CODE
LOWpaddlespeech/audiotools/core/__init__.py28CODE
LOWpaddlespeech/audiotools/core/loudness.py7CODE
LOWpaddlespeech/audiotools/ml/basemodel.py6CODE
LOWpaddlespeech/audiotools/ml/basemodel.py7CODE
LOWpaddlespeech/audiotools/ml/__init__.py14CODE
LOWpaddlespeech/audiotools/ml/__init__.py15CODE
LOWpaddlespeech/audiotools/ml/__init__.py16CODE
LOWpaddlespeech/audiotools/data/transforms.py16CODE
LOWpaddlespeech/audiotools/data/preprocess.py6CODE
LOWpaddlespeech/audiotools/data/datasets.py12CODE
LOWpaddlespeech/audiotools/data/__init__.py14CODE
LOWpaddlespeech/audiotools/data/__init__.py15CODE
LOWpaddlespeech/audiotools/data/__init__.py16CODE
LOWpaddlespeech/t2s/__init__.py14CODE
LOWpaddlespeech/t2s/__init__.py16CODE
LOWpaddlespeech/t2s/__init__.py17CODE
LOWpaddlespeech/t2s/__init__.py18CODE
LOWpaddlespeech/t2s/__init__.py19CODE
LOWpaddlespeech/t2s/__init__.py20CODE
LOWpaddlespeech/t2s/__init__.py21CODE
LOWpaddlespeech/t2s/__init__.py22CODE
435 more matches not shown…
Docstring Block Structure60 hits · 300 pts
SeverityFileLineSnippetContext
HIGHpaddlespeech/audiotools/core/util.py62 Compute the exponential of the input tensor `x`. This function is designed to handle compatibility issues withSTRING
HIGHpaddlespeech/audiotools/core/util.py88 Perform boolean indexing on the input tensor `x` using the provided `mask`. This function ensures compatibilitSTRING
HIGHpaddlespeech/audiotools/core/util.py115 Perform boolean assignment on the input tensor `x` using the provided `mask` and values `y`. This function ensSTRING
HIGHpaddlespeech/t2s/utils/error_rate.py126Calculate word error rate (WER). WER compares reference text and hypothesis text in word-level. WER is defined as: STRING
HIGHpaddlespeech/t2s/utils/error_rate.py162Calculate character error rate (CER). CER compares reference text and hypothesis text in char-level. CER is defined STRING
HIGHpaddlespeech/t2s/models/waveflow.py97Forward pass of the ``UpsampleNet`` Args: x(Tensor): The input spectrogram. shape=STRING
HIGH…lespeech/t2s/models/transformer_tts/transformer_tts.py652Make masks for self-attention. Args: ilens(Tensor): Batch of lengths (B,). Returns: STRING
HIGH…lespeech/t2s/models/transformer_tts/transformer_tts.py671Make masks for masked self-attention. Args: olens (Tensor(int64)): Batch of lengths (B,). STRING
HIGHpaddlespeech/t2s/models/fastspeech2/fastspeech2.py884Make masks for self-attention. Args: ilens(Tensor): Batch of lengths (B,). STRING
HIGHpaddlespeech/t2s/models/jets/generator.py866Make masks for self-attention. Args: ilens (LongTensor): Batch of lengths (B,). Returns: STRING
HIGHpaddlespeech/t2s/modules/nets_utils.py63Perform padding for the list of tensors. Args: xs (List[Tensor]): List of Tensors [(T_1, `*`),STRING
HIGHpaddlespeech/t2s/modules/nets_utils.py95Make mask tensor containing indices of padded part. Args: lengths (Tensor(int64)): Batch of leSTRING
HIGHpaddlespeech/t2s/modules/nets_utils.py214Make mask tensor containing indices of non-padded part. Args: lengths (Tensor(int64) or List): STRING
HIGHpaddlespeech/t2s/modules/losses.py281Make masks indicating non-padded part. Args: ilens(Tensor(int64) or List): Batch oSTRING
HIGHpaddlespeech/s2t/frontend/utility.py76Load and parse manifest file. Args: manifest_path ([type]): Manifest file to load and parse. max_inSTRING
HIGHpaddlespeech/s2t/frontend/utility.py319load cmvn from file. Args: cmvn_file (str): cmvn path. filetype (str): file type, optional[npz, jsoSTRING
HIGH…ddlespeech/s2t/frontend/featurizer/audio_featurizer.py203Compute the linear spectrogram from FFT energy. Args: samples ([type]): [description] sSTRING
HIGH…ddlespeech/s2t/frontend/featurizer/audio_featurizer.py266Compute mfcc from samples. Args: samples (np.ndarray, np.int16): the audio signal from which to comSTRING
HIGH…ddlespeech/s2t/frontend/featurizer/audio_featurizer.py323Compute logfbank from samples. Args: samples (np.ndarray, np.int16): the audio signal from STRING
HIGHpaddlespeech/s2t/frontend/augmentor/spec_augment.py138time warp for spec augment move random center frame by the random width ~ uniform(-window, window) ArgsSTRING
HIGHpaddlespeech/s2t/training/optimizer/adadelta.py22 **Notes: This API does not support sparse parameter optimization.** Adadelta Optimizer. Please refer to this fSTRING
HIGHpaddlespeech/s2t/utils/log.py50Computes the directory and filename prefix for log file. Args: program_name: str|None, the filename part of STRING
HIGHpaddlespeech/s2t/utils/tensor_utils.py122Add <sos> and <eos> labels. Args: ys_pad (paddle.Tensor): batch of padded target sequences (B, Lmax) STRING
HIGHpaddlespeech/s2t/utils/cli_readers.py31Read uttid and array in kaldi style This function might be a bit confusing as "ark" is used for HDF5 to imitateSTRING
HIGHpaddlespeech/s2t/models/lm_interface.py45Compute LM loss value from buffer sequences. Args: x (torch.Tensor): Input ids. (batch, len) STRING
HIGHpaddlespeech/s2t/models/wavlm/wavlm_asr.py311init model. Args: configs (dict): config dict. Raises: ValueError: raise when usSTRING
HIGHpaddlespeech/s2t/models/lm/transformer.py98Compute LM loss value from buffer sequences. Args: x (paddle.Tensor): Input ids. (batch, len) STRING
HIGHpaddlespeech/s2t/models/hubert/hubert_ASR.py340init model. Args: configs (dict): config dict. Raises: ValueError: raise when usSTRING
HIGHpaddlespeech/s2t/models/wav2vec2/wav2vec2_ASR.py311init model. Args: configs (dict): config dict. Raises: ValueError: raise when usSTRING
HIGHpaddlespeech/s2t/models/u2/u2.py756u2 decoding. Args: feats (Tensor): audio features, (B, T, D) feats_lengths (Tensor): (BSTRING
HIGHpaddlespeech/s2t/models/u2/u2.py875init sub module for model. Args: configs (dict): config dict. Raises: ValueErrSTRING
HIGHpaddlespeech/s2t/models/u2/u2.py951init model. Args: configs (dict): config dict. Raises: ValueError: raise when STRING
HIGHpaddlespeech/s2t/models/u2_st/u2_st.py489u2 decoding. Args: feats (Tensor): audio features, (B, T, D) feats_lengths (Tensor): (BSTRING
HIGHpaddlespeech/s2t/models/u2_st/u2_st.py555init sub module for model. Args: configs (dict): config dict. Raises: ValueErrSTRING
HIGHpaddlespeech/s2t/models/u2_st/u2_st.py621init model. Args: configs (dict): config dict. Raises: ValueError: raise when STRING
HIGHpaddlespeech/s2t/modules/mask.py43Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengths STRING
HIGHpaddlespeech/s2t/modules/mask.py69Make mask tensor containing indices of non-padded part. The sequences in a batch may have different lengths. To enabSTRING
HIGHpaddlespeech/s2t/modules/mask.py94Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive mSTRING
HIGHpaddlespeech/s2t/modules/mask.py119Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: siSTRING
HIGHpaddlespeech/s2t/modules/mask.py217 If a sequence is finished, we only allow one alive branch. This function aims to give one branch a zero score aSTRING
HIGHpaddlespeech/s2t/modules/ctc.py257 init ctc decoders Args: batch_size(int): Batch size for input data vocab_list (STRING
HIGHpaddlespeech/s2t/modules/ctc.py302 This function will be deprecated in future. ctc decoding with probs. Args: probs (TSTRING
HIGHpaddlespeech/s2t/modules/ctc.py346 init get ctc decoder Args: vocab_list (list): List of tokens in the vocabulary, for decodinSTRING
HIGHpaddlespeech/server/engine/tts/python/tts_engine.py124Post-processing operations, including speech, volume, sample rate, save audio file Args: wav (numpySTRING
HIGHpaddlespeech/server/engine/tts/python/tts_engine.py204 run include inference and postprocess. Args: sentence (str): text to be synthesized spSTRING
HIGH…speech/server/engine/tts/paddleinference/tts_engine.py362Post-processing operations, including speech, volume, sample rate, save audio file Args: wav (numpySTRING
HIGH…speech/server/engine/tts/paddleinference/tts_engine.py441get the result of the server response Args: sentence (str): sentence to be synthesized STRING
HIGHpaddlespeech/audio/utils/tensor_utils.py117Add <sos> and <eos> labels. Args: ys_pad (paddle.Tensor): batch of padded target sequences (B, Lmax) STRING
HIGHpaddlespeech/audio/utils/tensor_utils.py199Reverse padding for the list of tensors. Args: ys_pad (tensor): The padded tensor (B, Tokenmax). ys_STRING
HIGHpaddlespeech/audio/utils/tensor_utils.py223Reverse padding for the list of tensors. Args: ys_pad (tensor): The padded tensor (B, Tokenmax). ys_STRING
HIGHpaddlespeech/audio/text/utility.py76Load and parse manifest file. Args: manifest_path ([type]): Manifest file to load and parse. max_inSTRING
HIGHpaddlespeech/audio/text/utility.py319load cmvn from file. Args: cmvn_file (str): cmvn path. filetype (str): file type, optional[npz, jsoSTRING
HIGHpaddlespeech/audio/transform/spectrogram.py358 Args: x (np.ndarray): shape (Ti,) train (bool): True, train mode. Raises: STRING
HIGHpaddlespeech/audio/transform/spectrogram.py395 Args: x (np.ndarray): shape (Ti,) train (bool): True, train mode. Raises: STRING
HIGHpaddlespeech/audio/transform/spectrogram.py468 Args: x (np.ndarray): shape (Ti,) train (bool): True, train mode. Raises: STRING
HIGHpaddlespeech/audio/functional/window.py327Return a window of a given length and type. Args: window (Union[str, Tuple[str, float]]): The window functiSTRING
HIGHpaddlespeech/vector/models/ecapa_tdnn.py87Do conv1d forward Args: x (paddle.Tensor): [N, C, L] input data, NSTRING
HIGHtests/unit/asr/reverse_pad_list.py28Reverse padding for the list of tensors. Args: ys_pad (tensor): The padded tensor (B, Tokenmax). ys_STRING
HIGHaudio/paddleaudio/utils/tensor_utils.py118Add <sos> and <eos> labels. Args: ys_pad (paddle.Tensor): batch of padded target sequences (B, Lmax) STRING
HIGHaudio/paddleaudio/functional/window.py336Return a window of a given length and type. Args: window (Union[str, Tuple[str, float]]): The window functiSTRING
Deep Nesting289 hits · 289 pts
SeverityFileLineSnippetContext
LOWpaddlespeech/audiotools/core/audio_signal.py161CODE
LOWpaddlespeech/audiotools/core/audio_signal.py361CODE
LOWpaddlespeech/audiotools/core/audio_signal.py414CODE
LOWpaddlespeech/audiotools/core/audio_signal.py1669CODE
LOWpaddlespeech/audiotools/core/audio_signal.py1720CODE
LOWpaddlespeech/audiotools/core/util.py336CODE
LOWpaddlespeech/audiotools/core/util.py439CODE
LOWpaddlespeech/audiotools/core/util.py678CODE
LOWpaddlespeech/audiotools/core/util.py759CODE
LOWpaddlespeech/audiotools/data/transforms.py139CODE
LOWpaddlespeech/audiotools/data/datasets.py144CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py165CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py250CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py425CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py470CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py515CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py579CODE
LOWpaddlespeech/t2s/frontend/canton_frontend.py32CODE
LOWpaddlespeech/t2s/frontend/generate_lexicon.py40CODE
LOWpaddlespeech/t2s/frontend/generate_lexicon.py147CODE
LOWpaddlespeech/t2s/frontend/phonectic.py277CODE
LOWpaddlespeech/t2s/frontend/tone_sandhi.py93CODE
LOWpaddlespeech/t2s/frontend/tone_sandhi.py149CODE
LOWpaddlespeech/t2s/frontend/tone_sandhi.py176CODE
LOWpaddlespeech/t2s/frontend/mix_frontend.py57CODE
LOWpaddlespeech/t2s/frontend/g2pw/onnx_api.py232CODE
LOWpaddlespeech/t2s/frontend/g2pw/utils.py134CODE
LOWpaddlespeech/t2s/frontend/normalizer/numbers.py61CODE
LOWpaddlespeech/t2s/frontend/ssml/xml_processor.py134CODE
LOWpaddlespeech/t2s/frontend/ssml/xml_processor.py154CODE
LOWpaddlespeech/t2s/frontend/ssml/xml_processor.py174CODE
LOWpaddlespeech/t2s/training/trainer.py62CODE
LOWpaddlespeech/t2s/training/trainer.py107CODE
LOWpaddlespeech/t2s/datasets/preprocess_utils.py132CODE
LOWpaddlespeech/t2s/datasets/preprocess_utils.py240CODE
LOWpaddlespeech/t2s/utils/internals.py20CODE
LOWpaddlespeech/t2s/utils/profiler.py61CODE
LOWpaddlespeech/t2s/models/vits/vits_updater.py102CODE
LOWpaddlespeech/t2s/models/vits/vits_updater.py264CODE
LOW…ddlespeech/t2s/models/vits/monotonic_align/__init__.py65CODE
LOWpaddlespeech/t2s/models/starganv2_vc/JDCNet/model.py143CODE
LOW…/t2s/models/transformer_tts/transformer_tts_updater.py74CODE
LOW…/t2s/models/transformer_tts/transformer_tts_updater.py226CODE
LOWpaddlespeech/t2s/models/jets/jets_updater.py111CODE
LOWpaddlespeech/t2s/models/jets/jets_updater.py305CODE
LOWpaddlespeech/t2s/models/ernie_sat/ernie_sat.py124CODE
LOWpaddlespeech/t2s/models/diffsinger/fastspeech2midi.py164CODE
LOWpaddlespeech/t2s/models/tacotron2/tacotron2.py48CODE
LOWpaddlespeech/t2s/exps/synthesize_e2e.py35CODE
LOWpaddlespeech/t2s/exps/synthesize_e2e.py351CODE
LOWpaddlespeech/t2s/exps/lite_predict_streaming.py98CODE
LOWpaddlespeech/t2s/exps/ort_predict_e2e.py29CODE
LOWpaddlespeech/t2s/exps/synthesize.py32CODE
LOWpaddlespeech/t2s/exps/synthesize.py257CODE
LOWpaddlespeech/t2s/exps/syn_utils.py152CODE
LOWpaddlespeech/t2s/exps/syn_utils.py195CODE
LOWpaddlespeech/t2s/exps/syn_utils.py289CODE
LOWpaddlespeech/t2s/exps/syn_utils.py314CODE
LOWpaddlespeech/t2s/exps/syn_utils.py375CODE
LOWpaddlespeech/t2s/exps/syn_utils.py489CODE
229 more matches not shown…
AI Structural Patterns236 hits · 236 pts
SeverityFileLineSnippetContext
LOWpaddlespeech/audiotools/post.py88CODE
LOWpaddlespeech/audiotools/core/util.py642CODE
LOWpaddlespeech/audiotools/core/loudness.py151CODE
LOWpaddlespeech/audiotools/core/loudness.py186CODE
LOWpaddlespeech/audiotools/core/loudness.py208CODE
LOWpaddlespeech/audiotools/data/transforms.py685CODE
LOWpaddlespeech/audiotools/data/transforms.py758CODE
LOWpaddlespeech/audiotools/data/transforms.py1137CODE
LOWpaddlespeech/audiotools/data/datasets.py360CODE
LOWpaddlespeech/t2s/frontend/generate_lexicon.py144CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py51CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py70CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py90CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py132CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py172CODE
LOW…ddlespeech/t2s/frontend/zh_normalization/quantifier.py58CODE
LOWpaddlespeech/t2s/datasets/batch.py39CODE
LOWpaddlespeech/t2s/datasets/batch.py80CODE
LOWpaddlespeech/t2s/datasets/batch.py127CODE
LOWpaddlespeech/t2s/datasets/get_feats.py27CODE
LOWpaddlespeech/t2s/utils/scheduler.py51CODE
LOWpaddlespeech/t2s/utils/mp_tools.py27CODE
LOWpaddlespeech/t2s/models/waveflow.py327CODE
LOWpaddlespeech/t2s/models/waveflow.py356CODE
LOWpaddlespeech/t2s/models/vits/posterior_encoder.py39CODE
LOWpaddlespeech/t2s/models/vits/vits_updater.py38CODE
LOWpaddlespeech/t2s/models/vits/text_encoder.py44CODE
LOWpaddlespeech/t2s/models/vits/generator.py48CODE
LOWpaddlespeech/t2s/models/vits/generator.py428CODE
LOWpaddlespeech/t2s/models/vits/vits.py375CODE
LOWpaddlespeech/t2s/models/vits/transform.py133CODE
LOWpaddlespeech/t2s/models/vits/transform.py250CODE
LOWpaddlespeech/t2s/models/vits/residual_coupling.py42CODE
LOWpaddlespeech/t2s/models/vits/residual_coupling.py137CODE
LOWpaddlespeech/t2s/models/vits/wavenet/wavenet.py27CODE
LOWpaddlespeech/t2s/models/vits/wavenet/residual_block.py27CODE
LOW…speech/t2s/models/parallel_wavegan/parallel_wavegan.py76CODE
LOW…speech/t2s/models/parallel_wavegan/parallel_wavegan.py230CODE
LOW…speech/t2s/models/parallel_wavegan/parallel_wavegan.py261CODE
LOW…speech/t2s/models/parallel_wavegan/parallel_wavegan.py381CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py160CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py185CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py273CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py404CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py569CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py573CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py626CODE
LOWpaddlespeech/t2s/models/starganv2_vc/starganv2_vc.py633CODE
LOWpaddlespeech/t2s/models/starganv2_vc/losses.py25CODE
LOWpaddlespeech/t2s/models/starganv2_vc/losses.py93CODE
LOW…espeech/t2s/models/starganv2_vc/AuxiliaryASR/layers.py48CODE
LOWpaddlespeech/t2s/models/speedyspeech/speedyspeech.py268CODE
LOW…lespeech/t2s/models/transformer_tts/transformer_tts.py175CODE
LOW…/t2s/models/transformer_tts/transformer_tts_updater.py37CODE
LOW…/t2s/models/transformer_tts/transformer_tts_updater.py190CODE
LOWpaddlespeech/t2s/models/hifigan/hifigan.py33CODE
LOWpaddlespeech/t2s/models/hifigan/hifigan.py291CODE
LOWpaddlespeech/t2s/models/hifigan/hifigan.py492CODE
LOWpaddlespeech/t2s/models/hifigan/hifigan.py732CODE
LOWpaddlespeech/t2s/models/fastspeech2/fastspeech2.py65CODE
176 more matches not shown…
Excessive Try-Catch Wrapping211 hits · 222 pts
SeverityFileLineSnippetContext
LOWsetup.py52 except Exception as e:CODE
LOWpaddlespeech/t2s/frontend/zh_frontend.py290 except Exception:CODE
LOWpaddlespeech/t2s/frontend/g2pw/dataset.py55 except Exception:CODE
LOWpaddlespeech/t2s/training/trainer.py180 except Exception as e:CODE
LOWpaddlespeech/t2s/training/trainer.py197 except Exception as ee:CODE
LOWpaddlespeech/t2s/utils/layer_tools.py44 except Exception as e:CODE
MEDIUMpaddlespeech/t2s/exps/ernie_sat/utils.py151 print(f'Error happened with path="{path}", id="{k}", value="{v}"')CODE
LOWpaddlespeech/dataset/aishell/aishell.py197 except Exception as e:CODE
LOWpaddlespeech/s2t/frontend/audio.py194 except Exception as e:CODE
LOWpaddlespeech/s2t/frontend/audio.py379 except Exception:CODE
LOWpaddlespeech/s2t/frontend/augmentor/augmentation.py157 except Exception:CODE
LOWpaddlespeech/s2t/frontend/augmentor/augmentation.py228 except Exception:CODE
LOWpaddlespeech/s2t/training/trainer.py314 except Exception as e:CODE
LOWpaddlespeech/s2t/training/updaters/trainer.py158 except Exception as e:CODE
LOWpaddlespeech/s2t/training/updaters/trainer.py175 except Exception as ee:CODE
LOWpaddlespeech/s2t/io/dataloader.py133 except Exception as e:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py117 except Exception:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py124 except Exception:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py138 except Exception:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py183 except Exception:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py190 except Exception:CODE
LOWpaddlespeech/s2t/utils/cli_readers.py206 except Exception:CODE
LOW⚡paddlespeech/s2t/utils/cli_writers.py108 except Exception:CODE
LOW⚡paddlespeech/s2t/utils/cli_writers.py114 except Exception:CODE
LOW⚡paddlespeech/s2t/utils/cli_writers.py120 except Exception:CODE
MEDIUMpaddlespeech/s2t/utils/cli_writers.py105def close(self):CODE
LOWpaddlespeech/s2t/models/ds2/__init__.py27 except Exception:CODE
LOWpaddlespeech/s2t/exps/deepspeech2/bin/test_wav.py152 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/wavlm/model.py454 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/wavlm/bin/test_wav.py91 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/hubert/model.py455 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/hubert/bin/test_wav.py84 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/wav2vec2/model.py455 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/wav2vec2/bin/test_wav.py91 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/u2/model.py216 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/u2/bin/test_wav.py111 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/u2_kaldi/model.py178 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/u2_st/model.py217 except Exception as e:CODE
LOWpaddlespeech/s2t/exps/whisper/test_wav.py88 except Exception as e:CODE
LOWpaddlespeech/s2t/modules/ctc.py44 except Exception as e:CODE
LOWpaddlespeech/server/util.py273 except Exception:CODE
LOWpaddlespeech/server/util.py293 except Exception:CODE
LOWpaddlespeech/server/util.py363 except Exception:CODE
MEDIUMpaddlespeech/server/util.py358def _warpper(self, *args, **kwargs):CODE
LOWpaddlespeech/server/bin/paddlespeech_server.py103 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py131 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py221 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py350 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py458 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py539 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py599 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py683 except Exception as e:CODE
LOWpaddlespeech/server/bin/paddlespeech_client.py780 except Exception as e:CODE
LOWpaddlespeech/server/utils/audio_process.py96 except Exception:CODE
LOWpaddlespeech/server/utils/audio_handler.py66 except Exception as e:CODE
LOWpaddlespeech/server/restful/cls_api.py102 except Exception as e:CODE
LOWpaddlespeech/server/engine/engine_warmup.py72 except Exception as e:CODE
LOWpaddlespeech/server/engine/cls/python/cls_engine.py62 except Exception as e:CODE
LOWpaddlespeech/server/engine/cls/python/cls_engine.py73 except Exception as e:CODE
LOW…speech/server/engine/cls/paddleinference/cls_engine.py133 except Exception as e:CODE
151 more matches not shown…
Modern Structural Boilerplate188 hits · 188 pts
SeverityFileLineSnippetContext
LOWpaddlespeech/audiotools/core/audio_signal.py31__all__ = ['STFTParams', 'AudioSignal']CODE
LOWpaddlespeech/audiotools/core/util.py38__all__ = [CODE
LOWpaddlespeech/audiotools/core/_julius.py25__all__ = [CODE
LOWpaddlespeech/audiotools/data/transforms.py22__all__ = [CODE
LOWpaddlespeech/audiotools/data/datasets.py19__all__ = [CODE
LOWpaddlespeech/t2s/frontend/vocab.py17__all__ = ["Vocab"]CODE
LOWpaddlespeech/t2s/frontend/phonectic.py31__all__ = ["Phonetics", "English", "EnglishCharacter", "Chinese"]CODE
LOWpaddlespeech/t2s/frontend/punctuation.py15__all__ = ["get_punctuations"]CODE
LOWpaddlespeech/t2s/training/experiment.py26__all__ = ["ExperimentBase"]CODE
LOWpaddlespeech/t2s/datasets/batch.py20__all__ = [CODE
LOWpaddlespeech/t2s/datasets/dataset.py17__all__ = [CODE
LOWpaddlespeech/t2s/datasets/ljspeech.py18__all__ = ["LJSpeechMetaData"]CODE
LOWpaddlespeech/t2s/utils/internals.py17__all__ = ["convert_dtype_to_np_dtype_"]CODE
LOWpaddlespeech/t2s/utils/checkpoint.py21__all__ = ["load_parameters", "save_parameters"]CODE
LOWpaddlespeech/t2s/utils/display.py17__all__ = [CODE
LOWpaddlespeech/t2s/utils/scheduler.py15__all__ = ["SchedulerBase", "Constant", "PieceWise", "StepWise"]CODE
LOWpaddlespeech/t2s/utils/error_rate.py19__all__ = ['word_errors', 'char_errors', 'wer', 'cer']CODE
LOWpaddlespeech/t2s/utils/layer_tools.py17__all__ = ["summary", "gradient_norm", "freeze", "unfreeze"]CODE
LOWpaddlespeech/t2s/utils/mp_tools.py18__all__ = ["rank_zero_only"]CODE
LOWpaddlespeech/t2s/models/waveflow.py29__all__ = ["WaveFlow", "ConditionalWaveFlow", "WaveFlowLoss"]CODE
LOWpaddlespeech/t2s/models/vits/vits_updater.py33logger = logging.getLogger(__name__)CODE
LOW…2s/models/parallel_wavegan/parallel_wavegan_updater.py33logger = logging.getLogger(__name__)CODE
LOW…speech/t2s/models/starganv2_vc/starganv2_vc_updater.py34logger = logging.getLogger(__name__)CODE
LOW…speech/t2s/models/speedyspeech/speedyspeech_updater.py33logger = logging.getLogger(__name__)CODE
LOW…/t2s/models/transformer_tts/transformer_tts_updater.py32logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/hifigan/hifigan_updater.py31logger = logging.getLogger(__name__)CODE
LOW…lespeech/t2s/models/fastspeech2/fastspeech2_updater.py31logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/jets/jets_updater.py38logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/ernie_sat/ernie_sat_updater.py30logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/wavernn/wavernn_updater.py30logger = logging.getLogger(__name__)CODE
LOW…ddlespeech/t2s/models/diffsinger/diffsinger_updater.py32logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/melgan/style_melgan_updater.py32logger = logging.getLogger(__name__)CODE
LOW…espeech/t2s/models/melgan/multi_band_melgan_updater.py32logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/models/tacotron2/tacotron2_updater.py30logger = logging.getLogger(__name__)CODE
LOWpaddlespeech/t2s/audio/spec_normalizer.py28__all__ = ["NormalizerBase", "LogMagnitude", "UnitMagnitude"]CODE
LOWpaddlespeech/t2s/audio/audio.py18__all__ = ["AudioProcessor"]CODE
LOWpaddlespeech/t2s/modules/fftconv1d.py25__all__ = [CODE
LOWpaddlespeech/t2s/modules/conv.py17__all__ = [CODE
LOWpaddlespeech/t2s/modules/positional_encoding.py17__all__ = ["sinusoid_position_encoding", "scaled_position_encoding"]CODE
LOWpaddlespeech/dataset/download.py21__all__ = [CODE
LOWpaddlespeech/cls/models/panns/panns.py22__all__ = ['CNN14', 'CNN10', 'CNN6', 'cnn14', 'cnn10', 'cnn6']CODE
LOWpaddlespeech/s2t/frontend/utility.py30__all__ = [CODE
LOWpaddlespeech/s2t/frontend/normalizer.py27__all__ = ["FeatureNormalizer"]CODE
LOWpaddlespeech/s2t/frontend/featurizer/text_featurizer.py31__all__ = ["TextFeaturizer"]CODE
LOWpaddlespeech/s2t/frontend/augmentor/augmentation.py29__all__ = ["AugmentationPipeline"]CODE
LOWpaddlespeech/s2t/training/timer.py19__all__ = ["Timer"]CODE
LOWpaddlespeech/s2t/training/scheduler.py28__all__ = ["WarmupLR", "LRSchedulerFactory"]CODE
LOWpaddlespeech/s2t/training/trainer.py40__all__ = ["Trainer"]CODE
LOWpaddlespeech/s2t/training/optimizer/__init__.py27__all__ = ["OptimizerFactory"]CODE
LOWpaddlespeech/s2t/training/optimizer/adadelta.py18__all__ = []CODE
LOWpaddlespeech/s2t/training/updaters/updater.py21__all__ = ["UpdaterBase", "UpdaterState"]CODE
LOWpaddlespeech/s2t/training/updaters/standard_updater.py30__all__ = ["StandardUpdater"]CODE
LOWpaddlespeech/s2t/io/collator.py28__all__ = ["SpeechCollator", "TripletSpeechCollator"]CODE
LOWpaddlespeech/s2t/io/utility.py21__all__ = ["pad_list", "pad_sequence", "feat_type"]CODE
LOWpaddlespeech/s2t/io/converter.py20__all__ = ["CustomConverter"]CODE
LOWpaddlespeech/s2t/io/dataset.py23__all__ = ["ManifestDataset", "TransformDataset"]CODE
LOWpaddlespeech/s2t/io/reader.py29__all__ = ["LoadInputsAndTargets"]CODE
LOWpaddlespeech/s2t/io/batchfy.py21__all__ = ["make_batchset"]CODE
LOWpaddlespeech/s2t/io/dataloader.py35__all__ = ["BatchDataLoader", "StreamDataLoader"]CODE
LOWpaddlespeech/s2t/io/sampler.py25__all__ = [CODE
128 more matches not shown…
Empty Error Handlers36 hits · 180 pts
SeverityFileLineSnippetContext
HIGHsetup.py262except OSError:CODE
HIGHpaddlespeech/audiotools/core/util.py293except:CODE
HIGHpaddlespeech/audiotools/core/util.py465except:CODE
HIGHpaddlespeech/audiotools/core/util.py475except:CODE
HIGHpaddlespeech/t2s/utils/layer_tools.py44except Exception as e:CODE
HIGHpaddlespeech/t2s/models/vits/wavenet/wavenet.py192except ValueError:CODE
HIGH…speech/t2s/models/parallel_wavegan/parallel_wavegan.py207except ValueError:CODE
HIGH…speech/t2s/models/parallel_wavegan/parallel_wavegan.py340except ValueError:CODE
HIGH…speech/t2s/models/parallel_wavegan/parallel_wavegan.py476except ValueError:CODE
HIGHpaddlespeech/t2s/models/hifigan/hifigan.py266except ValueError:CODE
HIGHpaddlespeech/t2s/models/melgan/style_melgan.py188except (ValueError, AttributeError):CODE
HIGHpaddlespeech/t2s/models/melgan/style_melgan.py366except ValueError:CODE
HIGHpaddlespeech/t2s/models/melgan/melgan.py238except ValueError:CODE
HIGHpaddlespeech/t2s/models/melgan/melgan.py540except ValueError:CODE
HIGHpaddlespeech/t2s/modules/wavenet_denoiser.py182except ValueError:CODE
HIGHpaddlespeech/s2t/utils/cli_readers.py138except Exception:CODE
HIGHpaddlespeech/s2t/utils/cli_readers.py206except Exception:CODE
HIGHpaddlespeech/s2t/utils/layer_tools.py76except ValueError as e:CODE
HIGHpaddlespeech/s2t/utils/cli_writers.py108except Exception:CODE
HIGHpaddlespeech/s2t/utils/cli_writers.py114except Exception:CODE
HIGHpaddlespeech/s2t/utils/cli_writers.py120except Exception:CODE
HIGHpaddlespeech/server/util.py273except Exception:CODE
HIGHpaddlespeech/server/util.py363except Exception:CODE
HIGHpaddlespeech/cli/utils.py235except Exception:CODE
HIGHpaddlespeech/cli/utils.py326except Exception:CODE
HIGHpaddlespeech/audio/transform/transformation.py96except ValueError:CODE
HIGHpaddlespeech/audio/streamdata/utils.py112except ModuleNotFoundError:CODE
HIGHpaddlespeech/audio/streamdata/filters.py223except StopIteration:CODE
HIGHpaddlespeech/vector/io/augment.py826except Exception:CODE
HIGHpaddlespeech/vector/exps/ecapa_tdnn/train.py124except ValueError:CODE
HIGHdataset/voxforge/voxforge.py152except Exception as e:CODE
HIGHruntime/examples/text_lm/local/mmseg.py315except Exception as e:CODE
HIGHaudio/setup.py169except OSError:CODE
HIGHaudio/paddleaudio/_extension.py161except Exception:CODE
HIGHaudio/tests/common_utils/case_utils.py33except PermissionError:CODE
HIGHdemos/speech_web/speech_server/main.py304except WebSocketDisconnect:CODE
Decorative Section Separators48 hits · 165 pts
SeverityFileLineSnippetContext
MEDIUMtools/release_note.py16# ==============================================================================COMMENT
MEDIUMpaddlespeech/audiotools/core/effects.py421 # -----------------COMMENT
MEDIUMpaddlespeech/audiotools/core/effects.py444 # ----------COMMENT
MEDIUMpaddlespeech/audiotools/core/effects.py491 # ----------COMMENT
MEDIUMpaddlespeech/s2t/models/wavlm/wavlm_paddle.py1# --------------------------------------------------------COMMENT
MEDIUMpaddlespeech/s2t/models/wavlm/wavlm_paddle.py8# --------------------------------------------------------COMMENT
MEDIUMpaddlespeech/s2t/models/wavlm/modules/modules.py1# --------------------------------------------------------COMMENT
MEDIUMpaddlespeech/s2t/models/wavlm/modules/modules.py8# --------------------------------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py38# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py40# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py170# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py172# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py965# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py967# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1049# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1051# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1074# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1076# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1122# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py1124# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2256# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2258# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2276# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2278# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2294# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2296# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2314# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2316# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2327# ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/pretrained_models.py2329# ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py21 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py23 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py30 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py32 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py41 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py43 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py46 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py48 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py53 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py55 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py58 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py60 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py101 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py103 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py106 # ---------------------------------COMMENT
MEDIUM⚡paddlespeech/resource/model_alias.py108 # ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/model_alias.py74 # ---------------------------------COMMENT
MEDIUMpaddlespeech/resource/model_alias.py76 # ---------------------------------COMMENT
Hyper-Verbose Identifiers135 hits · 136 pts
SeverityFileLineSnippetContext
LOWsetup.py72def determine_matplotlib_version():CODE
LOWpaddlespeech/audiotools/core/dsp.py58 def _preprocess_signal_for_windowing(self, window_duration, hop_duration):CODE
LOWpaddlespeech/audiotools/core/util.py383def choose_from_list_of_lists(state: np.random.RandomState,CODE
LOWpaddlespeech/t2s/frontend/tone_sandhi.py264 def _merge_continuous_three_tones(CODE
LOWpaddlespeech/t2s/frontend/g2pw/onnx_api.py181 def _convert_bopomofo_to_pinyin(self, bopomofo: str) -> str:CODE
LOWpaddlespeech/t2s/frontend/zh_normalization/num.py117def replace_positive_quantifier(match) -> str:CODE
LOW…lespeech/t2s/frontend/zh_normalization/char_convert.py30def tranditional_to_simplified(text: str) -> str:CODE
LOW…lespeech/t2s/frontend/zh_normalization/char_convert.py35def simplified_to_traditional(text: str) -> str:CODE
LOWpaddlespeech/t2s/training/default_config.py24def get_default_training_config():CODE
LOWpaddlespeech/t2s/training/extensions/snapshot.py85 def save_checkpoint_and_update(self, trainer: Trainer):CODE
LOWpaddlespeech/t2s/datasets/preprocess_utils.py240def compare_duration_and_mel_length(sentences, utt, mel):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py25def build_erniesat_collate_fn(mlm_prob: float=0.8,CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py238def speedyspeech_single_spk_batch_fn(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py276def speedyspeech_multi_spk_batch_fn(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py417def diffsinger_single_spk_batch_fn(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py476def diffsinger_multi_spk_batch_fn(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py546def transformer_single_spk_batch_fn(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py911def speedyspeech_single_spk_batch_fn_static(examples):CODE
LOWpaddlespeech/t2s/datasets/am_batch_fn.py925def speedyspeech_multi_spk_batch_fn_static(examples):CODE
LOWpaddlespeech/t2s/datasets/sampler.py102 def _get_indices_by_batch_size(indices):CODE
LOWpaddlespeech/t2s/utils/internals.py20def convert_dtype_to_np_dtype_(dtype):CODE
LOWpaddlespeech/t2s/utils/display.py41def plot_multihead_alignments(alignments, title=None):CODE
LOWpaddlespeech/t2s/utils/display.py64def plot_multilayer_multihead_alignments(alignments, title=None):CODE
LOWpaddlespeech/t2s/utils/layer_tools.py40def recursively_remove_weight_norm(layer: nn.Layer):CODE
LOWpaddlespeech/t2s/models/vits/transform.py31def piecewise_rational_quadratic_transform(CODE
LOWpaddlespeech/t2s/models/vits/transform.py75def unconstrained_rational_quadratic_spline(CODE
LOWpaddlespeech/t2s/models/vits/transform.py133def rational_quadratic_spline(CODE
LOW…lespeech/t2s/models/starganv2_vc/AuxiliaryASR/model.py146 def initialize_decoder_states(self,CODE
LOW…lespeech/t2s/models/transformer_tts/transformer_tts.py645 def _add_first_frame_and_remove_last_frame(CODE
LOW…lespeech/t2s/models/transformer_tts/transformer_tts.py698 def _integrate_with_spk_embed(self,CODE
LOWpaddlespeech/t2s/models/fastspeech2/fastspeech2.py827 def _integrate_with_spk_embed(self, hs, spk_emb):CODE
LOWpaddlespeech/t2s/models/fastspeech2/fastspeech2.py857 def _integrate_with_tone_embed(self, hs, tone_embs):CODE
LOWpaddlespeech/t2s/models/jets/alignments.py76def _monotonic_alignment_search(log_p_attn):CODE
LOWpaddlespeech/t2s/models/jets/generator.py807 def _integrate_with_spk_embed(self,CODE
LOWpaddlespeech/t2s/models/tacotron2/tacotron2.py452 def _integrate_with_spk_embed(self,CODE
LOWpaddlespeech/t2s/exps/lite_syn_utils.py77def get_lite_am_sublayer_output(am_sublayer_predictor, input):CODE
LOWpaddlespeech/t2s/exps/lite_syn_utils.py87def get_lite_streaming_am_output(input: str,CODE
LOWpaddlespeech/t2s/modules/losses.py49def discretized_mix_logistic_loss(y_hat,CODE
LOWpaddlespeech/t2s/modules/losses.py129def sample_from_discretized_mix_logistic(y, log_scale_min=None):CODE
LOWpaddlespeech/t2s/modules/losses.py233 def _make_guided_attention_masks(self, ilens, olens):CODE
LOWpaddlespeech/t2s/modules/losses.py246 def _make_guided_attention_mask(ilen, olen, sigma):CODE
LOWpaddlespeech/t2s/modules/positional_encoding.py20def sinusoid_position_encoding(num_positions: int,CODE
LOWpaddlespeech/t2s/modules/transformer/encoder.py215 def get_encoder_selfattn_layer(self,CODE
LOWpaddlespeech/t2s/modules/tacotron2/attentions.py23def _apply_attention_constraint(e,CODE
LOWpaddlespeech/s2t/frontend/audio.py415 def normalize_online_bayesian(self,CODE
LOWpaddlespeech/s2t/frontend/featurizer/text_featurizer.py218 def _load_vocabulary_from_file(self, vocab: Union[str, list],CODE
LOWpaddlespeech/s2t/training/extensions/snapshot.py100 def save_checkpoint_and_update(self, trainer: Trainer, mode: str):CODE
LOWpaddlespeech/s2t/io/sampler.py132 def _get_indices_by_batch_size(indices):CODE
LOWpaddlespeech/s2t/io/speechbrain/dataio.py352def relative_time_to_absolute(batch, relative_lens, rate):CODE
LOWpaddlespeech/s2t/io/speechbrain/sampler.py269 def _get_boundaries_through_warping(CODE
LOWpaddlespeech/s2t/utils/ctc_utils.py31def remove_duplicates_and_blank(hyp: List[int], blank_id=0) -> List[int]:CODE
LOWpaddlespeech/s2t/utils/checkpoint.py188 def _save_best_checkpoint_and_update(self, metric, checkpoint_dir,CODE
LOWpaddlespeech/s2t/utils/checkpoint.py206 def _save_latest_checkpoint_and_update(CODE
LOWpaddlespeech/s2t/utils/socket_server.py75class AsrRequestHandler(socketserver.BaseRequestHandler):CODE
LOWpaddlespeech/s2t/utils/layer_tools.py72def recursively_remove_weight_norm(layer: nn.Layer):CODE
LOWpaddlespeech/s2t/models/asr_interface.py118 def get_total_subsampling_factor(self):CODE
LOWpaddlespeech/s2t/models/wavlm/modules/functional.py53def scaled_dot_product_attention(q, k, v, attn_mask, dropout_p, is_causal):CODE
LOWpaddlespeech/s2t/models/wavlm/modules/functional.py88def multi_head_attention_forward(CODE
LOWpaddlespeech/s2t/models/wavlm/modules/functional.py210def multi_head_attention_forward_paddle(STRING
LOWpaddlespeech/s2t/models/wavlm/modules/modules.py356 def _relative_positions_bucket(self, relative_positions,CODE
75 more matches not shown…
Self-Referential Comments21 hits · 53 pts
SeverityFileLineSnippetContext
MEDIUMpaddlespeech/audiotools/ml/accelerator.py46 """This class is used to prepare models and dataloaders forSTRING
MEDIUMpaddlespeech/t2s/utils/error_rate.py14"""This module provides functions to calculate error rate in different level.STRING
MEDIUMpaddlespeech/t2s/modules/nets_utils.py636 """This function is copy of `random_spans_helperSTRING
MEDIUMpaddlespeech/t2s/modules/fftconv1d.py191 # Create a Conv1D layer to initialize weights and biasCOMMENT
MEDIUMpaddlespeech/s2t/io/speechbrain/dataloader.py170 # Create the loaderCOMMENT
MEDIUMpaddlespeech/s2t/utils/bleu_score.py15"""This module provides functions to calculate bleu score in different level.STRING
MEDIUMpaddlespeech/s2t/utils/error_rate.py14"""This module provides functions to calculate error rate in different level.STRING
MEDIUMpaddlespeech/audio/streamdata/extradatasets.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/autodecode.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/gopen.py3# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/shardlists.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/tariterators.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/handlers.py3# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/utils.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/writer.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/mix.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/paddle_utils.py4# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/audio/streamdata/filters.py3# This file is part of the WebDataset library.COMMENT
MEDIUMpaddlespeech/vector/exps/ge2e/dataset_processors.py32 # Create the mel spectrogram, discard those that are too shortCOMMENT
MEDIUMthird_party/python_kaldi_features/docs/source/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUM…ving_fastdeploy/streaming_tts_serving/stream_client.py19# Define the callback function. Note the last two parameters should beCOMMENT
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/tts/test_pwg.py78 print(net2.conv_in.weight.grad.data.cpu().numpy()[0])CODE
CRITICALtests/unit/tts/test_pwg.py105 print(net2.conv.weight.grad.data.cpu().numpy().squeeze()[0])CODE
CRITICALtests/unit/tts/test_pwg.py172 print(net2.first_conv.weight_v.grad.data.cpu().numpy().squeeze())CODE
CRITICALtests/unit/tts/test_pwg.py176 print(net2.first_conv.weight_g.grad.data.cpu().numpy().squeeze())CODE
Slop Phrases9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMpaddlespeech/t2s/training/reporter.py43 # you can use it everywhere, it will get the default target and writ to itCOMMENT
MEDIUMpaddlespeech/t2s/training/trainer.py144 # you can use report freely in Updater.update()COMMENT
MEDIUMpaddlespeech/t2s/training/extensions/evaluator.py69 # or otherwise, you can use your own observationCOMMENT
MEDIUMpaddlespeech/s2t/training/reporter.py43 # you can use it everywhere, it will get the default target and writ to itCOMMENT
MEDIUMpaddlespeech/s2t/training/extensions/evaluator.py98 # or otherwise, you can use your own observationCOMMENT
MEDIUMpaddlespeech/s2t/training/updaters/trainer.py145 # you can use `report` freely in Updater.update()COMMENT
MEDIUMutils/split_scp.pl37# Note that you can use this script to split the utt2spk file itself,COMMENT
MEDIUMexamples/aishell/asr1/run.sh45# Optionally, you can add LM and test it with runtime.COMMENT
MEDIUMexamples/aishell/asr0/run.sh51# Optionally, you can add LM and test it with runtime.COMMENT
AI Slop Vocabulary9 hits · 22 pts
SeverityFileLineSnippetContext
LOWpaddlespeech/s2t/modules/conformer_convolution.py185 # It's better we just return None if no cache is requried,COMMENT
LOW…examples/custom_asr/local/compile_lexicon_token_fst.sh59# so here just use simple ctc_token_fstCOMMENT
MEDIUMutils/md-eval.pl78# the corresponding line of output from SpkrSegEval, to facilitateCOMMENT
LOWutils/fst/compile_lexicon_token_fst.sh59# so here just use simple ctc_token_fstCOMMENT
MEDIUMexamples/ted_en_zh/st1/local/data.sh54 ### But you can utilize Kaldi recipes in most casesCOMMENT
MEDIUMexamples/ted_en_zh/st1/local/data.sh108 ### But you can utilize Kaldi recipes in most casesCOMMENT
MEDIUMexamples/librispeech/asr2/local/data.sh73 ### But you can utilize Kaldi recipes in most casesCOMMENT
MEDIUMexamples/librispeech/asr2/local/data.sh86 ### But you can utilize Kaldi recipes in most casesCOMMENT
MEDIUMexamples/mustc/st1/local/data.sh55 ### But you can utilize Kaldi recipes in most casesCOMMENT
Redundant / Tautological Comments9 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/extras/install_mkl.sh235 # Print the message after the large install, so the user may notice. I hope...COMMENT
LOWpaddlespeech/s2t/io/speechbrain/dataio.py496 # Check if the path of filename existsCOMMENT
LOWpaddlespeech/s2t/models/wav2vec2/modules/containers.py106 # Check if it needs to be constructed with input shapeCOMMENT
LOWtests/unit/audiotools/core/test_effects.py159 # Check if it works in batches.COMMENT
LOWutils/dump.sh87# Write the filetype, this will be used for data2json.shCOMMENT
LOWaudio/tools/setup_helpers/extension.py127 # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build levelCOMMENT
LOWexamples/ami/sd0/local/ami_prepare.py118 # Check if this phase is already done (if so, skip it)COMMENT
LOWexamples/librispeech/asr2/local/data.sh15# Set this to somewhere where you want to put your data, or whereCOMMENT
LOWexamples/librispeech/asr2/local/data.sh26# Set bash to 'debug' mode, it will exit on :COMMENT
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…ddlespeech/server/engine/asr/online/onnx/asr_engine.py259 # num_frames - context + 1 ensure that current frame can get context windowCOMMENT
MEDIUM…lespeech/server/engine/asr/online/python/asr_engine.py309 # num_frames - context + 1 ensure that current frame can get context windowCOMMENT
MEDIUM…lespeech/server/engine/asr/online/python/asr_engine.py455 # num_frames - context + 1 ensure that current frame can get context windowCOMMENT
MEDIUM…server/engine/asr/online/paddleinference/asr_engine.py259 # num_frames - context + 1 ensure that current frame can get context windowCOMMENT
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡paddlespeech/vector/cluster/diarization.py1218 # Step 1: Merge adjacent sub-segments that belong to same speaker (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1221 # Step 2: Distribute duration of adjacent overlapping sub-segments belonging to different speakers (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1286 # Step 1: Merge adjacent sub-segments that belong to same speaker (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1289 # Step 2: Distribute duration of adjacent overlapping sub-segments belonging to different speakers (or cluster)COMMENT
LOWruntime/engine/kaldi/fstext/determinize-star-inl.h436 // information As a result each time we do a look-up, we need to check ifCOMMENT
Structural Annotation Overuse5 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡paddlespeech/vector/cluster/diarization.py1218 # Step 1: Merge adjacent sub-segments that belong to same speaker (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1221 # Step 2: Distribute duration of adjacent overlapping sub-segments belonging to different speakers (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1286 # Step 1: Merge adjacent sub-segments that belong to same speaker (or cluster)COMMENT
LOW⚡paddlespeech/vector/cluster/diarization.py1289 # Step 2: Distribute duration of adjacent overlapping sub-segments belonging to different speakers (or cluster)COMMENT
LOWaudio/paddleaudio/src/pybind/sox/utils.h71/// NOTE: This function might modify the values in the input buffer toCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHthird_party/ctc_decoders/setup.py73 + dummy_path + " >/dev/null 2>/dev/null && rm " \CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_tipc/benchmark_train.sh13# Usage:COMMENT