emu.query {emu}R Documentation

Query an Emu Database

Description

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.

Usage

emu.query(template, pattern=NULL, query="")

Arguments

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

Details

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.

Value

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.

Note

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.

Author(s)

Steve Cassidy <Steve.Cassidy@mq.edu.au>

References

See the Emu documentation at: http://www.shlrc.mq.edu.au/emu

See Also

emu.track

Examples


## 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 )


[Package emu version 4.0 Index]