Skip to content

A Google Translate wrapper that generates an audio from a given text.

Notifications You must be signed in to change notification settings

fdjkgh580/google-speech-tts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-speech-tts

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>';
}

About

A Google Translate wrapper that generates an audio from a given text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%