Starting from Speaker version 3.3.0, it became possible to save audio files not only locally but also on Google Drive disk. For this, you need to get your own API key file following the guide below.
Configure the OAuth consent screen
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 the Project Dashboard page.
Click project Menu > APIs & Services > Dashboard
Click Enable APIs and Services > find Google Drive API in the list to enable it for your project.
Click APIs & Services > Credentials. The credential page for your project appears.
Click Configure Consent Screen. The “OAuth consent screen” screen appears
Click the user type for your app. If you’re running a Quickstart, select Internal.
Note: For company-internal apps, scopes aren’t listed on the consent screen and use of restricted or sensitive scopes does not require further review by Google.
Click Create. A second “OAuth consent screen” screen appears.
- Fill out the form:
- If you’re running a quickstart, enter “Quickstart” in the App name field.
- If you’re running a quickstart, enter your personal email address in the User support email field.
- If you’re running a quickstart, enter your personal email address in the Developer contact information field.
- Enter you domain in the Authorized damains.
Click Save and Continue. The “Scopes” page appears. Click Add or Remove Scopes> Select Google Drive API as shown below and press Update.
Click Save and Continue. The “Edit app registration” page appears. Add the Google drive email which will be used for the files uploading.
Click Save and Continue. The “OAuth consent screen” appears, then Click Back to Dashboard.
Create a OAuth client ID credential
In the left-hand navigation, click Credentials. The “Credentials” page appears.
Click Create Credentials and select OAuth client ID. The “Create OAuth client ID” page appears.
Click the Application type drop-down list and select Web application. In the name field, type a name for the credential. This name is only shown in the Cloud Console.
Enter the path to the admin dashboard of your site in Authorized redirect URIs> click Save.
The “Credentials” page appears. Download your JSON file to use it in the Speaker plugin.
Go to Speaker> Storage> select Library+Google Drive in the Storage list to upload your JSON key.
Get a token
Once the key file has been successfully added, you need to get your token by allowing access to the disk to save files.
Click Get a token>Choose an account>press Continue to give access to the App>Select what Speaker can access> press Continue.
The “Choose an account” page appears. Select the account where the files will be stored.
The “Google hasn’t verified this app” page appears. Click Continue.
The “Speaker wants access to your Google Account” page appears. Check the boxes displayed and Click Continue.
You will be redirected to the admin dashboard of your site. To check if everything is installed correctly, go to the Speaker>Storage settings and make sure no errors are displayed.