edu.cmu.sphinx.tools.live
Class LiveModeRecognizer

java.lang.Object
  extended by edu.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 java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
          SphinxProperty specifying the transcript file.
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 java.lang.String PROP_SKIP
          The SphinxProperty name for how many files to skip for every decode.
 
Constructor Summary
LiveModeRecognizer()
           
 
Method Summary
 void close()
          Do clean up
 void decode()
          Decodes the batch of audio files
static void main(java.lang.String[] argv)
          Main method of this BatchDecoder.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SKIP

@S4Integer(defaultValue=0)
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_RECOGNIZER

@S4Component(type=Recognizer.class)
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

@S4Component(type=ConcatFileDataSource.class)
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

@S4Boolean(defaultValue=false)
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_HYPOTHESIS_TRANSCRIPT

@S4String(defaultValue="hypothesis.txt")
public static final java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
SphinxProperty specifying the transcript file.

See Also:
Constant Field Values

PROP_ALIGN_INTERVAL

@S4Integer(defaultValue=-1)
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
Constructor Detail

LiveModeRecognizer

public LiveModeRecognizer()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

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.

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