PHPackages                             mathsgod/microsoft-tts - 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. mathsgod/microsoft-tts

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

mathsgod/microsoft-tts
======================

Microsoft Text-to-Speech API for PHP

1.0.0(2y ago)015MITPHP

Since Jul 4Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Microsoft TTS
=============

[](#microsoft-tts)

Installation
------------

[](#installation)

```
composer require mathsgod/microsoft-tts
```

Usage
-----

[](#usage)

```
use Microsoft\CognitiveServices\Speech\TTS;

require __DIR__ . '/vendor/autoload.php';

$region="eastasia";
$key='YOUR_KEY';
$tts = new TTS($key, $region);
$tts->save('Hello World', 'hello-world.mp3');
```

### Format and Voice

[](#format-and-voice)

```
$format=TTS::AUDIO_24KHZ_160KBITRATE_MONO_MP3;
$voice="zh-HK-HiuGaaiNeural";
$tts->save('Hello World', 'hello-world.mp3', $format, $voice);
```

### Get voices list

[](#get-voices-list)

```
$voices=$tts->getVoicesList();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1049d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18732337?v=4)[Raymond](/maintainers/mathsgod)[@mathsgod](https://github.com/mathsgod)

---

Top Contributors

[![mathsgod](https://avatars.githubusercontent.com/u/18732337?v=4)](https://github.com/mathsgod "mathsgod (4 commits)")

### Embed Badge

![Health badge](/badges/mathsgod-microsoft-tts/health.svg)

```
[![Health](https://phpackages.com/badges/mathsgod-microsoft-tts/health.svg)](https://phpackages.com/packages/mathsgod-microsoft-tts)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[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)
