trftools.TextGrid
- class trftools.TextGrid(realizations, tmin=0.0, tstep=0.001, n_samples=None, name=None)
TextGrid representation that associates phonemes with words
- Parameters:
realizations (List[Realization]) – The realizations that constitute the TextGrid.
tmin (float) – The start time when converting the TextGrid to a uniform time series.
tstep (float) – The time step when converting the TextGrid to a uniform time series.
n_samples (int) – The number of samples when converting the TextGrid to a uniform time series.
name (str) – Name for the TextGrid.
Notes
Load an existing
*.TextGridfile usingTextGrid.from_file().
Methods
|
Align |
|
Convert NUTS of categories to binary category x time array |
|
Concatenate two TextGrid instances |
|
Load |
|
Event boundary indexes (in sample) |
|
Replace each phoneme from |
|
Merge two realizations whenever |
Merge consecutive silence realizations |
|
|
Print text with pronunciation |
|
Split words with apostrophe |
|
Split a realization into two separate realizations |
Remove stress digits from all phones ( |
|
|
fmtxt.Table representation |
|