Audio

Put a voice-over or a music bed under your animation. Import a recording, place it on an audio track, cut it, shape its volume, and hear it with the scene.

The editor with an eleven-second recording on an audio track under the two tracks of formulas; the Creator's Audio tab lists the recording and the Animations panel shows the selected audio clip.
The example The square of a sum with its narration: the recording in the Creator’s Audio tab, its clip on an audio track under the formulas, and the clip’s properties on the right.

The parts of sound

Sound has three parts. A recording is a sound file that you import once; it lives in the Creator’s Audio tab. A clip is a piece of a recording placed on the timeline, with its own trim and its own volume. An audio track is a row of the timeline that holds clips.

Nothing you do to a clip changes the recording. Trimming and splitting choose which part plays; the volume line says how loud. The sound plays with the scene in the Preview, goes into a video when you ask for it, and can be exported alone.

The figures on this page use the example below and an eleven-second recording made for it: a synthetic hum in three phrases, with a pause after each, that stands in for a voice. Download both to follow along.

audio-narration.mp3 (66 KB) is the recording. The project is the card below: download it, choose File ▸ Open…, press Other file… and pick the file (Projects and files explains the dialog).

Importing a recording

Open the Audio tab of the Creator. Press Import audio… and choose one file or several, or drag audio files from your desktop onto the tab: while they are over it, the tab says Drop audio to import it.

The Audio tab of the Creator with no recordings: a search field, the Import audio button and a line that says what to do.
The empty tab: Import audio… (1) and the search field (2). The line under them repeats what to do.

MP3 and WAV are the formats to count on. The file picker also lists M4A, AAC, FLAC, OGG, Opus and WebM, and any other file comes in if your browser can decode its sound. When it cannot, a notice says Could not import and the file’s name, with the reason: for example This browser cannot decode the audio in this file. or This file does not contain an audio track.

While a file is read, the tab says Preparing audio-narration.mp3… and then Importing audio-narration.mp3 · 42%, with a Cancel button. Files that you give while one is being read wait for their turn.

The recording’s row

A recording's row in the Audio tab: its name, a delete button, its length and sample rate, the two fields From and To, and the Add to timeline button.
A recording’s row: its name (1), delete (2), its length, sample rate and how many clips use it (3), the part of it to place (4) and the button that places it (5).

Putting it on the timeline

A recording does nothing until a piece of it is on the timeline. Choose the piece with From (s) and To (s) — the whole recording by default — and press Add to timeline.

The Audio button of the timeline’s toolbar adds an empty audio track at the bottom of the list, named in the same way. Audio tracks mix: sounds on different tracks play together, and clips on one track cannot overlap.

Anatomy of a clip

An audio clip on its track: its name with a note, the Volume button, the volume-line button, the handle at its start and the waveform with the volume line over it.
An audio clip on its track.
  1. The name, with a ♪. Drag it to move the clip.
  2. Volume… opens the volume editor (later in this page).
  3. The volume-line button turns on the editing of the volume line on the clip itself.
  4. The strips at the top corners are the handles that trim the clip.
  5. The graph is the waveform of the recording, with the volume line over it.

A clip on a muted track is dimmed. A clip whose recording is missing is hatched (see Saving).

Moving, trimming and splitting

Move

Drag a clip by its name — or from anywhere on it, until you turn the volume line on — to move it along its track or to another audio track. Snap pulls its edges to the playhead, to the edges of other clips and to the ruler’s small ticks; to place it freely, hold Shift while you drag (press the clip first: Shift at the press adds the clip to the selection, or takes it out when it was selected). Clips can only go to audio tracks. A selection of sounds and formulas together moves together in time.

Trim

The end of the clip dragged left cuts the last phrase off. Dragged back, the phrase returns: the recording was never cut.

Drag the handle at the start or at the end of a clip to trim it. Trimming never cuts the recording: drag the edge back and the sound comes back. Trimming the start leaves what remains where it was in time. An edge stops at the next clip of the track and at the ends of the recording.

The edges snap like any other. The volume editor has two fields, Source start (s) and Source end (s), for a trim by the second.

Split

The playhead in the pause after the first phrase, S, a click on the second part to select it, and a drag that moves it later.

Put the playhead where the cut goes, select the clip and press S. The clip’s menu has Split at playhead (S) too, and so does the Animations panel, with its button Split selected audio at playhead (the panel is titled Audio while only sounds are selected). Both parts keep the volume curve of the original, so the sound is the same with the cut as without it, even in the middle of a fade. Both are selected afterwards: a drag moves both, and a click on one part selects just that part.

When the playhead is not inside a selected clip of an unlocked track, the menu entry and the button of the panel say so in a notice and change nothing. S does the same while a clip of an unlocked track is selected.

Duplicate, delete and the clip’s menu

The menu of an audio clip: Edit volume and trim, Split at playhead, Fade In, Fade Out, Timing, Duplicate and Delete.
Right-click a clip for its menu.

Ctrl+D copies the selected clips, each into the free time after it on its own track, and selects the copies. Delete removes the selected clips; Undo brings them back. Deleting a clip from the middle of a track leaves a gap: the clips after it do not move. The Timing › entry copies when a clip starts and ends and pastes it onto another (see Timing tools).

Volume

The line over the waveform is the clip’s volume. 100% is the loudness of the recording and sits at mid-height of the graph; 0% is silence, at the bottom; 400% is the loudest the editor allows, at the top. Fades and reductions have the lower half of the graph, amplification the upper half.

Until you turn it on, the line is a drawing: a drag anywhere on the clip moves the clip, so that a drag meant for the clip never changes its volume. The button beside Volume… turns the editing on, for that clip only. A scale (400%, 100%, 0%) appears, the line and its points become handles, and the clip then moves by its name alone.

The line turned on, two points added with a double-click, and the last one dragged down: a fade out drawn by hand.
GestureWhat it does
Drag the flat line up or downChanges the level of the whole clip.
Double-click the lineAdds a point at the level the line has there: the sound does not change.
Drag a pointMoves it in time and in level. It stops at its neighbours.
Drag a segment between two points, up or downMoves both of its points by the same amount, so its slope stays.
Arrow keys on a focused point↑ ↓ change its level by 1% (Shift: 10%); ← → move it by 0.01 s (Shift: 0.1 s).
Delete on a focused pointRemoves it.
Enter on a focused pointOpens the volume editor.
Esc during a dragTakes the drag back.

Each drag is one undo step. The line before its first point and after its last point stays at the level of that point.

The volume editor

The Audio dialog of the narration clip: source start and end, constant volume, fade duration, the Fade In, Fade Out and Reset volume buttons, a field to add a point, and the table of the volume points.
The volume editor after Fade In and Fade Out of one second each.

Open it with Volume… on the clip, with a double-click on the clip, with Edit volume and trim… in its menu, or with Volume, fades and trim… in the Animations panel. It is the numeric side of everything above, and what you change applies at once and can be undone.

Fades

Fade In and Fade Out put ordinary points of the line at the clip’s trimmed edges: a ramp from silence at the start, or to silence at the end. Fade duration (s) says how long. Until you type one, the fade is half the clip, up to 0.5 s, and follows the clip when you trim it; a duration you type stays. Applying a fade again replaces the points of its stretch, and points outside it stay for when you restore a trim. Reset volume goes back to a constant 100%. The clip’s menu has both fades too, at the default length.

When the mix is too loud

Two sounds at 100% together, or a clip above 100%, can be louder than the output allows. While the scene plays, the playback bar shows the peak of the mix as ♪ 85%; over 100% it adds Clip and turns to the warning colour. Lower a clip or a track, or reshape the line, until it stays under.

Audio tracks

Two audio tracks: each header has a name, keys for its height, and the mute, lock, move up, move down and delete buttons. The second track is muted.
Two audio tracks, the second one muted: the row of keys of its header, from mute to delete (1), and the two small keys that make a track lower or taller (2).

An audio track’s header has the keys of a visual track’s, except that the eye is a speaker.

The Animations panel — titled Audio while only sounds are selected — shows an Audio clip card for a selected clip: its times, its part of the recording, whether its track is muted or locked, and two buttons, Volume, fades and trim… and Split selected audio at playhead.

The Animations panel with an audio clip selected: its name, its times and source, the Volume, fades and trim button and the Split selected audio at playhead button.
The Animations panel, titled Audio because only a sound is selected: split at the playhead (1) and the volume editor (2).

Two recipes

Take a pause out

  1. Put the playhead at the start of the pause and split the clip (S).
  2. Put the playhead at the end of the pause, click the part on its right to select it, and split again.
  3. Select the middle part, the pause, and press Delete.
  4. Drag the part on the right to the left until its start meets the end of the part on the left: with Snap on, it jumps onto that edge.

Make music quieter under a voice

  1. Import the music and place it on its own audio track, under the voice.
  2. Turn on the music’s volume line, and double-click it four times: just before the voice starts, as it starts, as it ends, and just after.
  3. Drag the segment between the middle two points down to about 30%. The two ramps on its sides bring the music down and back up.

Keys and gestures at a glance

WhatHow
Move a clipDrag its name. Hold Shift during the drag to place it freely.
Trim a clipDrag a handle at its top corners.
Split at the playheadS
DuplicateCtrl+D
DeleteDelete or Backspace
Undo, redoCtrl+Z, Ctrl+Shift+Z
Add a point to the volume lineDouble-click the line, once it is turned on.
Play, pauseSpace

Hearing it

Press Space or Play in the bar under the Preview: the sound plays with the scene. The first time, the bar says Preparing audio… while the editor reads the recordings; press the button again to cancel it. Moving the playhead, muting a track and editing a volume line all work while it plays. The sound follows the audio device’s clock, so picture and sound stay together.

A scene lasts until its last clip ends, a sound clip included. When the narration is longer than the formulas, the scene — and a video exported by the browser or by ffmpeg — lasts as long as the narration. File ▸ Project settings… can fix the length instead (Duration ▸ Fixed).

Exporting sound

The Export audio dialog: format, start and end in seconds, a note that the file is 48 kHz stereo, and the estimated size of a WAV file.
Export ▸ Audio… writes the mix without drawing any formula.

Export ▸ Audio… writes the sound of the scene as a file: 48 kHz, stereo, with the volume curves and the track mutes applied. Choose a Format, a Start (s) and an End (s) — the whole scene by default, up to 60 minutes — and press Export audio.

FormatWhat it is
WAV · PCM 16-bitUncompressed, about 11 MiB a minute; the dialog shows the estimated size.
WebM · OpusCompressed, small.
M4A · AACCompressed. Only where the browser can encode AAC (Chrome and Edge on Windows and macOS); the dialog says so where it cannot.

A video takes the sound along: Export ▸ Video… has an Include audio option, described in Exporting video. The exported Python has none: its dialog says Audio is omitted from Manim exports. To add the sound to a scene rendered by Manim yourself, call Manim’s self.add_sound("audio-narration.mp3") in the scene (The generated Python).

An export needs the recordings of its clips that are not muted. When one is missing, the export stops before it starts and names it.

Saving, and a recording that is missing

A project with recordings is saved as an .mfe package: one file with the project and every recording in it, the unused and the muted ones too. A project without recordings is saved as .mfe.json, unless it was opened from a package (File ▸ Save keeps it a package) or holds more font-text shapes than a plain file carries. Open a package like any project (File ▸ Open…, then Other file… for one from your disk): the editor checks each recording and copies it into the browser’s storage, with a progress dialog and a Cancel button for a large file.

When the browser no longer holds a recording, its clips stay where they are, hatched and marked missing media, and the playback skips them. The recording’s row says Original unavailable, and a notice names the files.

An audio clip drawn hatched, with a small label that says missing media beside its name.
A clip whose recording the browser does not have (1).

More about files and recovery: Projects and files. The layout of both kinds of file is in Project files and their format.

Limits