edu.cmu.sphinx.decoder
Class Decoder

java.lang.Object
  extended by edu.cmu.sphinx.decoder.AbstractDecoder
      extended by edu.cmu.sphinx.decoder.Decoder
All Implemented Interfaces:
ResultProducer, Configurable

public class Decoder
extends AbstractDecoder

The primary decoder class


Field Summary
static java.lang.String PROP_FEATURE_BLOCK_SIZE
          The sphinx property name for the number of features to recognize at once.
 
Fields inherited from class edu.cmu.sphinx.decoder.AbstractDecoder
AUTO_ALLOCATE, FIRE_NON_FINAL_RESULTS, PROP_RESULT_LISTENERS, PROP_SEARCH_MANAGER
 
Constructor Summary
Decoder()
           
 
Method Summary
 Result decode(java.lang.String referenceText)
          Decode frames until recognition is complete.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 
Methods inherited from class edu.cmu.sphinx.decoder.AbstractDecoder
addResultListener, allocate, deallocate, removeResultListener, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_FEATURE_BLOCK_SIZE

@S4Integer(defaultValue=100000)
public static final java.lang.String PROP_FEATURE_BLOCK_SIZE
The sphinx property name for the number of features to recognize at once.

See Also:
Constant Field Values
Constructor Detail

Decoder

public Decoder()
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
Overrides:
newProperties in class AbstractDecoder
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

decode

public Result decode(java.lang.String referenceText)
Decode frames until recognition is complete.

Specified by:
decode in class AbstractDecoder
Parameters:
referenceText - the reference text (or null)
Returns:
a result