edu.cmu.sphinx.tools.live
Class LiveModeRecognizer

java.lang.Object
  extended byedu.cmu.sphinx.tools.live.LiveModeRecognizer
All Implemented Interfaces:
Configurable

public class LiveModeRecognizer
extends java.lang.Object
implements Configurable

Decodes a batch file containing a list of files to decode. The files can be either audio files or cepstral files, but defaults to audio files.


Field Summary
static java.lang.String PROP_ALIGN_INTERVAL
          SphinxProperty specifying the number of files to decode before alignment is performed.
static int PROP_ALIGN_INTERVAL_DEFAULT
          The default value of PROP_ALIGN_INTERVAL.
static java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
          SphinxProperty specifying the transcript file.
static java.lang.String PROP_HYPOTHESIS_TRANSCRIPT_DEFAULT
          The default value of PROP_TRANSCRIPT.
static java.lang.String PROP_INPUT_SOURCE
          The Sphinx property that specifies the source of the transcript
static java.lang.String PROP_RECOGNIZER
          The Sphinx property that specifies the recognizer to use
static java.lang.String PROP_SHOW_GAP_INSERTIONS
          SphinxProperty specifying whether to print out the gap insertion errors.
static boolean PROP_SHOW_GAP_INSERTIONS_DEFAULT
          Default value for PROP_SHOW_GAP_INSERTIONS.
static java.lang.String PROP_SKIP
          The SphinxProperty name for how many files to skip for every decode.
static int PROP_SKIP_DEFAULT
          The default value for the property PROP_SKIP.
 
Constructor Summary
LiveModeRecognizer()
           
 
Method Summary
 void close()
          Do clean up
 void decode()
          Decodes the batch of audio files
 java.lang.String getName()
          Retrieves the name for this configurable component
static void main(java.lang.String[] argv)
          Main method of this BatchDecoder.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component has new data.
 void register(java.lang.String name, Registry registry)
          Register my properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SKIP

public static final java.lang.String PROP_SKIP
The SphinxProperty name for how many files to skip for every decode.

See Also:
Constant Field Values

PROP_SKIP_DEFAULT

public static final int PROP_SKIP_DEFAULT
The default value for the property PROP_SKIP.

See Also:
Constant Field Values

PROP_RECOGNIZER

public static final java.lang.String PROP_RECOGNIZER
The Sphinx property that specifies the recognizer to use

See Also:
Constant Field Values

PROP_INPUT_SOURCE

public static final java.lang.String PROP_INPUT_SOURCE
The Sphinx property that specifies the source of the transcript

See Also:
Constant Field Values

PROP_SHOW_GAP_INSERTIONS

public static final java.lang.String PROP_SHOW_GAP_INSERTIONS
SphinxProperty specifying whether to print out the gap insertion errors.

See Also:
Constant Field Values

PROP_SHOW_GAP_INSERTIONS_DEFAULT

public static final boolean PROP_SHOW_GAP_INSERTIONS_DEFAULT
Default value for PROP_SHOW_GAP_INSERTIONS.

See Also:
Constant Field Values

PROP_HYPOTHESIS_TRANSCRIPT

public static final java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
SphinxProperty specifying the transcript file.

See Also:
Constant Field Values

PROP_HYPOTHESIS_TRANSCRIPT_DEFAULT

public static final java.lang.String PROP_HYPOTHESIS_TRANSCRIPT_DEFAULT
The default value of PROP_TRANSCRIPT.

See Also:
Constant Field Values

PROP_ALIGN_INTERVAL

public static final java.lang.String PROP_ALIGN_INTERVAL
SphinxProperty specifying the number of files to decode before alignment is performed.

See Also:
Constant Field Values

PROP_ALIGN_INTERVAL_DEFAULT

public static final int PROP_ALIGN_INTERVAL_DEFAULT
The default value of PROP_ALIGN_INTERVAL.

See Also:
Constant Field Values
Constructor Detail

LiveModeRecognizer

public LiveModeRecognizer()
Method Detail

register

public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Description copied from interface: Configurable
Register my properties. This method is called once early in the time of the component, shortly after the component is constructed. This component should register any configuration properties that it needs to register. If this configurable extends another configurable, super.register should also be called

Specified by:
register in interface Configurable
Parameters:
name - the name of the component
registry - the registry for this component
Throws:
PropertyException

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component has new data. The component should first validate the data. If it is bad the component should return false. If the data is good, the component should record the the data internally and return true.

Specified by:
newProperties in interface Configurable
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

getName

public java.lang.String getName()
Description copied from interface: Configurable
Retrieves the name for this configurable component

Specified by:
getName in interface Configurable
Returns:
the name

decode

public void decode()
            throws java.io.IOException
Decodes the batch of audio files

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Do clean up

Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
Main method of this BatchDecoder.

Parameters:
argv - argv[0] : config file argv[1] : a file listing all the audio files to decode