/speaker

A PHP library to convert text to speech using various web services

Primary LanguagePHPApache License 2.0Apache-2.0

speaker

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/

release build coverage

Quick Example

$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/

Services

  • 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

Changelog

A Changelog has been available since the beginning of time

Where to get help

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