PHP class, pvox : Festival text-to-speech client

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.

Version: 1.0

Changes: none

Usage :

  • Run festival in server mode: festival –server
  • Run pvox : read the examples below
$pv = new pvox();
$pv->set_ftserver(array("ip" => "", "port" => 31337));
$pv->set_string("Hello world!");
$pv = new pvox();
$pv->set_ftserver(array("ip" =>", port" => 31337));

[viewcode]src=”/pub/utils/pvox.txt” lang=”php”[/viewcode]

7 Comments PHP class, pvox : Festival text-to-speech client

  1. Amina

    Dear Paolo, (oppure Caro Paulo :-)))

    Do you think I can use Pvox integrated in Moodle code, to provide assistance to blind children.
    Tnak you!!!

  2. Franck

    Man, I did not try this yet but if it does exactly what you said, AHA, you’re the dopest !
    Thanks !

  3. Mark Hardisty

    Do you have a copy of the Windows binary and installation that I could use? I have problems with the version I have. I can get festival to run inserver mode but it rejects the socket connection?

  4. mikeb

    Just what I was looking for! Got it up and running pretty quickly, just had to turn the ‘ character to a ‘, but that may just be your content management system rewriting it. Thanks!

  5. poster

    i become the

    SIOD ERROR: could not open file file-mode.scm
    tts_file: can’t find mode description “file” using raw mode instead

    Google has no Answer

  6. Pingback: TTS solution for CentOs - Admins Goodies

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>