albo-vieira / google-speech-tts
A wrapper to google translate that generate a audio from a text.
dev-master
2017-02-16 20:38 UTC
Requires
- guzzlehttp/guzzle: ^6.1
This package is not auto-updated.
Last update: 2024-12-21 20:38:17 UTC
README
A Google Translate wrapper that generates an audio from a given text.
composer require albo-vieira/google-speech-tts dev-master
use GoogleSpeech\TextToSpeech; $speech = new TextToSpeech(); $speech ->withLanguage('en-us') ->inPath('../audios'); for($i=0;$i<10;$i++){ $speech->withName('output' . $i); $speech->download('I would try something like that ' . $i); echo 'File generated:' . $speech->getCompletePath() . '<br>'; }