public class BatchForcedAlignerRecognizer extends BatchNISTRecognizer
See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
User: Peter Wolf Date: Jan 9, 2006 Time: 5:35:54 PM
Utility for generating word segmentation by forced alignment
Given a CTL file that specifies a series of audio and coresponding correct transcripts, this utility creates a trivial grammar from the transcript, and runs the recognizer on the utterance. The output is words with beginning and end times.
See BatchNISTRecognizer for more information about the format of CTL and audio files.
BatchNISTRecognizer.CTLException, BatchNISTRecognizer.CTLIterator, BatchNISTRecognizer.CTLUtterance
Modifier and Type | Field and Description |
---|---|
BatchForcedAlignerGrammar |
bfaGrammar |
bitsPerSample, bytesPerFrame, channelCount, ctlFile, ctmFile, dataDir, framesPerSecond, PROP_BITS_PER_SAMPLE, PROP_CHANNEL_COUNT, PROP_CTL_FILE, PROP_CTM_FILE, PROP_DATA_DIR, PROP_FRAMES_PER_SECOND, PROP_REF_FILE, PROP_SAMPLES_PER_SECOND, refFile, samplesPerSecond
batchManager, cm, curBatchItem, inputDataProcessors, logger, name, PROP_COUNT, PROP_INPUT_DATA_PROCESSORS, PROP_RECOGNIZER, PROP_SKIP, PROP_TOTAL_BATCHES, PROP_USE_POOLED_BATCH_MANAGER, PROP_WHICH_BATCH, recognizer, skip, totalBatches, usePooledBatchManager, utteranceId, whichBatch
Constructor and Description |
---|
BatchForcedAlignerRecognizer() |
BatchForcedAlignerRecognizer(BatchForcedAlignerGrammar bfaGrammar,
Recognizer recognizer,
java.util.List<DataProcessor> inputDataProcessors,
java.lang.String ctlFile,
java.lang.String dataDir,
java.lang.String refFile,
java.lang.String ctmFile,
int bitsPerSample,
int samplesPerSecond,
int framesPerSecond,
int channelCount) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleResult(java.io.DataOutputStream out,
BatchNISTRecognizer.CTLUtterance utt,
Result result) |
static void |
main(java.lang.String[] argv) |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
protected void |
setInputStream(BatchNISTRecognizer.CTLUtterance utt) |
decode, hex2Binary
decode, recognize, setBatchFile, shell, start, stop
public BatchForcedAlignerGrammar bfaGrammar
public BatchForcedAlignerRecognizer(BatchForcedAlignerGrammar bfaGrammar, Recognizer recognizer, java.util.List<DataProcessor> inputDataProcessors, java.lang.String ctlFile, java.lang.String dataDir, java.lang.String refFile, java.lang.String ctmFile, int bitsPerSample, int samplesPerSecond, int framesPerSecond, int channelCount)
public BatchForcedAlignerRecognizer()
protected void setInputStream(BatchNISTRecognizer.CTLUtterance utt) throws java.io.IOException
setInputStream
in class BatchNISTRecognizer
java.io.IOException
protected void handleResult(java.io.DataOutputStream out, BatchNISTRecognizer.CTLUtterance utt, Result result) throws java.io.IOException
handleResult
in class BatchNISTRecognizer
java.io.IOException
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class BatchNISTRecognizer
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public static void main(java.lang.String[] argv)