FINDPHONE(1SP)

NAME
findphone - find phonemes by context

SYNOPSIS
findphone dbname [options] search_pattern
findphone -i

DESCRIPTION
findphone performs a context sensitive search of segments (such as phonemes) in dbname. The waveforms of the found segments are extracted, concatenated, and placed in dbname.adc and the labels are placed in dbname.lola unless another filename is specified. The file form.lola is a Lola file that contains the names of the files in which the segments where found. The labels in the Lola file are the file names. The segments are separated by a default 60ms pause.

The first form of findphone is the command line driven version. dbname is the name of the indexed database; all other options are specified via command line options.

The second form of findphone is an interactive command line interface. If the first option to findphone is -i then the interactive mode is used; if the -i option is included elsewhere in the command line, an error is returned.

findphone works on databases which have been indexed with buildindex(1SP).

OPTIONS

-count number
    Saves the number of random segments. Defaults to saving all segments found with findphone .

-i  Turns on the interactive mode of findphone. Must be the first option to take affect.

-from file
    Sets the from output file name. Defaults to from.lola

-lola file
    Sets the lola output file name. Defaults to dbname.lola.

-nowave
    No waveform file is created.

-pause number
    Sets the pause in milliseconds between the found phonemes. Defaults to 60ms.

-post
    Saves the segment occuring after the target segment.

-pre
    Saves the segment occuring before the target segment.

-seq number
    Used with -count to save a sequence of segments. number specifies the starting point and -count sets how many to save. The sequences number start at 0. -count must be used with -seq.

-wave file
    Sets the waveform output file name. Defaults to dbname.adc.

SEARCH PATTERN
The search pattern consist of three parts separated by commas: the prior context, target segment(s), and post context. Each part consists of a list of segments, separated by white space.

If the prior context or post context is set to the wildcard character, `-', then all segments are matched for that part.

INTERACIVE MODE
findphone enters interactive mode when invoked with the -i option. The interactive commands are similar to the command line options.

count number
    Saves number of random phonemes. Defaults to saving all phonemes in the output file.

database dbname
    Sets the database name.

h   List available commands.

?   Same as h.

help [command]
    Display short description of command. If no argument is given then the descriptions of all the commands are displayed.

from file
    Sets the from output file name. Defaults to from.lola.

lola file
    Sets the lola output file name. Defaults to dbname.lola.

pause number
    Sets the pause in milliseconds between the found segments. Defaults to 60ms.

post
    Toggles the saving of the post context segment waveform.

pre Toggles the saving of the prior context segment waveform

quit
    Exit findphone.

search pattern
    Performs a search using the pattern pattern on the current database with the current parameters. See SEARCH PATTERN for a description of pattern.

show [ parameter ]
    Displays the current setting of parameter. If no option is given all parameters are displayed.

wave file
    Sets the waveform output file name. Defaults to dbname.adc.

EXAMPLES

To find all ax's in database say_lname:

    % findphone say_lname -,ax,-

To find all p's that are preceded by a m, in database say_home and save the waveform in tmp.adc:

    % findphone say_home -wave tmp.adc m, p,-

Find all ix dx's preceded by gx, el, and g and followed by hh, r, and sh and save the prior and post context segments:

    % findphone say_home -post -pre gx el g,ix dx, r hh sh

SEE ALSO
buildindex(1SP)

BUGS
Should have an option to set which directory to look in for database configuration files.

AUTHORS
Center for Spoken Language Understanding
Department of Computer Science and Engineering
Oregon Graduate Institute of Science & Technology