inpro.pitch.notifier
Class TEDviewNotifier

java.lang.Object
  extended by inpro.pitch.notifier.TEDviewNotifier
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, SignalFeatureListener, java.util.EventListener

public class TEDviewNotifier
extends java.lang.Object
implements SignalFeatureListener


Field Summary
(package private)  TedAdapter tedAdapter
           
 
Constructor Summary
TEDviewNotifier()
           
 
Method Summary
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void newSignalFeatures(int frame, double power, boolean voicing, double pitch)
          Method called when a new set of signal features is available
 void reset()
           
private  void send(int frame, boolean voicing, double pitch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tedAdapter

TedAdapter tedAdapter
Constructor Detail

TEDviewNotifier

public TEDviewNotifier()
Method Detail

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Throws:
edu.cmu.sphinx.util.props.PropertyException

newSignalFeatures

public void newSignalFeatures(int frame,
                              double power,
                              boolean voicing,
                              double pitch)
Description copied from interface: SignalFeatureListener
Method called when a new set of signal features is available

Specified by:
newSignalFeatures in interface SignalFeatureListener
Parameters:
frame - the frame number for this result
power - average power per sample in the frame param rbcpower average power per sample after filtering the frame with a revised B-curve filter
voicing - whether this frame is voiced
pitch - pitch for this frame in cent relative to 100 Hz

send

private void send(int frame,
                  boolean voicing,
                  double pitch)

reset

public void reset()
Specified by:
reset in interface edu.cmu.sphinx.instrumentation.Resetable