PHPackages                             sergix44/oddcast-tts-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. [API Development](/categories/api)
4. /
5. sergix44/oddcast-tts-php

ActiveLibrary[API Development](/categories/api)

sergix44/oddcast-tts-php
========================

A PHP interface to the online Oddcast demo API

1.1(6y ago)6441MITPHPPHP ^7.1CI failing

Since Jan 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SergiX44/oddcast-tts-php)[ Packagist](https://packagist.org/packages/sergix44/oddcast-tts-php)[ RSS](/packages/sergix44-oddcast-tts-php/feed)WikiDiscussions master Synced today

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

Oddcast TTS Demo PHP library
============================

[](#oddcast-tts-demo-php-library)

A library to interface with the online demo of Oddcast TTS engine.

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

[](#installation)

```
composer require sergix44/oddcast-tts-php

```

Example usage
-------------

[](#example-usage)

All the voices are listed on the official Oddcast demo page:

Every voice is ported in the corrisponding namespace e.g. the english voice `Julia`, is in the namespace `SergiX44/OddcastTTS/Voices/English/Julia_US.php`, and so on.

The default voice is Julia (English US)

```
use SergiX44\OddcastTTS\Oddcast;

$tts = new Oddcast();
$tts->setText('Hello my friend!')

$url = $tts->getUrl(); // the url to the .mp3 file
$stream = $tts->getAudio(); // the audio file
$tts->save('path/to/file.mp3'); // save the mp3 on the filesystem
```

You can easily change voice, in the main constructor:

```
use SergiX44\OddcastTTS\Oddcast;
use \SergiX44\OddcastTTS\Voices\Italian\Raffaele;

$tts = new Oddcast(Raffaele::class);
$url = $tts->setText('Hello my friend!')->getUrl();
```

or via setter:

```
use SergiX44\OddcastTTS\Oddcast;
use \SergiX44\OddcastTTS\Voices\Italian\Raffaele;

$tts = new Oddcast();
$url = $tts->setText('Hello my friend!')
  ->setVoice(Raffaele::class)
  ->getUrl(); // you can chain all the calls together
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

2

Last Release

2314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08bc14acf1f7db717de09e715047f5b5684841d6b9712129334931fa8833beda?d=identicon)[SergiX44](/maintainers/SergiX44)

---

Top Contributors

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

---

Tags

oddcasttext-to-speechtts-apitts-engines

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergix44-oddcast-tts-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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