edu.cmu.sphinx.frontend.util
Class VUMeterMonitor

java.lang.Object
  extended by edu.cmu.sphinx.frontend.BaseDataProcessor
      extended by edu.cmu.sphinx.frontend.util.VUMeterMonitor
All Implemented Interfaces:
DataProcessor, Configurable

public class VUMeterMonitor
extends BaseDataProcessor

A VU meter to be plugged into a front-end. Preferably this component should be plugged directly behind the DataBlocker in order to ensure that only equally sized blockes of meaningful length are used for RMS computation.

Because vu-monitoring makes sense only for online speech processing the vu-meter will be visible only if data source which preceeds it is a Microphone.

Author:
Holger Brandl

Constructor Summary
VUMeterMonitor()
           
 
Method Summary
 Data getData()
          Returns the processed Data output.
 javax.swing.JDialog getVuMeterDialog()
           
static void main(java.lang.String[] args)
          A little test-function which plugs a microphone directly into the vu-meter.
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, initialize, newProperties, setPredecessor, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VUMeterMonitor

public VUMeterMonitor()
Method Detail

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

getVuMeterDialog

public javax.swing.JDialog getVuMeterDialog()

main

public static void main(java.lang.String[] args)
                 throws DataProcessingException
A little test-function which plugs a microphone directly into the vu-meter.

Throws:
DataProcessingException