PHPackages                             waglpz/google-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. waglpz/google-tts

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

waglpz/google-tts
=================

Create sound files from text with Google.

v1.3.0(7mo ago)13342MITPHPPHP ^8.2CI failing

Since Feb 23Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/waglpz/google-tts)[ Packagist](https://packagist.org/packages/waglpz/google-tts)[ RSS](/packages/waglpz-google-tts/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (15)Versions (5)Used By (0)

Google Text To Speech Library for PHP
-------------------------------------

[](#google-text-to-speech-library-for-php)

The Google TTS Library enables you to work with text to speech via Google API.

### Requirements

[](#requirements)

PHP 8.2 or higher

### Installation

[](#installation)

composer require waglpz/google-tts:"^1.0"

Authentication with OAuth
-------------------------

[](#authentication-with-oauth)

1. Follow the instructions to [Create Web Application Credentials](https://github.com/googleapis/google-api-php-client/blob/master/docs/oauth-web.md)
2. Download the JSON credentials in some hidden directory and include this one path in config.
3. Set the path to these credentials using config `authConfig`.
4. Set the scopes required for the API you are going to call using config key `scopes`
5. Set your application's redirect URI in config
6. Set expected prompt when redirect to google. These can `none`, `consent` or `select_account`.
7. In the script handling the redirect URI, exchange the authorization code for an access token:

###### Example

[](#example)

```

```

Google documentation
====================

[](#google-documentation)

**Examples to createAudio:**

**PHP Example:**

**Supported Voices and Languages:**

##### Punctuation

[](#punctuation)

```
de_de	⏎	neue zeile, zeilenumbruch
de_de	⏎⏎	neuer absatz, neuer abschnitt
de_de	!	Ausrufezeichen, ausrufezeichen, ausrufungszeichen
de_de	"	anführungszeichen, anführungszeichen oben, anführungszeichen unten, gänsefüßchen
de_de	#	doppelkreuz, hash, hash zeichen, hash-zeichen, hashtag, nummernzeichen, raute, rautenzeichen, rautezeichen
de_de	&	et zeichen, et-zeichen, firmen-und, kaufmannsund, kaufmännisches und, und zeichen, und-zeichen
de_de	'	apostroph
einfache anführungszeichen
einfaches anführungszeichen
einfaches anführungszeichen oben
einfaches anführungszeichen unten
einzelnes anführungszeichen
einzelnes anführungszeichen oben
einzelnes anführungszeichen unten
halbe anführungszeichen
halbe anführungszeichen oben
halbe anführungszeichen unten
de_de	(	klammer auf
linke klammer
runde klammer auf
de_de	)	klammer zu
rechte klammer
runde klammer zu
de_de	*	asterisk
malzeichen
sternchen
de_de	,	beistrich
komma
de_de	-	bindestrich
ergänzungsstrich
trennstrich
de_de	.	punkt
de_de	...	auslassungspunkte
auslassungszeichen
punkt punkt punkt
de_de	/	schrägstrich
slash
de_de	:	doppelpunkt
de_de	;	semikolon
strichpunkt
de_de	?	Fragezeichen
fragezeichen
de_de	@	at zeichen
at-zeichen
de_de	[	eckige klammer auf
de_de	\	backslash
umgekehrter schrägstrich
de_de	]	eckige klammer zu
de_de	^	zirkumflex
de_de	_	unterstrich
de_de	{	geschweifte klammer auf
geschwungene klammer auf
de_de	|	längsstrich
pipe
pipe-symbol
senkrechter strich
verkettungszeichen
de_de	}	geschweifte klammer zu
geschwungene klammer zu
de_de	~	tilde
de_de	–	gedankenstrich

```

Code Quality and Testing
------------------------

[](#code-quality-and-testing)

To check for coding style violations, run

```
composer waglpz:code:style:check

```

To automatically fix (fixable) coding style violations, run

```
composer waglpz:code:style:fix

```

To check for static type violations, run

```
waglpz:code:analyse

```

To check for regressions, run

```
composer waglpz:test:normal

```

To check all violations at once, run

```
composer waglpz:check:normal

```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance65

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~213 days

Total

4

Last Release

212d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d2bf7e4ad2cd1a9994072f5e0d794770b5dcfc27e794e47c2e38a07352485ea?d=identicon)[waglpz](/maintainers/waglpz)

---

Top Contributors

[![bono-dev](https://avatars.githubusercontent.com/u/62245786?v=4)](https://github.com/bono-dev "bono-dev (3 commits)")[![olekhy](https://avatars.githubusercontent.com/u/422148?v=4)](https://github.com/olekhy "olekhy (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/waglpz-google-tts/health.svg)

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

###  Alternatives

[imanghafoori/php-token-analyzer

Token analyzer utility for PHP

16550.4k6](/packages/imanghafoori-php-token-analyzer)

PHPackages © 2026

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