inpro.pitch.notifier
Class TEDviewNotifier
java.lang.Object
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
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 |
tedAdapter
TedAdapter tedAdapter
TEDviewNotifier
public TEDviewNotifier()
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 resultpower
- average power per sample in the frame
param rbcpower average power per sample after filtering the frame with a revised B-curve filtervoicing
- whether this frame is voicedpitch
- 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