View source: R/concatenate_textgrids.R
concatenate_textgrids | R Documentation |
Creates a merged TextGrids from TextGrids files in a folder.
concatenate_textgrids(path, result_file_name = "concatenated")
path |
path to the directory with soundfiles. |
result_file_name |
name of the result and annotation files. |
no output
George Moroz <agricolamz@gmail.com>
# create two files in a temprary folder "test_folder"
t1 <- system.file("extdata", "test.TextGrid", package = "phonfieldwork")
t2 <- system.file("extdata", "post.TextGrid", package = "phonfieldwork")
tdir <- tempdir()
file.copy(c(t1, t2), tdir)
# here are two .wav files in a folder
list.files(tdir)
# [1] "post.TextGrid" "test.TextGrid" ...
# Concatenate all TextGrids from the folder into concatenated.TextGrid
concatenate_textgrids(path = tdir, result_file_name = "concatenated")
list.files(tdir)
# [1] "concatenated.TextGrid" "post.TextGrid" "test.TextGrid" ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.