Extracts vowels from larger sounds using information from matching TextGrids.
extractvowels( tgpath = NA, sndpath = NA, outputpath = NA, segmenttier = 1, wordtier = NA, commenttiers = NA, omittier = NA, stress = c(0, 1, 2), wordstoskip = NA, write = TRUE, encoding = "UTF-8" )
tgpath | a path or vector of paths to textgrid files. |
---|---|
sndpath | a path or vector of paths to wav files. |
outputpath | a path to the folder where you want data to go. If NA, nothing is written out. If "working" it will output in a folder called "output" in your working directory. |
segmenttier | the name of the tier containing segmental information used for extraction. |
wordtier | the name of a tier containing information about words (optional). |
commenttiers | a vector containing names of tiers with comments you wish to extract (optional). |
omittier | the name of a tier indicating which segments you wish to skip (optional). |
stress | a vector contianing labels you may have used to mark stress. |
wordstoskip | a vector containing any words you do not want to extract vowels from. |
write | if TRUE, 'sounds.RDS' and 'file_information.RDS' are saved to the working directory. |
encoding | --. |
--.
if (FALSE) { tgpath = "tuvesamisol.TextGrid" tgpath = "WS005-Melissa.TextGrid" output = extractvowels (tgpath, stress = NA) output = extractvowels (tgpath, wordtier=NA) output = extractvowels (tgpath, wordtier=2) }