rita.support
Class RiMacSpeechEngine
java.lang.Object
rita.support.RiMacSpeechEngine
- All Implemented Interfaces:
- RiSpeechEngine
public class RiMacSpeechEngine
- extends java.lang.Object
- implements RiSpeechEngine
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVAILABLE_VOICES
public static final java.lang.String[] AVAILABLE_VOICES
- The default mac tts voice sets
DEFAULT_VOICE
public static final java.lang.String DEFAULT_VOICE
RiMacSpeechEngine
public RiMacSpeechEngine(RiSpeech riSpeech)
RiMacSpeechEngine
public RiMacSpeechEngine(RiSpeech riSpeech,
java.lang.String voiceName)
dispose
public void dispose()
- Specified by:
dispose in interface RiSpeechEngine
getVoice
public com.sun.speech.freetts.Voice getVoice()
- Specified by:
getVoice in interface RiSpeechEngine
voiceToString
public java.lang.String voiceToString(java.lang.String name)
getVoiceDescriptions
public java.lang.String[] getVoiceDescriptions()
- Specified by:
getVoiceDescriptions in interface RiSpeechEngine
getVoiceName
public java.lang.String getVoiceName()
- Specified by:
getVoiceName in interface RiSpeechEngine
getVoicePitch
public float getVoicePitch()
- Specified by:
getVoicePitch in interface RiSpeechEngine
getVoicePitchRange
public float getVoicePitchRange()
- Specified by:
getVoicePitchRange in interface RiSpeechEngine
getVoicePitchShift
public float getVoicePitchShift()
- Specified by:
getVoicePitchShift in interface RiSpeechEngine
getVoiceRate
public float getVoiceRate()
- Specified by:
getVoiceRate in interface RiSpeechEngine
getVoiceVolume
public float getVoiceVolume()
- Specified by:
getVoiceVolume in interface RiSpeechEngine
isSpeaking
public boolean isSpeaking()
- Specified by:
isSpeaking in interface RiSpeechEngine
setVoice
public void setVoice(java.lang.String voiceName)
- Specified by:
setVoice in interface RiSpeechEngine
setVoice
public void setVoice(com.sun.speech.freetts.Voice vc)
- Specified by:
setVoice in interface RiSpeechEngine
setVoicePitch
public void setVoicePitch(float hertz)
- Specified by:
setVoicePitch in interface RiSpeechEngine
setVoicePitchRange
public void setVoicePitchRange(float range)
- Specified by:
setVoicePitchRange in interface RiSpeechEngine
setVoicePitchShift
public void setVoicePitchShift(float shift)
- Specified by:
setVoicePitchShift in interface RiSpeechEngine
setVoiceRate
public void setVoiceRate(float wpm)
- Specified by:
setVoiceRate in interface RiSpeechEngine
setVoiceVolume
public void setVoiceVolume(float vol)
- Specified by:
setVoiceVolume in interface RiSpeechEngine
speak
public void speak(java.lang.String text)
- Specified by:
speak in interface RiSpeechEngine
stop
public void stop()
- Specified by:
stop in interface RiSpeechEngine
getVoiceNames
public java.lang.String[] getVoiceNames()
- Specified by:
getVoiceNames in interface RiSpeechEngine
getVoiceDescription
public java.lang.String getVoiceDescription()
- Specified by:
getVoiceDescription in interface RiSpeechEngine
querySystemForVoices
public static java.lang.String[] querySystemForVoices()
main
public static void main(java.lang.String[] args)
getAudioFileName
public java.lang.String getAudioFileName()
- Specified by:
getAudioFileName in interface RiSpeechEngine
setAudioFileName
public void setAudioFileName(java.lang.String audioFileName)
- Specified by:
setAudioFileName in interface RiSpeechEngine