PHPackages                             commacodes/auto-convert-text-to-audio - 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. commacodes/auto-convert-text-to-audio

ActiveLibrary

commacodes/auto-convert-text-to-audio
=====================================

Automatically converts multilingual text to audio and attaches it to your Laravel models.

v1.0.1(1y ago)03MITPHP

Since Apr 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/commacodes/AutoConvertTextToAudio)[ Packagist](https://packagist.org/packages/commacodes/auto-convert-text-to-audio)[ RSS](/packages/commacodes-auto-convert-text-to-audio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Comma Code Company Present =&gt; Auto Convert Text To Audio
===========================================================

[](#comma-code-company-present--auto-convert-text-to-audio)

A Laravel package that automatically converts multilingual text to audio and attaches it to your models.

Requirements
------------

[](#requirements)

### PHP

[](#php)

This package requires PHP version **8.1** or higher, and is compatible with PHP versions **8.1, 8.2, and 8.3**.

### Laravel

[](#laravel)

This package is compatible with the following versions of Laravel:

- Laravel 10.x
- Laravel 11.x
- Laravel 12.x
- SSL Certificate

This Laravel package allows you to automatically convert multilingual content into audio files using Google Cloud Text-to-Speech.

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

[](#installation)

```
composer require commacodes/auto-convert-text-to-audio
```

Then, publish the configuration file:
-------------------------------------

[](#then-publish-the-configuration-file)

```
php artisan vendor:publish --tag=config
```

Usage
-----

[](#usage)

### Move Your Google Service Account Json File to This Path and Rename It To "google-tts.json"

[](#move-your-google-service-account-json-file-to-this-path-and-rename-it-to-google-ttsjson)

```
storage/app/google/google-tts.json
```

Add This Trait To Your Model "HasMultilangTTS"
----------------------------------------------

[](#add-this-trait-to-your-model-hasmultilangtts)

```
