Sautrela

edu.gtts.sautrela.sp
Class ShiftedDelta

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.sp.ShiftedDelta
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class ShiftedDelta
extends AbstractDataProcessor

Shifted Delta. Stacked delta features computed across multiple speech frames. The SDC features are specified by a set of 4 parameters, n, d, p and k, where n is the input feature dimension to be used, d represents the time advance and delay for the delta computation, k is the number of blocks whose delta coefficients are concatenated to form the final feature vector, and P is the time shift between consecutive blocks.

Author:
Mireia Diez
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
ShiftedDelta()
           
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 int getD()
          Getter for property d.
 int getK()
          Getter for property k.
 int getN()
          Getter for property n.
 int getP()
          Getter for property p.
 boolean isFeaturePrefixed()
          Getter for property featurePrefixed.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Data is pulled from imput buffer, processed and pushed into the output buffer.
 void setD(int d)
          Setter for property d.
 void setFeaturePrefixed(boolean featurePrefixed)
          Setter for property featurePrefixed.
 void setK(int k)
          Setter for property k.
 void setN(int n)
          Setter for property n.
 void setP(int p)
          Setter for property p.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShiftedDelta

public ShiftedDelta()
Method Detail

isFeaturePrefixed

public boolean isFeaturePrefixed()
Getter for property featurePrefixed.

Returns:
If set to true, static features are prefixed to the output data.

setFeaturePrefixed

public void setFeaturePrefixed(boolean featurePrefixed)
Setter for property featurePrefixed.

Parameters:
featurePrefixed - New value for property featurePrefixed. If set to true, static features are prefixed to the output data.

getN

public int getN()
Getter for property n.

Returns:
The input feature dimension to be used.

setN

public void setN(int n)
Setter for property n.

Parameters:
n - New value for the input feature dimension to be used.

getD

public int getD()
Getter for property d.

Returns:
The time advance and delay for the delta computation.

setD

public void setD(int d)
Setter for property d.

Parameters:
d - New value for the time advance and delay for the delta computation.

getP

public int getP()
Getter for property p.

Returns:
The time shift between consecutive blocks.

setP

public void setP(int p)
Setter for property p.

Parameters:
p - New value for the time shift between consecutive blocks.

getK

public int getK()
Getter for property k.

Returns:
The number of blocks whose delta coefficients are concatenated to form the final feature vector.

setK

public void setK(int k)
Setter for property k.

Parameters:
k - New value for the number of blocks whose delta coefficients are concatenated to form the final feature vector.

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Description copied from interface: DataProcessor
Data is pulled from imput buffer, processed and pushed into the output buffer. Processing mus finish as sooan as a CloseData is received.

Parameters:
in - Input Buffer
out - Output Buffer
Throws:
DataProcessorException

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela