alignment/manifest
JSON manifest writer — one manifest per dialogue directory.
Output format (per dialogue): { “dialogue_id”: “GAS0001”, “audio_file”: “GAS0001.mp3”, “transcript_file”: “GAS0001.txt”, “duration_s”: 565.2, “turn_count”: 75, “turns”: [{ “index”, “role”, “text”, “audio_path”, “audio_start_s”, “audio_end_s”, … }] }
Returns Result — file write failure is not silently ignored.
Values
pub fn write_manifest(
dialogue_id: String,
audio_file: String,
transcript_file: String,
duration_s: Float,
turns: List(aligner.AlignedTurn),
output_dir: String,
) -> Result(String, file_io.FileError)
Write manifest.json to output_dir. Returns the path on success.