pgbennett.speech
Interface SpeechInterface

All Known Implementing Classes:
CepstralSpeaker, ESpeakSpeaker, FreeTTSSpeaker, Speaker

public interface SpeechInterface


Method Summary
 boolean close()
          Close file or sound output device
 java.lang.String[] getVoiceList()
           
 boolean init()
           
 boolean setRate(int rate)
          Sets the rate (speed) of output speech
 void setVoice(java.lang.String voiceName)
           
 boolean setVolume(int volume)
          Set output volume for text, default is 100
 boolean speak(java.lang.String strInput)
          Converts the given input text to speech.
 

Method Detail

init

boolean init()

speak

boolean speak(java.lang.String strInput)
Converts the given input text to speech. Text can optionally contain XML tags for controlling the speech. To use XML tags there must be an XML tag at the front of the string even if it is a dummy field name or an empty tag.

Parameters:
strInput - String with words to convert to speech

setRate

boolean setRate(int rate)
Sets the rate (speed) of output speech

Parameters:
rate - Rate, valid values are from -10 to 10

setVolume

boolean setVolume(int volume)
Set output volume for text, default is 100

Parameters:
volume - Volume from 0 to 100

close

boolean close()
Close file or sound output device


setVoice

void setVoice(java.lang.String voiceName)

getVoiceList

java.lang.String[] getVoiceList()