|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.Decoder
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. |
static int |
PROP_FEATURE_BLOCK_SIZE_DEFAULT
The default value of the property PROP_FEATURE_BLOCK_SIZE. |
static java.lang.String |
PROP_SEARCH_MANAGER
The sphinx property name for the name of the search manager to use |
Constructor Summary | |
Decoder()
|
Method Summary | |
void |
addResultListener(ResultListener resultListener)
Adds a result listener to this recognizer. |
void |
allocate()
Allocate resources necessary for decoding |
void |
deallocate()
Deallocate resources |
Result |
decode(java.lang.String referenceText)
Decode frames until recognition is complete |
java.lang.String |
getName()
Retrieves the name for this configurable component |
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. |
void |
removeResultListener(ResultListener resultListener)
Removes a previously added result listener. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_FEATURE_BLOCK_SIZE
public static final int PROP_FEATURE_BLOCK_SIZE_DEFAULT
public static final java.lang.String PROP_SEARCH_MANAGER
Constructor Detail |
public Decoder()
Method Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
name
- the name of the componentregistry
- the registry for this component
PropertyException
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public java.lang.String getName()
Configurable
getName
in interface Configurable
public Result decode(java.lang.String referenceText)
referenceText
- the reference text (or null)
public void allocate() throws java.io.IOException
java.io.IOException
public void deallocate()
public void addResultListener(ResultListener resultListener)
resultListener
- the listener to addpublic void removeResultListener(ResultListener resultListener)
resultListener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |