Download Google JSON API Key
To utilize Google Cloud for Text-to-Speech services with Speaker.bot, you need to register for Google Cloud Console by going to https://console.cloud.google.com/. You can start off with $300 in free credit to use for certain services (I’m not sure if TTS qualifies yet), but you will need to link a credit card so your bot doesn’t stop working. Once you are logged into the cloud console follow these steps:
- Login to the Google Cloud Console
- Navigate to Billing and add a payment method
- Create a New Project
- Search for Cloud Text-to-Speech in the Cloud Console
- Enable the Cloud Text-to-Speech API in your Google Cloud Console
- Navigate to your API Credentials page
- Click the Create Credentials button, then select Service Account
- Enter any name you want, such as speakerbot-tts, then click Create & Continue
- When prompted to grant additional roles, skip this step by clicking Continue again
- When prompted to grant additional users access, skip this step by clicking Done
- You should now be on the Service Accounts page within Google Cloud Console
- Click on Manage Service Accounts just above where the accounts are listed
- Click the 3 dot menu next to the service account and select Manage Keys
- Click Add Key and select Create New Key
- In the modal dialog, select JSON and click Create
- The JSON file should be automatically downloaded by your web browser
- Save this file in a safe location, for Speaker.bot to access