Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

How do I chop out a segment of an mp3 audio file?

I have a ton of mp3 format audio files on my Mac OS X system and want to chop a short segment out of it to use as a custom ringtone for my Apple iPhone. What's the solution?


Dave's Answer:

An mp3 audio file as a custom ringtone on your iPhone, eh? Sounds like a great topic for a tutorial and it's one I've tackled in another article (see Add a custom ringtone to your Apple iPhone), as part of my extensive iPhone help series. But for today, let's focus on the audio file itself.

What I've done is grabbed an audio file to play with, the terrific theme from the Harry Potter movie series, which I found on an Alan Rickman fan site (Alan plays Severous Snape in the movies). Here's a link so you can grab it yourself if you'd like: the audio file is called "Harry Potter Theme" and it's found on this page.

Yes, it's likely that they're violating copyright by having the file available on this fan site, but that's why I'm linking to their site not offering up this audio myself. Download the file at your own risk, however.

Once you have this -- or any other audio file -- you want to edit, it's time to get the terrific cross-platform program Audacity.

Now open up the music file in Audacity and you'll see something very like this:

Harry Potter mp3 theme music, shown in Audacity on the Mac

A complex and sophisticated audio editing program, but fortunately all we need to do is use the play and stop buttons to identify the exact range of the segment we desire. Listening carefully, and zooming in (with the magnifying glass tool) lets you figure out exactly what each "bump" in the waveform represents in the music. Pick out the beginning and end you want, then click and drag to select just that segment of the audio file. It'll look like this:

Harry Potter mp3 theme music, shown in Audacity on the Mac

To test it, I simply click on the play button and Audacity plays that short segment and nothing else. Pegged it? Let's keep going. (if not, then keep fiddling until you get the segment you desire highlighted. It can take a few attempts, in my experience).

With this particular audio clip, it's kinda soft, so a smart way to make it louder is to turn up the gain. Lacking a physical amplifier, we can emulate the same behavior by dragging the "gain" slider to +9db or even higher. Here I am increasing it to +12db:

Harry Potter mp3 theme music, shown in Audacity on the Mac: Increasing the gain

Just about done, believe it or not. Now just select File --> Export Selection As... and choose "mp3":

Audacity on Mac OS X: Export Selection As

Give it a good descriptive name and you should be able to drag it into iTunes or your favorite Web browser and listen to just your little snippet of the larger audio file. Here's how iTunes shows it when I check out the 8-second ringtone I extracted from the longer audio file:

Harry Potter ringtone in Apple iTunes

(Want to hear what I created? Click here)

That's all you should need to do to extract audio snippets from your longer audio material. Audacity can work with a variety of formats, but if you find your music is inaccessible, you might also check out my article on audio conversion solutions for the Mac. Again, if you do want to drop this onto your iPhone as a custom ringtone, check out How to add a custom ringtone to your Apple iPhone too.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.

Ringaza Free Bonus Ringtones and Wallpapers!


Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Thanks so much!!! The only thing is that you may want to mention that you also have to download the LAME converter. Perhaps this wasn't something you needed to do before? Anyways, you're a lifesaver!

Posted by: Jessica at April 18, 2008 4:01 PM

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]