edu.stanford.hci.r3.actions.types
Class TextToSpeechAction

java.lang.Object
  extended by 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.


Constructor Summary
TextToSpeechAction()
           
TextToSpeechAction(java.lang.String wordsToSay)
           
 
Method Summary
 void close()
          Clean up resources.
static TextToSpeechAction getInstance()
           
 void initialize()
           
 void invoke()
          Remote invocations should use this method.
 void speak()
           
 void speak(java.lang.String wordsToSpeak)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.hci.r3.actions.R3Action
toString
 

Constructor Detail

TextToSpeechAction

public TextToSpeechAction()

TextToSpeechAction

public TextToSpeechAction(java.lang.String wordsToSay)
Method Detail

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 -

Copyright 2006 Stanford University