Silence detector

From UCSB-NLP-Chang/Skill-Usage · View interactive version

Silence detector is an AI agent skill from the GitHub repository UCSB-NLP-Chang/Skill-Usage. Detect initial silence segments in audio/video using energy-based analysis. Use when you need to find low-energy periods at the start of recordings (title slides, setup time, pre-roll silence).

How to use this skill

Skill file

Silence Detector

Detects initial silence segments by analyzing pre-computed energy data. Finds the transition point from low-energy silence to higher-energy content.

Use Cases

Usage

python3 /root/.claude/skills/silence-detector/scripts/detect_silence.py \
    --energies /path/to/energies.json \
    --output /path/to/silence.json

Parameters

Output Format

{
  "method": "energy_threshold",
  "segments": [
    {"start": 0, "end": 120, "duration": 120}
  ],
  "total_segments": 1,
  "total_duration_seconds": 120,
  "parameters": {
    "threshold_multiplier": 1.5,
    "initial_window": 60,
    "smoothing_window": 30
  }
}

How It Works

  1. Load pre-computed energy data
  2. Calculate baseline from first N seconds (likely silent)
  3. Apply smoothing with moving average
  4. Find where smoothed energy exceeds baseline x multiplier

Dependencies

Example

# Detect initial silence from energy data
python3 /root/.claude/skills/silence-detector/scripts/detect_silence.py \
    --energies energies.json \
    --threshold-multiplier 1.5 \
    --output silence.json

# Result: Initial silence detected and saved to silence.json

Parameters Tuning

| Parameter | Lower Value | Higher Value |

|-----------|-------------|--------------|

| threshold_multiplier | More sensitive | More conservative |

| initial_window | Shorter baseline | Longer baseline |

| smoothing_window | Less smoothing | More smoothing |

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.