Skip to content

Readers

transcript_indexer.readers

UnsupportedFormatError

Bases: Exception

No registered reader matched the given path.

Source code in src/transcript_indexer/readers/__init__.py
class UnsupportedFormatError(Exception):
    """No registered reader matched the given path."""

MalformedSourceError

Bases: Exception

A reader matched the path but failed to parse its contents.

Source code in src/transcript_indexer/readers/__init__.py
class MalformedSourceError(Exception):
    """A reader matched the path but failed to parse its contents."""

    def __init__(self, path: Path, reason: str) -> None:
        super().__init__(f"{path}: {reason}")
        self.path = path
        self.reason = reason

transcript_indexer.readers.otter

Reader for Otter-format speaker-turn transcripts.

Filename: YYYYMMDD HHMM - title.txt Turn header: <speaker> <[H:]MM:SS> (exactly two spaces before the timestamp, optional trailing whitespace), followed by one or more body lines, terminated by a blank line. Blank line between turns.