Sub topic 6
Getting clear, consistent audio
Audio is the most common reason a reviewer sends a course back, and learners abandon a course over bad sound sooner than over mediocre video. This chapter covers what reviewers listen for, how to record clean audio, and how to measure it so you don't have to guess.
This chapter assumes you can record and edit video in a tool such as Camtasia, DaVinci Resolve, Audacity or OBS. It also assumes you are comfortable running commands in a terminal. The commands use ffmpeg and ffprobe, which you need installed.
What the reviewer is checking
Udemy's published guidelines ask for audio that is clear, free of distracting noise, and at a similar level from lecture to lecture. Three problems cause most rejections:
- Low or uneven volume. The learner has to turn the volume up for one lecture and down for the next.
- Background noise or echo. Examples are fan hum, traffic, keyboard clatter and the hollow sound of a bare room.
- Channel problems. The voice plays in only the left or right ear, or the track is silent in one channel.
Udemy has also published a loudness range. The figure I know of is that speech should peak somewhere between about -24 dB and -6 dB. Udemy updates its guidelines over time, so confirm the current numbers in the Instructor Help Center before you rely on them. Keep your thresholds in one place, as the script in the first chapter on self-audits does, so a change means editing one value.
Decibels in this chapter
Digital audio is measured in dBFS (decibels relative to full scale). 0 dB is the loudest signal a file can hold. Every quieter value is negative, so -6 dB is louder than -24 dB. Three numbers matter:
| Measure | What it tells you | Typical target for speech |
|---|---|---|
| Peak (max volume) | The loudest instant in the file. Above about -1 dB the signal risks clipping. | Below -6 dB, never at 0 dB |
| Mean volume | Average level over the whole file, including pauses. | Roughly -24 dB to -16 dB |
| Noise floor | The level of the "silence" between words. | As low as you can get it, ideally below -50 dB |
The mean is always lower than the peak. A file with a peak of -3 dB and a mean of -35 dB is spiky and quiet. Most of it will sound too soft, and the occasional loud syllable will jump out.
The audio chain
Quality is decided in order. A problem at an early stage costs far more to fix at a later one.
Stage 1: The room
The microphone records the room as well as you. Hard, flat surfaces such as bare walls, windows and desks reflect your voice and produce echo (reverb). You can reduce it without buying anything:
- Record in a small room full of soft things: a bedroom with a bed, curtains and a carpet works well.
- Put a duvet or thick blanket behind the microphone or hang it on the wall you face.
- Turn off fans, air conditioning and anything that hums. Close windows.
- Silence phone notifications and email alerts.
- Record a few seconds of silence at the start of every session. You need that "room tone" later to judge noise and, if needed, to train a noise-reduction filter.
Stage 2: The microphone
Reviewers expect a dedicated microphone. A laptop's built-in microphone sits far from your mouth and picks up fan noise and keyboard taps, so it rarely passes. A USB condenser or dynamic microphone is enough. A dynamic microphone rejects room noise better, which helps in untreated rooms.
Placement matters as much as the model:
- Keep the microphone 10 to 15 cm (about a hand's width) from your mouth.
- Aim it slightly off-axis, or use a pop filter, so "p" and "b" sounds don't produce bursts of air (plosives).
- Don't touch the desk or microphone stand while recording.
- Use a stand or boom arm. A microphone sitting on the desk picks up every tap and keystroke.
Stage 3: Recording level
Set the input gain before you record, not after. If the level is too low, you will boost it later and boost the noise with it. If it is too high, the loudest moments reach 0 dB and clip. Clipping is permanent distortion, and no later processing removes it.
Speak at your normal teaching volume and set the gain so the loudest words peak at around -12 dB on the meter. That leaves headroom for excited moments and still sits well above the noise floor. Record a 30-second test, then listen back on headphones.
Mono or stereo
Speech should be recorded as a single channel and played back equally in both ears. A common failure is a USB microphone that records into the left channel only, so the learner hears the lecture in one ear. In your editor, set the track to mono or duplicate it to both channels before you export.
Stage 4: Editing
Light editing fixes most remaining problems. Do these in order:
- Cut dead air and mistakes. Pauses over two seconds make a lecture feel unprepared.
- Reduce steady noise. Use your editor's noise-reduction effect with your room-tone sample. Use the lowest setting that works. Heavy noise reduction makes a voice sound watery.
- Add a high-pass filter at about 80 Hz. This removes rumble from desks and air conditioning, where the voice has little energy.
- Apply gentle compression. A compressor narrows the gap between loud and soft words, so you don't need to ride the volume control. A ratio of about 2:1 to 3:1 is usually enough.
- Normalize loudness. Do this last, across every lecture, so they share one target.
Stage 5: Measure, don't guess
Your ears adapt, and headphones hide problems. Measure every exported lecture. The two commands below read the video's channel count and loudness.
# Print the resolution of the first video stream (expected output like: 1280,720)
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 lecture01.mp4
# Report mean and peak audio volume to compare loudness across lectures
ffmpeg -i lecture01.mp4 -vn -af volumedetect -f null - 2>&1 | grep -E "mean_volume|max_volume"The second command prints lines like these:
[Parsed_volumedetect_0 @ 0x...] mean_volume: -19.4 dB
[Parsed_volumedetect_0 @ 0x...] max_volume: -4.8 dBThis lecture has a peak of -4.8 dB and a mean of -19.4 dB. The peak is above the -6 dB ceiling, so it is slightly too hot. Lower the level by about 2 dB.
Checking every lecture at once
Measuring one file is not enough, because the requirement is consistency. This loop reports channel count, mean volume and peak volume for every MP4 in the current folder, one line per file.
for f in *.mp4; do
channels=$(ffprobe -v error -select_streams a:0 \
-show_entries stream=channels -of csv=p=0 "$f")
stats=$(ffmpeg -i "$f" -vn -af volumedetect -f null - 2>&1 \
| grep -E "mean_volume|max_volume" \
| sed -E 's/.*(mean_volume|max_volume): (-?[0-9.]+) dB/\1=\2/' \
| tr '\n' ' ')
echo "$f channels=$channels $stats"
doneSample output:
lecture01.mp4 channels=2 mean_volume=-19.4 max_volume=-4.8
lecture02.mp4 channels=2 mean_volume=-27.9 max_volume=-11.3
lecture03.mp4 channels=2 mean_volume=-20.1 max_volume=-5.2Lecture 02 stands out. Its mean is about 8 dB lower than the others, so a learner would have to turn the volume up for it. Re-normalize that file.
Note that volumedetect reports the whole file, so a long silent tail or an intro with music pulls the mean down. For a more perceptual measure, ffmpeg's loudnorm filter reports integrated loudness in LUFS. A common speech target is about -16 LUFS, with a true peak no higher than -1.5 dB.
Fixing loudness with ffmpeg
If a lecture is off, you can normalize it without re-encoding the video. This command applies EBU R128 loudness normalization to the audio and copies the video stream untouched.
ffmpeg -i lecture02.mp4 -c:v copy \
-af loudnorm=I=-16:TP=-1.5:LRA=11 \
-c:a aac -b:a 192k lecture02_norm.mp4Then measure the new file again. A single-pass loudnorm can drift on very dynamic material. For speech with steady delivery it is usually accurate enough. If it isn't, run the filter in two passes, using the measured values from the first pass as inputs to the second.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Voice only in one ear | Microphone recorded to a single stereo channel | Convert to mono, or copy to both channels, before export |
| Hiss or hum under the voice | Low gain boosted later, or an electrical hum | Raise gain at the source, add a high-pass filter, reduce noise lightly |
| Hollow, "bathroom" sound | Reflective room | Add soft surfaces, move closer to the microphone |
| Harsh crackle on loud words | Clipping at record time | Re-record with lower gain. It can't be repaired |
| Lectures differ in volume | Different sessions, gain settings or microphones | Normalize every lecture to the same target |
| Voice sounds underwater | Noise reduction set too high | Reduce the strength and rely more on a better room |
| Audio drifts out of sync | Variable frame rate screen recording | Export at a constant frame rate |
Edge cases
- Screen recordings with system sound. If you play a sound effect or demo audio in a lecture, its level is usually much higher than your voice. Lower it in the editor so it doesn't exceed the voice.
- Background music. Keep it at least 15 to 20 dB below the voice, or drop it. Music can also raise copyright issues, which a later chapter covers.
- Different microphones in one course. If you re-record a lecture later with different equipment, the tone will differ. Match the level, and consider re-recording neighbouring lectures if the difference is obvious.
- Guest or phone audio. Remote guests often sound worse than you. Ask them for a local recording rather than using the call audio.
Add audio to your self-audit
The final self-audit chapter combines these checks with the structural ones. For audio, the pass or fail list should include:
- Every lecture has an audio track with two equal channels.
- Peak volume is below -6 dB on every lecture (confirm against current guidelines).
- Mean volume across lectures varies by no more than about 3 dB.
- A listening pass on headphones finds no echo, hum or clipping.
- A second listening pass on laptop speakers finds the voice still audible.
Exercise
You measure three lectures with volumedetect and get these results: lecture01 mean -18.9 dB, max -5.5 dB; lecture02 mean -26.4 dB, max -9.0 dB; lecture03 mean -19.6 dB, max -0.2 dB. Which lecture has a consistency problem, which has a clipping risk, and what should you do about each?
Show answer
Lecture02 is the consistency problem. Its mean is about 7 to 8 dB lower than the others, so learners would have to raise the volume for it. Normalize it to the same loudness target as the rest. Lecture03 is the clipping risk. Its peak of -0.2 dB is at the edge of full scale and above the -6 dB ceiling. Check whether it actually clips. If the distortion is audible, it has to be re-recorded at a lower gain, because clipping can't be repaired. If it is only a few stray spikes, a limiter or a lower overall level will fix it. After changes, measure all three again and confirm the means are within about 3 dB and every peak is below -6 dB.