duncan3dc/speaker

Convert text to speech using web services

1.1.0 2018-03-09 17:46 UTC

README

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/

Latest Stable Version Build Status Coverage Status

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