To use Google Cloud Text-to-Speech, you'll need to create a Google Cloud project and follow the steps below:
Open the Google Cloud Console, navigate to APIs & Services, and enable:
- Cloud Text-to-Speech API
- Cloud Translation API
In the Google Cloud Console, go to APIs & Services > Credentials. Click Create Credentials and select API key. Copy the generated API key for using in the next step.
You can either set the API key in your .env
file:
GOOGLE_CLOUD_API_KEY=<your_api_key>
or update your secrets.yaml
configuration to contain:
google_cloud:
api_key:<your_api_key>