|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.endpoint.NonSpeechDataFilter
public class NonSpeechDataFilter
Given a sequence of Data, filters out the non-speech regions. The sequence of Data should have the speech and
non-speech regions marked out by the SpeechStartSignal and SpeechEndSignal, using the SpeechMarker
. Such a sequence of Data for an utterance should look like one of the following two:
In the first case, the data stream has only one speech region:
Figure 1: A data stream with only one speech region.
After filtering, the non-speech regions are removed, and becomes:
Figure 2: A
data stream with only on speech region after filtering.
Figure 3: A data stream with two speech
regions.
Figure 5: A data stream with two speech regions after filtering,
when mergeSpeechSegments is set to false.
Field Summary | |
---|---|
static java.lang.String |
PROP_MERGE_SPEECH_SEGMENTS
The Sphinx Property that controls whether to merge discontiguous speech segments (and the non-speech segments between them) in an utterance into one big segment (true), or to treat the individual speech segments as individual utterances (false). |
Constructor Summary | |
---|---|
NonSpeechDataFilter()
|
Method Summary | |
---|---|
Data |
getData()
Returns the next Data or Signal. |
void |
initialize()
Initializes this data processor |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor |
---|
getPredecessor, getTimer, setPredecessor, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_MERGE_SPEECH_SEGMENTS
Constructor Detail |
---|
public NonSpeechDataFilter()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class BaseDataProcessor
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public void initialize()
initialize
in interface DataProcessor
initialize
in class BaseDataProcessor
public Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processing error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |