Trim Audio
Cut a section out of an audio file by start and end time, and save it as MP3, WAV or AAC. Keep only the part of a recording or song that the next node needs.
The Trim Audio node cuts a section out of an audio file. You set a start and an end time in seconds, choose MP3, WAV or AAC, and the node returns the trimmed audio. Leave both times empty to keep the whole file in the new format.
When to use it
- Keep one section of a podcast or a music track.
- Cut out one voice segment to re-voice or process it.
- Shorten a generated song to the length of a video.
- Save a file as WAV before an AI node, or as MP3 to make it smaller.
Quick start
Add the node
Press Tab on the canvas and choose Audio › Edit Audio › Trim Audio.
Wire the audio
Wire an audio node into the Audio input. For the sound of a video, wire the video through Extract Audio first.
Set the section
Open the settings panel and set Start Time (s) — optional and End Time (s) — optional. Choose the Audio Format.
Run it
Click Run on the node. The trimmed audio appears on the node with a player.
Input and output
| Input | Accepts | What it does |
|---|---|---|
| Audio | Audio nodes, such as Upload Audio, Text to Speech and Extract Audio | The audio to trim. |
The output, Audio, is the trimmed audio in the chosen format.
Settings
| Setting | What it does |
|---|---|
| Audio Format | MP3 (the default), WAV or AAC. |
| Start Time (s) — optional | Where the section starts, in seconds. Empty means the beginning of the file. |
| End Time (s) — optional | Where the section ends, in seconds. Empty means the end of the file. |
Tips
- Use WAV before AI nodes. WAV keeps the highest quality for nodes such as Voice Changer and Forced Alignment.
- Use MP3 for small files. Choose MP3 when quality is less critical.
- Join sections back together. To put several trimmed sections one after another, use Combine Audio, which can also trim each segment.
From the API
POST /v1/trim-audio takes audioUrl or videoUrl, plus the optional startTime, endTime and audioFormat (mp3, wav or aac). With a video link, it extracts and trims the video's sound. The MCP tool is trim_audio. See Voice and media.
Frequently asked questions
Related
Combine Audio
Extract Audio
Trim Video
Adjust Volume
Last updated on
Audio Sync
Measure how far apart 2 to 6 recordings of one conversation are, from their sound, so a multicam edit lines up without typing offsets. Also reports clock drift.
Combine Audio
Join audio clips end to end into one file, in the order you choose, and trim each clip first. For narration, podcasts and dialogue made in several parts.