examples
Class TestAudioListener

java.lang.Object
  |
  +--javax.speech.AudioAdapter
        |
        +--javax.speech.recognition.RecognizerAudioAdapter
              |
              +--examples.TestAudioListener
All Implemented Interfaces:
AudioListener, java.util.EventListener, RecognizerAudioListener

public class TestAudioListener
extends RecognizerAudioAdapter

Prints audio events to System.out


Constructor Summary
TestAudioListener()
           
TestAudioListener(boolean showLevel)
           
 
Method Summary
 void audioLevel(RecognizerAudioEvent e)
           
 void speechStarted(RecognizerAudioEvent e)
           
 void speechStopped(RecognizerAudioEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAudioListener

public TestAudioListener()

TestAudioListener

public TestAudioListener(boolean showLevel)
Method Detail

speechStarted

public void speechStarted(RecognizerAudioEvent e)
Overrides:
speechStarted in class RecognizerAudioAdapter

speechStopped

public void speechStopped(RecognizerAudioEvent e)
Overrides:
speechStopped in class RecognizerAudioAdapter

audioLevel

public void audioLevel(RecognizerAudioEvent e)
Overrides:
audioLevel in class RecognizerAudioAdapter