Create shared template for showing show transcripts
Used in main index page and individual episode pages.
This commit is contained in:
parent
59549daa63
commit
27a84529c6
12
templates/shared-show-transcript.tpl.html
Normal file
12
templates/shared-show-transcript.tpl.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!--% MACRO show_transcript(episode, episode_type, baseurl, media_baseurl) BLOCK %-->
|
||||||
|
<h2>Show Transcript</h2>
|
||||||
|
<p>Automatically generated using <a href="https://github.com/openai/whisper">whisper</a>
|
||||||
|
<pre><code>whisper --model tiny --language en hpr<!--% zero_pad_left(episode.id) %-->.wav</code></pre></p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Text: <a href="<!--% media_path(episode.id, episode_type, 'txt', baseurl, media_baseurl) %-->">hpr<!--% zero_pad_left(episode.id) %-->.txt</a></li>
|
||||||
|
<li><a href="https://en.wikipedia.org/wiki/WebVTT">WebVTT</a>: <a href="<!--% media_path(episode.id, episode_type, 'vtt', baseurl, media_baseurl) %-->">hpr<!--% zero_pad_left(episode.id) %-->.vtt</a></li>
|
||||||
|
<li><a href="https://en.wikipedia.org/wiki/SubRip">SubRip</a>: <a href="<!--% media_path(episode.id, episode_type, 'srt', baseurl, media_baseurl) %-->">hpr<!--% zero_pad_left(episode.id) %-->.srt</a></li>
|
||||||
|
</ul>
|
||||||
|
<!--% END %-->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user