Add Audio Files on Website

Add Audio Files on Website

Enter your GitHub raw link (or any direct audio link), click “Generate Snippet,” then copy and paste the resulting HTML code anywhere you want.

How to Use

  1. Paste your direct audio URL (e.g., GitHub “raw” link) in the box above.
  2. Click Generate Snippet to create the final HTML code snippet.
  3. Use the Copy Code button to copy the snippet to your clipboard.
  4. Embed or paste that code into any site or HTML file to display a responsive audio player.
  5. Each snippet uses class="multi-audio" on the audio tag. If you add multiple audios and want only one to play at a time, see below!

How to Play Only One Audio at a Time

If you want to add multiple audios on one webpage, and only one should play at a time, copy the script below and place it once anywhere on the page (preferably near the bottom).

Disable Inspect, Right Click, and Text Selection