ass_align_to_silence
Report audio silence intervals and suggested per-line timing shifts to align ASS subtitle lines to silence, without modifying the document.
Instructions
Report audio silence intervals and the per-line shifts they suggest.
This tool never modifies the document — it exists so an agent can look
before it leaps; :func:ass_align_lines_to_silence applies the same plan
when dry_run=False.
Args:
selection: lines to consider.
video: media file; defaults to the workspace video/audio.
noise_db: silence threshold in dBFS (passed to silencedetect).
min_silence_s: shortest silence to report.
doc_id: document id.
shift_only: None/"both" shift start and end together, "start"
moves only the start (shortening the line).
max_shift_ms: ignore suggestions longer than this.
Returns:
{"doc_id", "path", "noise_db", "min_silence_s", "shift_only", "max_shift_ms", "silences": [{"start_ms", "end_ms", "duration_ms"}], "suggestions": [{"index", "start_ms", "end_ms", "new_start_ms", "new_end_ms", "delta_ms", "silence", "reason"}], "count", "applied": False, "note"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | No | ||
| doc_id | No | ||
| noise_db | No | ||
| selection | No | ||
| shift_only | No | ||
| max_shift_ms | No | ||
| min_silence_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||