inpro.gui.util
Class SpeechStateVisualizer
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
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
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
logger |
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 |
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
SpeechStateVisualizer
public SpeechStateVisualizer()
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