duncan3dc / speaker
Convert text to speech using web services
Installs: 37 368
Dependents: 1
Suggesters: 0
Security: 0
Stars: 107
Watchers: 7
Forks: 35
Open Issues: 1
Requires
- php: ^7.3 || ^8.0
- duncan3dc/exec: ^0.4 || ^1.0
- guzzlehttp/guzzle: ^6.0|^7.0
Requires (Dev)
- aws/aws-sdk-php: ^3.219.3
- duncan3dc/uopz-expectations: ^0.3 || ^1.0
- maglnet/composer-require-checker: ^2.0 || ^3.0 || ^4.0
- mockery/mockery: ^1.5
- nikic/php-parser: ^4.13
- phpstan/phpstan: ^0.12.99
- phpstan/phpstan-mockery: ^0.12.14
- phpstan/phpstan-phpunit: ^0.12.22
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
Suggests
- aws/aws-sdk-php: Allows you to use the AmazonPollyProvider
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/
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.