• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

blade

Use Blade templates without the full Laravel framework
PHP
139
star
2

sonos

A PHP library for interacting with Sonos speakers
PHP
108
star
3

dusk

Use Dusk browser automation without the full Laravel framework
PHP
80
star
4

fork-helper

A PHP helper to fork processes and allow multi-threading
PHP
69
star
5

meta-audio

A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
PHP
34
star
6

sessions

A non-blocking session handler for PHP
PHP
24
star
7

console

Create command line php applications using symfony/console
PHP
15
star
8

php-helpers

A collection of helper functions written in PHP for PHP
PHP
14
star
9

bom-string

A small PHP library to handle byte order marks (BOM)
PHP
14
star
10

domparser

Wrappers for the PHP DomDocument class to provide extra functionality for html/xml parsing
PHP
9
star
11

uopz-expectations

Mock core PHP functions using a Mockery like interface
PHP
8
star
12

cache

A simple PSR-6/PSR-16 compatible disk/array cache for PHP
PHP
8
star
13

twitter

Aggregator for twitter, instagram, reddit, ask.fm, wikipedia and news.php.net
PHP
8
star
14

mailer

A simple mailer abstraction for PHP with a clean interface
PHP
7
star
15

symfony-climate

Combine Symfony's console output with The PHP League's CLImate
PHP
6
star
16

sql-class

A simple database abstraction layer for PHP, with an on disk caching facility.
PHP
4
star
17

php-ini

Manage php.ini directives on a temporary basis.
PHP
4
star
18

object-intruder

A small PHP library to access private/protected properties/methods of objects
PHP
4
star
19

github

A PHP library to interact with the GitHub API
PHP
3
star
20

sonos-cloud

A PHP library to use the official Sonos API to control your speakers
PHP
3
star
21

proxy

A simple script that provides a basic proxy to any website
PHP
2
star
22

exec

Run command line processes from within PHP
PHP
2
star
23

php-env

A small PHP library to get environment details
PHP
2
star
24

sonos-console

A command line application for controlling Sonos networks
PHP
1
star
25

phpexcel

A simple wrapper around the phpexcel library
PHP
1
star
26

sql

A simple database abstraction layer for PHP, with an on disk caching facility
PHP
1
star
27

guzzle-tools

A PHP library to log request and responses from Guzzle
PHP
1
star
28

logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support
PHP
1
star
29

sonos-common

Some utilities and interfaces for Sonos code in PHP
PHP
1
star
30

climate-logger

Use your best friend for the terminal with your favourite PSR-3 compatible projects
PHP
1
star