inpro.gui.util
Class SpeechStateVisualizer

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by inpro.gui.util.SpeechStateVisualizer
All Implemented Interfaces:
edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.util.props.Configurable

public class SpeechStateVisualizer
extends edu.cmu.sphinx.frontend.BaseDataProcessor


Nested Class Summary
private  class SpeechStateVisualizer.FourStateJLabel
           
 
Field Summary
(package private)  javax.swing.JFrame f
           
(package private)  boolean isRecording
           
static java.lang.String PROP_SHOW_WINDOW
           
static java.lang.String PROP_STYLE
           
(package private)  javax.swing.JToggleButton recordButton
           
(package private)  SpeechStateVisualizer.FourStateJLabel speechIndicator
           
(package private)  edu.cmu.sphinx.util.props.Configurable styleResource
           
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
SpeechStateVisualizer()
           
 
Method Summary
 edu.cmu.sphinx.frontend.Data getData()
           
 javax.swing.JToggleButton getMuteButton()
           
 javax.swing.JLabel getSpeechIndicator()
           
static void main(java.lang.String[] args)
          for testing purposes; this should initialize the microphone, add a speech state visualizer and a mutebutton preceeding it.
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void setRecording(boolean recording)
           
 void systemTalking(boolean talking)
           
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, initialize, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_SHOW_WINDOW

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_WINDOW
See Also:
Constant Field Values

PROP_STYLE

@S4Component(type=edu.cmu.sphinx.util.props.Configurable.class,
             mandatory=false)
public static final java.lang.String PROP_STYLE
See Also:
Constant Field Values

styleResource

edu.cmu.sphinx.util.props.Configurable styleResource

speechIndicator

SpeechStateVisualizer.FourStateJLabel speechIndicator

f

javax.swing.JFrame f

recordButton

javax.swing.JToggleButton recordButton

isRecording

boolean isRecording
Constructor Detail

SpeechStateVisualizer

public SpeechStateVisualizer()
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
Overrides:
newProperties in class edu.cmu.sphinx.util.props.ConfigurableAdapter
Throws:
edu.cmu.sphinx.util.props.PropertyException

setRecording

public void setRecording(boolean recording)

systemTalking

public void systemTalking(boolean talking)

getSpeechIndicator

public javax.swing.JLabel getSpeechIndicator()

getMuteButton

public javax.swing.JToggleButton getMuteButton()

getData

public edu.cmu.sphinx.frontend.Data getData()
                                     throws edu.cmu.sphinx.frontend.DataProcessingException
Specified by:
getData in interface edu.cmu.sphinx.frontend.DataProcessor
Specified by:
getData in class edu.cmu.sphinx.frontend.BaseDataProcessor
Throws:
edu.cmu.sphinx.frontend.DataProcessingException

main

public static void main(java.lang.String[] args)
for testing purposes; this should initialize the microphone, add a speech state visualizer and a mutebutton preceeding it. when muted, nothing should pass the speech state visualizer when not muted, speech state should be visualized