Is there a way to add an audio bar in the Github readme.md? I want to be able to play a certain mp3 file directly through the readme.md, rather than be directed to some soundcloud or youtube link.
Asked
Active
Viewed 7,455 times
2 Answers
6
Update May 2021: as I already reported in "How to embed a video into GitHub README.md?", "Video uploads now is generally available"
Original answer 20217:
No, as I documented before, an <audio> element (or video) is not supported in GitHub Markdown.
For video, a workaround is to use an animated GIF, but for audio, having a placeholder linking to the actual audio seems to be the only way.
VonC
- 1,129,465
- 480
- 4,036
- 4,755
6
As of May 2021, GitHub supports video uploads, and sort of supports audio uploads. While you cannot directly upload .wav or .mp3 files to GitHub, uploading a .mp4 or .mov file containing only audio gives an (albeit poorly-formatted) audio player:
You can convert .wav and .mp4 files into compatible video files with freeconvert.com or any similar converter.
Gavin Uberti
- 308
- 3
- 7