speech
Class AckSounds

java.lang.Object
  |
  +--speech.AckSounds

public class AckSounds
extends Object


Constructor Summary
AckSounds(TalkNSing ttsWav)
           
 
Method Summary
 void play(String sound, boolean synced)
          Plays a sound file (such as a wav) through the Laureate system (if available, or through Java.
 void playAcknowledgment()
          Plays the sound specified in SOUND_COMPUTER_ACKNOWLEDGEMENT
 void playAttention()
          Plays the sound specified in SOUND_COMPUTER_ATTENTION
 void playDictation()
          Synchronously plays the sound specified in SOUND_COMPUTER_DICTATION
 void say(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AckSounds

public AckSounds(TalkNSing ttsWav)
Method Detail

playAcknowledgment

public void playAcknowledgment()
Plays the sound specified in SOUND_COMPUTER_ACKNOWLEDGEMENT
See Also:
play(String sound, boolean synced)

playAttention

public void playAttention()
Plays the sound specified in SOUND_COMPUTER_ATTENTION
See Also:
play(String sound, boolean synced)

playDictation

public void playDictation()
Synchronously plays the sound specified in SOUND_COMPUTER_DICTATION
See Also:
play(String sound, boolean synced)

play

public void play(String sound,
                 boolean synced)
Plays a sound file (such as a wav) through the Laureate system (if available, or through Java. If ttsWav (Laureate) is not null, and is not busy, then this plays the sound through Laureate. Otherwise, this plays through Say, which then uses AudioPlayer to play the sound through Java.
Parameters:
sound - a String value of the sound to be played. SOUND_DIRECTORY is appended to the front of this string.
synced - a boolean value, if true, the plays the sound synchronously. Otherwise plays asynchronously.

say

public void say(String s)