Onair Check
onair_checkVerify a render before air or review with a PASS/FAIL verdict covering unplanned silence, source levels against the mix, and custom rule checks, with reasons and next steps.
Instructions
Measure a render before it goes on air or to review, in one verdict: PASS, or FAIL with each reason and what to do next. Three readings: (1) silence: no stretch of min_s s (3) or more under silence_db (-50 dBFS) in the mix, except the planned [[start_s, end_s], ...] windows (analyze_silence); (2) sources: each named source (track: after render(stems=True), or a file lined up with the mix, as a list or a {label: source} dict): its own rms and peak, how much of the mix it plays in, its level against the mix where it plays, and its share of the mix's energy. It fails when silent, or more than floor_db (-20 dB) under the mix where it plays; (3) rules: the caller's own check, a Python file, or a list of it and its arguments (run with this Python, never a shell or another program), run in the working directory with ISMAIL_CHECK_MIX set to the mix's path; a nonzero exit fails, and its last lines are shown. mix: render | a file path (no project needed for files). A set's or a video's code calls onair_gate, which raises on a fail unless force=True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mix | No | render | |
| min_s | No | ||
| rules | No | ||
| planned | No | ||
| project | No | ||
| sources | No | ||
| floor_db | No | ||
| silence_db | No | ||
| rules_timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |