# How to embed Google Drive Audio in HTML Audio Tag

<div class="lead-paragraph"><span class="dropcap">T</span>here may be times where you want to create an HTML audio tag but instead of storing the MP3 on your server, you want to reference it out of your Google Drive storage. In this post, I'll show you how to do it.</div><div class="max-w-4xl mx-auto px-4 sm:px-6 pt-4">             <div class="border-t dark:border-slate-700"></div>           </div>

<h3>Get Share Link From Google Drive MP3 File</h3>

First, in Google Drive locate your file and click on the three dots to bring up a dropdown. Then choose **Share**.

<p><img data-rjs="2" loading="lazy" src="https://travismedia.gumlet.io/public/images/2023/06/google-drive-mp3-share.jpg" /></p>
<br />
Next, under General access, set to "Anyone with the link" and "Viewer."
<br />
<br />

<p><img style="max-width: 70%; margin: 0 auto; display: block;" data-rjs="2" loading="lazy" src="https://travismedia.gumlet.io/public/images/2023/06/google-drive-mp3-permissions.jpg" /></p>
<br />
And click Copy Link to get the link.

However, all you really need is the ID, which is found in the link URL. So with this example:
<br /><br />

`https://drive.google.com/file/d/13s1pwgpWZAbpwYgaFa_MgdxiKGOILCtX/view?usp=sharing`
<br /><br />
...you just need what comes after the `d/` and before the `/view`.
<br /><br />
So I'll copy this ID which is `13s1pwgpWZAbpwYgaFa_MgdxiKGOILCtX`

<h3>Now Create the HTML Audio Tag</h3>

Now that you have the ID of the MP3, add it to the end of this provided link (replace YOURGOOGLEMP3ID with your file's ID that you copied above):

```html
https://docs.google.com/uc?export=open&id=YOURGOOGLEMP3ID
```

And to see it in an HTML audio tag, and example would look like this:

```html
<audio class="player" controls preload="none">
  <source src="https://docs.google.com/uc?export=open&id=13s1pwgpWZAbpwYgaFa_MgdxiKGOILCtX" type="audio/mp3" />
</audio>
```

And it will render as an audio component with the MP3 available to stream:

{{< audio "13s1pwgpWZAbpwYgaFa_MgdxiKGOILCtX" >}}