pyeeg.features.alignment.TextGrid

class pyeeg.features.alignment.TextGrid(intervals: Dict[str, ~typing.List[~pyeeg.features.alignment.Interval]]=<factory>, start_time: float = 0.0, end_time: float = 0.0)

Represents a TextGrid file with multiple tiers.

Parameters:
  • intervals (dict of str -> list of Interval) – Mapping from tier name to the list of intervals in that tier. Defaults to an empty dict.

  • start_time (float) – Start time of the TextGrid in seconds. Default: 0.0.

  • end_time (float) – End time of the TextGrid in seconds. Default: 0.0.

Methods

TextGrid.get_phone_intervals()

Get the intervals of the phone (phoneme) tier.

TextGrid.get_tier(tier_name)

Get the intervals of a named tier.

TextGrid.get_word_intervals()

Get the intervals of the word tier.