Helper function for converting Praat font styles such as italics, bold,
and small caps into expressions that can be read by base R plots.
Instead of using
this function directly, just use
praatpicture('my_sound_file', frames='TextGrid', tg_specialChar=TRUE)
.
tg_stylize(lab)
A list with elements of class expression
.
A string or vector of strings with labels from a TextGrid.
# Don't use directly
datapath <- system.file('extdata', package='praatpicture')
soundFile <- paste0(datapath, '/1.wav')
# With stylized text
praatpicture(soundFile, frames='TextGrid')
# Without stylized text
praatpicture(soundFile, frames='TextGrid', tg_specialChar=FALSE)
Run the code above in your browser using DataLab