Expand description
Rendering helpers for crate::voice::TranscriptEvent streams.
Two output formats are supported, both designed to stream — each event is flushed as soon as the backend emits it so a slow transcriber gives incremental feedback on stdout instead of buffering the full transcript.
Jsonl— oneserde_jsonline per event. Stable, machine-readable.Md— human-readable transcript. ConsecutiveFinalevents from the same speaker collapse into a single paragraph prefixed with[HH:MM:SS] **speaker**:(the**speaker**:prefix is omitted when no speaker is attached).
Lives under src/voice/ rather than src/cli/voice/ because the
voice review command in #804 will reuse render_markdown.
Partial and Endpoint events are skipped in markdown mode: the batch
backend in #801 emits no partials, and endpoint markers add no signal
to a reader-oriented transcript.
Enums§
- Output
Format - Output format selector. The CLI maps
--format md|jsonldirectly onto this; the default value is chosen at runtime bydetect_format.
Functions§
- detect_
format - Resolves the effective output format.
- render_
decisions_ md - Renders the
decisions.mdbody for avoice reviewpass. - render_
jsonl - Streams events as JSON Lines to
w, flushing after each event. - render_
markdown - Streams events as Markdown to
w. - render_
todos_ md - Renders the
todos.mdbody for avoice reviewpass.