Project: record and edit a two-person podcast episode
Two hosts, two open mics and one small booth: find the comb before it finds you, sync on a clap, keep each voice out of the other's track, and deliver at −16 LUFS with a loudness report and a checked transcript
You finish module aud1 by doing the whole job once, on your own recording: plan two mics in a small room, record a 10-minute conversation, sync and edit it, keep each voice out of the other’s track, fill the room tone, top and tail it, and deliver it to Apple Podcasts’ loudness spec with a report that proves it, and a transcript you have checked. Every step uses a chapter you have done, from What sound is on. The new idea is the one that only appears when there are two open microphones: the comb filter.
What you deliver
Five files in one folder, named for the episode:
| File | What it is | The check |
|---|---|---|
episode.wav |
the master: 48 kHz, 24-bit, two identical channels | deliver.py prints PASS |
episode.m4a |
AAC at 128 kb/s for an RSS host | measured again after encoding: PASS |
loudness.txt |
the output of deliver.py |
integrated, true peak, LRA, linear or dynamic |
transcript.txt |
your corrected transcript of the whole episode | WER of the machine draft against it, on two minutes |
notes.txt |
the edit log: sync offset, bleed before and after, gate settings, every hand edit, every AI step | a reviewer can redo your work from it |
The spec comes from the platform, not from habit. Apple Podcasts asks that the overall loudness remains around −16 dB LKFS, with a ±1 dB tolerance, and that the true-peak value does not exceed −1 dB FS, both calculated according to ITU-R BS.1770-5. Apple Podcasts Connect accepts WAV, FLAC or MP3; WAV and FLAC at 44.1 to 192 kHz, 16- or 24-bit (24-bit recommended), and single-channel WAV or FLAC is not accepted: a mono source goes as two identical channels. RSS feeds take MP3 or AAC, with AAC recommended, at 128 to 256 kb/s for stereo at 44.1 or 48 kHzas of 2026-11. LKFS and LUFS are the same unit under two names. Other platforms publish other numbers, and some normalise playback rather than set a delivery target; the loudness chapter in module 2 compares them. For this project, Apple’s page is the spec.
Two mics, one voice: the comb
Put two open microphones in a room with two people, and each person reaches both mics: their own, close, and the other host’s, further away. The far copy arrives later by the extra distance over the speed of sound, Δt = (d_far − d_near) / c, with c about 343 m/s at 20 °C. It is quieter by the inverse-distance law, g = d_near / d_far, in free field. When the two tracks are summed, the late copy adds to the early one at some frequencies and cancels it at others. At frequency f the sum’s level, against the near mic alone, is
|H(f)|² = 1 + g² + 2g·cos(2π·f·Δt)
The cosine is −1 when f·Δt is a half-cycle out, so the notches sit at odd multiples of 1/(2Δt): f = (2k + 1) / (2Δt). The peaks sit halfway between, at whole multiples of 1/Δt. Drawn on a log frequency axis, the response looks like the teeth of a comb, which gives it its name. Each notch is 20·log₁₀(1 − g) deep and each peak 20·log₁₀(1 + g) high. Equal copies (g = 1) cancel completely at the notches. A copy 6 dB down (g = 0.5) cuts 6.0 dB and adds 3.5 dB.
Work the booth’s first set-up through. The hosts sit across a small table with their mics about 30 cm from their mouths, a common podcast habit, and the other host’s mic about 60 cm from each talker. The extra 30 cm is 0.30 / 343 = 0.8746 ms. The first notch is at 1 / (2 × 0.0008746) = 572 Hz, then 1,715, 2,858 and 4,002 Hz: right through the body and the presence of a voice. The far copy is 30/60 = 0.5, so each notch is 6.0 dB deep and each peak 3.5 dB high. That ripple, a few hundred hertz apart across the whole voice band, is the hollow sound.
Set the sim to the booth’s first set-up: near mic 30 cm, far mic 60 cm. Read the first notch and check it against the formula. Then try the moves an engineer makes, in this order:
- Flip the far mic’s polarity. The notches move to 1/Δt, 2/Δt and so on, and the peaks move to where the notches were. The comb is still there. A polarity flip fixes a mic wired backwards; it does not fix a delay.
- Align. Sliding the far track earlier by Δt makes the two copies of this talker coincide: the sum is flat and 3.5 dB louder. But a podcast has two talkers, and the delay from Jibola to Lotanna’s mic is not the delay from Lotanna to Jibola’s. Slide the track to fix one voice and you make the other’s comb worse. Alignment is the fix for two mics on one source, which the phase-and-polarity chapter in module 3 covers; it is not the fix here.
- Come closer. Bring each host to 10 cm from their own mic and the far copy drops to 10/60 = −15.6 dB. The notches are now 1.6 dB deep and the peaks 1.3 dB high. The comb is still mathematically there, its first notch moved down to 343 Hz, but at that depth it is a slight colouring, not a hollow voice.
- Pull the far fader down while one person talks. That is what a gate or a hand edit does to the other host’s track. It works while people take turns and fails when they talk over each other.
Two hosts share a small table: the other host's mic is 60 cm from your talker and cannot move. Leave the far fader at 0 dB, polarity normal and alignment off. Move the talker's own mic until the deepest dip in the voice band is no worse than −4 dB.
GOAL: far mic 60 cm, fader 0 dB, normal, not aligned; deepest dip ≥ −4 dB
The working rule for spacing comes from this arithmetic. DPA’s microphone dictionary states the 3:1 rule as: the source-to-microphone distance of numerous microphones should be three times the distance between the sound source and the nearest microphoneas of 2026-11. Three times as far is 20·log₁₀(1/3) = −9.5 dB, a notch of −3.5 dB and a peak of +2.5 dB. It is a rule of thumb from free-field arithmetic, not a law: a real booth adds reflections, and a cardioid mic adds its own rejection for a talker off its axis, so the measured bleed differs. You measure yours in the lab.
Now the hosts will not move: own mic 30 cm, other mic 60 cm, polarity normal, alignment off. Use only the far mic's fader (or a gate) to bring the deepest dip to no worse than −1 dB while that talker speaks.
GOAL: own mic 30 cm, far mic 60 cm, normal, not aligned; deepest dip ≥ −1 dB
The plan in the booth
What goes wrong first is placement, so plan it before anyone sits down.
One mic per person, close. A dynamic cardioid 5 to 10 cm from the mouth, slightly off-axis to keep plosives out. Close-miking is the strongest move you have: it raises each host above the room and above the other host at once, in both tracks. The microphones chapter explains why the proximity effect will add some low end at this distance; you can live with that or roll it off later.
Point the nulls at each other. A cardioid rejects most at the back. Seat the hosts so each mic’s rear faces the other host, not the side. Remember the room: in a small, live booth the other host also arrives by reflections off the wall behind, which the rear null does not reject. The recording-a-voice chapter’s absorption is what fixes that.
Each mic on its own track. Record to a two-channel recorder or interface at 48 kHz, 24-bit, peaks around −12 dBFS, as in Recording a voice. If you have only phones, put one phone in front of each host at the same distance a mic would be and record each separately; you sync them in the edit.
A clap to sync, from the middle. Clap once, loudly, before anyone speaks, from a point the same distance from both mics. A clap 34 cm nearer one mic reaches it 1 ms earlier, and syncing on it would build in a 1 ms offset, enough to put a notch at 500 Hz wherever the two tracks are summed.
Thirty seconds of room tone. Ask both hosts to sit still and silent, with both mics recording, before the conversation starts. You will need it to fill every gap the edit opens, as in Editing audio.
Bleed: gate it, then edit it
After placement, each host’s track still holds a quieter copy of the other host. The question is how much quieter, and you measure it rather than guess: the lab’s bleed.py reads the lag and the level of one host in the other’s mic over a stretch where only one person talks.
A gate mutes a track whenever its level falls below a threshold. On a podcast track it opens for that host and closes, pulling the track down by its range, while the other host talks. It works when the host’s own voice is well above the bleed. With 15 dB between them a gate is easy to set; with 8 dB it is not, because the quiet ends of the host’s own words sit at the same level as the loud bleed, and a threshold high enough to close on the bleed chops the starts of quiet words. When a gate cannot separate them, edit by hand: on the track of the host who is listening, lower or cut the stretches where the other host talks, and fill each cut with that track’s room tone so the background does not switch off. Overlaps, laughter and interruptions stay as they are: there, both mics are wanted.
Loudness and the master
When the edit is done, top and tail the episode (cut the pre-roll and the clap, fade in and out), mix the two tracks to one, and set its loudness. Use the meter to see what you are doing before you trust a command to do it:
Pick the speech programme and the −16 LUFS podcast target. A gain change moves integrated loudness and true peak together, dB for dB. Turning a quiet speech mix up by 10 dB can push its peaks past −1 dBTP, and then a gain change alone cannot meet both numbers. Then you need a true-peak limiter, and every dB it takes off the peaks changes the sound a little.
The lab uses ffmpeg’s loudnorm filter in two passes. The first pass measures. The second applies the measured values with linear=true: when it can reach the target with a single gain while keeping the true peak under its ceiling and the loudness range within its LRA target, it does exactly that. When it cannot, it falls back to dynamic mode and compresses. Both modes print the same −16 LUFS, so the report states which mode ran. The lab aims the true peak at −1.5 dBTP, not −1, because encoding to AAC can raise the decoded peaks, and it measures the encoded file too.
What goes wrong
- Hollow, phasey voices when both tracks play. The comb: too far from your own mic, or the other mic too close. Fix the placement; in the edit, gate or cut the bleed.
- Sync that is right at the clap and wrong later. Two devices with slightly different clocks drift apart. A phone’s 48 kHz is not exactly 48,000 samples a second; over 10 minutes a difference of 20 parts per million is 12 ms. Clap at the end too, measure both claps, and stretch one track if they disagree.
- A gate that chops words. Threshold too high for the separation you have. Lower it and finish by hand.
- Room tone that switches off. A cut that left digital silence. Fill it, as in the editing chapter.
- The right number, the wrong sound.
loudnormin dynamic mode, or a limiter working hard. Read the mode in the report, and listen to the loudest minute. - A transcript with the hosts’ names, the naira amounts and the Pidgin wrong. Expected from a machine draft. You correct it; the WER tells you how much you corrected.
You hear the comb in a generated file first, then record your own episode and take it to delivery. The lab’s two_mic_comb.wav is generated by labs/media/generate.py from a synthetic voice, not a recording. Your episode is real; the numbers you get depend on your room and your mics, so the expected values for steps 3 to 8 come from a test pair made with macOS’s text-to-speech voices and say what to compare yours with.
Work in a folder of your own for the episode, for example ~/pilot, and set M to your labs/media folder so the scripts can import its helpers:
mkdir -p ~/pilot && cd ~/pilot
export M=/path/to/atlas-labs/media # the folder with generate.py and fflib.py1. Hear and measure the comb before you make one.
two_mic_comb.wav holds one voice on two mics: L the close mic, R a second mic further away. Find the delay by cross-correlation, then compare L alone with the mono sum at the first notch the formula predicts:
cd $M
python3 -c "
import fflib as ff, audio_lab as al
f = 'out/audio/two_mic_comb.wav'
sr, L = ff.wav_window(f, 1.0, 1.4, 0)
_, R = ff.wav_window(f, 1.0, 1.4, 1)
lag = al.xcorr_lag(L, R, 100)
print(f'R trails L by {lag} samples = {lag/sr*1000:.3f} ms; first notch {sr/(2*lag):.1f} Hz')
"
for mix in "c0=c0" "c0=c0+c1" "c0=c0-c1"; do
printf "%-10s" "$mix"
ffmpeg -hide_banner -nostats -i out/audio/two_mic_comb.wav \
-af "pan=mono|$mix,bandpass=f=429:width_type=q:w=6,bandpass=f=429:width_type=q:w=6,astats=measure_perchannel=none" \
-f null - 2>&1 | grep "RMS level dB" | sed 's/.*: //'
doneR trails L by 56 samples = 1.167 ms; first notch 428.6 Hz (seed 1). Around 429 Hz, L alone reads about −30.6 dBFS and the sum c0+c1 about −44.8: 14.3 dB down. R is 1.6 dB below L (gain_b_db in answers.json), g = 0.83, and the formula’s notch depth is 20·log₁₀(1 − 0.83) = −15.5 dB; the band-pass is wider than the notch, so the measurement reads a little less. The flipped sum c0-c1 reads about −25.3: at 429 Hz the flip turned the notch into a peak, +5.3 dB, which is 20·log₁₀(1 + 0.83). Check lag_samples, first_notch_hz and notches_hz in out/answers.json; set the sim to a 40 cm difference (for example near 20 cm, far 60 cm): the notches land within 1 Hz of the file’s (extra_distance_cm is 39.8), and the depth differs because the file’s second mic is only 1.6 dB down, not the 9.5 dB that distance alone would give.2. Set up and record.
Place the mics as in “The plan in the booth”: 5 to 10 cm from each mouth, rears towards the other person. Record at 48 kHz, 24-bit, each mic on its own track, peaks around −12 dBFS. Start recording, clap once from the middle, sit silent for 30 seconds, talk for 10 minutes, clap again. Export or convert each host’s track to a mono WAV:
cd ~/pilot
ffmpeg -i host_a_original.m4a -ar 48000 -ac 1 -c:a pcm_s24le host_a.wav
ffmpeg -i host_b_original.m4a -ar 48000 -ac 1 -c:a pcm_s24le host_b.wav-af "pan=mono|c0=c0" and "pan=mono|c0=c1" instead.3. Sync on the clap.
Save this as clap.py. It finds the loudest sample in the first 10 seconds of each file, which is the clap if you clapped before anyone spoke:
"""Find the slate clap: the loudest sample in the first 10 s of each file."""
import sys
sys.path.insert(0, sys.argv[1]) # the labs/media folder, for fflib
import fflib as ff
times = {}
for path in sys.argv[2:]:
sr, x = ff.wav_window(path, 0, 10, 0)
i = max(range(len(x)), key=lambda k: abs(x[k]))
times[path] = i / sr
print(f"{path}: clap at {i / sr:.4f} s (sample {i}), peak {ff.db(abs(x[i])):.1f} dBFS")
first = min(times.values())
for path, t in times.items():
print(f"trim {path} by {t - first:.4f} s")python3 clap.py $M host_a.wav host_b.wav
ffmpeg -i host_b.wav -af "atrim=start=0.0427,asetpts=PTS-STARTPTS" -c:a pcm_s24le host_b_sync.wav
python3 clap.py $M host_a.wav host_b_sync.wavtrim host_b.wav by 0.0427 s; after the trim both claps read 2.0017 s (one sample apart). Use your own trim value in the atrim. If the peak printed is far below 0 dBFS, the script found a word, not the clap: check the time against the waveform. Run clap.py on a window around the second clap too (change 0, 10 to the last 10 seconds): if the two offsets differ by more than a millisecond or two, the devices drifted, and you stretch one track in Audacity (Effect, Change Speed and Pitch) until both claps line up.4. Measure the bleed.
Save this as bleed.py. Give it a stretch of a few seconds where only the first host talks:
"""How much of one host reaches the other host's mic, and what comb that makes.
Usage: python3 bleed.py LABS_MEDIA own.wav other.wav START END"""
import sys
sys.path.insert(0, sys.argv[1])
import fflib as ff, audio_lab as al
own, other, a, b = sys.argv[2], sys.argv[3], float(sys.argv[4]), float(sys.argv[5])
sr, x = ff.wav_window(own, a, a + 0.5, 0)
_, y = ff.wav_window(other, a, a + 0.5, 0)
lag = al.xcorr_lag(x, y, 480) # search +/- 10 ms
rms = lambda p: ff.astats(p, start=a, end=b)["overall"]["RMS level dB"]
bleed = rms(other) - rms(own)
print(f"lag {lag} samples = {abs(lag) / sr * 1000:.3f} ms")
print(f"bleed {bleed:+.1f} dB (3:1 gives -9.5 dB or lower)")
if lag:
f1 = sr / (2 * abs(lag))
print("notches if both faders are up: " + ", ".join(f"{f1 * (2 * k + 1):.0f}" for k in range(4)) + " Hz")python3 bleed.py $M host_a.wav host_b_sync.wav 40 45 # only host A talking
python3 bleed.py $M host_b_sync.wav host_a.wav 95 100 # only host B talkinglag 28 samples = 0.583 ms, bleed -8.0 dB and notches at 857, 2571, 4286 and 6000 Hz. With each mic 10 cm from its own host and 60 cm from the other host, the free-field arithmetic predicts about −15.6 dB and a lag near 70 samples (50 cm over 343 m/s); a live room gives less separation than that. Enter your two distances in the sim and compare its first notch and far-copy level with what the script measured. Write both numbers in notes.txt. The lag can differ between the two directions, which is why alignment cannot fix both.5. Gate the bleed, then finish by hand.
Set the threshold between the bleed level and the host’s own level. agate takes it as a linear amplitude: 0.1 is −20 dBFS, 0.15 is −16.5 dBFS. A ratio of 20 makes it close firmly, and a range of 0.06 lets it pull the track down by about 24 dB rather than to silence, so the room tone stays:
for f in host_a host_b_sync; do
ffmpeg -i $f.wav -af "agate=threshold=0.1:ratio=20:range=0.06:attack=5:release=300" -c:a pcm_s24le ${f}_gated.wav
done
python3 bleed.py $M host_a_gated.wav host_b_sync_gated.wav 40 45
python3 bleed.py $M host_b_sync_gated.wav host_a_gated.wav 95 100bleed.py and log the before and after.6. Top and tail, and mix.
Export both edited tracks from your editor as host_a_edit.wav and host_b_edit.wav, aligned from the same start. Cut the pre-roll and the claps, fade in over 0.5 s and out over 1 s, and mix to two identical channels:
ffmpeg -i host_a_edit.wav -i host_b_edit.wav -filter_complex \
"[0:a][1:a]amix=inputs=2:normalize=0:duration=shortest,pan=stereo|c0=c0|c1=c0" -c:a pcm_s24le mix.wav
ffmpeg -i mix.wav -af "atrim=start=33:end=633,asetpts=PTS-STARTPTS,afade=t=in:d=0.5,areverse,afade=t=in:d=1,areverse" \
-c:a pcm_s24le mix_tt.wavmix_tt.wav starts on the first word and ends after the last. Replace 33 and 633 with your own first and last word times. normalize=0 adds the tracks as they are; with the default, amix would divide each by two and the voices would drop 6 dB. Two identical channels because Apple does not accept a single-channel WAV.7. Deliver to the spec and write the report.
Save this as deliver.py. It runs loudnorm twice (measure, then apply), encodes the AAC, and measures both files:
"""Two-pass loudnorm to Apple Podcasts' target, then measure what you made.
Usage: python3 deliver.py LABS_MEDIA in.wav out_stem"""
import json, sys
sys.path.insert(0, sys.argv[1])
import fflib as ff
src, stem = sys.argv[2], sys.argv[3]
TARGET, TOL, CEIL = -16.0, 1.0, -1.0 # Apple Podcasts, read 2026-11 (see the chapter)
ln = f"loudnorm=I={TARGET}:TP=-1.5:LRA=20" # aim 0.5 dB under the ceiling: encoders add peaks
log = ff.run([ff.FFMPEG, "-hide_banner", "-nostats", "-i", src, "-af", ln + ":print_format=json", "-f", "null", "-"])
m = json.loads(log[log.rfind("{"):log.rfind("}") + 1])
second = (f"{ln}:measured_I={m['input_i']}:measured_TP={m['input_tp']}:measured_LRA={m['input_lra']}"
f":measured_thresh={m['input_thresh']}:offset={m['target_offset']}:linear=true:print_format=json")
log = ff.ffmpeg("-i", src, "-af", second, "-ar", "48000", "-c:a", "pcm_s24le", stem + ".wav")
kind = json.loads(log[log.rfind("{"):log.rfind("}") + 1])["normalization_type"]
ff.ffmpeg("-i", stem + ".wav", "-c:a", "aac", "-b:a", "128k", stem + ".m4a")
for f in (stem + ".wav", stem + ".m4a"):
r = ff.ebur128(f)
ok = abs(r["integrated_lufs"] - TARGET) <= TOL and r["true_peak_dbtp"] <= CEIL
print(f"{f}: I {r['integrated_lufs']} LUFS, true peak {r['true_peak_dbtp']} dBTP, LRA {r['lra_lu']} LU -> {'PASS' if ok else 'FAIL'}")
print(f"loudnorm second pass: {kind}" + ("" if kind == "linear" else " (it compressed: see the chapter)"))python3 deliver.py $M mix_tt.wav episode | tee loudness.txtepisode.wav: I -16.2 LUFS, true peak -2.7 dBTP, LRA 5.2 LU -> PASS, episode.m4a: I -16.3 LUFS, true peak -2.7 dBTP, LRA 5.2 LU -> PASS, loudnorm second pass: linear. Yours should pass both lines in linear mode. If it says dynamic, your episode’s loudness range is wider than 20 LU or it needs more gain than its peaks allow: find the loud laugh or the quiet stretch in the edit and fix it there, then run again.8. Draft the transcript and measure its errors.
Use the multilingual base model from AI clean-up and transcription (142 MiB, in ~/whisper-models); if you have not done that chapter, download it as below. Convert the episode to the 16 kHz mono WAV whisper.cpp reads, and transcribe the whole episode, plus a two-minute clip from its middle for the error count:
mkdir -p ~/whisper-models
[ -f ~/whisper-models/ggml-base.bin ] || curl -L -o ~/whisper-models/ggml-base.bin \
https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin
W=~/whisper-models/ggml-base.bin
ffmpeg -i episode.wav -ar 16000 -ac 1 -c:a pcm_s16le episode_16k.wav
ffmpeg -ss 240 -t 120 -i episode_16k.wav clip_2min.wav
whisper-cli -m $W -f episode_16k.wav -l en -otxt -of draft -np
whisper-cli -m $W -f clip_2min.wav -l en -otxt -of clip_draft -npCopy clip_draft.txt to reference.txt and correct it against clip_2min.wav, word for word: names, amounts, Pidgin as it was said. Write each amount the way the published transcript will write it (for example “₦15,000”). Then count the errors with the lab’s wer.py, the same script the AI clean-up chapter uses; its normalisation rules are in its docstring and in that chapter:
python3 $M/wer.py reference.txt clip_draft.txt --show
rm episode_16k.wav clip_2min.wavWER 10.0% (S 2, D 1, I 0, N 30; tones kept), and --show lists D naira, S a -> niro and S month -> amount: the model wrote “15,000 Niro amount” for “15,000 naira a month”. The first and last words of the clip may be cut in half: leave them out of both files, or the WER counts them as errors. Your WER on two Nigerian voices is the figure that goes in notes.txt, with the --show list. Correct the rest of the draft the same way to make transcript.txt. Keep the model if you will transcribe again; delete ~/whisper-models when you are done with it.deliver.py, change LRA=20 to LRA=3 and run it again on mix_tt.wav. On the test pair it still prints PASS at −16.0 LUFS, but the second pass reports dynamic and the loudness range falls from 5.2 to 3.6 LU: loudnorm compressed the conversation to fit a range you asked for and nobody wanted. The number on the report is right and the hosts sound flatter. That is why the report states the mode.Owoleaf wants the pilot recorded next week in Kilnworth's voice-over booth. The hosts want to sit facing each other across the booth's small table so the talk feels natural. Kilnworth has two dynamic cardioid mics, one two-channel interface and the booth for a single afternoon. You are setting up.
- DOC Audio requirements (Apple Podcasts for Creators)
The delivery spec for this project: loudness, true peak, formats, channels and bit rates. Re-read it before each delivery; it changes.
- POST The basics about comb filtering and how to avoid it Eddy Bøgh Brixen (DPA Microphones)
A microphone maker's engineer on why two mics on one source comb, with the level difference that makes it acceptable. Skip the product mentions.
- DOC 3:1 rule (DPA mic dictionary)
The rule in one paragraph. Read it with the sim open and check the 9.5 dB yourself.
- DOC ITU-R BS.1770: algorithms to measure audio programme loudness and true-peak audio level
The measurement Apple names. You need only the summary and the true-peak annex now; the module 2 loudness chapter goes through the rest.
- DOC FFmpeg filters: loudnorm, agate and ebur128
The options the lab uses, including linear, the measured_ values and the gate's threshold, ratio and range. Read the loudnorm and agate entries; skip the rest of the page.
- CODE whisper.cpp
The local transcriber in step 8: its README lists the models, their sizes and the command-line options. Skip the build instructions if you installed it with Homebrew.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.