A PHP library to convert text to speech using various services
Full documentation is available at http://duncan3dc.github.io/speaker/
PHPDoc API documentation is also available at http://duncan3dc.github.io/speaker/api/
$google = new \duncan3dc\Speaker\Providers\GoogleProvider;
$tts = new \duncan3dc\Speaker\TextToSpeech("Hello World", $google);
file_put_contents("/tmp/hello.mp3", $tts->getAudioData());
Read more at http://duncan3dc.github.io/speaker/
- Acapela - Paid voice as a service
- AmazonPolly - AWS service with a 12 month free tier
- Google - Unadvertised service with 100 character limit
- Picotts - An offline command line version
- ResponsiveVoice - Unadvertised service running over a javascript engine
- Voice RSS - Free/paid service requires registration
A Changelog has been available since the beginning of time
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter