speech
Interface TalkNSing

All Superinterfaces:
Remote
All Known Subinterfaces:
SpeechOut
All Known Implementing Classes:
SpeechOutAgent

public interface TalkNSing
extends Remote

This is for our combo laureate TTS and wav file player system. Agents using SpeechOut use these methods to talk to the world. If you just want to play *.wav files, you can use a speech.sound.SoundManager to do the same thing on Windows.

See Also:
SoundManager

Method Summary
 boolean busy()
           
 void playWav(String filename)
           
 void playWavSync(String filename)
           
 void say(Collection c)
          Randomly speak one of the objects in the given collection.
 void say(Speakable sObject)
          Speak this object's toSpeech using speech synthesis.
 void say(String text)
           
 void saySafe(String sText)
          Speaks text in a "safe" manner, such that it can be interrupted.
 void saySafe(String sText, String sTelim)
          Speaks text in a "safe" manner, such that it can be interrupted.
 void saySync(String text)
           
 void stopTalking()
          Stops saySafe's speech out.
 void stopTalking(boolean bAnnounce)
          Stops saySafe's speech out, and if bAnnounce is true, then say's "shutting up"
 

Method Detail

saySync

public void saySync(String text)
             throws RemoteException

say

public void say(String text)
         throws RemoteException

playWavSync

public void playWavSync(String filename)
                 throws RemoteException

playWav

public void playWav(String filename)
             throws RemoteException

say

public void say(Speakable sObject)
         throws RemoteException
Speak this object's toSpeech using speech synthesis.
Parameters:
sObject - a Speakable value
Throws:
RemoteException - if an error occurs

say

public void say(Collection c)
         throws RemoteException
Randomly speak one of the objects in the given collection. If the object is Speakable, then the toSpeech method is used, otherwise the toString method is used.
Parameters:
c - a Collection value
Throws:
RemoteException - if an error occurs

saySafe

public void saySafe(String sText)
             throws RemoteException
Speaks text in a "safe" manner, such that it can be interrupted. saySafe tokenizes the text into sentence-size chunks.
Parameters:
sText - a String value
Throws:
RemoteException - if an error occurs

saySafe

public void saySafe(String sText,
                    String sTelim)
             throws RemoteException
Speaks text in a "safe" manner, such that it can be interrupted. saySafe tokenizes the text into chunks based on a delimeter.
Parameters:
sText - a String value
sDelim - a String value
Throws:
RemoteException - if an error occurs

stopTalking

public void stopTalking()
                 throws RemoteException
Stops saySafe's speech out.
Throws:
RemoteException - if an error occurs

stopTalking

public void stopTalking(boolean bAnnounce)
                 throws RemoteException
Stops saySafe's speech out, and if bAnnounce is true, then say's "shutting up"
Parameters:
bAnnounce - a boolean value
Throws:
RemoteException - if an error occurs

busy

public boolean busy()
             throws RemoteException