How to Record Audio From Computer Audacity

Turn videos into transcripts, newsletters, social posts and more.

Upload audio or video and get written content in minutes.

Audacity is a popular, free, and open-source audio recording and editing application that allows you to capture sound from your computer. Whether you need to record streaming audio from a website, capture the sound of a YouTube video, or save the audio from a Spotify track, this guide shows you step-by-step how to record audio from your computer using Audacity.

In this post, you will learn how to record desktop audio on Windows using Audacity’s WASAPI loopback feature, understand the benefits of stereo mix versus loopback, and discover practical tips to make your recordings as smooth as possible. We will also cover basic troubleshooting steps and explain how to export your recordings in formats such as MP3 and WAV.

Table of Contents

Setting Up Audacity for Desktop Audio Recording

Before you start recording, you need to make sure Audacity is correctly set up on your computer.

  1. Download and Install Audacity
    • Visit the Audacity official website and download the latest version.
    • Run the installer and follow the on-screen instructions.
    • Once installed, launch Audacity by double-clicking its icon on your desktop or from your Start Menu.
  2. Understanding the Audio Host
    Audacity supports multiple audio hosts. The host you select determines how Audacity communicates with your recording and playback devices.
    • For recording desktop audio on Windows, you will typically use Windows WASAPI.
    • In Audacity, find the Audio Setup Toolbar near the top of the window. Here you see a dropdown for Audio Host.
  3. Selecting the Correct Recording Device
    • In the Audio Setup Toolbar, change the Audio Host to Windows WASAPI.
    • Next, click on the Recording Device dropdown menu. You should see several options such as your speakers or headphones with the word “(loopback)” appended.
    • For example, if you use “Speakers (Realtek High Definition Audio)” to listen to your audio, select “Speakers (Realtek High Definition Audio) (loopback)”.
    • The loopback feature captures the exact audio output that your computer is playing.

Using Windows WASAPI Loopback Recording

The most common method to record audio with Audacity on Windows is by using the WASAPI loopback feature. This method is recommended because it digitally records the sound, avoiding errors that can result from analog-to-digital conversions.

  1. Choosing Windows WASAPI
    • As mentioned above, set your Audio Host to Windows WASAPI.
    • This feature allows Audacity to record audio even when the sound device does not provide stereo mix or a similar physical input.
  2. Selecting a Loopback Device
    • From the Recording Device dropdown, select your output device appended with “(loopback)”.
      For example:
      • “Speakers (Realtek High Definition Audio) (loopback)”
      • Or, if you use headphones, “Headphones (XYZ Audio) (loopback)”
    • This setup instructs Audacity to record what is being sent to your speakers or headphones.
  3. Check Recording Channels
    • In the Recording Channels dropdown, you can choose either mono or stereo.
    • For most high-fidelity recordings, stereo is recommended.
  4. Testing the Setup
    • Before recording, play some audio from your computer (a song, a YouTube video, etc.).
    • Click the Record button in Audacity (the red circle) and watch the audio waveform appear in the track window.
    • If you see squiggles or waveforms moving, your setup is correct.
  5. Recording Process
    • Ensure that all unintended sounds like system notifications or other audio are minimized.
    • When you’re ready, click the record button. It is essential that the audio on your computer is playing when you hit the record button because WASAPI may not capture a completely silent stream.
    • Once you finish, click the Stop button (the black square).

Note: If you see no movement on the audio meter, double-check your recording device settings in Windows and Audacity’s configuration panels.

Alternatives to WASAPI Loopback and Stereo Mix

While WASAPI loopback is the preferred method, there are other ways to record computer audio if, for some reason, your device does not support this feature.

  1. Stereo Mix
    • On some older computers, recording desktop audio is possible via a feature called Stereo Mix.
    • Stereo Mix allows you to record all audio that is being played through your sound card.
    • If Stereo Mix is hidden, try right-clicking in the Recording tab in your Windows Sound settings and selecting “Show Disabled Devices.”
    • However, if you have a modern setup, Stereo Mix may not be available, and WASAPI loopback is the recommended solution.
  2. Third-Party Virtual Audio Cable Software
    • If your computer does not support Stereo Mix or WASAPI loopback, you can use applications like VB-Audio Virtual Cable or SoundLeech.
    • These programs create a virtual audio device that routes your computer's audio output back into the recording input.
    • Once installed, you set the virtual cable as your playback device and then choose it as the recording device in Audacity.
  3. Hardware Workarounds – The Loopback Cable
    • Another option is a physical loopback cable.
    • With a simple 1/8 inch stereo cable (TRS to TRS), you can connect your computer’s headphone jack to the line-in port.
    • In Audacity, choose the Line-In as your recording source.
    • Note that connecting the microphone input may produce mono recordings or reduced quality, so use the line-in jack for best results.

Recording Audio on a Mac

Recording computer audio using Audacity on a Mac is a little more complicated than on Windows.

  1. Limitations on macOS
    • Macs do not natively support capturing computer audio in Audacity due to security and software design constraints.
    • One common workaround is to use additional software such as BlackHole (an open-source virtual audio driver) or a hardware loopback cable.
  2. Using BlackHole on macOS
    • BlackHole allows you to route audio internally on your Mac so that Audacity can capture the sound.
    • Visit the BlackHole GitHub page and follow the installation instructions.
    • In macOS, open Audio MIDI Setup and create a multi-output device that includes both your USB or built-in output and BlackHole.
    • In Audacity, choose the new device as your input source.
  3. Hardware Loopback on a Mac
    • If you have a loopback cable, connect the headphone output to the microphone input.
    • Open System Preferences > Sound and set the input to “Line In” so that Audacity can record from this connection.
    • Unfortunately, many modern Macs do not have a dedicated line-in jack, so this option may not always work.

Using these methods, you can record desktop audio on a Mac with Audacity, though they require additional setup beyond the straightforward WASAPI options on Windows.

Tips for High-Quality Recordings

To ensure that your recordings are crisp, clear, and free from unwanted noise, follow these practical tips:

  1. Check Audio Levels
    • Before you start, adjust the levels both in Windows and in Audacity.
    • Avoid recording at levels that cause clipping; aim for peak levels around -6 dB.
    • Use Audacity’s input level meters to monitor the volume as your audio plays.
  2. Disable Software Playthrough
    • Audacity offers a “Software Playthrough” option which allows you to hear the recording input through your speakers.
    • For desktop audio recording, leave this option turned off. You can disable it by going to Transport > Transport Options > Software Playthrough (on/off) and removing the checkmark.
  3. Minimize Background Noise
    • For the best recordings, ensure that other audio sources (system notifications, background applications, etc.) are muted or disabled.
    • Close unnecessary programs that might generate system sounds.
    • If recording from a microphone, choose a quiet environment.
  4. Use Quality Hardware
    • While Audacity and your computer’s built-in recording capabilities are good, using an external sound card or a USB audio interface can vastly improve quality.
    • For recording streaming or desktop audio, the quality of your playback device also matters—use reliable speakers or headphones.
  5. Match Sample Rates
    • In Audacity’s preferences, check the default sample rate (e.g., 44100 Hz or 48000 Hz) and make sure it matches your Windows settings.
    • Mismatched sample rates can lead to artifacts or timing issues in your recordings.
  6. Sound Activated Recording
    • Audacity offers a sound activated recording feature. If you want Audacity to automatically pause when there is silence, use this feature by going to:
      • Transport > Sound Activation Level
    • Adjust the threshold so that it starts and stops based on the detected audio signal.
      Note: This feature may restart recording unexpectedly when background noise is detected, so use it with care.

Exporting Your Audio Files

Once you’re happy with your recording, you will likely want to export it in a common format.

  1. Saving as WAV or MP3
    • Go to File > Export in Audacity.
    • Choose the format that best suits your needs. WAV files are high quality and uncompressed, while MP3 files are compressed and take up less space.
  2. Installing the LAME Encoder for MP3 Export
    • In older versions of Audacity, exporting to MP3 may require the installation of the LAME encoder.
    • Follow the instructions provided on the Audacity website or in its Help Manual.
    • Once installed, you can export directly to an MP3 by selecting “MP3 Files” as your export format.
  3. Verifying Audio Quality
    • After exporting, listen to the file using your default media player to ensure that the audio quality meets your expectations.
    • Re-import the file into Audacity if you need to perform further edits or if you notice quality issues.

Troubleshooting Common Issues

Even with a correct setup, you might run into issues. Here are solutions to some common problems:

  1. No Audio Detected in Audacity
    • Double-check that you have selected the correct recording device.
    • Confirm that your computer is playing the audio (sound should be coming through your speakers or headphones).
    • In Windows, open the Sound Control Panel and ensure that the correct device is set as default.
  2. Flat or Silent Recording
    • Ensure that you are using a loopback device (for Windows WASAPI) and that your playback is active.
    • Verify that your audio levels are set appropriately in both Windows and Audacity.
    • If you use Stereo Mix on an older system, make sure it is enabled by right-clicking in the Recording Devices panel and selecting “Show Disabled Devices.”
  3. Software Playthrough Feedback
    • If you notice an echo or delay, disable software playthrough in Audacity.
    • Use a direct output device (headphones or speakers connected directly to your computer or audio interface) to avoid delays.
  4. Issues on macOS
    • If using BlackHole or another virtual audio driver, ensure the multi-output device is set correctly.
    • On Macs with newer hardware, verify that all required drivers and permissions are granted for audio recording.
  5. Latency Problems
    • Latency, or delay between the time audio is recorded and when you hear it, can be resolved by lowering the buffer size in your audio interface settings.
    • For Windows users using WASAPI loopback, try reducing the buffer size in your driver settings (accessible from your audio device control panel).

Conclusion

Recording desktop audio from your computer using Audacity is both a powerful and flexible solution, whether you need to capture streaming audio, record a podcast, or save a YouTube video’s sound. Using the Windows WASAPI loopback option, you can capture digital output directly from your speakers or headphones without the need for additional hardware.

For users with alternative requirements, there are options such as Stereo Mix, virtual audio cables, or even hardware loopback cables. Mac users may need to install software like BlackHole or set up an audio MIDI configuration for similar functionality. Remember to adjust audio levels and disable software playthrough for the best results, and export your files using the appropriate format for your needs.

By following the steps in this guide, you’ll be able to start recording any sound coming out of your computer with ease. Experiment with both the basic recording features of Audacity and the advanced settings to create professional-grade audio files.

Frequently Asked Questions

Q: Why do I need to select Windows WASAPI for recording desktop audio in Audacity?
A: Windows WASAPI allows Audacity to capture digital audio directly from the device output (loopback) without unnecessary analog conversion. This results in higher fidelity recordings compared to methods like using a cable or the outdated Stereo Mix option.

Q: What should I do if Audacity is not detecting my loopback device?
A: Ensure that your correct playback device is set as default in Windows’ Sound Control Panel. Then, in Audacity, select the loopback device corresponding to that output. If the device still does not appear, check that your audio drivers are up to date.

Q: Can I record audio from my computer if my device does not have a Stereo Mix option?
A: Yes. Most modern Windows computers support WASAPI loopback. If your computer does not support Stereo Mix, the loopback feature under Windows WASAPI is the recommended alternative.

Q: How do I export my recorded file to MP3 in Audacity?
A: After recording, go to File > Export and select “MP3 Files” as your desired format. You may need to install the LAME MP3 encoder if you have not already. Follow the instructions provided in the Audacity manual for a smooth export process.

Q: What if I’m recording on a Mac?
A: Recording internal audio on a Mac with Audacity requires additional software. You can install a virtual audio driver like BlackHole or use a hardware loopback cable. Once set up, select the appropriate input device in both macOS and Audacity.

Q: How do I avoid recording unwanted system sounds or notifications?
A: Before starting your recording session, mute or disable system notifications and other background audio. Additionally, using noise reduction features in Audacity during the editing phase can help clean up any residual noise.

Q: Is there a way for Audacity to automatically stop recording when the audio becomes silent?
A: Audacity includes a feature called Sound Activated Recording, which can start and stop recording based on a set audio threshold. You can find this option under the Transport menu. Note, however, that if there is any background noise, the recording may start and stop unexpectedly.

Recording computer audio with Audacity is a simple yet effective way to capture high-quality sound from your PC. By following the steps outlined above, you can harness the power of Audacity’s WASAPI loopback feature to record streaming music, videos, and more. With additional tips, alternative methods, and troubleshooting advice provided here, you now have a complete resource to master desktop audio capture.

Start experimenting with Audacity today, and enjoy the freedom of recording the sound that matters to you—be it for podcasts, tutorials, or simply preserving memories from your favorite online media. Happy recording!