PHPackages                             duncan3dc/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. duncan3dc/speaker

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

duncan3dc/speaker
=================

Convert text to speech using web services

1.5.0(1y ago)11539.1k↓27.8%341Apache-2.0PHPPHP ^7.3 || ^8.0CI passing

Since May 19Pushed 1y ago6 watchersCompare

[ Source](https://github.com/duncan3dc/speaker)[ Packagist](https://packagist.org/packages/duncan3dc/speaker)[ Docs](https://github.com/duncan3dc/speaker)[ RSS](/packages/duncan3dc-speaker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (20)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)

[![release](https://camo.githubusercontent.com/42d771fbf309fdeb10903794eb8955503fef968283316f5ba58a8ee7a5e1e372/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f737065616b65722f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/speaker)[![build](https://github.com/duncan3dc/speaker/workflows/.github/workflows/buildcheck.yml/badge.svg?branch=master)](https://github.com/duncan3dc/speaker/actions?query=branch%3Amaster+workflow%3A.github%2Fworkflows%2Fbuildcheck.yml)[![coverage](https://camo.githubusercontent.com/e23e7555299c0f50879dd08a0b144da5491ddaeb7a6c6ec6ee616f16fa70275c/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f737065616b65722f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/speaker)

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*
- **Picotts** - *An offline command line version*
- **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

49

—

FairBetter than 95% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~217 days

Recently: every ~513 days

Total

17

Last Release

545d ago

Major Versions

0.7.3 → 1.0.02017-10-14

PHP version history (7 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

1.4.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (89 commits)")[![austenc](https://avatars.githubusercontent.com/u/575421?v=4)](https://github.com/austenc "austenc (1 commits)")[![dipesh79](https://avatars.githubusercontent.com/u/63183800?v=4)](https://github.com/dipesh79 "dipesh79 (1 commits)")[![fdp2](https://avatars.githubusercontent.com/u/7798051?v=4)](https://github.com/fdp2 "fdp2 (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

phptext-to-speechttsspeechtext-to-speechtts

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[werd/ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP

102.1k](/packages/werd-ivona-speechcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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