Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CHAT2ELAN – CHAT to ELAN XML Conversion

Status: Current Last updated: 2026-05-27 10:20 EDT

Purpose

Converts CHAT files into ELAN annotation format (.eaf). The output is a valid ELAN XML file with time-aligned tiers and annotations derived from CHAT main tiers and their timing bullets.

See the CLAN manual for the original CHAT2ELAN command documentation.

Usage

chatter-clan chat2elan file.cha
chatter-clan chat2elan --media-extension wav file.cha

CLAN Equivalence

CLAN commandRust equivalent
chat2elan +e.wav file.chachatter-clan chat2elan file.cha

Options

OptionCLAN FlagDescription
--media-extension <EXT>+e.EXTInclude a MEDIA_DESCRIPTOR element referencing a media file with the same basename and the given extension

Without --media-extension, the output omits media references.

CLAN +-flag coverage audit

CHAT2ELAN is a converter: input CHAT, output ELAN XML (.eaf). Sources: OSX-CLAN/src/clan/Chat2Elan.cpp::usage, crates/talkbank-clan/src/converters/chat2elan.rs.

CHAT2ELAN-specific +-flags (from Chat2Elan.cpp::usage)

CLAN flagMeaningChatterStatusNotes
+eSMedia file name extension--media-extension <EXT>DoneCLAN: chat2elan.cpp:117 (case 'e'). Rewriter routes +eEXT → --media-extension EXT via per-chat2elan arm placed BEFORE the generic +e → --error arm (which is check-family-only but currently unscoped). Strips a leading dot if present: +e.wav and +ewav both produce --media-extension wav, because chatter’s --media-extension auto-prepends . whereas CLAN concatenates the user-provided suffix verbatim. Subprocess regression guard: legacy_chat2elan_e_routes_to_media_extension.

Audit summary: 1 Done, 0 Missing. Single-flag surface, mapped one-to-one.

Output

A standard-compliant EAF 3.0 XML file. Each CHAT speaker becomes an ELAN tier (using the full speaker code as tier ID). Utterances with timing bullets become time-aligned annotations. The time slot pool is derived from all utterance start/end timestamps.

Differences from CLAN

  • CLAN requires the +e flag to specify a media extension; the Rust version omits media references by default.
  • Uses typed AST traversal for utterance extraction rather than text parsing.
  • Generates standard-compliant EAF 3.0 XML.
  • Speaker codes are used directly as tier IDs (no truncation).