AGENT SKILL

energy-calculator

Compute RMS energy in fixed time windows (typically 1s) from a WAV file and save it as JSON for silence/pause detectors.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 0
Forks
1

01 前言 Front Matter

name
energy-calculator
description
Compute RMS energy in fixed time windows (typically 1s) from a WAV file and save it as JSON for silence/pause detectors.

02 资源文件 1

03 SKILL.md 正文

Steps

  1. Run the energy calculator (keep --window-seconds 1 unless you also update downstream time interpretation):
    python3 /root/.claude/skills/energy-calculator/scripts/calc_energy.py \
      --audio /root/audio.wav \
      --output /root/energies.json \
      --window-seconds 1
    
  2. Use the printed stats (min/max/mean/std) to sanity-check that energies are non-zero and have dynamic range (helps later threshold tuning).

Expected Result

An energies.json containing window_seconds, total_seconds, and an energies array whose indices correspond to (approximately) seconds on the video timeline.

04 同仓库更多 Skills