Agent skill
energy-calculator
Calculate per-second RMS energy from audio files. Use when you need to analyze audio volume patterns, prepare data for silence/pause detection, or create an energy profile for audio analysis tasks.
Install this agent skill to your Project
npx add-skill https://github.com/benchflow-ai/skillsbench/tree/main/tasks/video-silence-remover/environment/skills/energy-calculator
SKILL.md
Energy Calculator
Calculates per-second RMS (Root Mean Square) energy from audio files. Produces an energy profile that can be used for opening detection, pause detection, or other audio analysis tasks.
Use Cases
- Calculating audio energy for silence detection
- Preparing data for opening/pause detection
- Analyzing audio volume patterns
Usage
python3 /root/.claude/skills/energy-calculator/scripts/calc_energy.py \
--audio /path/to/audio.wav \
--output /path/to/energies.json
Parameters
--audio: Path to input WAV file--output: Path to output JSON file--window-seconds: Window size for energy calculation (default: 1 second)
Output Format
{
"sample_rate": 16000,
"window_seconds": 1,
"total_seconds": 600,
"energies": [123.5, 456.7, 234.2, ...],
"stats": {
"min": 45.2,
"max": 892.3,
"mean": 234.5,
"std": 156.7
}
}
How It Works
- Load audio file
- Split into 1-second windows
- Calculate RMS energy for each window:
sqrt(mean(samples^2)) - Output array of energy values
Dependencies
- Python 3.11+
- numpy
Example
# Calculate energy from extracted audio
python3 /root/.claude/skills/energy-calculator/scripts/calc_energy.py \
--audio audio.wav \
--output energies.json
Notes
- RMS energy correlates with perceived loudness
- Higher values = louder audio, lower values = quieter/silence
- Output can be used by opening-detector and pause-detector skills
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
csv-processing
Use this skill when reading sensor data from CSV files, writing simulation results to CSV, processing time-series data with pandas, or handling missing values in datasets.
pid-controller
Use this skill when implementing PID control loops for adaptive cruise control, vehicle speed regulation, throttle/brake management, or any feedback control system requiring proportional-integral-derivative control.
yaml-config
Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling.
simulation-metrics
Use this skill when calculating control system performance metrics such as rise time, overshoot percentage, steady-state error, or settling time for evaluating simulation results.
vehicle-dynamics
Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.
web-interface-guidelines
Vercel's comprehensive UI guidelines for building accessible, performant web interfaces. Use this skill when reviewing or building UI components for compliance with best practices around accessibility, performance, animations, and visual stability.
Didn't find tool you were looking for?