Categories

Audio Time Stretch

Stretch or compress audio to a target duration

Computes an atempo factor from the target length to stretch/compress while keeping pitch stable (within 0.25x–4x).

Click to upload file or drag and drop file here

Maximum file size: 200MB Supported formats: audio/*

Key Facts

Category
Media
Input Types
file, number, select
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The Audio Time Stretch tool adjusts audio duration without altering pitch. It calculates an atempo factor to stretch or compress audio to a target length, maintaining stable sound quality within a 0.25x to 4x speed range.

When to Use

  • When you need to match audio duration to video or other media timelines.
  • For creating slow-motion or fast-forward effects in audio recordings.
  • To standardize the length of audio clips for consistency in projects.

How It Works

  • Upload an audio file in a supported format (e.g., MP3, WAV).
  • Specify the target duration in seconds (default is 90 seconds).
  • Select the desired output format from options like MP3, AAC, or WAV.
  • The tool computes the atempo factor and processes the audio, delivering a file with the new duration.

Use Cases

Video editing: Sync audio tracks to match video clip durations.
Music production: Adjust the tempo of samples or loops for creative effects.
Podcasting: Compress or extend episodes to fit specific time slots.

Examples

1. Sync Audio to Video Timeline

Video Editor
Background
A video editor has a 2-minute video clip but the audio track is 2 minutes 30 seconds long.
Problem
The audio needs to be shortened to match the video duration without changing the pitch.
How to Use
Upload the audio file, set the target duration to 120 seconds, and choose MP3 as the output format.
Outcome
The audio is compressed to exactly 2 minutes, syncing perfectly with the video while maintaining original sound quality.

2. Create a Fast-Forward Podcast Summary

Background
A podcaster wants to produce a 30-minute highlights reel from a 60-minute interview.
Problem
Need to reduce the audio length to half without causing pitch distortion.
How to Use
Upload the interview audio, set target duration to 1800 seconds (30 minutes), and output in WAV format.
Outcome
The audio is stretched to 30 minutes, creating a fast-paced summary with preserved clarity.

Try with Samples

audio, file

Related Hubs

FAQ

What audio formats are supported for input?

The tool accepts common audio formats such as MP3, WAV, AAC, and others via file upload.

Does time stretching affect the audio pitch?

No, the tool preserves pitch stability by using an atempo factor within the 0.25x to 4x range.

What is the allowed range for target duration?

Target duration can be set from 0.5 seconds to 7200 seconds (2 hours).

Is there a file size limit for uploads?

Yes, audio files must be under 200 MB.

Can I choose the output audio format?

Yes, you can select from formats including MP3, AAC, M4A, OGG, Opus, FLAC, and WAV.

API Documentation

Request Endpoint

POST /en/api/tools/audio-time-stretch

Request Parameters

Parameter Name Type Required Description
audioFile file (Upload required) Yes -
targetDurationSec number No -
outputFormat select No -

File type parameters need to be uploaded first via POST /upload/audio-time-stretch to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-audio-time-stretch": {
      "name": "audio-time-stretch",
      "description": "Stretch or compress audio to a target duration",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=audio-time-stretch",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]