makelab {emu}R Documentation

Write out ESPS-style label files

Description

Writes out separate ESPS-label files for each utterance to a specified directory.

Usage

makelab (vectimes, uttname, dir, extn = "xlab", labels = NULL) 

Arguments

vectimes a vector of times
uttname a character vector of the same length as vectimes giving the utterance name associated with each element of vectimes
dir a character specifying the directory
extn a character specifying the extension of the resulting files. Defaults to xlab
labels either a single character vector or a character vector the same length as vectimes. Defaults to "T"

Value

ESPS-style label files are written out to the directory of the user's choice. One ESPS-label file is created for each utterance containing all time values for that utterance.

Author(s)

Jonathan Harrington

Examples

   #first two segments (for the whole example) of segmentlist vowlax 
   vowlax[1:2,]

   #format track of vowlax
   vowlax.fdat[1:2,]

   #Formant values of the midpoint of the segment
   vowlax.fdat.5 = dcut(vowlax.fdat,0.5,prop=TRUE)

   #the time marks of the midpoint of the segment
   times = vowlax.fdat.5[1:2,1]
   times

   #utterance names to the segments
   utts = utt(vowlax[1:2,])
   utts 

   #the path to save the label files to "." is the RHOME Directory
   path = "."

   #write the label files to path
   ## Not run: makelab(times, utts, path, labels="T")

   #the first two segments are from the same utterance,
   #thus one label file was created in the R_HOME directory

[Package emu version 4.0 Index]