https://github.com/malob/generate-podcast-rss-cloud-function
Google Cloud Function that (re)generates a Podcast RSS feed whenever a new MP3 file is added to a Cloud Storage bucket.
https://github.com/malob/generate-podcast-rss-cloud-function
cloud-function google-cloud nodejs podcast podcast-generator text-to-speech
Last synced: about 1 year ago
JSON representation
Google Cloud Function that (re)generates a Podcast RSS feed whenever a new MP3 file is added to a Cloud Storage bucket.
- Host: GitHub
- URL: https://github.com/malob/generate-podcast-rss-cloud-function
- Owner: malob
- Created: 2018-05-14T01:51:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T12:45:42.000Z (almost 8 years ago)
- Last Synced: 2025-03-18T15:54:41.239Z (about 1 year ago)
- Topics: cloud-function, google-cloud, nodejs, podcast, podcast-generator, text-to-speech
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Generate Podcast feed Cloud Function
This is a [Google Cloud Function](https://cloud.google.com/functions/) I hacked together to work with a Cloud Storage bucket, containing MP3 files and a Podcast RSS feed. In brief, whenever a new file is added to the bucket, this Cloud Function is triggered, and (re)generates a Podcast RSS feed for the MP3s in the bucket.
I created it as part of a project to generate a personal podcast of articles I want to consume. To get the full thing working see my [other repository](https://github.com/malob/article-to-audio-cloud-function) for a Cloud Function that, given a url, generates an audio file of an article using Google's [Cloud Text-To-Speech](https://cloud.google.com/text-to-speech/) API, puts it in a Cloud Storage bucket, and attaches some metadata about the article to the object in the bucket.
## Configuration details
To get this working you'll first need to setup the other Cloud Function mentioned above.
You'll then need to create a new Cloud Function (see configuration details below), and replace the undefined global constants in the code, `gcpProjectID`, and `gcpBucketName`, with the appropriate values. You'll also want to customize the RSS feed metadata in the `feed` constant.
### Cloud Function configuration
* Memory allocation: 256 MB
* Trigger: Cloud Storage bucket
* Event Type: Finalize/Create
* Bucket: [ID of a Cloud Storage bucket]