edu.stanford.hci.r3.actions.types
Class TextToSpeechAction
java.lang.Object
edu.stanford.hci.r3.actions.types.TextToSpeechAction
- All Implemented Interfaces:
- R3Action
public class TextToSpeechAction
- extends java.lang.Object
- implements R3Action
Speaks some text, if the receiving machine has FreeTTS installed (or some other JSAPI engine).
This software is distributed under the BSD License.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextToSpeechAction
public TextToSpeechAction()
TextToSpeechAction
public TextToSpeechAction(java.lang.String wordsToSay)
getInstance
public static TextToSpeechAction getInstance()
- Returns:
close
public void close()
- Clean up resources.
initialize
public void initialize()
invoke
public void invoke()
- Remote invocations should use this method. Local invocations may also use this, but it might
be more efficient to keep a TextToSpeechAction around, initialize it, and then call
speak(String) repeatedly.
- Specified by:
invoke
in interface R3Action
- See Also:
R3Action.invoke()
speak
public void speak()
speak
public void speak(java.lang.String wordsToSpeak)
- Parameters:
wordsToSpeak
-