how can i embed audio that i uploaded to onedrive into html using the audio element?

You can probably do it this way:

  1. Get the direct link to the file:

    • how to do it:

    • Open OneDrive and Copy Embed Code enter image description here

    • Paste the Embed Code and Modify: Now paste the embed code you copied in a notepad or a text editor. This code looks like this one – <iframe src="" width="98" height="120" frameborder="0" scrolling="no"></iframe>. You have to modify this code, remove everything except source URL of the file and then just replace embed with download to get direct/permanent link. After this modification, the link should look like this –

    • That’s the OneDrive direct or native link

  2. Use this link in the audio tag:

<audio src=""></audio>

I mean provide into src the link you get from OneDrive.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top