Tutorial - Recording Computer Playback on Windows

From Audacity Development Manual
Revision as of 15:57, 21 February 2015 by PeterSampson (talk | contribs) (Choosing the recording device in Audacity: reply to Gale re my sliders behavior)
Jump to: navigation, search

Anleitung - Rechnerwiedergabe in Windows aufnehmen Tutorial - Grabando audio reproduciéndose en el computador en Windows

Gale 27Feb13: Review WASAPI loopback changes - they may need expanding.
  • Peter 29Jan15: WDM-KS host will not be in 2.1.0
  • On Windows XP, Audacity relies on your computer sound device providing an input for recording computer playback, typically called "Stereo Mix" or "What U Hear". This input can be chosen in Audacity's Device Toolbar. If there is no such input, you can use other methods such as a loopback cable as described below.
  • On Windows Vista, Windows 7 or Windows 8, sound devices often lack a "Stereo Mix" or similar input, or it must be specially enabled in the Windows "Sound" Control Panel. On these operating systems, you can also choose Windows WASAPI host and the "(loopback)" input choice in Device Toolbar. This will record computer playback even if the computer sound device lacks its own input to do this.
Alert Copyright or website restrictions may prevent you recording or distributing material. Check first.

Choosing the recording device in Audacity

Choose "MME" or "Windows DirectSound" in the Audio Host box of Device Toolbar and the sound device's input for recording computer playback in the third (Recording Device) box of Device Toolbar. You can also choose this recording device at Recording Device in Devices Preferences.

DeviceToolbarWin7Basic.png

If the sound device provides an input for recording computer playback, it could be called "Stereo Mix", "Wave Out", "Sum", "What U Hear", "Loopback" or other names. The exact name and whether such an input is available depends entirely on the drivers of your sound device. Also Audacity will not see this input unless it is enabled in the Windows Control Panel.

You must play the audio you want to record using the same sound device that has the "Stereo Mix" or similar input. You cannot play audio through an HDMI output or through a headset, headphones or speakers that connect via USB or wirelessly then record that playback using the stereo mix input of the built-in sound device.

Choose the Windows WASAPI host (next section) if you want to record playback of a USB, wireless or external sound device.

Advice Transport > Software Playthrough (on/off) should be off when recording computer playback, so if Software Playthrough has a check mark, click that item to turn it off. Otherwise you will hear and record echoes or distorted sound.
Peter 21Feb15: ToDo-2 Shouldn't we just be telling them to always turn off Software Playthrough when recording what's playing on the PC? Are there any use cases where you don't get echoes or nasty feedback?
  • Gale 21Feb15: I think so. Also I don't see a lot of point in "To hear what a recording of computer playback will sound like, make a test recording and adjust the recording level in Mixer Toolbar before recording for real" in context of the software playthrough warning. Should that suggestion about making a test recording be a separate unboxed paragraph below the advice? Such a note isn't very relevant to WASAPI loopback, but is useful for other methods.
Gale 20Feb15: ToDo-2 Tried to give some sensible advice for users like me for whom WASAPI loopback behavior will change in 2.1.0. It increases the length but it should help reduce support requests. Please review.
  • Changes look ok as far as they go - but on all four PCs that I tested last weekend the behavior did not fall into the categorizations you list below. On all four the sliders are ganged/"linked" but the sound is not "a fixed, safe level" but is controlled by the sound producing app - so I'm not convinced that we can say " ... WASAPI loopback recording will often be at a fixed, safe level." - sometimes it well and sometimes it won't - and our sample size is not big enough yet to ascertain which is the dominant behavior. So I think it's the use of the word "often" in that phrase that I have misgivings about.
  • Gale 21Feb15: We need to make a clear distinction here between the sound you hear and the achieved recording level in the waveform. When I say "WASAPI loopback recording will often be at a fixed, safe level", I mean the achieved recording in the waveform.

    On your machines, when you move either of the ganged sliders A) does that affect the sound you hear and B) does that affect the achieved height of the recorded waveform? I would expect in all cases that changing the volume level of the app playing the sound will affect the sound you hear - the problem change that I receive with full WASAPI is that there is no longer a way to change any slider to turn the volume down and still record a waveform. Muting the device in Mixer lets me still record a waveform, except on the desktop.

  • Peter 21Feb15: On all four of our Pcs (3xW7 and 1xW8)that I tested last week A) yes, moving the sliders affects the sound I hear B) no, moving the sliders does not affect the level of the recorded signal, the waveform or the meters C) the level of the recorded signal can only be managed via the sound supplying app e.g. iTunes or a webstream.

Windows WASAPI loopback recording

On Windows Vista, Windows 7 or Windows 8 only you can choose the Windows WASAPI  Audio Host and then the (loopback) input in the Recording Device box. Choose the loopback input for the computer playback device you will be listening to (for example, "Speakers (loopback)" ). The loopback input records computer playback even if your sound device lacks its own stereo mix or similar input:

DeviceToolbarStreamingAudio - WASAPI loopback.png

WASAPI loopback has an advantage over stereo mix or similar inputs provided by the soundcard that the capture is entirely digital (rather than converting to analog for playback, then back to digital when Audacity receives it). System sounds playing through the device selected for WASAPI loopback are still captured, however.

Playback and Recording sliders

The behavior of the Audacity playback and recording sliders may vary according to the sound device you are recording from.

  • On some devices the Mixer Toolbar recording volume slider will be grayed out when selecting the Windows WASAPI host, and even if not grayed out, the device may not support Audacity or the system input slider adjusting its volume. To control the recording level on those systems, you can try adjusting the playback level of the audio. This is best done in the application that is playing the audio, for example the video or audio player on the website you are recording from. If this does not work then Audacity will record at a fixed, safe level irrespective of the playback level of the audio.
  • On many other devices, the Audacity recording volume and playback volume sliders will be "linked" so that both sliders move when you move either slider, and either slider will affect the level of the audio that you hear. This will often happen if in Audacity you set the (loopback) recording device to the same built-in device as the one selected for playback.
  • When the Audacity recording and playback sliders are linked, WASAPI loopback recording will often be at a fixed, safe level. This means that if you don't want to hear what you are recording you can turn down either slider and still record the waveform at the same level. However on some devices turning down either slider may turn down or silence the achieved recording level. If this happens then to make a recording without hearing it, you can try the following:
    • Click the speaker by the system clock, click the "Mixer" link, then mute the "Device" slider at far left of the "Volume Mixer" window
    • Plug in external speakers or headphones and turn those down
    • Plug in any 1/8 inch (3.5 mm) minijack plug with no lead attached.
Tips for WASAPI loopback recording:
  • You will normally need to start playing the stream (or to have previously played some other audio in the application you are using for playback) before pressing Record in Audacity.
  • WASAPI loopback may not be able to record in mono on all devices. If mono recording produces an error, change Device Toolbar to "2 (Stereo) Recording Channels". You can convert a stereo recording to mono using Tracks > Stereo Track to Mono.
Peter 29Jan15: Commenting this out as WDM-KS will not be included in 2.1.0

ToDo-2 will need to restore this if and when WDM-KS support is added back to Audacity.

  • Advanced: You can view information about the other Device Toolbar audio hosts here. WDM-KS may suffer from low recording level when recording computer playback.

If you do not see any input for recording computer playback, exit Audacity and continue reading below.

Windows Control Panel for sounds

Windows Vista, Windows 7 and Windows 8 computers almost always only have microphone inputs enabled by default. Earlier Windows systems may also need the input for recording computer playback to be made visible before Audacity can use it. To show or enable inputs, launch the sound device control panel from the Windows Control Panel or from the system tray (by the clock).

  • Windows Vista, Windows 7 and Windows 8
  1. Right-click over the Speaker icon by the system clock then choose Recording Devices to open the Recording tab of "Sound".
  2. Right-click anywhere inside the Recording tab and choose "Show disabled devices" then right-click again and choose "Show Disconnected Devices".
  3. Right-click specifically over the input device you want to record with (in this case "Stereo Mix" or whatever alternative you have), and if visible, choose "Enable".
  4. Sometimes it helps to right-click over the "stereo mix" or similar device again and choose "Set as Default Device".
  5. If you need more help, see these Wiki instructions for Windows Vista, Windows 7 and Windows 8.
  • Windows XP
  1. Right-click over the Speaker icon by the system clock then choose Adjust Audio Properties.
  2. In "Sounds and Audio Devices Properties" or similar, click on the Audio tab, then in the Sound recording panel, select the "Default device" you are trying to record from (this will probably be the name of your built-in sound device).
  3. Click the Volume button.
  4. If you can see a stereo mix or similar option, try clicking in its box to select it.
  5. Otherwise, choose Options then Properties.
  6. In the window that appears, click the "Recording" radio button, then in "Show the following volume controls", click in the box for stereo mix or similar, then "OK".
  7. If you need more help, see these Wiki instructions for Windows XP.

RealTek and other soundcard control panels

If you still have no stereo mix input in Windows, sometimes this input can be enabled in the soundcard's own control panel, especially with older RealTek devices. The soundcard's own control panel can be found in the Windows Control Panel. Hints for RealTek control panels:

  • Some panels "select" an input by muting all but one, so in this case, mute everything except Stereo Mix
  • If you don't see Stereo Mix, click the wrench or spanner icon and enable Stereo Mix in the dialog that appears
  • In some panels the option to choose is "Enabled recording multi-streaming"
  • You should now see a volume control for Stereo Mix; make sure it is selected or unmuted.

Updating sound device drivers

If there is still no suitable input, try updating the sound device drivers for your soundcard. This can sometimes produce an additional input for recording computer playback, and may fix other problems such as poor quality or skipping.

Loopback cable

An alternative method of recording audio playing on the computer is to buy a cable with 1/8 inch (3.5 mm) stereo connectors at each end. Suitable cables are available from almost any audio retailer. Connect one end of the cable to the computer's audio output (green) and the other end to the line-in input (blue). Then choose the line-in as input device in Audacity.

Advice Connecting to the microphone input (red) may produce mono sound or poor quality.
To hear what is playing while you record it, buy a single stereo to double stereo adaptor to plug into the audio output. This gives you a spare jack to plug the speakers or headphones into.

Alternative programs for recording computer playback

You can use other programs to record computer playback that do not rely on the computer sound device having this ability. These programs will make an audio file which can then be imported into Audacity for editing.

All the options below grab the audio digitally from the application producing the sound. This has advantages over stereo mix recording. Lossy digital-analog-digital conversions are avoided and also unwanted system beeps and alerts are not captured.

  • SoundLeech is a free application for Windows which runs from the system tray. It records to lossless WAV format only.
  • VB-Audio Virtual Cable is a donation-ware application for Windows XP or later. You can set the Cable Input as default playback device then set Audacity to record from the Cable Output.
  • TotalRecorder is a low cost recording package. Internet streams can optionally be captured at faster than real time rates (monitoring is not available in that mode).

External soundcards

A further alternative is an external USB soundcard with a "Stereo Mix" type of option. An example known to work on all versions of Windows is "Trust Sound Expert External". Not all USB soundcards offer a Stereo Mix option, so read the specifications carefully before purchasing.

Links

|< Tutorial - Recording audio playing on the computer