A Cloud Function triggered by the Cloud Storage "finalize/create" event.
When a txt file is uploaded or updated in a specified bucket, an mp3 file with the same name will be generated.
- Google Cloud Platform project with billing enabled.
- Enabled Cloud Functions API
- Enabled Cloud Text-to-Speech API
- Create a GCS bucket in which you will generate the mp3 files.
- Create a Cloud Function selecting Cloud Storage as its trigger.
- For the Event Type choose Finalize/Create event.
- Select the bucket you have created during Step 1.
- Deploy the Cloud Function.