Sound guide
People forgive a soft picture. They do not forgive bad sound: they leave in seconds. This guide covers the voice, dialogue, music, effects, ambience and the mix, for every platform, at three levels. Check the finished sound with:
node scripts/mix.mjs --voice voice.wav --music song.mp3 --sfx effects.wav mix.wav --for reels node scripts/mix.mjs --check film.mp4 --for youtube
The five layers
Every soundtrack is built from five layers. Plan them in the script's HEAR column (see guides/script.md), not at the end.
| Layer | What it is | Its job | Loudness in the mix |
|---|---|---|---|
| Voice | Narration, dialogue, the speaker | Carries the story; always clear | Loudest, steady |
| Music | Score, a song, a beat | Feeling and pace | Under the voice, up in the gaps |
| Effects | Hits, whooshes, clicks, impacts | Points at things, sells motion | Short, as loud as the voice at the moment they land |
| Foley | Steps, cloth, cups, hands | Makes the picture feel real | Low, felt more than heard |
| Ambience | Room tone, wind, city, sea | Tells you where you are; fills silence | Low, under everything |
A sound for every picture is slop. A picture with no sound at all feels dead. Choose.
1. The voice
Recording a voice
- Room first. A small room with soft things (bed, curtains, clothes) beats a bare room with a good microphone. Never record in a kitchen or a bathroom.
- Close to the microphone. A hand's width (15 to 20 cm) from a microphone, a little to the side so breath does not pop. A phone held the same way is fine to start.
- Level. Talk at your loudest line and set the gain so it peaks around -10 dB. Never in the red.
- Ten seconds of silence at the start of every take: room tone, to fill gaps later.
- Stand or sit up, smile on happy lines, read it like you are telling one friend.
- Three takes of the hook. Pick the one with energy, not the cleanest.
Cleaning a voice
The order matters. mix.mjs does a gentle version of steps 1 to 4:
- Low cut at 80 Hz (a deep voice 60 Hz): removes rumble.
- Noise reduction, light. Too much makes the voice watery and robotic. Better to record again.
- De-ess: tames sharp s and sh around 5 to 8 kHz.
- Compression: about 3:1, so quiet and loud words sit closer.
- EQ by ear: cut muddiness around 200 to 400 Hz if it sounds boxy; a small lift around 3 to 5 kHz for clarity.
- Cut breaths that are loud, but keep some: a voice with no breaths sounds fake.
An AI voice
Allowed, if you say so where the platform asks, and if the words are yours. Make it sound human:
- Write for speaking: short sentences, contractions, a question now and then.
- Generate line by line, not the whole script at once, and choose the best take of each.
- Add pauses where a person would breathe or think. Speed up lists, slow down the reveal.
- Never use a real person's voice without their written yes.
- An AI voice reading stock pictures with no point of view is what platforms now refuse to pay for ("inauthentic content" on YouTube since July 2025). The voice is a tool; the thinking must be yours.
2. Dialogue
- Record on set with a microphone near the mouth (a clip-on or a boom just out of frame), never only the camera's microphone.
- Same room tone under every cut of a scene, so the background does not jump.
- Overlap cuts: let the sound of the next shot start before its picture (J cut) or the sound of the last shot carry over (L cut). It makes dialogue flow.
- Re-record lines that are lost to noise (ADR): in the same kind of room, watching the picture, matching the mouth.
- For lip-sync with AI video, make the voice first, then animate to it. See
guides/script.md.
3. Music
Choosing
- Pick the feeling for each section, not one song for the whole video. The music changes when the story turns.
- Tempo fits the cutting. Fast cuts: 110 to 140 beats per minute. Calm explainers: 70 to 100. Find the beats with
node scripts/beats.mjs song.mp3and cut on them. - No singing under narration. Words fight words. Use songs with vocals only where nobody speaks.
- Leave room for the voice: music with a lot of energy in the middle frequencies (guitars, synth pads) muddies speech. Simple music works best.
- Silence is music too. Drop it out one beat before the big reveal.
Where it is allowed
| Source | Safe for | Watch out for |
|---|---|---|
| Your own music, or music made for you | Everything | Keep the contract |
| The platform's own library (YouTube Audio Library, Instagram and TikTok sound libraries) | That platform | Business accounts on Instagram and TikTok can only use the commercial library |
| Paid libraries (subscription) | Everything while you pay | Check the licence covers the platform and adverts |
| Trending songs inside Reels and TikTok | That post on that app only | Cannot be used in YouTube videos or adverts |
| Music you found online | Nothing | Copyright claims, muted videos, strikes |
An AI music generator: read its terms. Some give you the rights, some do not, and some songs come out close to real ones.
Mixing music under a voice
- About 15 to 20 dB under the voice while someone speaks; up between lines.
mix.mjsdips it automatically (--duck 10is the default, more for busy music). - Fade in over half a second, never a hard start unless it is a hit.
- End the music on the end of a phrase, not in the middle of a bar.
4. Effects, foley and ambience
Effects
- One sound per real event: a swipe, an impact, a pop as a word lands. Not on every cut.
- Whoosh only for real fast movement of the camera or a thing. A whoosh on every slide is the first sign of a cheap edit.
- Layer an impact: a low thump, a mid hit, a high click. Three quiet sounds beat one loud one.
- Land it a frame early. Sound that arrives with or just before the picture feels right; late sound feels broken.
- Rise (a short swell) before a reveal, then cut it to silence on the reveal.
Foley
Record it yourself: steps on the same floor as the picture, a jacket rubbed near the microphone, a cup set down. Real foley is what makes code animation or AI video feel physical.
Ambience
- Every place has a sound: a room hum, birds, traffic, the sea. Put one under each scene, quietly.
- Change it when the place changes; it tells the viewer you moved before the picture does.
- Room tone fills every gap in the voice track, so the silence never sounds like a dropout.
Free effects before paid ones
Look here before you generate or buy a sound. Licences change and differ from file to file: read the licence on the page of each sound you use, and write it in facts.md beside the file name.
| Where | What it is good for | The licence to check |
|---|---|---|
scripts/sound.mjs (this skill) | Pops, whooshes, hits, thuds, wind, scratches and a made score, drawn in code from the film's own cue list | Yours: made on your computer |
| Your own recording | Foley, rooms, streets, weather: the most real and the most yours | Yours. Ask before recording people |
| Freesound (freesound.org) | The biggest free library: almost any real-world sound, recorded by its users | Per file: CC0 (no credit), CC BY (credit the maker) or CC BY-NC (not for monetised videos) |
| Pixabay sound effects | Clean everyday effects and short ambiences | Pixabay's own content licence; read it for each use |
| Mixkit sound effects | Short game, interface and transition sounds | Mixkit's free licence |
| YouTube Audio Library | Effects and music cleared for YouTube videos | Some tracks need a credit line; meant for YouTube |
| Sonniss GDC bundles | Large professional packs released free each year | Royalty-free for commercial use; read the pack's licence |
| Kenney audio packs | Interface, impact and game sounds | CC0 |
| BBC Sound Effects archive | Decades of real recordings: places, machines, history | Personal, educational and research use only, unless you buy a licence: not for a monetised channel |
Generate an effect only when none of these has it, and price it first (a single generated effect can cost as much as a whole minute of voice). Most stories need a few exact sounds, such as a tank groaning or rivets popping, and many quiet common ones that are free.
5. The mix and loudness
Levels
| What | Where it sits |
|---|---|
| Voice peaks | Around -6 to -10 dBFS before the final loudness step |
| Music under voice | 15 to 20 dB below the voice |
| Effects | As loud as the voice at their moment, never louder for long |
| Ambience | 25 to 30 dB below the voice |
Loudness per platform
Platforms turn every video to the same loudness. Too loud and they turn it down, squashing your peaks; too quiet and most do not turn it up enough.
| Platform | Integrated loudness | True peak |
|---|---|---|
| YouTube, Shorts | -14 LUFS | -1 dBTP |
| Instagram, Facebook, TikTok | about -14 LUFS | -1 dBTP |
| Podcasts | -16 LUFS | -1 dBTP |
| TV (EBU R128) | -23 LUFS | -1 dBTP |
| Cinema | about -24 LUFS dialogue | -2 dBTP |
mix.mjs sets this in two passes. --check measures a finished file and lists problems: too loud or quiet, peaks over the limit, too squashed or too uneven, silence at the start, long dead gaps.
Listen three ways
- Phone speaker: can you hear every word? Bass disappears here.
- Cheap earbuds: is anything harsh or too loud?
- Good headphones: clicks, hum, cut breaths, music edits.
Then watch once with the sound off: many people do. The captions and pictures must still tell the story.
Sound per platform
| Platform | What matters most |
|---|---|
| YouTube long | Clear voice for minutes on end; music that changes per section; no ear fatigue |
| Shorts, Reels, TikTok | Sound from frame one; the hook said in the first second; captions on screen because many watch muted; a sound that loops cleanly if the video loops |
| Reels and TikTok trends | A trending sound can help reach, but only if it fits; your own voice over it beats lip-syncing someone else |
| Most watch muted in the feed: captions are not optional | |
| Podcasts and talking heads | The voice is the product: room, microphone, compression, -16 LUFS |
No slop in sound
- No epic trailer drums under a calm explainer. Match the music to the feeling, not to "make it exciting".
- No whoosh, ding, pop and riser on every cut. One sound per event.
- No music louder than the voice. No singing under narration.
- No flat AI voice reading for ten minutes with no pauses, no stress and no point of view.
- No over-cleaned voice that sounds underwater. No total silence between lines.
- No sound effects from the same free pack everyone uses, unchanged: layer, pitch and trim them.
- No song you do not have the rights to.
Check before you post
- Every word is clear on a phone speaker.
- The first sound starts on the first frame.
- Music dips under every line and breathes in the gaps.
- Every effect is tied to something on screen.
node scripts/mix.mjs --check film.mp4 --for <platform>shows no problems.- The music and effects are yours, licensed, or from the platform's library for that platform.
Levels
First video. Phone close to your mouth in a soft room, ten seconds of room tone, one song from the platform library, mix.mjs to mix and check. Listen on a phone.
Getting good. A real microphone (a clip-on or a small USB one), takes chosen line by line, music changed per section and cut on beats with beats.mjs, layered impacts, room tone under every gap, J and L cuts in dialogue.
Pro. Recorded foley, ambience per place, a full voice chain by ear, music written or edited to the cut, stems kept apart (voice, music, effects) so you can make versions for other languages and platforms, and a loudness check of every export.