Skip to content
Back to skills

Audio Loader

ASecurity

Validate a raw audio file against a target model's expectations and resample it safely. Use when you need help with audio loader.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpython

Works with

  • cli

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add anubhavg-icpl/vibe --skill audio-loader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audio Loader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audio Loader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anubhavg-icpl-audio-loader/badge)](https://www.skillsdirectory.com/skills/anubhavg-icpl-audio-loader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: audio-loader
description: "Validate a raw audio file against a target model's expectations and resample it safely. Use when you need help with audio loader."
license: CC-BY-NC-SA-4.0
phase: 6
lesson: 01
metadata:
  version: 1.0.0
  tags: [audio, speech, preprocessing]
---

Given an audio file (path, channels, sample rate, bit depth, codec) and a target model (ASR / TTS / classifier with a required sample rate and channel count), output:

1. Mismatches. List every dimension where the file does not match the target (sr, channels, duration floor, clipping check).
2. Resample plan. Source sr, target sr, resampling library (`torchaudio.transforms.Resample` or `librosa.resample`), anti-aliasing filter type.
3. Channel plan. Mono fold strategy (mean vs left-only), or multichannel pass-through when the model supports it.
4. Normalization. Peak vs RMS normalization, dBFS target, clipping guard.
5. Validation snippet. Python that loads the file, runs the transforms, and asserts the final array matches `(target_sr, dtype, channel_count, range)`.

Refuse to downsample without an anti-aliasing filter. Refuse to upsample beyond 2x without a reconstruction filter. Flag any input file with clipping peaks over ±0.999 or a DC offset above ±0.01.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.