Fishtrap

php and other stuff I know

Festival PHP

A PHP extension to interface with the Festival Text to Speech open source library. Uses the C++ API to give an object orientated way of speaking text directly from php.

Example

$festival = new festival();
$festival->sayText('Hello my name is PHP and I am very pleased to meet you');

Will sound something like this

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Downloads

Full source can be downloaded here
https://github.com/natmchugh/festival_php/

sudo apt-get install festival festival-dev festvox-don
git clone git://github.com/natmchugh/festival.git
cd festival
phpize
./configure
make
make test
sudo make install

Feedback

If you use this extension please comment and let me know how you get on. If it doesn’t work for you let me know and I will endevor to fix it. Comments / abuse welcome.

Leave a Reply

Required fields are marked *.