AGENT SKILL

energy-calculator

Compute per-window (default: 1s) RMS energy from a WAV file and save an energy timeline JSON for pause/opening detection.

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

01 前言 Front Matter

name
energy-calculator
description
Compute per-window (default: 1s) RMS energy from a WAV file and save an energy timeline JSON for pause/opening detection.

02 资源文件 1

03 SKILL.md 正文

Steps

  1. Ensure the input is a WAV (ideally from audio-extractor, mono 16kHz PCM).
  2. Run the bundled script from the workspace:
    python3 energy-calculator/scripts/calc_energy.py \
      --audio /path/to/audio.wav \
      --output /path/to/energies.json \
      --window-seconds 1
    
  3. Sanity-check energies.json: energies should be an array of numbers; total_seconds should be close to the audio duration (may be slightly larger due to the final partial window).

Expected Result

An energies.json containing energies plus basic stats, suitable input for silence-detector and pause-detector.

04 同仓库更多 Skills