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.6.0(3w ago)11439.8k↓62.2%341Apache-2.0PHPPHP ^8.1CI failing

Since May 19Pushed 1w 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 2d ago

READMEChangelogDependencies (24)Versions (22)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

66

—

FairBetter than 99% of packages

Maintenance97

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.6% 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 ~237 days

Recently: every ~515 days

Total

18

Last Release

25d ago

Major Versions

0.7.3 → 1.0.02017-10-14

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

1.6.0PHP ^8.1

### 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 (102 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 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

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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