University of Edinburgh’s Festival Speech Synthesis Systems is a free software multi-lingual speech synthesis workbench that runs on multiple-platforms offering black box text to speech, as well as an open architecture for research in speech synthesis. It designed as a component of large speech technology systems.
Since I had problems with clients included in Speech Tools ( part of Festival software ),
I wrote Pvox .
Pvox is a PHP 5 client for the Festival Speech Synthesis Systems. It connects to a festival server, sends commands and the string to process and receives a wave file. It could be used as a command line script or to play spoken audio on a browser.
- Run festival in server mode: festival –server
- Run pvox : read the examples below
// TEST CODE FOR COMMAND LINE $pv = new pvox(); $pv->set_ftserver(array("ip" => "192.168.0.2", "port" => 31337)); $pv->set_string("Hello world!"); $pv->vox(); $pv->save();
// TEST CODE FOR USE WITHIN BROWSERS $pv = new pvox(); $pv->set_ftserver(array("ip" => 192.168.0.2", port" => 31337)); $pv->set_string($_GET["string"]); $pv->vox(); $pv->play_web();