AI Slop Code Risk Monitor

coqui-ai/TTS

SlopCodeMonitor badge for coqui-ai/TTS Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production

8.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for coqui-ai/TTS, a Python project with 46,290 GitHub stars. SynthScan examined 101,646 lines of code across 546 source files, recording 542 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 8.5 (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.

8.5
Adjusted Signal
8.5
Raw Pattern Score
100%
Time Factor
2024-08-16
Last Push
46.3K
Stars
Python
Language
101.6K
Lines of Code
546
Files
542
Pattern Hits
2026-11-27
Scan Date
0.13
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 22.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.9/100 · LOW

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

Agent Over-Engineering Ratio 24.3/100 · LOW

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

PR Review Velocity Impact 37.3/100 · MEDIUM

Which changes need focused human review? 542 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 2HIGH 70MEDIUM 19LOW 451

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

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

Cross-File Repetition47 hits · 235 pts
SeverityFileLineSnippetContext
HIGHdocs/source/implementing_a_new_model.md0create visualizations and waveform examples. for example, here you can plot spectrograms and generate sample sample waveSTRING
HIGHTTS/tts/models/delightful_tts.py0create visualizations and waveform examples. for example, here you can plot spectrograms and generate sample sample waveSTRING
HIGHTTS/tts/models/vits.py0create visualizations and waveform examples. for example, here you can plot spectrograms and generate sample sample waveSTRING
HIGHTTS/encoder/models/resnet.py0forward pass of the model. args: x (tensor): raw waveform signal or spectrogram frames. if input is a waveform, `torch_sSTRING
HIGHTTS/encoder/models/lstm.py0forward pass of the model. args: x (tensor): raw waveform signal or spectrogram frames. if input is a waveform, `torch_sSTRING
HIGHTTS/tts/layers/xtts/hifigan_decoder.py0forward pass of the model. args: x (tensor): raw waveform signal or spectrogram frames. if input is a waveform, `torch_sSTRING
HIGHTTS/vc/models/base_vc.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. args: assets (dictSTRING
HIGHTTS/tts/models/base_tacotron.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. args: assets (dictSTRING
HIGHTTS/tts/models/base_tts.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. args: assets (dictSTRING
HIGHTTS/tts/layers/vits/stochastic_duration_predictor.py0shapes: - x: :math:`[b, c, t]` - x_mask: :math:`[b, 1, t]`STRING
HIGHTTS/tts/layers/glow_tts/glow.py0shapes: - x: :math:`[b, c, t]` - x_mask: :math:`[b, 1, t]`STRING
HIGHTTS/tts/layers/glow_tts/transformer.py0shapes: - x: :math:`[b, c, t]` - x_mask: :math:`[b, 1, t]`STRING
HIGHTTS/tts/layers/xtts/trainer/gpt_trainer.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/align_tts.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/tacotron2.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/forward_tts.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/delightful_tts.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/vits.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/models/tacotron.py0initiate model from config args: config (tacotronconfig): model config. samples (union[list[list], list[dict]]): traininSTRING
HIGHTTS/tts/layers/delightful_tts/kernel_predictor.py0args: c (tensor): the conditioning sequence (batch, cond_channels, cond_length) returns:STRING
HIGHTTS/tts/layers/tortoise/vocoder.py0args: c (tensor): the conditioning sequence (batch, cond_channels, cond_length) returns:STRING
HIGHTTS/vocoder/layers/lvc_block.py0args: c (tensor): the conditioning sequence (batch, cond_channels, cond_length) returns:STRING
HIGHTTS/tts/layers/delightful_tts/conv_layers.py0forward propagation of the location-variable convolutions. args: x (tensor): the input sequence (batch, in_channels, in_STRING
HIGHTTS/tts/layers/tortoise/vocoder.py0forward propagation of the location-variable convolutions. args: x (tensor): the input sequence (batch, in_channels, in_STRING
HIGHTTS/vocoder/layers/lvc_block.py0forward propagation of the location-variable convolutions. args: x (tensor): the input sequence (batch, in_channels, in_STRING
HIGHTTS/tts/layers/delightful_tts/conv_layers.py0perform location-variable convolution operation on the input sequence (x) using the local convolution kernl. time: 414 μSTRING
HIGHTTS/tts/layers/tortoise/vocoder.py0perform location-variable convolution operation on the input sequence (x) using the local convolution kernl. time: 414 μSTRING
HIGHTTS/vocoder/layers/lvc_block.py0perform location-variable convolution operation on the input sequence (x) using the local convolution kernl. time: 414 μSTRING
HIGHTTS/tts/models/neuralhmm_tts.py0initiate model from config args: config (vitsconfig): model config. samples (union[list[list], list[dict]]): training saSTRING
HIGHTTS/tts/models/glow_tts.py0initiate model from config args: config (vitsconfig): model config. samples (union[list[list], list[dict]]): training saSTRING
HIGHTTS/tts/models/overflow.py0initiate model from config args: config (vitsconfig): model config. samples (union[list[list], list[dict]]): training saSTRING
HIGHTTS/tts/models/glow_tts.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. returns: tuple[dicSTRING
HIGHTTS/tts/models/delightful_tts.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. returns: tuple[dicSTRING
HIGHTTS/tts/models/vits.py0generic test run for `tts` models used by `trainer`. you can override this for a different behaviour. returns: tuple[dicSTRING
HIGHTTS/tts/models/delightful_tts.py0initiate and return the gan optimizers based on the config parameters. it returnes 2 optimizers in a list. first one is STRING
HIGHTTS/tts/models/vits.py0initiate and return the gan optimizers based on the config parameters. it returnes 2 optimizers in a list. first one is STRING
HIGHTTS/vocoder/models/gan.py0initiate and return the gan optimizers based on the config parameters. it returnes 2 optimizers in a list. first one is STRING
HIGHTTS/tts/models/delightful_tts.py0set the initial learning rates for each optimizer. returns: list: learning rates for each optimizer.STRING
HIGHTTS/tts/models/vits.py0set the initial learning rates for each optimizer. returns: list: learning rates for each optimizer.STRING
HIGHTTS/vocoder/models/gan.py0set the initial learning rates for each optimizer. returns: list: learning rates for each optimizer.STRING
HIGHTTS/tts/models/delightful_tts.py0set the schedulers for each optimizer. args: optimizer (list[`torch.optim.optimizer`]): list of optimizers. returns: lisSTRING
HIGHTTS/tts/models/vits.py0set the schedulers for each optimizer. args: optimizer (list[`torch.optim.optimizer`]): list of optimizers. returns: lisSTRING
HIGHTTS/vocoder/models/gan.py0set the schedulers for each optimizer. args: optimizer (list[`torch.optim.optimizer`]): list of optimizers. returns: lisSTRING
HIGHTTS/tts/configs/fastspeech2_config.py0configure `forwardtts` as speedyspeech model. example: >>> from tts.tts.configs.speedy_speech_config import speedyspeechSTRING
HIGHTTS/tts/configs/fast_speech_config.py0configure `forwardtts` as speedyspeech model. example: >>> from tts.tts.configs.speedy_speech_config import speedyspeechSTRING
HIGHTTS/tts/configs/fast_pitch_config.py0configure `forwardtts` as speedyspeech model. example: >>> from tts.tts.configs.speedy_speech_config import speedyspeechSTRING
HIGHTTS/tts/configs/speedy_speech_config.py0configure `forwardtts` as speedyspeech model. example: >>> from tts.tts.configs.speedy_speech_config import speedyspeechSTRING
Hyper-Verbose Identifiers187 hits · 183 pts
SeverityFileLineSnippetContext
LOWtests/data_tests/test_loader.py176 def test_padding_and_spectrograms(self):CODE
LOWtests/data_tests/test_samplers.py51 def test_language_random_sampler(self): # pylint: disable=no-self-useCODE
LOWtests/data_tests/test_samplers.py63 def test_language_weighted_random_sampler(self): # pylint: disable=no-self-useCODE
LOWtests/data_tests/test_samplers.py77 def test_speaker_weighted_random_sampler(self): # pylint: disable=no-self-useCODE
LOWtests/data_tests/test_samplers.py116 def test_perfect_sampler_shuffle(self): # pylint: disable=no-self-useCODE
LOWtests/data_tests/test_samplers.py141 def test_length_weighted_random_sampler(self): # pylint: disable=no-self-useCODE
LOWtests/data_tests/test_samplers.py166 def test_bucket_batch_sampler(self):CODE
LOWtests/data_tests/test_dataset_formatters.py9 def test_common_voice_preprocessor(self): # pylint: disable=no-self-useCODE
LOWtests/inference_tests/test_synthesizer.py29 def test_split_into_sentences(self):CODE
LOWtests/tts_tests2/test_forward_tts.py9def expand_encoder_outputs_test():CODE
LOWtests/tts_tests2/test_glow_tts.py92 def test_unlock_act_norm_layers(self):CODE
LOWtests/tts_tests2/test_glow_tts.py100 def test_lock_act_norm_layers(self):CODE
LOWtests/tts_tests2/test_glow_tts.py129 def _test_forward_with_d_vector(self, batch_size):CODE
LOWtests/tts_tests2/test_glow_tts.py152 def test_forward_with_d_vector(self):CODE
LOWtests/tts_tests2/test_glow_tts.py156 def _test_forward_with_speaker_id(self, batch_size):CODE
LOWtests/tts_tests2/test_glow_tts.py178 def test_forward_with_speaker_id(self):CODE
LOWtests/tts_tests2/test_glow_tts.py182 def _assert_inference_outputs(self, outputs, input_dummy, mel_spec):CODE
LOWtests/tts_tests2/test_glow_tts.py204 def _test_inference_with_d_vector(self, batch_size):CODE
LOWtests/tts_tests2/test_glow_tts.py218 def test_inference_with_d_vector(self):CODE
LOWtests/tts_tests2/test_glow_tts.py222 def _test_inference_with_speaker_ids(self, batch_size):CODE
LOWtests/tts_tests2/test_glow_tts.py235 def test_inference_with_speaker_ids(self):CODE
LOWtests/tts_tests/test_overflow.py106 def test_forward_with_state_per_phone_multiplication(self):CODE
LOWtests/tts_tests/test_overflow.py113 def test_inference_with_state_per_phone_multiplication(self):CODE
LOWtests/tts_tests/test_overflow.py161 def test_decoder_forward_backward(self):CODE
LOWtests/tts_tests/test_overflow.py267 def test_forward_algorithm_variables(self):CODE
LOWtests/tts_tests/test_overflow.py294 def test_get_absorption_state_scaling_factor(self):CODE
LOWtests/tts_tests/test_overflow.py389 def test_outputnet_forward_with_flat_start(self):CODE
LOWtests/tts_tests/test_vits.py191 def test_multispeaker_forward(self):CODE
LOWtests/tts_tests/test_vits.py225 def test_multilingual_forward(self):CODE
LOWtests/tts_tests/test_vits.py307 def test_multispeaker_inference(self):CODE
LOWtests/tts_tests/test_vits.py324 def test_multilingual_inference(self):CODE
LOWtests/tts_tests/test_vits.py432 def test_train_step_upsampling(self):CODE
LOWtests/tts_tests/test_vits.py472 def test_train_step_upsampling_interpolation(self):CODE
LOWtests/tts_tests/test_helpers.py6def average_over_durations_test(): # pylint: disable=no-self-useCODE
LOWtests/text_tests/test_korean_phonemizer.py21 def test_korean_text_to_phonemes(self):STRING
LOWtests/text_tests/test_characters.py63 def test_default_character_sets(self): # pylint: disable=no-self-useCODE
LOW⚡tests/text_tests/test_tokenizer.py18 def test_encode_decode_graphemes(self):CODE
LOW⚡tests/text_tests/test_tokenizer.py25 def test_text_to_ids_phonemes(self):CODE
LOW⚡tests/text_tests/test_tokenizer.py33 def test_text_to_ids_phonemes_punctuation(self):CODE
LOW⚡tests/text_tests/test_tokenizer.py40 def test_text_to_ids_phonemes_with_eos_bos(self):CODE
LOW⚡tests/text_tests/test_tokenizer.py48 def test_text_to_ids_phonemes_with_eos_bos_and_blank(self):CODE
LOWtests/text_tests/test_tokenizer.py61 def test_not_found_characters(self):CODE
LOWtests/text_tests/test_japanese_phonemizer.py19 def test_japanese_text_to_phonemes(self):STRING
LOWtests/text_tests/test_belarusian_phonemizer.py14 def test_belarusian_text_to_phonemes(self):STRING
LOWtests/text_tests/test_phonemizer.py82 def test_get_supported_languages(self):CODE
LOWtests/text_tests/test_phonemizer.py122 def test_get_supported_languages(self):CODE
LOWtests/text_tests/test_phonemizer.py169 def test_get_supported_languages(self):CODE
LOWtests/text_tests/test_phonemizer.py202 def test_get_supported_languages(self):STRING
LOWtests/text_tests/test_phonemizer.py224 def test_get_supported_languages(self):STRING
LOWtests/text_tests/test_phonemizer.py246 def test_get_supported_languages(self):STRING
LOWtests/text_tests/test_phonemizer.py275 def test_phonemizer_initialization(self):STRING
LOWtests/text_tests/test_phonemizer.py294 def test_get_supported_languages(self):STRING
LOW…r_tests/test_vocoder_parallel_wavegan_discriminator.py28def test_redisual_pwgan_disciminator():CODE
LOW…sts/vocoder_tests/test_vocoder_melgan_discriminator.py8def test_melgan_discriminator():CODE
LOW…sts/vocoder_tests/test_vocoder_melgan_discriminator.py16def test_melgan_multi_scale_discriminator():CODE
LOWtests/vocoder_tests/test_vocoder_wavernn_datasets.py71def test_parametrized_wavernn_dataset():CODE
LOWtests/vocoder_tests/test_vocoder_gan_datasets.py93def test_parametrized_gan_dataset():CODE
LOWtests/vocoder_tests/test_vocoder_losses.py44def test_multiscale_stft_loss():CODE
LOWtests/aux_tests/test_numpy_transforms.py59 def test_amplitude_db_conversion(self):CODE
LOWtests/aux_tests/test_numpy_transforms.py65 def test_preemphasis_deemphasis(self):CODE
127 more matches not shown…
Deep Nesting97 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests/zoo_tests/test_models.py22CODE
LOWTTS/bin/train_vocoder.py17CODE
LOWTTS/bin/extract_tts_spectrograms.py117CODE
LOWTTS/bin/synthesize.py144CODE
LOWTTS/bin/remove_silence_using_vad.py34CODE
LOWTTS/bin/train_tts.py16CODE
LOWTTS/config/__init__.py68CODE
LOWTTS/encoder/utils/generic_utils.py13CODE
LOWTTS/encoder/utils/prepare_voxceleb.py146CODE
LOWTTS/utils/generic_utils.py127CODE
LOWTTS/utils/download.py138CODE
LOWTTS/utils/radam.py33CODE
LOWTTS/utils/synthesizer.py257CODE
LOWTTS/utils/manage.py70CODE
LOWTTS/utils/manage.py102CODE
LOWTTS/utils/manage.py143CODE
LOWTTS/utils/manage.py248CODE
LOWTTS/utils/manage.py333CODE
LOWTTS/utils/manage.py371CODE
LOWTTS/utils/manage.py500CODE
LOWTTS/utils/manage.py528CODE
LOWTTS/utils/manage.py563CODE
LOWTTS/utils/manage.py596CODE
LOWTTS/utils/samplers.py74CODE
LOWTTS/utils/audio/processor.py259CODE
LOWTTS/utils/audio/processor.py300CODE
LOWTTS/vc/models/base_vc.py104CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py142CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py100CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py713CODE
LOWTTS/vc/modules/freevc/wavlm/wavlm.py35CODE
LOWTTS/vc/modules/freevc/wavlm/wavlm.py364CODE
LOWTTS/tts/layers/losses.py589CODE
LOWTTS/tts/layers/bark/inference_funcs.py36CODE
LOWTTS/tts/layers/bark/inference_funcs.py307CODE
LOWTTS/tts/layers/bark/inference_funcs.py484CODE
LOWTTS/tts/layers/feed_forward/decoder.py177CODE
LOWTTS/tts/layers/glow_tts/encoder.py78CODE
LOWTTS/tts/layers/xtts/zh_num2words.py567CODE
LOWTTS/tts/layers/xtts/zh_num2words.py649CODE
LOWTTS/tts/layers/xtts/zh_num2words.py431CODE
LOWTTS/tts/layers/xtts/zh_num2words.py587CODE
LOWTTS/tts/layers/xtts/zh_num2words.py619CODE
LOWTTS/tts/layers/xtts/tokenizer.py21CODE
LOWTTS/tts/layers/xtts/tokenizer.py35CODE
LOWTTS/tts/layers/xtts/stream_generator.py46CODE
LOWTTS/tts/layers/xtts/stream_generator.py644CODE
LOWTTS/tts/layers/xtts/gpt.py319CODE
LOWTTS/tts/layers/xtts/gpt.py370CODE
LOWTTS/tts/layers/xtts/trainer/gpt_trainer.py70CODE
LOWTTS/tts/layers/xtts/trainer/gpt_trainer.py401CODE
LOWTTS/tts/layers/delightful_tts/conv_layers.py358CODE
LOWTTS/tts/layers/tortoise/diffusion.py1146CODE
LOWTTS/tts/layers/tortoise/diffusion.py530CODE
LOWTTS/tts/layers/tortoise/diffusion.py864CODE
LOWTTS/tts/layers/tortoise/diffusion.py950CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py213CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py325CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py352CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py1238CODE
37 more matches not shown…
AI Structural Patterns76 hits · 76 pts
SeverityFileLineSnippetContext
LOWTTS/api.py290CODE
LOWTTS/bin/compute_embeddings.py15CODE
LOWTTS/encoder/models/resnet.py56CODE
LOWTTS/encoder/models/resnet.py65CODE
LOWTTS/utils/synthesizer.py26CODE
LOWTTS/utils/synthesizer.py257CODE
LOWTTS/utils/audio/processor.py141CODE
LOWTTS/utils/audio/torch_transforms.py64CODE
LOWTTS/utils/audio/numpy_transforms.py244CODE
LOWTTS/vc/modules/freevc/mel_processing.py28CODE
LOWTTS/vc/modules/freevc/mel_processing.py33CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py66CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py289CODE
LOWTTS/vc/modules/freevc/wavlm/modules.py424CODE
LOWTTS/vc/modules/freevc/wavlm/wavlm.py599CODE
LOWTTS/tts/layers/bark/inference_funcs.py152CODE
LOWTTS/tts/layers/bark/inference_funcs.py307CODE
LOWTTS/tts/layers/vits/transforms.py97CODE
LOWTTS/tts/layers/tacotron/gst_layers.py149CODE
LOWTTS/tts/layers/overflow/neural_hmm.py516CODE
LOWTTS/tts/layers/overflow/neural_hmm.py553CODE
LOWTTS/tts/layers/xtts/hifigan_decoder.py386CODE
LOWTTS/tts/layers/xtts/hifigan_decoder.py425CODE
LOWTTS/tts/layers/xtts/hifigan_decoder.py616CODE
LOWTTS/tts/layers/xtts/perceiver_encoder.py151CODE
LOWTTS/tts/layers/xtts/dvae.py202CODE
LOWTTS/tts/layers/xtts/gpt_inference.py55CODE
LOWTTS/tts/layers/xtts/zh_num2words.py649CODE
LOWTTS/tts/layers/xtts/zh_num2words.py1058CODE
LOWTTS/tts/layers/xtts/stream_generator.py644CODE
LOWTTS/tts/layers/xtts/gpt.py89CODE
LOWTTS/tts/layers/xtts/gpt.py251CODE
LOWTTS/tts/layers/xtts/trainer/dataset.py195CODE
LOWTTS/tts/layers/delightful_tts/encoders.py195CODE
LOWTTS/tts/layers/delightful_tts/conformer.py450CODE
LOWTTS/tts/layers/tortoise/vocoder.py284CODE
LOWTTS/tts/layers/tortoise/diffusion.py753CODE
LOWTTS/tts/layers/tortoise/diffusion.py787CODE
LOWTTS/tts/layers/tortoise/clvp.py28CODE
LOWTTS/tts/layers/tortoise/autoregressive.py82CODE
LOWTTS/tts/layers/tortoise/autoregressive.py263CODE
LOWTTS/tts/layers/tortoise/classifier.py8CODE
LOWTTS/tts/layers/tortoise/classifier.py75CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py213CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py1197CODE
LOWTTS/tts/layers/tortoise/dpm_solver.py1238CODE
LOWTTS/tts/layers/tortoise/diffusion_decoder.py142CODE
LOWTTS/tts/layers/tortoise/random_latent_generator.py36CODE
LOWTTS/tts/layers/tortoise/arch_utils.py253CODE
LOWTTS/tts/layers/tortoise/arch_utils.py300CODE
LOWTTS/tts/layers/tortoise/transformer.py177CODE
LOWTTS/tts/layers/tortoise/transformer.py182CODE
LOWTTS/tts/layers/tortoise/xtransformers.py490CODE
LOWTTS/tts/layers/tortoise/xtransformers.py594CODE
LOWTTS/tts/layers/tortoise/xtransformers.py757CODE
LOWTTS/tts/layers/tortoise/xtransformers.py927CODE
LOWTTS/tts/datasets/dataset.py57CODE
LOWTTS/tts/utils/ssim.py87CODE
LOWTTS/tts/utils/text/characters.py173CODE
LOWTTS/tts/utils/text/characters.py380CODE
16 more matches not shown…
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHTTS/config/__init__.py24Find the right config for the given model name. Args: model_name (str): Model name. Raises: MoSTRING
HIGHTTS/config/__init__.py69Import `json` or `yaml` files as TTS configs. First, load the input file as a `dict` and check the model name to finSTRING
HIGHTTS/utils/audio/processor.py260Normalize values into `[0, self.max_norm]` or `[-self.max_norm, self.max_norm]` Args: S (np.ndarraySTRING
HIGHTTS/utils/audio/processor.py301Denormalize spectrogram values. Args: S (np.ndarray): Spectrogram to denormalize. Raises: STRING
HIGHTTS/utils/audio/processor.py385Apply pre-emphasis to the audio signal. Useful to reduce the correlation between neighbouring signal values. ArSTRING
HIGHTTS/utils/audio/processor.py487Compute pitch (f0) of a waveform using the same parameters used for computing melspectrogram. Args: STRING
HIGHTTS/utils/audio/numpy_transforms.py92Apply pre-emphasis to the audio signal. Useful to reduce the correlation between neighbouring signal values. Args: STRING
HIGHTTS/utils/audio/numpy_transforms.py256Compute pitch (f0) of a waveform using the same parameters used for computing melspectrogram. Args: x (np.nSTRING
HIGHTTS/utils/audio/numpy_transforms.py307Compute energy of a waveform using the same parameters used for computing melspectrogram. Args: x (np.ndarray)STRING
HIGHTTS/tts/layers/overflow/plotting_utils.py9 Validates the input and makes sure it returns a numpy array (i.e on CPU) Args: value (Any): the input STRING
HIGHTTS/tts/layers/xtts/stream_generator.py660 Generates sequences of token ids for models with a language modeling head using **multinomial sampling** and STRING
HIGHTTS/tts/utils/text/chinese_mandarin/numbers.py13Convert numerical arabic numbers (0->9) to chinese hanzi numbers (〇 -> 九) Args: num (str): arabic number toSTRING
HIGHTTS/vocoder/models/gan.py69Compute model outputs and the loss values. `optimizer_idx` selects the generator or the discriminator for networSTRING
HIGHTTS/vocoder/models/wavernn.py195🐸 WaveRNN model. Original paper - https://arxiv.org/abs/1802.08435 Official implementation - https://gitSTRING
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHtests/tts_tests/test_helpers.py45except:CODE
HIGHtests/tts_tests/test_helpers.py62except:CODE
HIGHtests/text_tests/test_characters.py43except:CODE
HIGHtests/text_tests/test_characters.py52except:CODE
HIGHTTS/config/__init__.py47except ModuleNotFoundError:CODE
HIGHTTS/utils/download.py167except tarfile.ReadError:CODE
HIGHTTS/utils/download.py182except zipfile.BadZipFile:CODE
HIGHTTS/utils/manage.py406except:CODE
HIGHTTS/tts/layers/xtts/tokenizer.py534except:CODE
Unused Imports44 hits · 44 pts
SeverityFileLineSnippetContext
LOWrecipes/bel-alex73/train_hifigan.py1CODE
LOWrecipes/bel-alex73/train_hifigan.py3CODE
LOWrecipes/bel-alex73/train_hifigan.py8CODE
LOWrecipes/multilingual/cml_yourtts/train_yourtts.py7CODE
LOWTTS/api.py4CODE
LOWTTS/api.py6CODE
LOWTTS/config/__init__.py10CODE
LOWTTS/encoder/configs/emotion_encoder_config.py1CODE
LOWTTS/encoder/configs/speaker_encoder_config.py1CODE
LOWTTS/utils/manage.py8CODE
LOWTTS/utils/audio/__init__.py1CODE
LOWTTS/vc/configs/shared_configs.py1CODE
LOWTTS/vc/configs/shared_configs.py2CODE
LOWTTS/vc/configs/shared_configs.py4CODE
LOWTTS/vc/configs/shared_configs.py4CODE
LOWTTS/vc/modules/freevc/commons.py3CODE
LOWTTS/vc/modules/freevc/commons.py5CODE
LOW…S/vc/modules/freevc/speaker_encoder/speaker_encoder.py1CODE
LOW…S/vc/modules/freevc/speaker_encoder/speaker_encoder.py11CODE
LOWTTS/vc/modules/freevc/speaker_encoder/audio.py1CODE
LOWTTS/vc/modules/freevc/speaker_encoder/audio.py8CODE
LOWTTS/vc/modules/freevc/speaker_encoder/audio.py10CODE
LOWTTS/tts/layers/__init__.py1CODE
LOWTTS/tts/layers/bark/hubert/kmeans_hubert.py10CODE
LOWTTS/tts/layers/bark/hubert/kmeans_hubert.py11CODE
LOWTTS/tts/layers/vits/discriminator.py5CODE
LOWTTS/tts/layers/xtts/gpt_inference.py1CODE
LOWTTS/tts/layers/xtts/zh_num2words.py7CODE
LOWTTS/tts/layers/xtts/gpt.py4CODE
LOWTTS/tts/layers/xtts/trainer/gpt_trainer.py8CODE
LOWTTS/tts/layers/xtts/trainer/dataset.py1CODE
LOWTTS/tts/layers/tortoise/arch_utils.py3CODE
LOWTTS/tts/datasets/__init__.py9CODE
LOWTTS/tts/datasets/__init__.py10CODE
LOWTTS/tts/utils/text/__init__.py1CODE
LOWTTS/tts/models/base_tts.py17CODE
LOWTTS/tts/configs/__init__.py1CODE
LOWTTS/tts/configs/__init__.py2CODE
LOWTTS/tts/configs/__init__.py3CODE
LOWTTS/vocoder/datasets/__init__.py8CODE
LOWTTS/vocoder/datasets/__init__.py8CODE
LOWTTS/demos/xtts_ft_demo/xtts_demo.py7CODE
LOWTTS/demos/xtts_ft_demo/xtts_demo.py8CODE
LOWTTS/demos/xtts_ft_demo/utils/formatter.py6CODE
Over-Commented Block28 hits · 28 pts
SeverityFileLineSnippetContext
LOWsetup.py1#!/usr/bin/env pythonCOMMENT
LOWtests/inputs/test_tacotron2_config.json41 },COMMENT
LOWtests/inputs/test_speedy_speech.json41 },COMMENT
LOWtests/inputs/test_tacotron_bd_config.json41 },COMMENT
LOWtests/inputs/test_glow_tts.json41COMMENT
LOWtests/inputs/test_align_tts.json41 },COMMENT
LOWtests/inputs/test_tacotron_config.json41 },COMMENT
LOWdocs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWrecipes/ljspeech/tacotron2-DCA/train_tacotron_dca.py61 output_path=output_path,COMMENT
LOWrecipes/ljspeech/vits_tts/train_vits.py41 cudnn_benchmark=False,COMMENT
LOWrecipes/ljspeech/tacotron2-DDC/train_tacotron_ddc.py61COMMENT
LOWrecipes/vctk/tacotron2-DDC/train_tacotron2-ddc.py61 optimizer="Adam",COMMENT
LOWrecipes/vctk/tacotron2/train_tacotron2.py61 optimizer="Adam",COMMENT
LOWrecipes/thorsten_DE/vits_tts/train_vits.py61COMMENT
LOWrecipes/thorsten_DE/glow_tts/train_glowtts.py61# INITIALIZE THE AUDIO PROCESSORCOMMENT
LOWrecipes/thorsten_DE/tacotron2-DDC/train_tacotron_ddc.py81# INITIALIZE THE TOKENIZERCOMMENT
LOWTTS/bin/train_encoder.py141 labels.shapeCOMMENT
LOWTTS/encoder/utils/prepare_voxceleb.py1# coding=utf-8COMMENT
LOWTTS/encoder/models/base_encoder.py41 # win_length=audio_config["win_length"],COMMENT
LOWTTS/tts/layers/losses.py401 # Limit the mutual information between the data and latent space by the variational capacity limitCOMMENT
LOWTTS/tts/layers/xtts/zh_num2words.py841 # chntext = self.chntextCOMMENT
LOWTTS/tts/utils/monotonic_align/setup.py1# from distutils.core import setupCOMMENT
LOWTTS/tts/utils/text/punctuation.py161# if __name__ == "__main__":COMMENT
LOWTTS/tts/utils/text/bangla/phonemizer.py21 # "ওয়া" : "ওআ",COMMENT
LOWTTS/tts/utils/text/phonemizers/ja_jp_phonemizer.py61 return TrueCOMMENT
LOWTTS/tts/utils/text/phonemizers/multi_phonemizer.py61# ph = MultiPhonemizer({"tr": "espeak", "en-us": "", "de": "gruut", "zh-cn": ""})COMMENT
LOWTTS/tts/utils/text/phonemizers/zh_cn_phonemizer.py61# print(e.is_available())COMMENT
LOWTTS/tts/configs/__init__.py1import importlibCOMMENT
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMrecipes/ljspeech/xtts_v1/train_gpt_xtts.py38# Define the path where XTTS v1.1.1 files will be downloadedCOMMENT
MEDIUMrecipes/ljspeech/xtts_v2/train_gpt_xtts.py38# Define the path where XTTS v2.0.1 files will be downloadedCOMMENT
MEDIUMrecipes/vctk/yourtts/train_yourtts.py50# Define the number of threads used during the audio resamplingCOMMENT
MEDIUM…S/vc/modules/freevc/speaker_encoder/speaker_encoder.py23 # Define the networkCOMMENT
MEDIUMTTS/tts/layers/tacotron/capacitron_layers.py114 # Create the post conv width mask based on the valid lengths of the output of the convolution.COMMENT
MEDIUMTTS/demos/xtts_ft_demo/utils/gpt_train.py42 # Define the path where XTTS v2.0.1 files will be downloadedCOMMENT
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMTTS/encoder/utils/prepare_voxceleb.py16# ==============================================================================COMMENT
MEDIUMTTS/vc/modules/freevc/wavlm/modules.py1# --------------------------------------------------------COMMENT
MEDIUMTTS/vc/modules/freevc/wavlm/modules.py8# --------------------------------------------------------COMMENT
MEDIUMTTS/vc/modules/freevc/wavlm/wavlm.py1# --------------------------------------------------------COMMENT
MEDIUMTTS/vc/modules/freevc/wavlm/wavlm.py8# --------------------------------------------------------COMMENT
Hallucination Indicators2 hits · 15 pts
SeverityFileLineSnippetContext
CRITICALTTS/tts/layers/xtts/trainer/gpt_trainer.py325 trainer.model.module.xtts.gpt.train()CODE
CRITICALTTS/tts/models/bark.py209 **kwargs: Model specific inference settings used by `generate_audio()` and `TTS.tts.layers.bark.inference_fuSTRING
Slop Phrases5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMrecipes/multilingual/cml_yourtts/train_yourtts.py191 resblock_type_decoder="2", # In the paper, we accidentally trained the YourTTS using ResNet blocks type 2, if you lCODE
MEDIUMrecipes/multilingual/cml_yourtts/train_yourtts.py199# General training config, here you can change the batch size and others useful parametersCOMMENT
MEDIUMrecipes/vctk/yourtts/train_yourtts.py134 resblock_type_decoder="2", # In the paper, we accidentally trained the YourTTS using ResNet blocks type 2, if you lCODE
MEDIUMrecipes/vctk/yourtts/train_yourtts.py142# General training config, here you can change the batch size and others useful parametersCOMMENT
MEDIUMTTS/tts/layers/xtts/trainer/gpt_trainer.py59 # you can also change the upload destination file name model_info.upload_filename or check the local file size with COMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWrecipes/multilingual/cml_yourtts/train_yourtts.py53# Check if LibriTTS dataset is not already downloaded, if not download itCOMMENT
LOWrecipes/multilingual/cml_yourtts/train_yourtts.py145 # Check if the embeddings weren't already computed, if not compute itCOMMENT
LOWrecipes/vctk/yourtts/train_yourtts.py52# Check if VCTK dataset is not already downloaded, if not download itCOMMENT
LOWrecipes/vctk/yourtts/train_yourtts.py94 # Check if the embeddings weren't already computed, if not compute itCOMMENT
LOWTTS/tts/layers/xtts/perceiver_encoder.py88 # Check if mask exists and expand to compatible shapeCOMMENT
LOWTTS/tts/layers/xtts/perceiver_encoder.py95 # Check if there is a compatible device for flash attentionCOMMENT
LOWTTS/tts/layers/xtts/gpt.py529 # Set paddings to -1 to ignore them in lossCOMMENT
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWTTS/utils/manage.py463 def _update_paths(self, output_path: str, config_path: str) -> None:CODE
LOWTTS/vc/modules/freevc/wavlm/wavlm.py32logger = logging.getLogger(__name__)CODE
LOWTTS/tts/layers/bark/load_model.py30logger = logging.getLogger(__name__)CODE
LOWTTS/tts/layers/bark/inference_funcs.py21logger = logging.getLogger(__name__)CODE
LOWTTS/tts/utils/languages.py64 def set_language_ids_from_config(self, c: Coqpit) -> None:CODE
LOWTTS/tts/utils/managers.py57 def set_ids_from_data(self, items: List, parse_key: str) -> None:CODE
AI Slop Vocabulary3 hits · 5 pts
SeverityFileLineSnippetContext
LOWrecipes/multilingual/cml_yourtts/train_yourtts.py132# Add here all datasets configs Note: If you want to add new datasets, just add them here and it will automatically compCOMMENT
LOWrecipes/vctk/yourtts/train_yourtts.py81# Add here all datasets configs, in our case we just want to train with the VCTK dataset then we need to add just VCTK. COMMENT
MEDIUMTTS/utils/download.py205 f"""[!] in order to download kaggle datasets, you need to have a kaggle api token stored in your {os.path.joCODE
Excessive Try-Catch Wrapping3 hits · 5 pts
SeverityFileLineSnippetContext
LOWTTS/bin/train_encoder.py329 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMTTS/tts/layers/tortoise/audio_utils.py31 print(f"Error with {audiopath}. Max={audio.max()} min={audio.min()}")CODE
MEDIUMTTS/tts/models/xtts.py85 print(f"Error with {audiopath}. Max={audio.max()} min={audio.min()}")CODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/text_tests/test_phonemizer.py218 # TODO: implement ZH phonemizer testsSTRING
LOWTTS/tts/layers/feed_forward/decoder.py226 # TODO: implement multi-speakerCOMMENT
LOWTTS/tts/models/delightful_tts.py1560 # TODO: implement saving of d_vectorsCOMMENT