parselmouth.TextGrid#
- class parselmouth.TextGrid#
Bases:
Function
Methods
Read a file into a
parselmouth.Data
object.Attributes
- class FileFormat#
Bases:
pybind11_object
- __index__(self: parselmouth.Data.FileFormat) int #
- __init__(self: parselmouth.Data.FileFormat, value: int) None #
- __init__(self: parselmouth.Data.FileFormat, arg0: str) None
- __int__(self: parselmouth.Data.FileFormat) int #
- __new__(**kwargs)#
- __str__()#
name(self: handle) -> str
- BINARY = <FileFormat.BINARY: 2>#
- SHORT_TEXT = <FileFormat.SHORT_TEXT: 1>#
- TEXT = <FileFormat.TEXT: 0>#
- property name#
- property value#
- __copy__(self: parselmouth.Data) parselmouth.Data #
- __deepcopy__(self: parselmouth.Data, memo: dict) parselmouth.Data #
- __eq__(self: parselmouth.Data, other: parselmouth.Data) bool #
- __init__(self: parselmouth.TextGrid, start_time: float, end_time: float, tier_names: str, point_tier_names: str) None #
- __init__(self: parselmouth.TextGrid, start_time: float, end_time: float, tier_names: List[str] = [], point_tier_names: List[str] = []) None
- __init__(self: parselmouth.TextGrid, tgt_text_grid: tgt.core.TextGrid) None
- __ne__(self: parselmouth.Data, other: parselmouth.Data) bool #
- __new__(**kwargs)#
- __str__(self: parselmouth.Thing) str #
- copy(self: parselmouth.Data) parselmouth.Data #
- static from_tgt(tgt_text_grid: tgt.core.TextGrid) parselmouth.TextGrid #
- info(self: parselmouth.Thing) str #
- static read(file_path: str) parselmouth.Data #
Read a file into a
parselmouth.Data
object.- Parameters:
file_path (str) – The path of the file on disk to read.
- Returns:
The Praat Data object that was read.
- Return type:
See also
- save(self: parselmouth.Data, file_path: str, format: parselmouth.Data.FileFormat = <FileFormat.TEXT: 0>) None #
- save_as_binary_file(self: parselmouth.Data, file_path: str) None #
- save_as_short_text_file(self: parselmouth.Data, file_path: str) None #
- save_as_text_file(self: parselmouth.Data, file_path: str) None #
- scale_x_by(self: parselmouth.Function, scale: Positive[float]) None #
- scale_x_to(self: parselmouth.Function, new_xmin: float, new_xmax: float) None #
- shift_x_by(self: parselmouth.Function, shift: float) None #
- shift_x_to(self: parselmouth.Function, x: float, new_x: float) None #
- to_tgt(self: parselmouth.TextGrid, *, include_empty_intervals: bool = False) tgt.core.TextGrid #
- __hash__ = None#
- property class_name#
- property full_name#
- property name#
- property xmax#
- property xmin#
- property xrange#