|
|||||||||
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.ExcessiveNonSpeechPruner
public class ExcessiveNonSpeechPruner
Removes excessive non-speech-segments from a speech stream. Compared with NonSpeechDatatFilter
this
component does not remove all non-speech frames. It just reduces the non-speech parts to a user defined length.
SpeechMarker
,
NonSpeechDataFilter
Field Summary | |
---|---|
static int |
PROP_MAX_NON_SPEECH_TIME_DEFAULT
The default value of PROP_MAX_NON_SPEECH_TIME. |
static java.lang.String |
PROP_MAX_NON_SPEECH_TIME_MS
The Sphinx Property for the maximum amount of (subsequent) none-speech time (in ms) to be preserved in the speech stream. |
Constructor Summary | |
---|---|
ExcessiveNonSpeechPruner()
|
Method Summary | |
---|---|
int |
getAudioTime(Data data)
Returns the amount of audio data in milliseconds in the given SpeechClassifiedData object. |
Data |
getData()
Returns the processed Data output. |
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, initialize, setPredecessor, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@S4Integer(defaultValue=2147483647) public static final java.lang.String PROP_MAX_NON_SPEECH_TIME_MS
public static final int PROP_MAX_NON_SPEECH_TIME_DEFAULT
Constructor Detail |
---|
public ExcessiveNonSpeechPruner()
Method Detail |
---|
public Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processor error occurspublic int getAudioTime(Data data)
data
- the SpeechClassifiedData object
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |