org.switchboard
Class TTSResult

java.lang.Object
  extended by org.switchboard.TTSResult

public class TTSResult
extends Object


Constructor Summary
TTSResult(URL url, File f, String words)
           
 
Method Summary
 File getFile()
          Gets a reference to the File that has been downloaded.
 String getWords()
          Gets the string of words that are read aloud in the file.
 void play()
          Plays the WAV file that was downloaded.
 void setFile(File file)
           
 void setGain(float gain)
          Sets the gain of the WAV file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TTSResult

public TTSResult(URL url,
                 File f,
                 String words)
Method Detail

getWords

public String getWords()
Gets the string of words that are read aloud in the file.

Returns:
The string of words that are read aloud in the file.

play

public void play()
Plays the WAV file that was downloaded.


setGain

public void setGain(float gain)
Sets the gain of the WAV file.

Parameters:
gain - a float between 0 and 1

getFile

public File getFile()
Gets a reference to the File that has been downloaded.

Returns:
The file that has been downloaded.

setFile

public void setFile(File file)