emu.query {emu} | R Documentation |
Perform a query on an Emu speech database selecting segments for subsequent analysis. The return value is a segment list containing the labels, start and end times and utterance name of each token matching the query.
emu.query(template, pattern=NULL, query="")
template |
The name of the Emu database to query (in quotes) |
pattern |
A pattern matching utterances to be searched from the database |
query |
a valid Emu query |
The Emu query language is described in the Emu
documentation. template
must refer to a valid database template
on your system, ie. the template file name without the .tpl
extension.
An object of type emusegs
with one row per token matched by the
query and columns for the token label, start time, end time and
utterance name. This can be passed to emu.track
to extract
speech data corresponding to each token.
This function calls an external which are scripts via tcltk part of the Emu speech database system and so requires this system to be installed on your computer. See the Emu web site for details.
Steve Cassidy <Steve.Cassidy@mq.edu.au>
See the Emu documentation at: http://www.shlrc.mq.edu.au/emu
## assumes a database called demo is available on your system and that ## the Emu system is installed. data(vowlax) # find all Phonetic vowels in the database ## Not run: segs <- emu.query("demo", "*", "Phonetic=vowel") # display summary information on the segments found summary(segs) # get formant data at the midpoint and plot it ## Not run: data <- emu.track( segs, "fm", cut=0.5 ) eplot( data[,1:2], label( segs ), dopoints=TRUE )