Different voice plugins that use Google Cloud Text-to-Speech API require adding your own API key. In this quickstart, you set up your get Key File for Google Cloud Platform project and authorization and then request for the Text-to-Speech API to create audio from text.
Creating the Google Cloud Key File
Everything is ready to begin the process of getting the key file. Visit the Google Cloud Platform project to select or create a new project
Click + Create Project button to create a new Google Cloud Project. Go to Step 4, if you have already created a project.
Set a unique name for your project, or use default project name. And click the Create button. Please note that the name of the project cannot be changed later.
After creating the project visit Project Dashboard page.
Visit the Billing tab to make sure that billing is enabled for your Google Cloud Platform project. Check out Google Cloud resource prices and quotes. You can use a free quote when using Voicer or pay if you use a plugin on a high-load WordPress website.
Link a billing account to your project. Learn how to enable billing in Google Cloud Project.
Set the Budget Alerts to control the use of quotas and debits.
Cloud Text-to-Speech API has been enabled for your project.
To use the API you’ll need the right credentials. Go to APIs & Services>Credentials> Create credentials> Service account.
Don’t select the account and users access. No role is required to access this service.
Go to the tab KEYS of the just created Service account> press ADD KEY>Create new key.
Click Create and save the generated file on your computer.
Connecting the key file to the Voicer/Speaker Plugin
Visit your WordPress website Admin Panel and open the plugin settings. Go to Settings -> Voicer/Speaker
Click Select Key File and upload your Key File to the WordPress media library.
Click Save Changes for the changes to take effect.