View source: R/tg_createTier.R
| tg_createTier | R Documentation | 
Function for creating TextGrid tiers called by make_TextGrid. Instead of using this function directly, use make_TextGrid.
tg_createTier(
  sound,
  tierName,
  start = 0,
  end = 0,
  show = "wave",
  channel = 1,
  sampa2ipa = FALSE
)
sound | 
 String giving the file name of a sound file with the .wav extension.  | 
tierName | 
 String giving the name of the tier.  | 
start | 
 Start time (in seconds) of desired plotted area. Default is   | 
end | 
 End time (in seconds) of desired plotted area. Default is   | 
show | 
 String giving the type of plot to show. Default is   | 
channel | 
 Number indicating which audio channel to show. Default is   | 
sampa2ipa | 
 Logical; should SAMPA transcriptions be converted to IPA?
Default is   | 
A list object identical to a single tier created by
rPraat::tg.read() when
loading TextGrid objects into R.
## Not run: 
# Don't use directly
datapath <- system.file('extdata', package='praatpicture')
soundFile <- paste0(datapath, '/2.wav')
tg <- make_TextGrid(soundFile, tierNames='Mary')
# Follow the steps shown in the console
praatpicture(soundFile, tg_obj=tg)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.