PHPackages                             flowspeech/flowspeech-php - 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. flowspeech/flowspeech-php

ActiveLibrary

flowspeech/flowspeech-php
=========================

PHP client for the FlowSpeech text-to-speech API.

00PHP

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/waeckerlinfederowicz66-sketch/flowspeech-php)[ Packagist](https://packagist.org/packages/flowspeech/flowspeech-php)[ RSS](/packages/flowspeech-flowspeech-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FlowSpeech PHP
==============

[](#flowspeech-php)

PHP client for the [FlowSpeech](https://flowspeech.io/) text-to-speech API.

FlowSpeech converts text into human-like audio with context-aware delivery, emotion control, pause control, and multi-speaker voice configuration. This package provides a small Composer-friendly client for the public FlowSpeech API surface.

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

[](#installation)

```
composer require flowspeech/flowspeech-php
```

Authentication
--------------

[](#authentication)

Create a FlowSpeech API key in your account, then pass it as a Bearer token through the client:

```
use FlowSpeech\FlowSpeechClient;

$client = new FlowSpeechClient(getenv('FLOWSPEECH_API_KEY'));
```

Do not commit real FlowSpeech API keys, provider keys, cookies, session tokens, or environment values.

Check Quota
-----------

[](#check-quota)

```
$quota = $client->getQuota();
print_r($quota);
```

Generate Speech
---------------

[](#generate-speech)

```
$audio = $client->generateSpeech(
    'Welcome to FlowSpeech. Generate natural speech from context-aware text.',
    [
        ['voiceName' => 'Kore'],
    ],
);

print_r($audio);
```

Multi-Speaker Speech
--------------------

[](#multi-speaker-speech)

```
$audio = $client->generateMultiSpeakerSpeech(
    "Speaker A: We can make this sound natural.\nSpeaker B: Great, let's use different voices.",
    [
        ['speaker' => 'Speaker A', 'voiceName' => 'Kore'],
        ['speaker' => 'Speaker B', 'voiceName' => 'Puck'],
    ],
);

print_r($audio);
```

API Surface
-----------

[](#api-surface)

This client targets the stable FlowSpeech API-key flow:

- `GET /api/ai/text-to-speech/quota`
- `POST /api/ai/text-to-speech`

It intentionally avoids internal web-session routes and provider-specific compatibility routes.

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance60

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c162cbf51dbbee6fbcc4a4dedbdf072f9dd6e93230202bf8e26ef4e07b68d771?d=identicon)[waeckerlinfederowicz66-sketch](/maintainers/waeckerlinfederowicz66-sketch)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/flowspeech-flowspeech-php/health.svg)

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

PHPackages © 2026

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