Render a waveform image around a chapter boundary
audiobook_render_boundary_waveformRender a waveform snapshot centered on a chapter boundary to visually confirm whether the silence gap aligns; an off-center or missing gap signals that the boundary should be patched.
Instructions
Render a PNG waveform snapshot centered on a chapter's current recorded boundary (or on center_override_seconds, e.g. a candidate gap surfaced by audiobook_inspect_chapter_boundary). A clean cut shows an obvious gap centered in the image with speech clusters on both sides; if the gap looks off-center or absent, the boundary likely needs audiobook_patch_chapter_boundary.
Args: params (RenderWaveformInput): - job_id (str), chapter_index (int, 1-based). - half_window_seconds (float): half-width of the rendered window (default 8). - center_override_seconds (Optional[float]): render around this timestamp instead of the recorded boundary.
Returns: Image: a PNG waveform image.
Error Handling: - Raises a clear error if chapter_index hasn't been aligned yet and no center_override_seconds was given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |