Preparing Yourself for Digital Audio
Encoding Computer and Audio Hardware Requirements
A few pieces of hardware are necessary to stream audio. Within your computer, certain specifications must be met, such as disk space, processor speed, and RAM. You also need a handful of necessary external objects, such as cabling and speakers. Having a home stereo system of some kind or anotherplaced close to the computeris useful, too.
Disk Space
Digital audio, especially raw (uncompressed) stereo audio, takes up a lot of space on a computer's hard drive. A sound file of raw audio requires about 5MB of disk space per channel per minute. Therefore, a three-minute stereo song file is about 30MB. An entire album of three-minute songs requires somewhere in the neighborhood of 500650MB of disk space, depending on how many songs are on the album. You get the picture. Since you're dealing with using a lot of disk space, it's important to know how much free disk space is available on your authoring computer.
With the price of disk space dropping faster then a Chicago Cubs' fly ball, it's feasible to acquire a hard drive large enough to have at least 1GB of disk space free at all times. In a perfect world, a minimum of 2GB of available disk space is recommended for your computer's hard drive. Calculate that figure after all of the applications and the operating system are installed.
Disk space on a hard drive can be thought of using the "if you build it, they will come" theory of physical space. More lanes on a freeway do not a quicker commute make. They mean more cars on the freeway at that exact moment. A larger hard drive won't help you get your work done any faster, but you'll be able to have more things going on at once. And it's not like you won't use the additional space. Something always comes along to fill it up (see "Backup Storage" later in this chapter).
Processor Speed
Computers get faster clock speeds practically every day. Faster is good in the realm of streaming audio. A faster computer can handle more tasks simultaneously. It also means a smaller chance of getting bogged down or crashing as the machine manipulates big audio files. Nonetheless, older, "slower" machines can do the job, but encoding will take longer.
For Windows/PC users, a clock speed of 500MHz minimum is recommended. It's possible to get by on 300MHz, but you'll be catching up on your reading while waiting for audio to process. As of this writing, almost every new, off-the-shelf computer has a processor running at 1GHz clock-speed or higher.
For Mac users, a PowerPC era (or newer) machine is required. Machines using the G4 processor running at 450MHz or above are recommended.
RAM
As with processor speed and disk space, higher numbers are better. For either Mac or Windows platforms, a minimum of 128MB of RAM is preferred, although it's possible to squeak by on 64MB. New computers typically ship with 256MB of RAM installed. Extra RAM is available for as little as $35 for additional chunks of 256MB. If you're going to do a lot of audio processing, you'll definitely benefit from installing as much RAM as the computer can accommodate. Committed users frequently have 512MB to a full gigabyte of RAM.
To measure how much RAM is currently installed on your computer, perform the following simple steps:
On a Macintosh:
-
Click anywhere on the desktop, or select Finder as your current application.
-
Select About This Computer from under the Apple Menu icon at the top left of your screen.
-
Read the number after Built-In Memory in the pop-up window.
If you are using Windows:
-
Click the Start button at the lower-left corner of your screen.
-
Go to Settings and then Control Panel.
-
Within the Control Panel window, click System and read the number on the bottom line of the General area of the system pop-up window.
Audio Card
Most Macs process audio right out of the box through RCA or 1/8'' mini plug inputs. Some iMac and iBook hardware does not include audio inputs, so a Universal Serial Bus (USB) audio frob is required. This external device converts regular audiofor example, from your stereointo the USB interface so that computers can process it.
Windows/PC systems generally come bundled with audio capability, but it's wise to peek around at the backside of your machine to make sure. Examining the box is easier than getting the manufacturer on the phone. Look for a single 1/8'' mini plug or dual RCA audio input/output plugs. If your computer doesn't have audio input/output capability, you need to install an after-market audio card. Pick up a SoundBlaster (or a clone) card from your local store or Web site.
NOTE
If you have an older computer and have been thinking about upgrading, now might be a good time. Finding an audio card for a machine that is five or more years old is probably more trouble than it's worth. Fully usable, new Windows computer systemswithout video monitorare currently available for as low as $600.
CD-ROM Drive
Any modern computer sold within the past five years typically comes with a CD-ROM drive installed. A CD-ROM drive is essential for bringing audio in from a compact disc. If you don't have a CD-ROM drive in your computer, it's a straightforward task to hook up your home stereo CD playerwhich is also, technically, a CD-ROM drive, except that it reads audio only, not datato your computer's audio inputs.
If you're going to purchase a new computer, consider getting a CD-RW. CD-RW stands for Compact Disc-Read and Write. These are also known as CD burners. The price is slightly higher, but having and using a CD burner just might change your musical life.
Like the CD-ROM, a CD-RW can read audio or data CDs but, unlike the CD-ROM, it can also create, or burn, CDs, with audio or other file formats. Using blank CDseasily purchased just about anywhereyou can use CD burners for backing up applications and crucial data, moving files off of your hard drive to make space for other work, or even creating the ultimate party mix CD for your next hoe-down. CD-RW burning speeds are constantly increasing and, yet again, it's good to get the fastest burner available.
Backup Storage
Make sure important files are backed up in case of disaster. Unfortunately, crashes and data loss happen more often than the computer industry would like to admit. Think of backups as insurance. Most professionals back up their work on a daily basis. The backup operation eventually becomes second nature and is always a good idea. Here, system speed can make a big difference.
Transferring copies of your work to an external hard drive or removable storage media (Jaz or Zip disks, for example), burning work-in-progress files onto a CD using a CD-RW drive or the older, tried-and-true computer-tape systems (such as DAT or cassette) are all serviceable. Given all options, either using an external hard drive or burning to a CD is recommended.
Sound Source
The sounds that you will be streaming over a network have to come from somewhere, and typically it's the CD-ROM drive or your home stereo. Extra Credit users might have mixers and more complex systems (see Chapter 11, "Advanced Audio Optimization"). In the most basic example, though, making the pieces of the entire system talk to each other is simply a matter of connecting the source of the sound to your computer's audio inputs. The source might be a CD, cassette, phonograph, radio, television, or even a live microphone. Of course, you could use existing digital files gleaned from the Internet and saved on your desktop. Answering machines have been used as well, too much general amusement. The possibilities are endless.
Cabling and Audio Routing
Almost every home stereo consumer electronic device comes with a set of RCA cables. Most sound cards come with 1/8'' stereo mini plugs for input and output. You'll recognize 1/8'' plugs from the headphone and line outputs of portable CD or MP3 players. Refer to Figure 2.1 to see the difference between the two types of cable plugs.
Figure 2.1 RCA cables and 1/8'' stereo mini plugs are the industry standard for computer audio input and output.
Cabling is necessary when connecting to and from each type and size of external audio source. Advanced users will investigate higher-quality cabling options such as XLR breakout boxes and pricey, but nice professional grade cable. The difference in audio quality between a 1/8'' mini jack and stereo RCA cable is negligible.
NOTE
Some computers' 1/8'' mic inputs are mono and should only be used if the computer's sound card has no line-level input.
All of the tools must be hooked together in the physical world so that they can do their thing in the digital world. After everything is set up, the cabling might look like plastic spaghetti that's fallen behind the desk, but the principle is basic. Simply route your audio source to your computer (see Figure 2.2).
Figure 2.2 A simple cabling diagram connecting your home stereo to your home computer.
Monitor System
Monitor is a fancy word describing what you use to listen to your audioit's your speakers, really. Your monitor could be little portable headphones for $5 or big, heavy, wooden speaker boxes costing thousands of dollars apiece. Your home stereo speakers will do fine. By the way, speakers are the most important element in your audio food chain, and this is an appropriate place to spend a little money. Depending on how careful a listener you are and how important audio quality is to you, a decent pair of speakers (that's right, a pairstereo is where it's at!) is key for being able to hear what's going on. In addition, having quality speakers makes it easy to hear important frequency differences when performing advanced audio optimizations.
Many brands and models of self-powered speakers are specifically designed to be directly connected to a computer's audio output. These can be remarkably inexpensive and of good quality. A small system that includes a subwoofer is recommended. It shouldn't be necessary to spend more than $40 for a good computer speaker system.
Encoding Computer Software Requirements
There are a number of pieces of software to fit into the streaming audio puzzle. Below is a list of the basic tools you'll need.
Operating Systems: Windows and Macintosh
The operating system (OS) is the platform upon which all of your applications rest. Streaming audio software tools and applications are upgraded so rapidly that it's helpful to have the most recent and stable version of your OS as possible. For Windows users, it's advisable to have Windows 98 or newer. For Macintosh users, OS 9.1 or newer is recommended.
Streaming Audio Players
A player is a computer software application for playing back your streaming (or downloaded) audio files. Because you're learning several streaming formats, several players are necessary. Windows Media, RealMedia, and QuickTime all require their own players to stream files encoded using these formats. MP3 files, because manufacturers recognize MP3's popularity and because MP3 is not a proprietary format, can be streamed through any of the previously mentioned players, as well as a host of free or shareware players available online. Even though these freeware and shareware players are small, free, and simple to install, you can still purchase any number of other third-party players. These third-party players often take up a lot of memory, feature all manner of groovy visual effects to go along with your music, and cost as much as a tank of gas. This book uses Winamp, a popular and free download from http://www.winamp.com, as a basic MP3 streaming player for Windows. For the Macintosh MP3 streaming player, the book will use iTunes, which can be found at http://www.apple.com/itunes.
A list of players can be found in the Appendix, "Tools and Resources."
Rippers and Encoders
A ripper is a software application that pulls, or rips, a song from the CD in your computer's CD-ROM drive onto your computer as an uncompressed, raw audio file (WAV for Windows and AIFF for Macintosh).
An encoder is a format-specific software application that squeezes, or encodes, the raw audio file on your computer to a tiny size, making it ready for uploading to your streaming server.
Software tools are available that perform both tasks of ripping and encoding. Appropriately enough, they're called ripper/encoders. The examples in this book separate these two steps, so ripper/encoders won't be covered in depth.
A list of other rippers, encoders, and ripper/encoders can be found in the Appendix.
Waveform Editors
Almost like having a recording studio in a computer, waveform editing allows users to manipulate audio files in complex and necessary ways, at the click of a mouse. Volume level adjustments, fades, normalizing, and equalization, among other things, become easy to do. For Windows users, this book uses SoundForge 5.0 (http://www.sonicfoundry.com). For Macintosh users, Peak 2.6 LE (http://www.bias-inc.com) is the tool of choice.
A list of other waveform editors can be found in the Appendix.