# Recording desktop audio

## 1. Select the loopback device

{% tabs %}
{% tab title="Windows" %}

* Click on **Audio Setup** and ensure **Windows WASAPI** is set as the Host.

<figure><img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FQWkSRbtdAaHhIwnxrdLL%2Faudacity_avgZPNDCSa.png?alt=media&#x26;token=fb60d52b-aaa5-4795-86dd-8c1dcd837c4d" alt=""><figcaption><p>Select <strong>Windows WASAPI in Audio Setup > Host</strong></p></figcaption></figure>

* Select the output you want to use (the device you're using to listen) as the recording device. It will be marked with a (loopback) after it's name.

<figure><img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FqSTapFBHXvTG3a0BOHOf%2Faudacity_MnCiNlq5w1.png?alt=media&#x26;token=3fbd7845-8ede-4702-b7f0-b39bd6d0e3a8" alt=""><figcaption><p>Select the <strong>loopback</strong> option for the device you want to record audio from.</p></figcaption></figure>

{% hint style="info" %}
Some sound cards also contain a loopback option called *Stereo Mix*, *What you hear* or similar. This also will record your desktop audio.
{% endhint %}
{% endtab %}

{% tab title="macOS" %}
{% hint style="info" %}
**Note:** MacOS does not have built-in desktop audio recording capabilities. You'll need to download Soundflower to record desktop audio.
{% endhint %}

#### Soundflower

{% hint style="warning" %}
**Caution:** Soundflower is not compatible with Apple Silicon-based machines ("M1", "M2", ...)
{% endhint %}

1. Download Soundflower from <https://github.com/mattingalls/Soundflower/releases/> and follow the instructions provided there to install it.
2. Open the **Audio MIDI Setup** app (found in `/Applications/Utilities`).
3. Press the **+** button in the bottom left corner and select "**Create Multi-Output Device**".
4. In the panel that appears to the right, select **Built-in Output** and **Soundflower (2ch)**.
5. Press the gear button in the bottom left and select "use this device for sound output".\
   **Note:** If you don't set an option, you won't hear anything after completing the following steps.
6. Start Audacity
7. Click the **Audio Setup** button and set **Soundflower (2ch)** as the recording device.
   {% endtab %}

{% tab title="Linux" %}
When using PulseAudio (default for Ubuntu, Linux Mint, and others):

1. Install PulseAudio Volume Control (pavucontrol). This should be in your repository already.
2. Use the **Audio Setup** toolbar to select **ALSA** as the audio host and select **pulse** as the recording device.

   If your system uses Pulse by default, the pulse device may be called **default**.
3. Enable the recording meter by selecting **Start Monitoring**.

   <figure><img src="https://github.com/audacity/audacity-support/blob/au4/.gitbook/assets/image%20(2)%20(2).png" alt=""><figcaption><p>Click the Microphone icon to start monitoring the recording level</p></figcaption></figure>
4. Open **PulseAudio Volume Control** and choose the **Recording** tab.
5. In the **Capture from** dropdown, select the "Monitor" option of the playback device used by the application you want to record from

   <figure><img src="https://github.com/audacity/audacity-support/blob/au4/.gitbook/assets/image%20(17).png" alt=""><figcaption><p>PulseAudio Volume Control - Select <strong>Capture from:</strong> Monitor of device</p></figcaption></figure>
6. Launch the application that you wish to record and begin playback.
7. In the "Recording" tab of PulseAudio Volume Control, drag the volume sliders so that the recording level in Audacity's Recording Meter is to left of 0 dB (-6 dB is a good level to aim for).
   {% endtab %}
   {% endtabs %}

## 2. Check if everything is set up correctly

Recording the desktop audio will record all desktop audio, including notification-pings, games, and Audacity itself (for example, other tracks in the timeline if you're using overdub). So unless you specifically want these noises, make sure to turn them off.

{% hint style="danger" %}
**DON'T use input monitoring** when recording desktop audio. Make sure it's off.

<img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FNd7Ci8casMCrYWLDTSsl%2Fimage.png?alt=media&#x26;token=af4fa1a7-936a-470f-94b5-4ae21b211550" alt="" data-size="original">
{% endhint %}

## 3. Record

Hit play to ensure audio is playing and then the record button to record your desktop audio.

{% hint style="success" %}
**Ensure audio is playing first** when recording desktop audio as although WASAPI can record a silent audio stream it can’t record when there’s no audio stream.
{% endhint %}
