AGENT SKILL

pause-detector

Detect long low-energy pauses using a local dynamic threshold on precomputed energy data (robust to volume changes across a lecture).

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

01 前言 Front Matter

name
pause-detector
description
Detect long low-energy pauses using a local dynamic threshold on precomputed energy data (robust to volume changes across a lecture).

02 资源文件 1

03 SKILL.md 正文

Steps

  1. Decide where to begin pause detection:
    • Use --start-time <opening_end> to skip the non-teaching opening (where <opening_end> comes from silence-detector), otherwise use 0.
  2. Run the bundled pause detector from the workspace:
    python3 pause-detector/scripts/detect_pauses.py \
      --energies /path/to/energies.json \
      --output /path/to/pauses.json \
      --start-time <seconds> \
      --threshold-ratio 0.5 \
      --min-duration 2 \
      --window-size 30
    
  3. Tune parameters (correct semantics):
    • threshold_ratio: a second is “pause” when energy < local_avg * threshold_ratio.
      Higher ratio ⇒ higher cutoff ⇒ more seconds counted as pause (more aggressive removal).
      Lower ratio ⇒ fewer pauses detected (more conservative).
    • min_duration: higher ⇒ fewer segments (only longer pauses); lower ⇒ more segments (includes shorter pauses).
  4. Confirm segments look valid: numeric start < end, duration == end - start, and times are within the video duration.

Expected Result

A pauses.json containing a segments list of disjoint low-energy intervals (seconds) meeting the minimum duration.

04 同仓库更多 Skills