Sub topic 6
USB or XLR: connecting the microphone
This chapter assumes you know the difference between dynamic and condenser microphones and have a rough idea of what a polar pattern is. It covers how the microphone's signal reaches your computer, and it ends where level setting begins.
What the connection decides
A microphone produces a tiny analog voltage. Your recording software needs digital numbers. Two components do that conversion:
- A preamp raises the voltage to a usable level.
- An analog-to-digital converter (ADC) samples that voltage and turns it into numbers.
The choice between USB and XLR is a choice about where these two parts live.
- A USB microphone has the preamp and ADC inside its body. It plugs straight into the computer.
- An XLR microphone sends the raw analog signal down a three-pin cable. An audio interface (or a mixer or recorder) supplies the preamp and ADC.
Both paths end at a USB port. The difference is whether the analog stage sits in the microphone or in a separate box.
USB microphones
A USB microphone is the shortest route to a working setup. You get one cable, no extra purchase, and no matching of gain ranges.
Strengths:
- Low cost and few parts to fail.
- Class-compliant on most computers, so no driver is needed.
- Many have a headphone jack with zero-latency monitoring, which feeds the mic signal to your ears before it goes through the computer.
Limits:
- The preamp is fixed. If it is noisy or has little gain, you cannot swap it.
- You cannot upgrade the microphone and keep the converter, or the reverse.
- Each USB mic appears as its own audio device. Two of them usually cannot be combined into one clean recording without extra software.
- Some computers cannot send the microphone and a webcam's audio through the same device, so you must pick the input in each app.
XLR microphones and audio interfaces
XLR is a balanced connection. The cable carries the signal twice, once with its polarity flipped. At the receiving end, the interface flips one copy back and adds them. Noise picked up along the cable is identical on both wires, so it cancels. This is why XLR cables can run tens of meters in a studio and still stay quiet.
An interface adds three things you need to know about:
- Preamp gain. A dynamic microphone has low output and often needs a lot of gain. A cheap interface preamp can add hiss when pushed. Choose an interface whose gain range comfortably covers your microphone's sensitivity. Setting that gain is the next chapter's subject.
- Phantom power (+48V). Condenser microphones need power for their electronics, and the interface supplies it down the same XLR cable. Dynamic microphones do not need it and are normally unaffected. Some ribbon microphones can be damaged by it.
- Separate upgrade paths. You can change the microphone, the interface, or the cable independently.
Sample rate, bit depth, and the clock
Video is almost always 48 kHz audio. Record at 48 kHz and 24-bit unless you have a reason not to. Set that in the operating system's sound settings and in your recording software. If they disagree, the system converts the audio silently, which can add artifacts.
The audio is small. Mono, 48 kHz, 24-bit:
def drift_seconds(ppm, minutes):
"""Audio-versus-video offset after `minutes`, given a clock error in parts per million."""
return ppm * 1e-6 * minutes * 60
sample_rate = 48000
bytes_per_sample = 3 # 24-bit
bytes_per_hour = sample_rate * bytes_per_sample * 3600
print("One hour, mono:", bytes_per_hour / 1e6, "MB") # 518.4 MB
for minutes in (10, 30, 60):
print(minutes, "min ->", round(drift_seconds(50, minutes), 2), "s")
# 10 min -> 0.03 s
# 30 min -> 0.09 s
# 60 min -> 0.18 sThe first result shows that USB bandwidth is never the problem. The second shows the real risk: every digital device has its own clock, and two clocks that are 50 ppm apart drift 0.18 seconds in an hour. If your video comes from a camera and your audio from a separate USB device, lip sync can slide over a long lesson. Short lessons rarely show it. For long takes, either record audio into the camera as well as a reference track, or check sync at the start and the end.
You can confirm what your file actually contains:
ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,channels,bits_per_raw_sample -of default=nw=1 lesson.wavFor a mono 48 kHz, 24-bit file it prints sample_rate=48000, channels=1 and bits_per_raw_sample=24.
Latency and monitoring
Latency is the delay between speaking and hearing yourself through the computer. Software monitoring adds the delay of the audio buffer, often 10 ms or more. Most interfaces and many USB microphones offer direct monitoring, which sends the input to the headphones before conversion, so there is no delay. Use it. The monitoring chapter covers the listening side.
Common errors
- Wrong input selected. The recording app uses the laptop's built-in microphone. Check the input device in the app, not only the system settings.
- Condenser silent or very weak on XLR. Phantom power is off.
- Very quiet dynamic microphone. The interface gain is at its limit. Move the microphone closer, or use an interface with more gain, or add an inline preamp.
- Hum or buzzing. Often a ground loop through a laptop charger or a poorly shielded USB hub. Try the laptop on battery and plug the interface directly into the computer.
- Dropouts or crackles. USB hubs shared with webcams and drives can drop data. Use a direct port. A short, good cable beats a long one.
- Unbalanced adapters. Adapting an XLR microphone to a 3.5 mm camera jack makes the cable unbalanced again and loses the noise rejection. Keep the run short.
Choosing
| Situation | Better choice |
|---|---|
| One speaker, one room, minimum fuss | USB microphone |
| You want to upgrade parts later | XLR with interface |
| Dynamic microphone in a noisy room | XLR with an interface that has plenty of clean gain |
| Two or more people recording at once | XLR with a multi-input interface |
| Travel and quick setup | USB microphone |
Some microphones have both USB and XLR outputs. They let you start with USB and move to an interface later without buying a new microphone.
Exercise
You record a 90-minute lesson with a USB microphone while your camera records its own audio. The camera and microphone clocks differ by 50 ppm. How far apart will the two audio tracks be at the end, and what should you do about it?
Show answer
Drift is 50e-6 x 90 x 60 = 0.27 seconds. That is enough to notice in lip sync. Check sync at the start and at the end of the recording and, if needed, stretch or trim the audio slightly in the editor. Or record shorter takes so the drift never builds up.