alignment/dialogue_types

Generic dialogue types — reused across any dialogue/audio pipeline.

This module is the ONLY place the alignment tool defines Turn/Role. It replaces the previous dependency on speak_engl/content. These are generic dialogue concepts, not speak_engl domain types.

Types

Who spoke a line in a doctor-patient (or any two-role) dialogue.

pub type Role {
  Doctor
  Patient
}

Constructors

  • Doctor
  • Patient

One spoken line — turn index, who spoke, the text.

pub type Turn {
  Turn(index: Int, role: Role, text: String)
}

Constructors

  • Turn(index: Int, role: Role, text: String)

Values

pub fn role_letter(role: Role) -> String

Single-letter code for a role — “D” or “P”.

pub fn turn_filename(index: Int) -> String

Zero-padded mp3 filename for a turn — e.g. “turn_0042.mp3”.

✨ Search Document