Host Audio File in Google Drive & Embed it on Website

Sarmad Gardezi

Many websites like Soundcloud and Reverbnation use image hosting and are large platforms of Sound Hosting websites. But you can make your own Sound Hosting website using google drive for free.

The frame I’m going to share today is just like an embed iframe code but it will help you to embed the sound into your WordPress Blogspot or Weebly website through google drive.

If you have been storing your MP3 files inside Google Drive, you can embed the files directly from Drive without having to upload them to another website. The Drive MP3 player can be embedded on any website that supports IFRAME and the list includes Blogger, WordPress, Medium or even the new Google Sites.

Also see: Embed YouTube as Audio Player in Website & Blog

Step 1: Upload the MP3 to Google Drive

Open and upload the MP3 to your Google Drive. After the file is uploaded, right-click to share and set the sharing permission to “Anyone on the Internet can find and view” to that file will be visible to anyone who visits the link.

Remember: Make Public file is compulsory for the iframe to work.


Step 2: Generate the Player Embed Code

The Google Drive URL will have the following structure so you need to make changes on it.

Now all you have to do is replace /view with /preview and wrap the modified URL in an IFRAME tag as shown:


Here’s a live example. The embedded MP3 player has volume controls, play/pause buttons, seek bar, no Google branding, it works on mobile and the play also auto-detects and displays the duration of the music file.

The MP3 file is hosted on Google Drive and embedded here inside the IFRAME tag Now you can use it on any WordPress Weebly or Blogspot website.

More great articles

How to Create Rss Feed for HTML & Static Website

Rss Feed plays an Important role in Building Website Audience. Most of the website get their daily audience through Email…

Read Story

Use Yoast SEO Meta Tags in Static html and weebly website

It’s clear that a homepage serves a number of different purposes. Among others, it is your welcoming page and your main…

Read Story

Google Docs Hidden Tips and Guides for Beginners

Google offers one of the best word processors in the market with its Docs app. It is responsive, built in the…

Read Story