Anthony Mendez’ Post-amp

What happens outside of my voiceover studio 
« Back to blog

Creating an MP3 Voiceover Demo Download Link

Click here to download:
demo.php (0 KB)

Here's a quick video on how to create a download link for your mp3 or voiceover demos that automatically prompts the visitor to save it to their computer. The advantage of this technique is that it avoids an extra step for your visitor; They won't have to right-click (or CTRL+click on a Mac) and then choose to download it. More importantly, it won't open up the annoying embedded mp3 in the middle of a new or the same window. The latter is usually a result of having linked directly to your audio.

I can think of other uses for this other than serving your demo. For example, if you change the "mp3" in the PHP code to say "aif" or "wav" and create a path to a folder on your website where you store your final voiceover files for your clients, you can then simply send your client a link to that file (formatted as described in the video) that will prompt them to download it; all without having to give them an FTP login and protecting your folder at the same time since you won't be revealing it in the link.

I've attached the required php file to this post or download the ZIP'd file here.

-Anthony

Loading mentions Retweet

Comments (5)

Dec 27, 2009
Bob Ransom said...
Anthony — Excellent! I've already added this to my website. Thanks...

Bob

Dec 27, 2009
Anthony Mendez said...
Bob,

'Happy to share. And kudos for you for taking action so quickly. Most just talk about it.

Enjoy the New Year!
-Anthony

Dec 29, 2009
carlkwan said...
Hey Anthony,

You have no idea who I am but I found out about your cool download thing from The Voiceover Boblog. Anyway, installed it & screwed it up. Tried again but actually followed your directions more accurately and it worked! Thanks for this! It's awesome!

Happy New Year!

Carl

Dec 29, 2009
Anthony Mendez said...
@carlkwan My pleasure! I'm glad it worked for you! Happy New Year and thx.
Mar 17, 2010
Eric Proffitt said...
Awesome! worked like a charm....finally! let me give two little tips that can make this a little easier.

1. the path is case sensitive, so make sure capitals and lowercase are
all correct

2. use this little trick to get your absolute path:

a. copy this little snippet of code to notepad and save as
php file(ie. yourname.php):
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>

b. upload to yourname.php (whatever you named it)
to your server.

c. use a web browser to go to
http://www.yourserver.com/yourname.php
(again these are specific to you)

d. copy your absolute path from the screen

e. delete yourname.php from your server.

Enjoy!

Leave a comment...