Audio Tools · Comparison

What Unity can do with audio clips on its own

Unity's import settings, Timeline clips, AudioSource scripting and the AI Assistant compared with editing the file itself, and when each is enough.

Robert WetzoldFacts checked 4 min read

Short answer: if one Timeline or one script owns a sound, Unity's own tools can skip its silence and shape its volume without touching the file. If you have a Unity AI subscription, the AI Assistant can trim, change volume and build loops by prompt. When a clip plays from many places, or you want to see exactly what you cut, editing the file is simpler, and Audio Tools does that for free.

Unity imports audio, compresses it per platform and plays it, but it has never had a built-in waveform editor. What it does have is a set of tools that change how a clip plays without changing the file, and more recently an AI Assistant that can create edited copies. Here is what each one does, from Unity’s own documentation.

Overview

Changes the fileTrimFadesLevelSilenceVersion or cost
Import settingsNo, source stays as isNoNoNormalize only with Force To MonoNoAny
TimelineNo, playback onlyClip In and clip lengthEase in and outClip volumeSkip it with Clip InFree
ScriptingNo, unless you write your own exporterStart offset, scheduled endVolume over timeAudioSource volumeSkip it with an offsetFree
AI AssistantWrites a new clip per editTime range by promptNoVolume changeRemoves start and end silenceUnity AI credits, Unity 6.3 or 6000.0.76f1+
Audio ToolsWrites new WAVs, or replaces with a backupOn the waveform, with zoom and exact timingEditable curvesPeak or loudness (LUFS), volumeTrims edges, shortens pauses, splitsFree, Unity 2022.3+

Facts as stated in Unity’s documentation on the date above.

Import settings

The AudioClip import settings decide how Unity stores and loads a clip: Force To Mono, Load In Background, Load Type, Compression Format, Quality, Sample Rate Setting and Preload Audio Data. None of them trims or fades the sound, and Unity never changes the source file on import.

The Normalize checkbox is easy to misread. Unity’s documentation says it applies during the Force To Mono mixdown: after mixing to one channel, the signal is peak-normalized. A stereo clip without Force To Mono is not normalized at all. The Audio Normalize Effect, which ranks first when you search for normalizing audio in Unity, is something else: an Audio Mixer effect that changes gain while the game runs.

Timeline

An audio clip in a Timeline has a Clip In value that skips the start of the file, a length you trim by dragging its edge, ease in and out curves for fades and crossfades, a speed and a volume. Unity’s Timeline documentation calls trimming non-destructive: nothing is written back to the file. That is ideal inside a cutscene. It does not help when the same clip also plays from a script, an animation event or a UI button, because those still play the whole file.

Scripting

AudioSource can start a clip at any position and stop it at an exact time:

  • AudioSource.timeSamples sets the start position in samples. Unity notes that AudioSource.time can be imprecise on compressed clips, so prefer timeSamples.
  • AudioSource.PlayScheduled starts playback at an exact DSP time, which Unity describes as the preferred way to stitch clips, and SetScheduledEndTime stops it at an exact time.
  • AudioClip.GetData and SetData read and write samples in memory. They need clips that are decompressed on load, do not work on streamed clips, and only change the clip in memory. Unity’s AudioClip API has no method to save a file.

This works well when one component owns a sound. It spreads timing values across scripts and prefabs, though, and every new place that plays the clip needs the same offset.

AI Assistant

Unity’s AI Assistant can edit audio clips from a prompt: remove silence at the start and end, trim a time range, change the volume and make a seamless loop. Each edit creates a new clip, so the original stays. When we checked, the audio editing documentation was for a pre-release package (2.19.0-pre.2) that also needs the Unity AI Generators package, and the Assistant requires Unity 6.3 or 6000.0.76f1 or newer. Each Assistant message spends Unity Credits from a Unity AI subscription’s monthly allocation.

If you already use Unity AI, the Assistant is a quick way to make a one-off edit by describing it. Audio Tools covers the same edits and more, including seamless loops, without a subscription and back to Unity 2022.3. It shows the waveform, so you choose the exact cut instead of describing it, and it applies the same settings to a whole folder in one pass.

When to edit the file instead

Edit the file when a clip plays from more than one place, when you want to see and hear exactly what you are cutting, or when the fix belongs to the sound itself: a click at the end, a quiet recording, a silent start, a seam in a loop. Audio Tools does these edits in the Editor, for one clip or a folder, and writes new WAVs next to the originals. For repair such as noise reduction or equalization, Audacity is the better tool.

Frequently asked questions

Can Unity trim an audio file?

Not in the import settings, and Unity's scripting API has no method to save an AudioClip as a file. Timeline and scripts can skip the start or stop playback early, but the file stays unchanged. Unity's AI Assistant can trim clips through prompts and writes a new clip for each edit.

What does the Normalize checkbox in the import settings do?

It applies only together with Force To Mono. Unity mixes the clip down to mono and then peak-normalizes it. Without Force To Mono it does nothing to the file.

Is the AI Assistant's audio editing free?

The AI Assistant is a Unity AI feature. Its messages spend Unity Credits from a Unity AI subscription, and it needs Unity 6.3 or 6000.0.76f1 or newer according to Unity's documentation. The audio editing documentation was for a pre-release package version when we checked.

When is a Timeline trim enough?

When the sound only plays in that Timeline. Clip In, the clip's length and ease in and out shape playback there, and nothing changes in the file, so the same clip played anywhere else still has its silence.

Audio Tools

Trim, fade and normalize audio without leaving Unity.