PHPackages                             gustav/speaker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gustav/speaker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gustav/speaker
==============

Convert text to speech using web services

v1.3.2(6y ago)0101Apache-2.0PHPPHP ^7.2

Since May 19Pushed 6y agoCompare

[ Source](https://github.com/GustavSoftware/speaker)[ Packagist](https://packagist.org/packages/gustav/speaker)[ Docs](https://github.com/duncan3dc/speaker)[ RSS](/packages/gustav-speaker/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (11)Versions (16)Used By (1)

speaker
=======

[](#speaker)

A PHP library to convert text to speech using various services

Full documentation is available at
PHPDoc API documentation is also available at [http://duncan3dc.github.io/speaker/api/](http://duncan3dc.github.io/speaker/api/namespaces/duncan3dc.Speaker.html)

Quick Example
-------------

[](#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 *

Services
--------

[](#services)

- **Acapela** - *Paid voice as a service*
- **AmazonPolly** - *AWS service with a 12 month free tier*
- **Google** - *Unadvertised service with 100 character limit*
- **ResponsiveVoice** - *Unadvertised service running over a javascript engine*
- **Voice RSS** - *Free/paid service requires [registration](http://www.voicerss.org/personel/)*

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since the beginning of time

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](//github.com/duncan3dc/speaker/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

duncan3dc/speaker for enterprise
--------------------------------

[](#duncan3dcspeaker-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.](https://tidelift.com/subscription/pkg/packagist-duncan3dc-speaker?utm_source=packagist-duncan3dc-speaker&utm_medium=referral&utm_campaign=readme)

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 98.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~134 days

Recently: every ~214 days

Total

15

Last Release

2227d ago

Major Versions

0.7.3 → 1.0.02017-10-14

PHP version history (6 changes)0.1.0PHP &gt;=5.4.0

0.5.0PHP &gt;=5.5.0

0.7.0PHP ^5.6|^7.0

1.0.0PHP ^7.0

1.2.0PHP ^7.1

1.3.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e94b9c2235f7f12553818a7f94540eedaa2026a287d07ef12e1315ca559941a?d=identicon)[ckoecher](/maintainers/ckoecher)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (76 commits)")[![fdp2](https://avatars.githubusercontent.com/u/7798051?v=4)](https://github.com/fdp2 "fdp2 (1 commits)")

---

Tags

speechtext-to-speechtts

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gustav-speaker/health.svg)

```
[![Health](https://phpackages.com/badges/gustav-speaker/health.svg)](https://phpackages.com/packages/gustav-speaker)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.7M10](/packages/chargebee-chargebee-php)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6943.5M449](/packages/drupal-core-recommended)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
