Download mp3 from Google Text to Speech API
This app provides a simple way to convert Google Text to Speech audio to a mp3 file you can download.
- SSML editor (prosody, emphasis, break, spell-out)
- Syntaxic highlight
- Code editor/visual editor
- Dark mode
- RSS feed of cloud.google.com Text to Speech releases
-
Copy files from this repository into your project
-
Run
composer install
-
Follow these steps to configure and activate your api and credentials
-
Copy the content of your credentials file into
PROJECT_NAME.credentials.json
(replacePROJECT_NAME
with your actual project complicated and secret name) -
Copy
.env.example
to.env
and setGOOGLE_APPLICATION_CREDENTIALS
to thePROJECT_NAME.credentials.json
actual filename
Please be aware that with this code your credentials may be exposed. If you plan to make this public, you should protect them by renaming, moving the json file and block public access (for example with htaccess methods) to .env file and credentials json file.
Feel free to open issues or PRs!