Skip to content

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

License

Notifications You must be signed in to change notification settings

duncan3dc/speaker

Repository files navigation

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

duncan3dc/speaker for enterprise

Available as part of the Tidelift Subscription

The maintainers of duncan3dc/speaker and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •