| read_textgrid | R Documentation |
Read a textgrid file into a tibble
read_textgrid(path, file = NULL, encoding = NULL)
read_textgrid_lines(lines, file = NULL)
legacy_read_textgrid(path, file = NULL, encoding = NULL)
legacy_read_textgrid_lines(lines, file = NULL)
path |
a path to a textgrid |
file |
an optional value to use for the |
encoding |
the encoding of the textgrid. The default value |
lines |
alternatively, the lines of a textgrid file |
The legacy_read_textgrid functions are the original textgrid
parsers provided by the package. They assume that the TextGrid file is a
"long" format textgrid; this is the default format used by "Save a text
file..." in Praat.
The current read_textgrid() functions are more
flexible and can read in "short" format textgrids and textgrids with
comments.
See https://www.fon.hum.uva.nl/praat/manual/TextGrid_file_formats.html
for a description of the textgrid file format. Note that this package does
not strictly adhere to format as described in this document. For example,
the document says that numbers should be freestanding (surrounded by spaces
or string boundaries), but Praat.exe can handle malformed numbers like
100ms. Therefore, we tried to implement a parser that matched what Praat
actually handles.
a tibble with one row per textgrid annotation
tg <- system.file("Mary_John_bell.TextGrid", package = "readtextgrid")
read_textgrid(tg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.