ttslib installation via the processing PDE

Nikolaus Gradwohl2013-03-16T09:56:14+00:00

Writing talking processing sketches just got a lot easier!

the ttslib just got added to the list of processing libraries that can be installed via the PDE!

So starting with processing 2 beta 7 you can install the ttslib by clicking on "Sketch -> Import Library ... -> Add Library". In the dialog that opens enter ttslib as a search filter and then click on the install button next to the ttslib entry.

Using Mbrola-Voices with the Processing ttslib

Nikolaus Gradwohl2010-06-20T17:33:00+00:00

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


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() {
  tts = new TTS("mbrola_us1");

void draw() {

void mousePressed() {
  tts.speak("Hello! I'm a talking processing sketch!");
read more ...