Text To Speech Voice Synthesis for PHP


FliteTTS is an extension built upon the Flite voice synthesis library. Flite was developed at Carnegie Mellon University and is a small, fast run-time voice synthesis engine which is designed to run in embedded systems and/or large scale server deployments (aka memory/processor efficient). The PHP extension uses the Flite library to transform text strings into spoken audio via both RIFF and raw formatted wave files.
Such extension will make telephony application development with PHP more and more exciting. The main object is flightTTS, and the method to convert from text to speech is generate_wave_data($string) wich return a wave resource. There is additional functions to output this wave resource as riff, or raw directly printed to browser or returned as binary.