edu.cmu.sphinx.frontend
Class DataStartSignal

java.lang.Object
  extended by edu.cmu.sphinx.frontend.Signal
      extended by edu.cmu.sphinx.frontend.DataStartSignal
All Implemented Interfaces:
Data, java.io.Serializable

public class DataStartSignal
extends Signal

A signal that indicates the start of data.

See Also:
Data, DataProcessor, Signal, Serialized Form

Field Summary
static java.lang.String VAD_TAGGED_FEAT_STREAM
          A constant that is attached to all DataStartSignal passing this component.
 
Constructor Summary
DataStartSignal(int sampleRate)
          Constructs a DataStartSignal.
DataStartSignal(int sampleRate, boolean tagAsVadStream)
          Constructs a DataStartSignal at the given time.
DataStartSignal(int sampleRate, long time)
          Constructs a DataStartSignal at the given time.
DataStartSignal(int sampleRate, long time, boolean tagAsVadStream)
          Constructs a DataStartSignal at the given time.
 
Method Summary
 int getSampleRate()
           
static void tagAsVadStream(DataStartSignal dsSignal)
           
 java.lang.String toString()
          Returns the string "DataStartSignal".
static void untagAsVadStream(DataStartSignal dsSignal)
           
 
Methods inherited from class edu.cmu.sphinx.frontend.Signal
getProps, getTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VAD_TAGGED_FEAT_STREAM

public static final java.lang.String VAD_TAGGED_FEAT_STREAM
A constant that is attached to all DataStartSignal passing this component. This allows subsequent DataProcessors (like the Scorer) to adapt their processsing behavior.

See Also:
Constant Field Values
Constructor Detail

DataStartSignal

public DataStartSignal(int sampleRate)
Constructs a DataStartSignal.

Parameters:
sampleRate - The sampling rate of the started data stream.

DataStartSignal

public DataStartSignal(int sampleRate,
                       long time)
Constructs a DataStartSignal at the given time.

Parameters:
sampleRate - the sampling rate of the started data stream.
time - the time this DataStartSignal is created

DataStartSignal

public DataStartSignal(int sampleRate,
                       boolean tagAsVadStream)
Constructs a DataStartSignal at the given time.

Parameters:
sampleRate - the sampling rate of the started data stream.
tagAsVadStream - true if this feature stream will contain vad-signals

DataStartSignal

public DataStartSignal(int sampleRate,
                       long time,
                       boolean tagAsVadStream)
Constructs a DataStartSignal at the given time.

Parameters:
sampleRate - the sampling rate of the started data stream.
time - the time this DataStartSignal is created
tagAsVadStream - true if this feature stream will contain vad-signals
Method Detail

toString

public java.lang.String toString()
Returns the string "DataStartSignal".

Overrides:
toString in class java.lang.Object
Returns:
the string "DataStartSignal"

getSampleRate

public int getSampleRate()
Returns:
the sampling rate of the started data stream.

tagAsVadStream

public static void tagAsVadStream(DataStartSignal dsSignal)

untagAsVadStream

public static void untagAsVadStream(DataStartSignal dsSignal)