crowsetta.formats.seq.textgrid.parse.get_str_from_next_line

crowsetta.formats.seq.textgrid.parse.get_str_from_next_line#

crowsetta.formats.seq.textgrid.parse.get_str_from_next_line(fp: TextIO) str[source]#

Get next line from a text stream, search for a string as Praat writes them (with double quoting), and then return just that string.

Helper function used by parse_fp(), e.g., to parse text``s for ``Interval``s in ``IntervalTier``s or to parse ``text for ``PointTier``s.

Parameters:

fp (TextIO) – Python text stream from an open TextGrid file.

Returns:

val

Return type:

str