I am programmatically generating an RSS feed for an audio podcast. I have transcripts in the form of subtitle (SRT) files for each audio file.
Is there a standard or norm, de-facto or de-jure, for adding transcript or lyrics files to the feed?
rss
+- channel
| +- item
| | +- enclosure
"Standard" is a relative term, but there is some consolidation around the "RSS Namespace Extension for Podcasting" extension to RSS (https://podcastindex.org/namespace/1.0).
As long as you have
xmlns:podcast="https://podcastindex.org/namespace/1.0"in your rootrsstag, you can use thepodcast:transcriptelement underitem.It has a
urlattribute which should be the fully qualified URL to the transcript file, and can specify atypeattribute to indicate whether it is text, HTML, JSON or SubRip format.See https://podcastindex.org/namespace/1.0#transcript for more information.