Google Text to Speech - Guide use php

there is a guide
better if video
Italian
or else
to learn how to use GOOGLE CLOUD TEXT TO SPEECH
who reads text in a php page?
After days of searching, not finding it, I'm considering trying Amazon Polly.
I kindly ask again if you can help me use GOOGLE.
thanks I'm waiting

0 2 1,251
2 REPLIES 2

Hi, no simple practical help.
I did it with amazon aws Polly in a simple way:
1- creation of credentials (in the AWS panel)
2- I uploaded zip file to my cPanel space
3- I created a php page with a few lines that reads the text.

Is it possible that it can't be done so easily with Google?
If yes please let me know.
thanks I'm waiting
------------
Salve, nessun aiuto pratico semplice.
Ho fatto con amazon aws Polly in modo semplice:
1- creazione credenziali (in pannello aws)
2- ho caricato file zip in mio spazio cPanel
3- ho creato una pagina php con poche righe che legge il testo.

Possibile che non si possa fare in modo cosi semplice con google ?
se si indicatemi fatemi sapere.
grazie attendo

Here are the key steps on how to use Google Cloud Text-to-Speech in a PHP page:

  1. Create a Google Cloud Account: If you haven't already, sign up for a Google Cloud account and create a project.

  2. Enable the Text-to-Speech Service: In your Google Cloud Console, enable the Text-to-Speech service.

  3. API Credentials: Create API credentials to access the service. These credentials include an API key or a JSON file with authentication information.

  4. Text Input: Ensure you have the text you want to convert to speech and upload it to Google Cloud Storage or use the text directly in your PHP application.

  5. Use the API: In your PHP script, use the Text-to-Speech APIs to send requests to the service. Google Cloud offers client SDKs for various programming languages, including PHP. You can find code examples in Google's official documentation.

  6. Play Audio: After obtaining the generated audio from the Text-to-Speech request, you can play it on your PHP page using HTML audio elements or other PHP libraries.