Python
Features
Audio Cutter
Trims an audio file using the specified start and end times.
POST
Python
Trim your audio files with precision using AI.
Audio Cutter allows you to select specific sections of audio recordings, making it perfect for creating highlights, clips, ringtones, and more.
Use this endpoint to trim a section from an existing audio file.
- Easily extract the best parts of any audio
- Supports multiple formats like MP3, WAV, FLAC, and more
- Fast processing with high-quality output
Endpoint
Sample Output
Listen to the trimmed audio: Download AudioTry it Yourself
Visit the Audio Cutter Endpoint Explorer to cut and download trimmed audio segments instantly.✂️ Try trimming different parts to see how accurate the cut is!
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
audio_path | String | Yes | The S3 path of the input audio file to trim |
conversion_id | String | Yes | A unique identifier for the conversion request |
start_time | Float | Yes | The start time (in milliseconds) of the audio to trim |
end_time | Float | Yes | The end time (in milliseconds) of the audio to trim |
output_extension | String | Yes | Output format: mp3, wav, flac, ogg, aac, or webm |
content-type: multipart/form-data
Sample Request
Python
Sample Response
Success (200 OK)
Webhook Response
When audio cutter conversion completes, your webhook will receive:
📂 The conversion_path field contains the direct link to download the trimmed audio.
Payload and Request Formation
Authorizations
Body
multipart/form-data
- Option 1
- Option 2
URL of the input audio to be trimmed.
Example:
"https://example.com/input_audio.mp3"
Start time in milliseconds.
Example:
10500
End time in milliseconds.
Example:
45000
Audio file to upload and process directly.
Desired output format.
Available options:
mp3, wav, flac, ogg, aac, webm Example:
"mp3"
Callback URL for async processing results.
Example:
"http://your-webhook-url.com/callback"