PHPackages                             thielander/text2speech - 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. thielander/text2speech

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

thielander/text2speech
======================

PHP library for easy integration of OpenAI's text-to-speech API for text-to-speech conversion

00PHP

Since Dec 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Thielander/openai_text2speech)[ Packagist](https://packagist.org/packages/thielander/text2speech)[ RSS](/packages/thielander-text2speech/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

OpenAI Text-to-Speech PHP Library
=================================

[](#openai-text-to-speech-php-library)

This library provides a simple PHP interface to OpenAI's Text-to-Speech API. It allows you to convert text to speech using various voices provided by OpenAI.

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

[](#installation)

You can install the package via composer:

```
composer require thielander/text2speech
```

Usage
-----

[](#usage)

Here's a simple example of how to use the library:

```
