Tutorial - Recording Computer Playback on Mac

From Audacity Development Manual
Revision as of 21:46, 25 May 2013 by Windinthew (talk | contribs) (added ednote to incorporate Bill's Wiki content)
Jump to: navigation, search

Tutorial - Grabando audio reproduciéndose en el computador en Mac

Peter 2Aug11
  • needs a Mac user to review it.

Bill 26Nov11: reviewed and edited. I think it is OK now. Removed ToDo-2 Gale 09Feb11: Just checking - there are still so few apps on Mac that allow you to choose output device that it isn't worth even a note div for user to check that? Bill 22Feb12: Certainly none of the browsers have that ability. Some audio apps may have it. So I think it is indeed not worth mentioning.

Mac computers have no ability to record streaming audio as it plays on the built-in sound device; you will have to either employ a loopback cable or use some alternative software for the audio capture, in this case the resulting file should be capable of being imported into Audacity for further processing.

Use Soundflower

Soundflower is a free open source system add-on for Macintosh that allows you to route what is playing on the computer digitally back to the input without using a cable.

You need to set Soundflower as your output device. In Audacity, you then set Soundflower as your input device.

  1. Download and install Soundflower from the Soundflower web site. As of May 2013 clicking the "free download" link on the Soundflower site will take you to the Google code hosting page. On the left there is a panel with the heading "Downloads", then a "Featured" heading, then links for Soundflower 1.5.2 and 1.6.6. Unless you have an Intel Mac running 10.5.8 or later, click the "Show All" link, then choose the version of Soundflower for your Mac and version of OS X.
  2. Choose Apple Menu > System Preferences and select the Sound preferences panel.
  3. In the Sound preferences panel, click on the Output tab, then select "Soundflower (2ch)" from the "Choose a device for sound output" list.
    • At this point you will no longer be able to hear what is playing on the computer. The sound output of the computer is being sent to Soundflower.
  4. Click on the "Sound Effects" tab, and from the "Play alerts and sound effects through" drop-down menu choose "Line Out" or "Internal Speakers" (whichever is appropriate for your system).
    • This will route some system alert sounds (such as Mail alert sounds) to the Line Out or Internal Speakers and not to Soundflower. Thus these sounds will not be recorded by Audacity.
    Some Macintosh applications are better behaved than others when it comes to alert sounds. Tests on a recent iMac running 10.7.2 show that Mail and TextEdit alert sounds will not be recorded with the above setup, but iCal and Yahoo Messenger alert sounds will be recorded. To be safe you should disable the sound on any iCal alerts that may occur while you are recording, and quit any other program that may make an alert sound.
  5. Close the System Preferences window.
  6. In Audacity's Device toolbar select Soundflower (2ch)  menu dropdown as your chosen Input Device

    DeviceToolbarMac02.png
Gale 26May13: ToDo Pasted in Bill's marooned, unlinked to content from http://wiki.audacityteam.org/wiki/User:BillWharrie/Using_Soundflower_to_record_streaming_audio . As the Wiki page is short I suggest if there is anything worth including from it here that we do so and delete the Wiki page. Just include the image of the Mac Sound Prefs?

On Mac OS X, to record the audio you hear through your speakers using Soundflower, you need to set Soundflower as your default output device. In Audacity, you then set Soundflower as your input device.

1) Download and install Soundflower as per the instructions on the Soundflower web site. Note the system requirements, and get the right version for your version of OS X.

2) Choose Apple Menu > System Preferences then the Sound panel, and select the Output pane. This is what it looks like in OS X 10.5.8 - it may look slightly different in 10.4 or 10.6. MacSoundflowerOutputPrefs.png

Select "Soundflower(2ch)" in the output device list.
Note: you will now no longer have any output to your speakers. This is normal.

3) Go to the application that will be playing the sound you want to record. For example, start Safari and go to a web site that plays sound clips. Start some audio playing.
Note that you will not be able to hear the sound.

4) Start Audacity, then choose Audacity > Preferences then the Devices section. MacSoundflowerDevicesPrefs.png

Set the Recording device to "Soundflower (2ch)" and Channels to "2 (stereo)"
Click the OK button to accept the changes

5) Click on the Transport menu and make sure that "Software Playthrough" is checked.

6) Click on the input level meters (above the microphone symbol) to begin monitoring:

MacMetersActive.png
You should now be able to hear the sound playing on your computer.

You are now ready to record anything playing on your computer.

To set things back to "normal" so you can hear audio playing on your computer without running Audacity

1) Click on Apple Menu > System Preferences then the Sound panel, and select the Output pane. Select "Line Out" in the output device list. See step 2 above for an illustration.

2) In Audacity, if you want to record from a different source (such as the Line Input or an external USB device), click on Audacity > Preferences then the Devices section and select the input you want to record from in the Recording section. See step 4 above for an illustration.

For help if you're stuck

Visit the Mac 2.0.x forum, click the "New Topic" button and ask your question.

To hear what is playing on the computer while using Soundflower

When you install Soundflower, a new folder will be installed in your Applications folder called "Soundflower". Inside the folder is a program called "Soundflowerbed". Launch Soundflowerbed: it will install a "flower" menu at right of your menu bar.

The Soundflowerbed menu, showing monitoring Line Output

The choices below the "Soundflower (2ch)" and "Soundflower (16ch)" menu items determine how the output of Soundflower will be monitored. "None (OFF)" means that you will not hear anything from your computer speakers. Selecting "Built-in Audio" will allow you to hear (monitor) the sound that is passing through Soundflower.

If you are using Soundflowerbed to monitor the sound, you will want to uncheck "Software Playthrough" in Audacity's Transport menu.

Use a loopback cable

This is a simple and effective method of recording what is playing on the computer. It has the disadvantage that the audio signal is converted from digital to analog, then from analog to digital, instead of staying in the digital domain. This may result in some slight increase in noise and distortion.

  1. Using a cable with a stereo mini-plug (1/8") at each end, connect the headphone output port to the line input port.
    • At this point you will no longer be able to hear what is playing on the computer. As a workaround, you could attach a single to double stereo connector to the output port provide an extra jack for speakers or headphones.
  2. Choose Apple Menu > System Preferences and select the Sound preferences panel.
  3. In the Sound preferences panel:
    1. Click on the Output tab, then select "Line Out" from the "Choose a device for sound output" list.
    2. Click on the Input tab, then select "Line Input" from the "Choose a device for sound input" list.
    3. Leaving the Sound preferences panel open, start sound audio playing on the computer (this could be from iTunes, or streaming audio, or some other source).
    4. Adjust the Input volume slider so that the top 3 bars of the Input level meter do not light up on the loudest passages, but the rest of the bars do light up.
    5. Close the System Preferences window.
  4. In Audacity's Device toolbar select Built-in Audio: Line in  menu dropdown as your chosen Input Device:

    Audacity Device Toolbar with "Line in" as chosen Input Device
  5. Click on the Transport menu and make sure that "Software Playthrough" is not checked.
Advice

All system alert sounds such as e-mail and program alerts will be recorded using this method. If you have iCal alerts or have turned on event sounds in Mail, you may want to turn them off. You should also quit any program that may make an alert sound while you are recording.

Audio Hijack Pro

This is a commercial program sold by Rogue Amoeba. It can "hijack" the sound output of any program and record that audio to disk in a number of formats. Once you have captured the audio with Audio Hijack Pro you can import the file into Audacity for editing. Since Audio Hijack Pro records the sound output of a particular program there is no danger of recording system alert sounds.

If you need help editing the audio captured by Audio Hijack Pro, have a look at our tutorial on editing an existing file.

Links

|< Tutorial - Recording audio playing on the computer