Audio Trimmer

Trim audio files to specific time ranges with preview functionality. Perfect for removing unwanted sections, creating clips, or extracting highlights from longer recordings.

Overview

The Audio Trimmer service allows you to precisely cut audio files to specific time ranges. Upload your audio file, preview the section you want to extract, and download the trimmed result. Supports multiple audio formats with real-time preview functionality.

Features & Capabilities

Precise Trimming

Cut audio files with 0.1 second precision

Live Preview

Preview your selection before trimming

Format Support

Supports MP3, WAV, FLAC, OGG, M4A, AAC

Visual Controls

Interactive sliders for time selection

Format Conversion

Convert between different audio formats

Fast Processing

Quick audio processing with quality preservation

API Endpoints

Analyze Audio

Endpoint: POST /api/v1/audio_trimmer/analyze
Purpose: Get audio file metadata and duration
Form Data:
  • file: Audio file to analyze
Example Response:
{
  "success": true,
  "analysis": {
    "duration": 300.5,
    "duration_formatted": "5:00",
    "file_size_mb": "12.5",
    "format": "mp3",
    "sample_rate": "44100"
  }
}

Trim Audio

Endpoint: POST /api/v1/audio_trimmer/trim
Headers: x-api-key, x-api-secret
Form Data Parameters:
  • file: Audio file to trim
  • start_time: Start time in seconds (0.0)
  • end_time: End time in seconds (300.0)
  • output_format: mp3, wav, flac, ogg, m4a, aac

Preview Selection (30s max)

Endpoint: POST /api/v1/audio_trimmer/preview
Purpose: Preview trimmed region before final trim
Response: MP3 blob (max 30 seconds)

Technical Specifications

Input Requirements

  • Maximum file size: 50MB
  • Supported formats: MP3, WAV, FLAC, OGG, M4A, AAC
  • Sample rates: 8kHz to 192kHz
  • Bit depth: 16-bit, 24-bit, 32-bit

Output Options

  • Time precision: 0.1 second increments
  • Preview duration: Up to 30 seconds
  • Output formats: MP3, WAV, FLAC, OGG, M4A, AAC
  • Quality preservation: Original sample rate maintained