Using Mbrola-Voices with the Processing ttslib
To use mbrola-voices with the processing ttslib make sure you have installed the newest version of ttslib (version 0.2 at the time of writing). Download the mbrola-binary for your system and make sure the binary is named mbrola (or else freetts won't find it).
Make sure you can live with the mbrola-licence.
Download the us voices you want to use and unzip them to the directory where your mbrola binary lives.
on my linux system the content of the mbrola directory looks like this
./mbrola206a-linux-ppc
./mbrola-linux-alpha
./mbrola_linux_libc5
./mbrola
./mbrola-linux-i386
./mbrola302b-linux-ppc
./us1
./us1/us1mrpa
./us1/license.txt
./us1/us1.txt
./us1/TEST
./us1/TEST/xmas.pho
./us1/TEST/alice.pho
./us1/TEST/push.pho
./us1/TEST/mbroli.ini
./us1/TEST/mbrola.pho
./us1/us1
./us2
./us2/license.txt
./us2/us2.txt
./us2/TEST
./us2/TEST/babel.pho
./us2/TEST/alice.pho
./us2/TEST/mbroli.ini
./us2/TEST/mbrola.pho
./us2/us2
./us3
./us3/us3
./us3/us3.txt
./us3/license.txt
./us3/TEST
./us3/TEST/cslu.pho
./us3/TEST/diphone.pho
./us3/TEST/mike.pho
./us3/TEST/mbroli.ini
in the setup method of your processing sketch set the absolute path to your mbrola directory as a java system property. Now the name of the mbrola voice you want to use can be added as a string parameter to the TTS constructor
import guru.ttslib.*;
TTS tts;
void setup() {
System.setProperty("mbrola.base","/path/to/mbrola/");
tts = new TTS("mbrola_us1");
}
void draw() {
}
void mousePressed() {
tts.speak("Hello! I'm a talking processing sketch!");
}


import guru.ttslib.*;
public class Freet {
}
why don't wor?
Could not validate any MBROLA voices at
C:\Program Files (x86)\Mbrola Tools\br1
Make sure you FULLY specify the path to the MBROLA directory using the mbrola.base system property.
Exception in thread "main" java.lang.NullPointerException
Java Result: 1
why don't work?
PS.: "Olá! Eu sou um computador e posso falar o que eu quizer!" is like "Hi! I'm a computer and can speak all what I want!"
Same problem. Can't run mbrola voices, tried every possible way of writing the path. It's located in "C:\Program Files\Mbrola Tools". Can't make it work :(
could you describe where to put the mbrola directory? do you mean the whole folder, which you download from the mbrola page, or just a part of it? do i have to pute this folder into the sketchbook folder, or in the ttslib folder?? i'm very sorry, but i'm really stuck here.... thx 4 your help!
same problem:
Make sure you FULLY specify the path to the MBROLA directory using the mbrola.base system property
no one can help us??
Sorry I have no windows box I could test it on but as far as I remember mbrola doesn't like paths that contain spaces so try to put your mbrola libs in some path like c:\mbrola
hey, fretts is for en.us only