|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.tools.live.LiveModeRecognizer
public class LiveModeRecognizer
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 |
---|
@S4Integer(defaultValue=0) public static final java.lang.String PROP_SKIP
@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4Component(type=ConcatFileDataSource.class) public static final java.lang.String PROP_INPUT_SOURCE
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SHOW_GAP_INSERTIONS
@S4String(defaultValue="hypothesis.txt") public static final java.lang.String PROP_HYPOTHESIS_TRANSCRIPT
@S4Integer(defaultValue=-1) public static final java.lang.String PROP_ALIGN_INTERVAL
Constructor Detail |
---|
public LiveModeRecognizer()
Method Detail |
---|
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 void decode() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] argv)
argv
- argv[0] : config file argv[1] : a file listing all the audio files to decode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |