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
npx skills add UCSB-NLP-Chang/Skill-Usage --skill energy-calculatorgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/video-silence-remover/environment/skills/energy-calculator ~/.claude/skills/energy-calculatorPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the 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
```bash
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
```json
{
"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
1. Load audio file
2. Split into 1-second windows
3. Calculate RMS energy for each window: `sqrt(mean(samples^2))`
4. Output array of energy values
## Dependencies
- Python 3.11+
- numpy
## Example
```bash
# 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/silenceDetails
- Skill name
energy-calculator- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/video-silence-remover/environment/skills/energy-calculator/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Energy Calculator skill do?
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.
How do I install the Energy Calculator skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill energy-calculator. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Energy Calculator popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
FFmpeg Audio Processing
49UCSB-NLP-Chang/Skill-Usage
Extract, normalize, mix, and process audio tracks - audio manipulation and analysis
Elevenlabs Tts
49UCSB-NLP-Chang/Skill-Usage
ElevenLabs Text-to-Speech API for high-quality speech synthesis.
FFmpeg Format Conversion
49UCSB-NLP-Chang/Skill-Usage
Convert media files between formats - video containers, audio formats, and codec transcoding
Browse the most popular Claude skills, all images, video & audio skills, or write your own with the skills generator.