edu.cmu.sphinx.frontend.endpoint
Class NonSpeechDataFilter

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by edu.cmu.sphinx.frontend.endpoint.NonSpeechDataFilter
All Implemented Interfaces:
DataProcessor, Configurable

public class NonSpeechDataFilter
extends BaseDataProcessor

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.

Only one speech region

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.


Constructor Summary
NonSpeechDataFilter()
           
 
Method Summary
 Data getData()
          Returns the processed Data output.
 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
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonSpeechDataFilter

public NonSpeechDataFilter()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Overrides:
newProperties in class ConfigurableAdapter
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

initialize

public void initialize()
Initializes this data processor

Specified by:
initialize in interface DataProcessor
Overrides:
initialize in class BaseDataProcessor

getData

public Data getData()
             throws DataProcessingException
Description copied from class: BaseDataProcessor
Returns the processed Data output.

Specified by:
getData in interface DataProcessor
Specified by:
getData in class BaseDataProcessor
Returns:
an Data object that has been processed by this DataProcessor
Throws:
DataProcessingException - if a data processor error occurs