|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void saySync(String text) throws RemoteException
public void say(String text) throws RemoteException
public void playWavSync(String filename) throws RemoteException
public void playWav(String filename) throws RemoteException
public void say(Speakable sObject) throws RemoteException
sObject
- a Speakable
valueRemoteException
- if an error occurspublic void say(Collection c) throws RemoteException
c
- a Collection
valueRemoteException
- if an error occurspublic void saySafe(String sText) throws RemoteException
sText
- a String
valueRemoteException
- if an error occurspublic void saySafe(String sText, String sTelim) throws RemoteException
sText
- a String
valuesDelim
- a String
valueRemoteException
- if an error occurspublic void stopTalking() throws RemoteException
RemoteException
- if an error occurspublic void stopTalking(boolean bAnnounce) throws RemoteException
bAnnounce
- a boolean
valueRemoteException
- if an error occurspublic boolean busy() throws RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |