AI Slop Code RIsk Monitor

Blaizzy/mlx-audio

A text-to-speech (TTS), speech-to-text (STT) and speech-to-speech (STS) library built on Apple's MLX framework, providing efficient speech analysis on Apple Silicon.

18.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Blaizzy/mlx-audio, a Python project with 8,025 GitHub stars. SynthScan examined 244,179 lines of code across 1009 source files, recording 3557 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 18.2 (Elevated 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.

18.2
Adjusted Signal
18.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
8.0K
Stars
Python
Language
244.2K
Lines of Code
1.0K
Files
3.6K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 18.4/100 · LOW

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

Agent Over-Engineering Ratio 43.9/100 · MEDIUM

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

PR Review Velocity Impact 60.4/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 72MEDIUM 303LOW 3182

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 3557 distinct pattern matches across 20 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.

Hyper-Verbose Identifiers1547 hits · 1448 pts
SeverityFileLineSnippetContext
LOWmlx_audio/server.py240def _load_model_for_inference(model_name: str):CODE
LOWmlx_audio/server.py444 def _cancel_disconnected_requests(self) -> None:CODE
LOWmlx_audio/server.py559 def _can_call_continuous_session(self, model, request: InferenceRequest) -> bool:CODE
LOWmlx_audio/server.py572 def supports_continuous_batch(self, request: InferenceRequest) -> bool:CODE
LOWmlx_audio/server.py596 def create_continuous_batch_session(self, request: InferenceRequest):CODE
LOWmlx_audio/server.py870async def _stream_inference_results(CODE
LOWmlx_audio/server.py1267async def stt_realtime_transcriptions(websocket: WebSocket):CODE
LOWmlx_audio/server.py1505def _default_transcription_delay_ms() -> Optional[int]:CODE
LOWmlx_audio/server.py1548def _resolve_realtime_model_name(requested_model: Optional[str]) -> Optional[str]:CODE
LOWmlx_audio/server_inference.py76 def supports_continuous_batch(self, request: InferenceRequest) -> bool: ...CODE
LOWmlx_audio/server_inference.py80 def create_continuous_batch_session(CODE
LOWmlx_audio/server_inference.py115 def supports_continuous_batch(self, request: InferenceRequest) -> bool:CODE
LOWmlx_audio/server_inference.py122 def create_continuous_batch_session(CODE
LOWmlx_audio/server_inference.py315 def _route_continuous_requests(self, pending: list[InferenceRequest]) -> None:CODE
LOW⚡mlx_audio/server_inference.py347 def _step_continuous_sessions(self) -> None:CODE
LOWmlx_audio/convert.py174def _discover_detection_hints(domain: str) -> dict:CODE
LOWmlx_audio/audio_io.py39def _detect_format_from_bytes(data: bytes) -> str:CODE
LOWmlx_audio/audio_io.py193def _decode_miniaudio_downsampled(CODE
LOWmlx_audio/utils.py520def random_select_audio_segment(audio, length: int):CODE
LOWmlx_audio/music/tests/test_generate.py13def test_parser_exposes_only_music_generation_controls() -> None:CODE
LOWmlx_audio/music/tests/test_generate.py57def test_generate_music_joins_results_and_writes_audio(mock_write, tmp_path) -> None:CODE
LOWmlx_audio/music/tests/test_generate.py93def test_main_reads_lyrics_file(tmp_path) -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py23def test_tiny_generation_returns_finite_stereo_audio() -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py67def test_waveform_crops_match_the_official_chunk_stitching() -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py85def test_flow_schedule_runs_from_noise_to_data() -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py94def test_quantization_policy_targets_only_large_generation_linears() -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py128def test_all_mlx_quantization_modes_rebuild_the_same_quantized_topology(CODE
LOWmlx_audio/music/tests/test_minimax_music3.py220def _write_official_tiny_tree(source: Path) -> None:CODE
LOWmlx_audio/music/tests/test_minimax_music3.py277def test_official_tree_converts_and_loads_in_every_mlx_quantization_mode(CODE
LOWmlx_audio/music/models/minimax_music3/minimax_music3.py78def _encode_official_text_pair(CODE
LOWmlx_audio/music/models/minimax_music3/fusion.py19def latent_length_from_frames(num_frames: int, config: ModelConfig) -> int:CODE
LOWmlx_audio/ui/app/speech-to-text/realtime/page.tsx10export default function RealtimeTranscriptionPage() {CODE
LOWmlx_audio/lm/generate.py92def _supports_input_embeddings(model: nn.Module) -> bool:CODE
LOWmlx_audio/lm/convert.py16def mixed_quant_predicate_builder(recipe: str, model: nn.Module, group_size: int = 64):CODE
LOWmlx_audio/lm/sample_utils.py301 def repetition_penalty_processor(tokens, logits):CODE
LOWmlx_audio/lm/sample_utils.py333 def presence_penalty_processor(tokens, logits):CODE
LOWmlx_audio/lm/sample_utils.py362 def frequency_penalty_processor(tokens, logits):CODE
LOWmlx_audio/lm/models/rope_utils.py153 def yarn_find_correction_range():CODE
LOWmlx_audio/lm/models/base.py64def scaled_dot_product_attention(CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py58 def test_parent_config_defaults_to_mono(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py72 def test_import_from_codec_models(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py75 def test_from_pretrained_tiny_tokenizer_encode_decode(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py94 def test_streaming_decoder_matches_offline_without_decoder_modules(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py115 def test_streaming_decoder_matches_offline_with_causal_transformer(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py174 def test_from_model_dir_prefers_nested_audio_tokenizer(self):CODE
LOWmlx_audio/codec/tests/test_moss_audio_tokenizer.py188 def test_same_dimension_projection_keys_force_linear_modules(self):CODE
LOWmlx_audio/codec/tests/test_fish_s1_dac.py110 def test_streaming_step_matches_full_decode(self):CODE
LOWmlx_audio/codec/tests/test_fish_s1_dac.py122 def test_streaming_state_resets_between_streams(self):CODE
LOWmlx_audio/codec/tests/test_fish_s1_dac.py130 def test_streaming_continues_past_rope_table(self):CODE
LOWmlx_audio/codec/tests/test_fish_s1_dac.py141 def test_streaming_rejects_chunk_larger_than_rope_table(self):CODE
LOWmlx_audio/codec/tests/test_stepaudio2.py9 def test_tiny_dit_forward_shape(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py143 def test_global_context_changes_attention_input(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py155 def test_output_shape_default_config(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py166 def test_output_shape_spark_config(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py179 def test_submodules_accessible(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py204 def test_import_from_codec_models(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py209 def test_import_from_codec_top_level(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py238 def test_different_inputs_give_different_outputs(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py253 def test_lid_ecapa_uses_shared_backbone(self):CODE
LOWmlx_audio/codec/tests/test_ecapa_backbone.py262 def test_lid_forward_pass_unchanged(self):CODE
1487 more matches not shown…
Unused Imports902 hits · 893 pts
SeverityFileLineSnippetContext
LOWmlx_audio/server_inference.py1CODE
LOWmlx_audio/registry.py10CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/utils.py31CODE
LOWmlx_audio/realtime_vad.py18CODE
LOWmlx_audio/music/generate.py3CODE
LOWmlx_audio/music/__init__.py3CODE
LOWmlx_audio/music/__init__.py3CODE
LOWmlx_audio/music/tests/test_minimax_music3.py3CODE
LOWmlx_audio/music/models/minimax_music3/vocoder.py3CODE
LOWmlx_audio/music/models/minimax_music3/config.py3CODE
LOWmlx_audio/music/models/minimax_music3/conversion.py3CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py3CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py3CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py3CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py4CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py4CODE
LOWmlx_audio/music/models/minimax_music3/minimax_music3.py3CODE
LOWmlx_audio/music/models/minimax_music3/depth.py3CODE
LOWmlx_audio/music/models/minimax_music3/fusion.py3CODE
LOWmlx_audio/music/models/minimax_music3/sampling.py3CODE
LOWmlx_audio/music/models/minimax_music3/ar.py3CODE
LOWmlx_audio/music/models/minimax_music3/prompt.py3CODE
LOWmlx_audio/music/models/minimax_music3/dit.py3CODE
LOWmlx_audio/music/models/minimax_music3/euler.py3CODE
LOWmlx_audio/lm/models/nemotron_h.py5CODE
LOWmlx_audio/lm/models/switch_layers.py5CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/__init__.py1CODE
LOWmlx_audio/codec/models/__init__.py1CODE
LOWmlx_audio/codec/models/__init__.py2CODE
LOWmlx_audio/codec/models/__init__.py3CODE
LOWmlx_audio/codec/models/__init__.py4CODE
LOWmlx_audio/codec/models/__init__.py5CODE
LOWmlx_audio/codec/models/__init__.py6CODE
LOWmlx_audio/codec/models/__init__.py7CODE
LOWmlx_audio/codec/models/__init__.py8CODE
LOWmlx_audio/codec/models/__init__.py9CODE
LOWmlx_audio/codec/models/__init__.py10CODE
LOWmlx_audio/codec/models/s3/__init__.py1CODE
LOWmlx_audio/codec/models/s3/__init__.py1CODE
LOWmlx_audio/codec/models/s3/__init__.py2CODE
LOWmlx_audio/codec/models/s3/__init__.py2CODE
LOWmlx_audio/codec/models/s3/__init__.py2CODE
LOWmlx_audio/codec/models/s3/__init__.py2CODE
LOWmlx_audio/codec/models/s3/__init__.py2CODE
LOWmlx_audio/codec/models/s3/model.py2CODE
842 more matches not shown…
Decorative Section Separators254 hits · 788 pts
SeverityFileLineSnippetContext
MEDIUMmlx_audio/dsp.py757# =============================================================================COMMENT
MEDIUMmlx_audio/dsp.py759# =============================================================================COMMENT
MEDIUMmlx_audio/utils.py79# =============================================================================COMMENT
MEDIUMmlx_audio/utils.py81# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py45# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py47# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py252# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py254# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py325# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py327# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py387# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py389# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py462# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py464# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py617# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py619# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py783# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py785# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py908# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py910# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py960# =============================================================================COMMENT
MEDIUMmlx_audio/codec/models/dacvae/codec.py962# =============================================================================COMMENT
MEDIUM⚡mlx_audio/tests/test_server.py261# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tests/test_server.py263# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tests/test_server.py799# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tests/test_server.py801# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tests/test_server.py365# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tests/test_server.py367# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/lid/models/ecapa_tdnn/ecapa_tdnn.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/lid/models/ecapa_tdnn/ecapa_tdnn.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/lid/models/ecapa_tdnn/ecapa_tdnn.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/lid/models/ecapa_tdnn/ecapa_tdnn.py78# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py4520# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py4522# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py4961# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py4963# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py5516# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py5518# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py6114# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/tests/test_models.py6116# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py4442# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py4444# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py5021# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py5023# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py5288# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py5290# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py8663# ── VoxCPM2 ──────────────────────────────────────────────────────COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py10283# ---------------------------------------------------------------------------COMMENT
MEDIUMmlx_audio/tts/tests/test_models.py10285# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1017# ─────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1019# ─────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1025 # ── Numbers ────────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1035 # ── Scientific notation ─────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1039 # ── Scale suffixes ─────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1043 # ── Currency ───────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1047 # ── Percentages ────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1050 # ── Ordinals ───────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1055 # ── Fractions ──────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1060 # ── Time ───────────────────────────────────────────────────────COMMENT
MEDIUM⚡mlx_audio/tts/models/kitten_tts/preprocess.py1065 # ── Decades ────────────────────────────────────────────────────COMMENT
194 more matches not shown…
Deep Nesting217 hits · 209 pts
SeverityFileLineSnippetContext
LOWmlx_audio/server.py67CODE
LOWmlx_audio/server.py1037CODE
LOWmlx_audio/server.py1267CODE
LOWmlx_audio/server.py1594CODE
LOWmlx_audio/server.py295CODE
LOWmlx_audio/server_inference.py195CODE
LOWmlx_audio/convert.py174CODE
LOWmlx_audio/convert.py312CODE
LOWmlx_audio/convert.py334CODE
LOWmlx_audio/audio_io.py39CODE
LOWmlx_audio/audio_io.py235CODE
LOWmlx_audio/audio_io.py409CODE
LOWmlx_audio/audio_io.py490CODE
LOWmlx_audio/utils.py734CODE
LOWmlx_audio/utils.py787CODE
LOWmlx_audio/lm/models/rope_utils.py236CODE
LOWmlx_audio/lm/models/bailing_moe.py347CODE
LOWmlx_audio/lm/models/nemotron_h.py443CODE
LOWmlx_audio/lm/models/falcon_h1.py460CODE
LOWmlx_audio/codec/tests/test_nemotron_voicechat.py62CODE
LOWmlx_audio/codec/models/s3/model_v2.py378CODE
LOWmlx_audio/codec/models/s3/model_v2.py543CODE
LOWmlx_audio/codec/models/fish_s1_dac/fish_s1_dac.py1424CODE
LOWmlx_audio/codec/models/higgs_audio/higgs_audio.py182CODE
LOWmlx_audio/codec/models/bigvgan/bigvgan.py124CODE
LOWmlx_audio/codec/models/stepaudio2/convert.py70CODE
LOWmlx_audio/codec/models/stepaudio2/convert.py169CODE
LOWmlx_audio/codec/models/descript/base.py107CODE
LOWmlx_audio/codec/models/dacvae/codec.py1170CODE
LOWmlx_audio/codec/models/dacvae/codec.py1364CODE
LOWmlx_audio/tests/test_no_mlx_lm.py21CODE
LOWmlx_audio/lid/models/ecapa_tdnn/mel.py27CODE
LOWmlx_audio/tts/generate.py151CODE
LOWmlx_audio/tts/audio_player.py73CODE
LOWmlx_audio/tts/models/moss_tts_nano/text.py251CODE
LOWmlx_audio/tts/models/voxcpm2/audio_vae.py450CODE
LOWmlx_audio/tts/models/voxcpm2/voxcpm2.py315CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py147CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py210CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py271CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py352CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py780CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py1018CODE
LOW…udio/tts/models/chatterbox_turbo/models/s3gen/s3gen.py415CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py45CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py696CODE
LOWmlx_audio/tts/models/kugelaudio/kugelaudio.py394CODE
LOWmlx_audio/tts/models/kitten_tts/convert.py188CODE
LOWmlx_audio/tts/models/kitten_tts/convert.py230CODE
LOWmlx_audio/tts/models/kitten_tts/convert.py529CODE
LOWmlx_audio/tts/models/kitten_tts/kitten_tts.py42CODE
LOWmlx_audio/tts/models/kitten_tts/kitten_tts.py512CODE
LOWmlx_audio/tts/models/kitten_tts/kitten_tts.py541CODE
LOWmlx_audio/tts/models/vibevoice/vibevoice.py210CODE
LOWmlx_audio/tts/models/vibevoice/vibevoice.py584CODE
LOWmlx_audio/tts/models/vibevoice/scheduler.py234CODE
LOWmlx_audio/tts/models/zonos2/model.py851CODE
LOWmlx_audio/tts/models/zonos2/speaker_encoder.py40CODE
LOWmlx_audio/tts/models/omnivoice/omnivoice.py266CODE
LOWmlx_audio/tts/models/omnivoice/omnivoice.py293CODE
157 more matches not shown…
AI Structural Patterns189 hits · 186 pts
SeverityFileLineSnippetContext
LOWmlx_audio/dsp.py900CODE
LOWmlx_audio/server.py1037CODE
LOWmlx_audio/convert.py594CODE
LOWmlx_audio/lm/generate.py122CODE
LOWmlx_audio/lm/sample_utils.py11CODE
LOWmlx_audio/lm/models/rope_utils.py130CODE
LOWmlx_audio/lm/models/gemma3_text.py163CODE
LOWmlx_audio/lm/models/gpt2.py109CODE
LOWmlx_audio/lm/models/gpt2.py169CODE
LOWmlx_audio/lm/models/llama.py149CODE
LOWmlx_audio/lm/models/cohere2.py200CODE
LOWmlx_audio/lm/models/lfm2.py236CODE
LOWmlx_audio/lm/models/qwen3.py127CODE
LOWmlx_audio/lm/models/granite.py135CODE
LOWmlx_audio/lm/models/qwen2.py122CODE
LOWmlx_audio/codec/models/fish_s1_dac/fish_s1_dac.py947CODE
LOWmlx_audio/codec/models/fish_s1_dac/fish_s1_dac.py1284CODE
LOWmlx_audio/codec/models/bigvgan/resample.py98CODE
LOW…x_audio/codec/models/stepaudio2/upsample_encoder_v2.py81CODE
LOWmlx_audio/codec/models/stepaudio2/flow.py10CODE
LOWmlx_audio/codec/models/snac/snac.py16CODE
LOWmlx_audio/codec/models/descript/dac.py133CODE
LOWmlx_audio/codec/models/dacvae/codec.py260CODE
LOWmlx_audio/codec/models/dacvae/codec.py905CODE
LOWmlx_audio/codec/models/dacvae/codec.py1067CODE
LOWmlx_audio/tts/generate.py151CODE
LOWmlx_audio/tts/utils.py214CODE
LOWmlx_audio/tts/models/interpolate.py117CODE
LOWmlx_audio/tts/models/base.py68CODE
LOWmlx_audio/tts/models/moss_tts_nano/moss_tts_nano.py335CODE
LOWmlx_audio/tts/models/voxcpm2/voxcpm2.py404CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py780CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py1018CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/decoder.py431CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/hifigan.py334CODE
LOW…_audio/tts/models/chatterbox_turbo/models/s3gen/mel.py56CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py104CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py281CODE
LOW…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py336CODE
LOWmlx_audio/tts/models/kitten_tts/istftnet.py848CODE
LOWmlx_audio/tts/models/kitten_tts/istftnet.py945CODE
LOWmlx_audio/tts/models/kitten_tts/preprocess.py909CODE
LOWmlx_audio/tts/models/vibevoice/scheduler.py54CODE
LOWmlx_audio/tts/models/zonos2/model.py851CODE
LOWmlx_audio/tts/models/zonos2/model.py1009CODE
LOWmlx_audio/tts/models/zonos2/prompt.py315CODE
LOWmlx_audio/tts/models/omnivoice/omnivoice.py293CODE
LOWmlx_audio/tts/models/omnivoice/omnivoice.py483CODE
LOWmlx_audio/tts/models/irodori_tts/model.py824CODE
LOWmlx_audio/tts/models/irodori_tts/irodori_tts.py296CODE
LOWmlx_audio/tts/models/irodori_tts/sampling.py72CODE
LOWmlx_audio/tts/models/echo_tts/sampling.py53CODE
LOWmlx_audio/tts/models/echo_tts/sampling.py164CODE
LOWmlx_audio/tts/models/qwen3/qwen3.py291CODE
LOWmlx_audio/tts/models/higgs_audio/generation.py77CODE
LOWmlx_audio/tts/models/higgs_audio/serve.py593CODE
LOWmlx_audio/tts/models/higgs_audio/serve.py420CODE
LOWmlx_audio/tts/models/higgs_audio/serve.py485CODE
LOWmlx_audio/tts/models/higgs_audio/serve.py534CODE
LOWmlx_audio/tts/models/higgs_audio/model.py121CODE
129 more matches not shown…
Excessive Try-Catch Wrapping120 hits · 137 pts
SeverityFileLineSnippetContext
MEDIUMmlx_audio/server.py1436 print(f"Error during initial transcription: {error_msg}")CODE
MEDIUMmlx_audio/server.py1470 print(f"Error during transcription: {error_msg}")CODE
LOW⚡mlx_audio/server.py1481 except Exception:CODE
LOW⚡mlx_audio/server.py1486 except Exception as e:CODE
LOW⚡mlx_audio/server.py1489 except Exception:CODE
LOW⚡mlx_audio/server.py1494 except Exception:CODE
LOW⚡mlx_audio/server.py1967 except Exception as e:CODE
LOW⚡mlx_audio/server.py1973 except Exception:CODE
LOW⚡mlx_audio/server.py1978 except Exception:CODE
LOWmlx_audio/server.py272 except Exception as exc:CODE
LOWmlx_audio/server.py885 except Exception as exc:CODE
LOWmlx_audio/server.py1021 except Exception as e:CODE
LOWmlx_audio/server.py1124 except Exception:CODE
LOWmlx_audio/server.py1323 except Exception:CODE
LOWmlx_audio/server.py1431 except Exception as e:CODE
LOWmlx_audio/server.py1465 except Exception as e:CODE
LOWmlx_audio/server.py1650 except Exception as e:CODE
LOWmlx_audio/server.py1784 except Exception as e:CODE
LOWmlx_audio/server.py1817 except Exception as e:CODE
LOWmlx_audio/server.py2024 except Exception as e:CODE
LOWmlx_audio/server_inference.py248 except Exception as exc: # pragma: no cover - defensive broker guardCODE
LOW⚡mlx_audio/server_inference.py340 except Exception as exc:CODE
LOW⚡mlx_audio/server_inference.py351 except Exception as exc:CODE
LOWmlx_audio/convert.py490 except Exception:CODE
LOWmlx_audio/tests/test_server.py141 except Exception as e:CODE
LOWmlx_audio/tests/test_server.py453 except Exception:CODE
LOWmlx_audio/tts/generate.py446 except Exception as e:CODE
MEDIUMmlx_audio/tts/generate.py447 print(f"Error loading model: {e}")CODE
MEDIUMmlx_audio/tts/tests/test_models.py224def run_sine_generator():CODE
MEDIUMmlx_audio/tts/tests/test_models.py8429def _require_g2p(self):CODE
LOWmlx_audio/tts/tests/test_models.py229 except Exception as exc:CODE
LOWmlx_audio/tts/tests/test_models.py3584 except Exception:CODE
LOWmlx_audio/tts/tests/test_models.py3605 except Exception:CODE
LOWmlx_audio/tts/tests/test_models.py9120 except Exception:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py295 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py313 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py344 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py414 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py424 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py500 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py537 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py587 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py641 except Exception as e:CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py1301 except Exception as e:CODE
LOW⚡mlx_audio/tts/models/kitten_tts/istftnet.py169 except Exception as e:CODE
MEDIUM⚡mlx_audio/tts/models/kitten_tts/istftnet.py170 print(f"Error: {e}")CODE
LOWmlx_audio/tts/models/kitten_tts/preprocess.py503 except Exception:CODE
LOWmlx_audio/tts/models/kitten_tts/kitten_tts.py578 except Exception:CODE
LOWmlx_audio/tts/models/omnivoice/omnivoice.py670 except Exception as e:CODE
LOW⚡mlx_audio/tts/models/irodori_tts/irodori_tts.py117 except Exception as e:CODE
LOWmlx_audio/tts/models/echo_tts/echo_tts.py88 except Exception:CODE
LOWmlx_audio/tts/models/chatterbox/tokenizer.py136 except Exception as e:CODE
LOWmlx_audio/tts/models/chatterbox/tokenizer.py195 except Exception as e:CODE
LOWmlx_audio/tts/models/chatterbox/tokenizer.py263 except Exception as e:CODE
MEDIUMmlx_audio/tts/models/chatterbox/tokenizer.py170def _load_cangjie_mapping(self, model_dir=None):CODE
LOW⚡mlx_audio/tts/models/tada/tada.py1486 except Exception as e:CODE
LOW⚡mlx_audio/tts/models/tada/tada.py1492 except Exception as e:CODE
LOWmlx_audio/tts/models/tada/tada.py485 except Exception as e:CODE
LOWmlx_audio/tts/models/tada/tada.py954 except Exception:CODE
LOWmlx_audio/tts/models/tada/tada.py1475 except Exception as e:CODE
60 more matches not shown…
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/server.py1484except WebSocketDisconnect:CODE
HIGHmlx_audio/server.py1965except WebSocketDisconnect:CODE
HIGHmlx_audio/server.py1494except Exception:CODE
HIGHmlx_audio/server.py1978except Exception:CODE
HIGHmlx_audio/server.py1489except Exception:CODE
HIGHmlx_audio/server.py1973except Exception:CODE
HIGHmlx_audio/server.py1481except Exception:CODE
HIGHmlx_audio/codec/models/vocos/vocos.py335except KeyError:CODE
HIGHmlx_audio/tts/tests/test_models.py9120except Exception:CODE
HIGHmlx_audio/tts/tests/test_models.py3584except Exception:CODE
HIGHmlx_audio/tts/tests/test_models.py3605except Exception:CODE
HIGHmlx_audio/tts/models/voxcpm2/voxcpm2.py343except ImportError:CODE
HIGHmlx_audio/tts/models/kitten_tts/kitten_tts.py88except KeyError:CODE
HIGHmlx_audio/tts/models/kitten_tts/kitten_tts.py578except Exception:CODE
HIGHmlx_audio/tts/models/tada/tada.py954except Exception:CODE
HIGHmlx_audio/tts/models/voxtral_tts/voxtral_tts.py421except Exception:CODE
HIGHmlx_audio/sts/voice_pipeline.py1565except KeyboardInterrupt:CODE
HIGHmlx_audio/sts/audio_player.py49except Exception:CODE
HIGHmlx_audio/sts/models/deepfilternet/weight_loader.py209except (KeyError, AttributeError, TypeError, IndexError):CODE
HIGHmlx_audio/sts/models/moshi/moshi.py145except Exception:CODE
HIGHmlx_audio/stt/models/fireredasr2/fireredasr2.py601except ValueError:CODE
HIGHmlx_audio/stt/models/sensevoice/sensevoice.py591except ImportError:CODE
HIGHmlx_audio/stt/models/moonshine/moonshine.py462except Exception:CODE
HIGHmlx_audio/stt/eval/seed_tts.py181except Exception:CODE
Modern Structural Boilerplate109 hits · 109 pts
SeverityFileLineSnippetContext
LOWmlx_audio/dsp.py10__all__ = [CODE
LOWmlx_audio/utils.py687__all__ = [CODE
LOWmlx_audio/music/__init__.py5__all__ = ["load", "load_model"]CODE
LOWmlx_audio/music/utils.py40__all__ = ["MODEL_REMAPPING", "load", "load_model"]CODE
LOWmlx_audio/music/models/minimax_music3/conversion.py214__all__ = ["copy_supporting_files", "load_source_weights", "prepare_config"]CODE
LOWmlx_audio/music/models/minimax_music3/__init__.py19__all__ = [CODE
LOWmlx_audio/music/models/minimax_music3/minimax_music3.py273__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/codec/__init__.py13__all__ = [CODE
LOWmlx_audio/codec/models/__init__.py12__all__ = [CODE
LOWmlx_audio/codec/models/s3/__init__.py17__all__ = [CODE
LOWmlx_audio/codec/models/fish_s1_dac/__init__.py3__all__ = ["DAC", "ModelArgs", "build_ae"]CODE
LOWmlx_audio/codec/models/moss_audio_tokenizer/__init__.py8__all__ = [CODE
LOWmlx_audio/codec/models/mimo_audio_tokenizer/__init__.py4__all__ = ["MiMoAudioTokenizer", "Model", "ModelConfig"]CODE
LOWmlx_audio/codec/models/higgs_audio/__init__.py11__all__ = [CODE
LOWmlx_audio/codec/models/stepaudio2/__init__.py9__all__ = [CODE
LOWmlx_audio/codec/models/nemotron_voicechat/__init__.py9__all__ = [CODE
LOWmlx_audio/codec/models/ecapa_tdnn/__init__.py4__all__ = ["EcapaTdnnBackbone", "EcapaTdnnConfig"]CODE
LOWmlx_audio/lid/__init__.py3__all__ = ["load", "load_model"]CODE
LOWmlx_audio/tts/__init__.py3__all__ = ["load", "load_model"]CODE
LOWmlx_audio/tts/models/pocket_tts/conditioners.py10logger = logging.getLogger(__name__)CODE
LOWmlx_audio/tts/models/moss_tts_nano/__init__.py4__all__ = ["GPT2Config", "Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/bark/__init__.py4__all__ = ["Model", "Pipeline", "ModelConfig"]CODE
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py24logger = logging.getLogger(__name__)CODE
LOWmlx_audio/tts/models/chatterbox_turbo/__init__.py11__all__ = [CODE
LOW…x_audio/tts/models/chatterbox_turbo/models/__init__.py7__all__ = [CODE
LOW…models/chatterbox_turbo/models/s3tokenizer/__init__.py19__all__ = [CODE
LOW…udio/tts/models/chatterbox_turbo/models/t3/__init__.py8__all__ = [CODE
LOW…dels/chatterbox_turbo/models/voice_encoder/__init__.py7__all__ = [CODE
LOW…o/tts/models/chatterbox_turbo/models/s3gen/__init__.py17__all__ = [CODE
LOW…_audio/tts/models/chatterbox_turbo/models/s3gen/mel.py12logger = logging.getLogger(__name__)CODE
LOW…udio/tts/models/chatterbox_turbo/models/s3gen/s3gen.py19logger = logging.getLogger(__name__)CODE
LOWmlx_audio/tts/models/kugelaudio/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/kitten_tts/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/vibevoice/__init__.py9__all__ = [CODE
LOWmlx_audio/tts/models/zonos2/convert.py233 def update_largest(key: str, value: mx.array) -> None:CODE
LOWmlx_audio/tts/models/zonos2/__init__.py4__all__ = ["Model", "ModelConfig", "Zonos2Config"]CODE
LOWmlx_audio/tts/models/omnivoice/__init__.py7__all__ = ["Model", "ModelConfig", "OmniVoiceConfig", "create_voice_clone_prompt"]CODE
LOWmlx_audio/tts/models/omnivoice/utils.py8logger = logging.getLogger(__name__)CODE
LOWmlx_audio/tts/models/qwen3/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/higgs_audio/__init__.py14__all__ = [CODE
LOWmlx_audio/tts/models/chatterbox/__init__.py5__all__ = ["Model", "ModelConfig", "convert_from_source"]CODE
LOWmlx_audio/tts/models/chatterbox/tokenizer.py20logger = logging.getLogger(__name__)CODE
LOWmlx_audio/tts/models/chatterbox/s3tokenizer/__init__.py17__all__ = [CODE
LOWmlx_audio/tts/models/chatterbox/t3/__init__.py6__all__ = [CODE
LOW…_audio/tts/models/chatterbox/voice_encoder/__init__.py5__all__ = ["VoiceEncoder", "VoiceEncConfig", "melspectrogram"]CODE
LOWmlx_audio/tts/models/chatterbox/s3gen/__init__.py10__all__ = [CODE
LOW…io/tts/models/chatterbox/s3gen/transformer/__init__.py10__all__ = [CODE
LOW…x_audio/tts/models/chatterbox/s3gen/matcha/__init__.py12__all__ = [CODE
LOWmlx_audio/tts/models/dense/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/confucius4/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/melotts/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/rumik_oss/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/moss_tts_delay/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/higgs_audio_v3/__init__.py17__all__ = [CODE
LOWmlx_audio/tts/models/tada/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/qwen3_tts/__init__.py3__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/breeze_tts/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/moss_tts/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/dramabox/__init__.py4__all__ = ["Model", "ModelConfig"]CODE
LOWmlx_audio/tts/models/bailingmm/__init__.py18__all__ = ["Model", "ModelConfig", "convert_campplus_onnx_to_safetensors"]CODE
49 more matches not shown…
Docstring Block Structure21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/server.py954 Remove a model from the API. Args: model_name (str): The name of the model to remove. Returns: STRING
HIGHmlx_audio/audio_io.py67Decode audio using ffmpeg (for formats not supported by miniaudio like M4A). Args: input_data: Path to the STRING
HIGHmlx_audio/utils.py115 Ensures the model is available locally. If the path does not exist locally, it is downloaded from the Hugging FSTRING
HIGHmlx_audio/utils.py157Load model configuration from a path or Hugging Face repo. Args: model_path: Local path or Hugging Face repSTRING
HIGHmlx_audio/utils.py181Load model weights from safetensors or npz files. Args: model_path: Path to the model directory ReturnSTRING
HIGHmlx_audio/utils.py266 Retrieve the model architecture module based on the model type and name. Args: model_type: The type ofSTRING
HIGHmlx_audio/utils.py628Load audio from file path or return mx.array as-is. Args: audio: Audio input - can be: - str: PSTRING
HIGHmlx_audio/utils.py834Load a TTS, STT, STS, LID, or VAD model based on its configuration and name. Args: model_name (str): Name oSTRING
HIGHmlx_audio/lid/models/wav2vec2/wav2vec_lid.py106Predict language from raw audio waveform. Automatically applies zero-mean unit-variance normalization bSTRING
HIGHmlx_audio/tts/generate.py27Detect the start and end points of speech in an audio signal using RMS energy. Args: wav: Input audio signaSTRING
HIGHmlx_audio/tts/generate.py71Remove silence from both ends of an audio signal. Args: wav: Input audio signal array sample_rate: STRING
HIGHmlx_audio/tts/utils.py75 Retrieve the model architecture module based on the model type and name. This function attempts to find the apSTRING
HIGHmlx_audio/tts/utils.py109 Load and initialize the model from a given path. Args: model_path (Path): The path to load the model fSTRING
HIGH…odels/chatterbox/s3gen/transformer/upsample_encoder.py129Make mask tensor containing indices of padded part. Args: lengths: Batch of lengths (B,). max_len: STRING
HIGH…odels/chatterbox/s3gen/transformer/upsample_encoder.py164Create mask for subsequent steps (size, size) with chunk size. This is for streaming encoder. Args: siSTRING
HIGHmlx_audio/tts/models/dia/config.py239Load and validate a Dia configuration from a JSON file. Args: path: The path to the configuration fSTRING
HIGHmlx_audio/tts/models/dia/dia.py50Loads the Dia model from local configuration and checkpoint files. Args: config_path: Path to the cSTRING
HIGHmlx_audio/tts/models/dia/dia.py85Loads the Dia model from a Hugging Face Hub repository. Downloads the configuration and checkpoint files from tSTRING
HIGHmlx_audio/tts/models/kokoro/pipeline.py312Generate audio from either raw phonemes or pre-processed tokens. Args: tokens: Either a phoneme strSTRING
HIGHmlx_audio/tts/models/spark/utils/audio.py144Detect the start and end points of speech in an audio signal using RMS energy. Args: wav: Input audio signaSTRING
HIGHmlx_audio/tts/models/spark/utils/audio.py188Remove silence from both ends of an audio signal. Args: wav: Input audio signal array sample_rate: STRING
Cross-Language Confusion18 hits · 98 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/server.py1841 # Manual-commit mode (turn_detection: null): no VAD, soCOMMENT
HIGHmlx_audio/realtime_vad.py187 events.extend(self._detector.push(prob, VAD_FRAME_MS))CODE
HIGH⚡mlx_audio/tests/test_realtime_vad.py73 events.extend(detector.push(p, frame_ms))CODE
HIGHmlx_audio/sts/voice_pipeline.py232 for chunk in self.chunker.push(samples):CODE
HIGHmlx_audio/sts/models/nemotron_voicechat/streaming.py214 mel = self._mel_stream.push(frame)CODE
HIGHmlx_audio/sts/models/nemotron_voicechat/streaming.py215 chunks = self._conformer_stream.push(mel, emit_partial=True)CODE
HIGH…o/sts/models/mossformer2_se/depthwise_conv1d_kernel.py31 if (batch >= B || time >= L_out || chan >= C) {CODE
HIGH…o/sts/models/mossformer2_se/depthwise_conv1d_kernel.py41 if (in_time >= 0 && in_time < L_in) {CODE
HIGH⚡mlx_audio/stt/tests/test_nemotron_asr.py173 chunks.append(frontend.push(audio[start : start + 937]))CODE
HIGHmlx_audio/stt/tests/test_nemotron_asr.py204 mel = frontend.push(frame)CODE
HIGHmlx_audio/stt/tests/test_nemotron_asr.py205 outputs = state.push(mel, emit_partial=True)CODE
HIGHmlx_audio/stt/models/nemotron_asr/session.py122 mel = self._frontend.push(mx.array(samples), final=final)CODE
HIGHmlx_audio/stt/models/nemotron_asr/session.py123 for encoded in self._encoder.push(mel, final=final):CODE
HIGHmlx_audio/stt/models/nemotron_asr/speaker_streaming.py150 mel = self._frontend.push(samples, final=final)CODE
HIGHmlx_audio/stt/models/nemotron_asr/speaker_streaming.py197 for encoded in encoder.push(masked, final=last):CODE
HIGHmlx_audio/stt/models/nemotron_asr/audio.py291 return self.push(mx.zeros((0,), dtype=self._samples.dtype), final=True)CODE
HIGHmlx_audio/stt/models/nemotron_asr/streaming.py191 for encoded in state.push(current):CODE
HIGHmlx_audio/stt/models/nemotron_asr/streaming.py195 for encoded in state.push(current, final=True):CODE
Self-Referential Comments25 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMmlx_audio/lm/models/cache.py97 # Create an instance of cls without calling __init__COMMENT
MEDIUMmlx_audio/codec/models/snac/vq.py44 # Create a new tensor with the expanded shapeCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py16# Create a patch for the deprecated open_text functionCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py194 # Create a mock outputCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py388 # Create a mock outputCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py393 # Create a Result instanceCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py535 # Create a minimal configCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py721 # Create a minimal configCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py775 # Create a config with tie_word_embeddings=TrueCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py869 # Create a minimal configCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py1031 # Create a minimal configCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py1146 # Create a config instanceCOMMENT
MEDIUMmlx_audio/tts/tests/test_models.py2690 # Create a simple test audioCOMMENT
MEDIUMmlx_audio/tts/tests/test_base.py13 # Define a test subclassCOMMENT
MEDIUMmlx_audio/tts/tests/test_interpolate.py42 # Create a simple test arrayCOMMENT
MEDIUMmlx_audio/tts/tests/test_interpolate.py63 # Create a simple test arrayCOMMENT
MEDIUMmlx_audio/tts/models/qwen3/qwen3.py142 # Create a mask and filter manually since boolean indexing isn't supportedCOMMENT
MEDIUMmlx_audio/tts/models/dia/dia.py510 # Create a mask for setting tokens beyond 1025 to -infCOMMENT
MEDIUMmlx_audio/tts/models/spark/modules/blocks/sampler.py61 # Create a new tensor with the expanded shapeCOMMENT
MEDIUMmlx_audio/tts/models/llama/llama.py174 # Create a mask and filter manually since boolean indexing isn't supportedCOMMENT
MEDIUMmlx_audio/sts/models/sam_audio/model.py928 # Create the generatorCOMMENT
MEDIUMmlx_audio/sts/models/mossformer2_se/mossformerblock.py74 # Create a list of attention layers using FLASH_ShareA_FFConvMCOMMENT
MEDIUM…dio/sts/models/mossformer2_se/mossformerblock_gfsmn.py65 # Create a list of Gated FSMN blocksCOMMENT
MEDIUM…dio/sts/models/mossformer2_se/mossformerblock_gfsmn.py73 # Create a list of attention layers using FLASH_ShareA_FFConvMCOMMENT
MEDIUMmlx_audio/stt/models/vibevoice_asr/audio_encoder.py67 # Create the convolution layer (no padding in conv, we'll handle it manually)COMMENT
Redundant / Tautological Comments42 hits · 66 pts
SeverityFileLineSnippetContext
LOWmlx_audio/audio_io.py261 # Check if this is a file that needs ffmpegCOMMENT
LOW⚡mlx_audio/base.py21 # Check if the shape has 4 dimensionsCOMMENT
LOW⚡mlx_audio/base.py24 # Check if out_channels is the largest, and kH and KW are the sameCOMMENT
LOW⚡mlx_audio/base.py29 # Check if the shape has 3 dimensionsCOMMENT
LOW⚡mlx_audio/base.py32 # Check if out_channels is the largestCOMMENT
LOWmlx_audio/lm/models/falcon_h1.py461 # Check if needs sanitizationCOMMENT
LOWmlx_audio/codec/models/s3/model_v2.py364 # Check if any audio exceeds 30 secondsCOMMENT
LOWmlx_audio/tests/test_audio_io.py14# Check if ffmpeg is available for optional testsCOMMENT
LOWmlx_audio/tts/models/base.py24 # Check if the shape has 4 dimensionsCOMMENT
LOWmlx_audio/tts/models/base.py30 # Check if out_channels is the largest, and kH and KW are the sameCOMMENT
LOW…_audio/tts/models/chatterbox_turbo/chatterbox_turbo.py121 # Check if first argument is a config dict (from load_model)COMMENT
LOWmlx_audio/tts/models/kugelaudio/kugelaudio.py428 # Check if target key existsCOMMENT
LOW⚡mlx_audio/tts/models/kitten_tts/istftnet.py162 # Check if channels last match or if groups > 1 for ConvTransposed1dCOMMENT
LOWmlx_audio/tts/models/kitten_tts/istftnet.py1005 # Check if this block has upsamplingCOMMENT
LOWmlx_audio/tts/models/vibevoice/vibevoice.py264 # Check if key exists in modelCOMMENT
LOWmlx_audio/tts/models/vibevoice/vibevoice.py280 # Check if it's a transposed conv weightCOMMENT
LOWmlx_audio/tts/models/qwen3/qwen3.py128 # Check if we found any tokens BEFORE converting to MLX arrayCOMMENT
LOWmlx_audio/tts/models/chatterbox/chatterbox.py187 # Check if first argument is a configCOMMENT
LOWmlx_audio/tts/models/chatterbox/chatterbox.py511 # Check if we have quantized weights (scales) for this pathCOMMENT
LOWmlx_audio/tts/models/chatterbox/t3/t3.py94 # Check if already converted (idempotent)COMMENT
LOWmlx_audio/tts/models/chatterbox/s3gen/s3gen.py407 # Check if this is ConvTranspose (ups) or regular ConvCOMMENT
LOW…udio/tts/models/chatterbox/s3gen/matcha/transformer.py65 # Check if it's additive bias (contains large negative values)COMMENT
LOWmlx_audio/tts/models/outetts/audio_processor.py158 if audio.size == 0: # Check if array is emptyCODE
LOWmlx_audio/tts/models/qwen3_tts/qwen3_tts.py1231 # Check if we should use ICL modeCOMMENT
LOW⚡mlx_audio/tts/models/kokoro/istftnet.py160 # Check if channels last match or if groups > 1 for ConvTransposed1dCOMMENT
LOWmlx_audio/tts/models/kokoro/istftnet.py993 # Check if this block has upsamplingCOMMENT
LOWmlx_audio/tts/models/kokoro/pipeline.py177 # Check if voice exists in local snapshot firstCOMMENT
LOWmlx_audio/tts/models/spark/utils/file.py61 # Open the file for readingCOMMENT
LOWmlx_audio/tts/models/spark/utils/file.py116 # Check if there is a base configuration specified and merge if necessaryCOMMENT
LOWmlx_audio/tts/models/spark/utils/file.py169 # Set headers to keys from the first dictionary in data if not explicitly providedCOMMENT
LOWmlx_audio/tts/models/spark/modules/residual.py130 # Check if indices are emptyCOMMENT
LOWmlx_audio/tts/models/voxcpm/audio_vae.py538 # Check if this is a 3D weight that needs transposition by comparing with model shapeCOMMENT
LOWmlx_audio/sts/models/sam_audio/processor.py33 # Check if file exists firstCOMMENT
LOWmlx_audio/sts/models/sam_audio/model.py507 ] = None, # Set it to 50 for better performanceCODE
LOWmlx_audio/sts/models/deepfilternet/network.py310 # Check if separable (has pointwise conv at index '2')COMMENT
LOW…udio/sts/models/mossformer2_se/flash_sharea_ffconvm.py230 # Check if it's mlx.nn.RoPE or custom implementationCOMMENT
LOWmlx_audio/sts/models/mossformer2_se/model.py235 # Check if segmented processing is neededCOMMENT
LOWmlx_audio/sts/models/mossformer2_se/mossformerm.py92 # Set MossFormerBlock to eval modeCOMMENT
LOWmlx_audio/sts/models/mossformer2_se/mossformerm.py99 # Set MossFormerBlock to train modeCOMMENT
LOWmlx_audio/stt/models/qwen3_asr/config.py100 # Check if this is a forced aligner configCOMMENT
LOWmlx_audio/stt/models/whisper/whisper.py301 # Check if this is HuggingFace format (has d_model or encoder_layers)COMMENT
LOWmlx_audio/stt/models/whisper/whisper.py586 # Check if this is HuggingFace format (has 'model.' prefix)COMMENT
Structural Annotation Overuse31 hits · 62 pts
SeverityFileLineSnippetContext
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py194 # Step 1: Remove DC offset per frame (before preemphasis)COMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py198 # Step 2: Apply preemphasis PER FRAME (Kaldi applies it after framing)COMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py209 # Step 3: Apply windowCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py212 # Step 4: Pad to FFT lengthCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py216 # Step 5: Compute FFT and get magnitude/power spectrumCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py222 # Step 6: Apply mel filterbankCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py225 # Step 7: Apply log with epsilon floorCOMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py587 # Step 1: STFT → real/imag [B, 2, freq_bins, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py593 # Step 2: CaC interleave — [B, 2, freq_bins, T] → [B, freq_bins*2, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py600 # Step 3: BandSplit → [B, T, num_bands, dim]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py605 # Step 4: 6× dual-axis transformerCOMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py617 # Step 5: Mask estimation → list of [B, T, band_dim]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py620 # Step 6: Merge masks → [B, freq_bins*2, T, 2]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py623 # Step 7: Complex multiply (input × mask)COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py632 # Step 8: De-interleave → [B, 2, freq_bins, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py636 # Step 9: iSTFT → [B, 2, samples]COMMENT
LOW⚡…o/sts/models/mossformer2_se/flash_attention_kernels.py115 # Step 1: Q @ K^T scaledCOMMENT
LOW⚡…o/sts/models/mossformer2_se/flash_attention_kernels.py118 # Step 2: Apply fused ReLU² kernelCOMMENT
LOW…o/sts/models/mossformer2_se/flash_attention_kernels.py133 # Step 3: Attention @ VCOMMENT
LOWmlx_audio/stt/models/qwen3_asr/qwen3_asr.py973 # Step 1: Encode audio featuresCOMMENT
LOWmlx_audio/stt/models/qwen3_asr/qwen3_asr.py987 # Step 2: Build input embeddings with audio mergedCOMMENT
LOWdocs/contributing/adding-a-model.md28## Step 1: Create the Model PackageCOMMENT
LOWdocs/contributing/adding-a-model.md39## Step 2: Implement the ModelCOMMENT
LOWdocs/contributing/adding-a-model.md148## Step 3: Register the ModelCOMMENT
LOWdocs/contributing/adding-a-model.md185## Step 4: Convert and TestCOMMENT
LOWdocs/contributing/adding-a-model.md230## Step 5: Add DocumentationCOMMENT
LOW⚡docs/models/tts/omnivoice.md45# Step 1: Preprocess reference audio (silence removal, RMS norm)COMMENT
LOW⚡docs/models/tts/omnivoice.md49# Step 2: Decode preprocessed tokens back to audio, then transcribeCOMMENT
LOW⚡docs/models/tts/omnivoice.md59# Step 3: Generate with ref_tokens + ref_text from the same sourceCOMMENT
LOWexamples/qwen3_asr_transcription.py55 # Step 1: Transcribe audio with Qwen3-ASRCOMMENT
LOWexamples/qwen3_asr_transcription.py90 # Step 2: Run forced alignment with Qwen3-ForcedAlignerCOMMENT
Verbosity Indicators23 hits · 48 pts
SeverityFileLineSnippetContext
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py194 # Step 1: Remove DC offset per frame (before preemphasis)COMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py198 # Step 2: Apply preemphasis PER FRAME (Kaldi applies it after framing)COMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py209 # Step 3: Apply windowCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py212 # Step 4: Pad to FFT lengthCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py216 # Step 5: Compute FFT and get magnitude/power spectrumCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py222 # Step 6: Apply mel filterbankCOMMENT
LOW⚡…io/tts/models/chatterbox_turbo/models/s3gen/xvector.py225 # Step 7: Apply log with epsilon floorCOMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py587 # Step 1: STFT → real/imag [B, 2, freq_bins, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py593 # Step 2: CaC interleave — [B, 2, freq_bins, T] → [B, freq_bins*2, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py600 # Step 3: BandSplit → [B, T, num_bands, dim]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py605 # Step 4: 6× dual-axis transformerCOMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py617 # Step 5: Mask estimation → list of [B, T, band_dim]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py620 # Step 6: Merge masks → [B, freq_bins*2, T, 2]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py623 # Step 7: Complex multiply (input × mask)COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py632 # Step 8: De-interleave → [B, 2, freq_bins, T]COMMENT
LOW⚡mlx_audio/sts/models/mel_roformer/model.py636 # Step 9: iSTFT → [B, 2, samples]COMMENT
LOW⚡…o/sts/models/mossformer2_se/flash_attention_kernels.py115 # Step 1: Q @ K^T scaledCOMMENT
LOW⚡…o/sts/models/mossformer2_se/flash_attention_kernels.py118 # Step 2: Apply fused ReLU² kernelCOMMENT
LOW…o/sts/models/mossformer2_se/flash_attention_kernels.py133 # Step 3: Attention @ VCOMMENT
LOWmlx_audio/stt/models/qwen3_asr/qwen3_asr.py973 # Step 1: Encode audio featuresCOMMENT
LOWmlx_audio/stt/models/qwen3_asr/qwen3_asr.py987 # Step 2: Build input embeddings with audio mergedCOMMENT
LOWexamples/qwen3_asr_transcription.py55 # Step 1: Transcribe audio with Qwen3-ASRCOMMENT
LOWexamples/qwen3_asr_transcription.py90 # Step 2: Run forced alignment with Qwen3-ForcedAlignerCOMMENT
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/lid/utils.py0load and initialize an stt model from a given path. args: model_path: the path or huggingface repo to load the model froSTRING
HIGHmlx_audio/vad/utils.py0load and initialize an stt model from a given path. args: model_path: the path or huggingface repo to load the model froSTRING
HIGHmlx_audio/stt/utils.py0load and initialize an stt model from a given path. args: model_path: the path or huggingface repo to load the model froSTRING
HIGHmlx_audio/tts/models/qwen3/qwen3.py0hook called after model weights are loaded. used to initialize the tokenizer which is required for text input.STRING
HIGHmlx_audio/tts/models/spark/spark.py0hook called after model weights are loaded. used to initialize the tokenizer which is required for text input.STRING
HIGHmlx_audio/tts/models/voxcpm/voxcpm.py0hook called after model weights are loaded. used to initialize the tokenizer which is required for text input.STRING
HIGHmlx_audio/stt/models/glmasr/glmasr.py0hook called after model weights are loaded. used to initialize the tokenizer which is required for text input.STRING
Modern AI Meta-Vocabulary9 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMmlx_audio/tts/tests/test_models.py9047 # Simulate zero-shot inputCOMMENT
MEDIUMmlx_audio/tts/models/voxcpm2/voxcpm2.py616 # In zero-shot/ref modes, warmup patches are generated for conditioningCOMMENT
MEDIUMmlx_audio/tts/models/tada/tada.py1334 # For zero-shot: skip structural prefix featuresCOMMENT
MEDIUMmlx_audio/sts/models/mimo_audio/README.md104## Base: few-shot speech tasks and completionCOMMENT
MEDIUMmlx_audio/stt/models/whisper/whisper.py1192 # skip silence before possible hallucinationsCOMMENT
MEDIUMmlx_audio/stt/models/whisper/whisper.py1207 # if first segment might be a hallucination, skip leading silenceCOMMENT
MEDIUMmlx_audio/stt/models/whisper/whisper.py1219 # skip silence before any possible hallucination that is surroundedCOMMENT
MEDIUMmlx_audio/stt/models/whisper/whisper.py1220 # by silence or more hallucinationsCOMMENT
MEDIUMexamples/nemotron_diarization_asr.py231 # Silence has no speaker stream to transcribe; avoid ASR silence hallucinations.COMMENT
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOW…udio/tts/models/chatterbox_turbo/models/s3gen/s3gen.py441COMMENT
LOWmlx_audio/tts/models/omnivoice/duration.py1#!/usr/bin/env python3COMMENT
LOWmlx_audio/tts/models/chatterbox/s3gen/s3gen.py361 )COMMENT
LOWmlx_audio/tts/models/spark/utils/audio.py1# Copyright (c) 2025 SparkAudioCOMMENT
LOW…/tts/models/spark/modules/speaker/perceiver_encoder.py1# Copyright (c) 2025 SparkAudioCOMMENT
LOW…x_audio/tts/models/spark/modules/speaker/ecapa_tdnn.py1# Copyright (c) 2021 Zhengyang Chen (chenzhengyang117@gmail.com)COMMENT
LOW…x_audio/tts/models/spark/modules/speaker/ecapa_tdnn.py281 # x_np = torch.randn(1, 200, 80)COMMENT
LOW…dio/tts/models/spark/modules/speaker/pooling_layers.py1# Copyright (c) 2021 Shuai Wang (wsstriving@gmail.com)COMMENT
LOW…io/tts/models/spark/modules/speaker/speaker_encoder.py1# Copyright (c) 2025 SparkAudioCOMMENT
LOW…s/models/spark/modules/encoder_decoder/feat_decoder.py1# Copyright (c) 2025 SparkAudioCOMMENT
LOW…s/models/spark/modules/encoder_decoder/feat_encoder.py1# Copyright (c) 2025 SparkAudioCOMMENT
LOWmlx_audio/vad/models/sortformer/convert.py41#COMMENT
LOWmlx_audio/vad/models/fsmn/convert.py41 # 2. 去掉多余的 ".linear" (in_linear1.linear.weight → in_linear1.weight)COMMENT
LOWmlx_audio/sts/models/sam_audio/model.py1301 )COMMENT
LOW…udio/sts/models/mossformer2_se/flash_sharea_ffconvm.py341 # Compute k^T @ v: (batch, query_key_dim, value_dim)COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/tts/models/sesame/sesame.py672 # This applies an imperceptible watermark to identify audio as AI-generated.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHmlx_audio/tts/models/voxcpm/audio_vae.py228 # I'll implement it just in case.COMMENT
Fake / Example Data2 hits · 1 pts
SeverityFileLineSnippetContext
LOWmlx_audio/tts/models/voxcpm2/README.md88 --ref_text "placeholder" \CODE
LOWmlx_audio/tts/models/kitten_tts/preprocess.py669 "555-1234" → "five five five one two three four"STRING