How to Minimize Audio Latency in Audacity

Audio latency—the delay between producing a sound and hearing it played back or recorded—can disrupt timing and ruin multi-track recordings. In Audacity, you can minimize this delay by decreasing the playback buffer length and fine-tuning your latency compensation settings. This guide outlines the exact adjustments needed to achieve real-time audio performance without introducing clicks, dropouts, or distortion.

Understanding Buffer Size and Latency

The audio buffer acts as a temporary holding area for data while your computer processes sound. A larger buffer gives your CPU more time to process audio, preventing dropouts at the cost of noticeable delay. A smaller buffer reduces latency, making monitoring near-instantaneous, but places a heavier load on your system's processor.

Steps to Adjust Buffer Size in Audacity

  1. Open Preferences:

    • On Windows/Linux: Click Edit > Preferences (or press Ctrl + P).
    • On macOS: Click Audacity > Preferences (or press Cmd + ,).
  2. Navigate to Audio Settings:

    • Select the Audio Settings tab from the left sidebar (in older versions, this is labeled Devices).
  3. Lower the Buffer Length:

    • Locate the Latency section.
    • Find the Buffer length field (measured in milliseconds). The default setting is typically 100 ms.
    • Lower this value incrementally. Try setting it between 20 ms and 50 ms.
    • Click OK to apply the changes.
  4. Test for Audio Artifacts:

    • Record a test track. If you hear crackles, pops, or skips, your CPU cannot handle the lower buffer size.
    • Increase the buffer length by 5 to 10 ms increments until the audio records cleanly.

Choosing the Right Audio Host (Windows)

The audio host determines how Audacity communicates with your sound card, directly affecting minimum buffer limits:

Fine-Tuning Latency Compensation

Lowering the buffer length reduces hardware delay, but Audacity still needs to align newly recorded tracks with existing tracks.

  1. Perform a Loopback Test:
    • Generate a rhythm track (Generate > Rhythm Track).
    • Place your microphone near your speakers or headphones (or route an output cable back into your input).
    • Record the click track onto a second track.
  2. Measure the Offset:
    • Zoom in to view the distance between the original beat and the newly recorded beat.
    • Select the gap to view its duration in milliseconds at the bottom of the screen.
  3. Apply the Correction:
    • Return to Preferences > Audio Settings.
    • In the Latency compensation field, enter the measured offset as a negative number (e.g., if the recording is 35 ms late, enter -35).
    • Audacity will now automatically shift your recorded tracks backward to match the original timing.