|
RiTa index |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name | RiSpeech | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | Provides basic cross-platform text-to-speech facilities with control over
a range of parameters including voice-selection, pitch, speed, rate, etc.
When needed, multiple RiSpeech objects can be created, each with their own
parameters, for concurrent speech. Note: requires the installation of one or more FreeTTS compatible voices (see the RiTa+TTS install which includes a default 16-bit voice)... To receive callbacks when a RiSpeech object has completed speaking a chunk of text, implement the following method in your applet:
void onRiTaEvent(RiTaEvent re) {
RiSpeech rs = (RiSpeech)re.getSource();
String lastSpokenText = re.getData();
...
}
Also compatible with mbrola voices (http://tcts.fpms.ac.be/synthesis/mbrola.html), but requires a local installation of the mbrola binary (which must be named 'mbrola'), as well as a call to: RiSpeech.setMbrolaBase(String pathToMbrola);Specific instructions for installing and testing mbrola with RiTa can be found here. Note: there is currently an incompatability w' FreeTTS and Mbrola on Mac OSX, but you can use the native MacTTS voices with code as follows:
RiSpeech rs = new RiSpeech(this);
rs.useMacTTS();
rs.setVoice("Bruce");
rs.speak("Hello");
The default voices included on the Mac are:
"Victoria", "Agnes", "Kathy", "Princess", "Vicki",
"Bruce", "Fred", "Junior", "Ralph", "Albert",
"Bad News", "Bahh", "Bells", "Boing", "Bubbles",
"Cellos", "Deranged", "Good News", "Hysterical",
"Pipe Organ", "Trinoids", "Whisper", "Zarvox"
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructors | RiSpeech(pApplet); RiSpeech(pApplet, voiceName); RiSpeech(pApplet, voiceName, mbrolaBase); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Methods |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Usage | Web & Application |