5 ms·
A sidenote, but adding subtitles to pure audio in HTML is surprisingly difficult!
by karencarits 4y ago
A sidenote, but adding subtitles to pure audio in HTML is surprisingly difficult!
- tuukkah 4y agoDoes it not work to put a track element inside an audio element?
- karencarits 4y agoYou can try to fake it as a video, but in my experience, it is difficult to properly format the element so that the subtitles or captions actually shows https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio https://developer.mozilla.org/en-US/docs/Web/HTML/Element/au... > The <audio> element doesn't directly support WebVTT. You will have to find a library or framework that provides the capability for you, or write the code to display captions yourself. One option is to play your audio using a <video> element, which does support WebVTT.