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
- 脚本scripts/detect_pauses.py3.3 KB
03 SKILL.md 正文
Steps
- Decide where to begin pause detection:
- Use
--start-time <opening_end>to skip the non-teaching opening (where<opening_end>comes fromsilence-detector), otherwise use0.
- Use
- 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 - Tune parameters (correct semantics):
threshold_ratio: a second is “pause” whenenergy < 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).
- 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
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms