Create Google Cloud Storage bucket
This guide provides step-by-step instructions for configuring Google Cloud Storage bucket.
MiaRec needs to upload the audio file to Google Cloud Storage bucket before it is submitted to the Speech API service for transcription.
1. Create bucket
- Navigate to Google Cloud Storage console at https://console.cloud.google.com/storage
Make sure the previously created project is selected. Then click Create bucket.
Choose a globally unique name for the bucket, set Default storage class to Regional and choose a region closer to your datacenter (in our example, we choose us-west1.
2. Create lifecycle rule
The Cloud Storage bucket is used only for a temporary storage of audio files. MiaRec application uploads the files to this bucket and instructs the Speech API to take the file from there for transcription. Once the transcription is completed, the file can be deleted from the bucket.
In this step, we will configure automatic deletion of audio files after 24 hours.
In the browser page, click on None in the Lifecycle column for the previously created bucket
In the new window, click Add rule
Select Object condition to Age 1 days and Action to Delete. Click Continue buttons and then Save