Categories

Audio Head

Get the first N seconds of an audio file

Click to upload file or drag and drop file here

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

Key Facts

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

Overview

Audio Head is a straightforward online tool that extracts the first N seconds from any audio file. Simply upload your audio, specify the duration in seconds or time format, and download the trimmed segment instantly.

When to Use

  • When you need to create a short audio preview or sample from a longer recording.
  • To isolate the intro segment of podcasts, music tracks, or lectures for sharing or analysis.
  • When trimming audio quickly without installing dedicated software.

How It Works

  • Upload your audio file in a supported format (e.g., MP3, WAV).
  • Enter the desired duration in seconds or hh:mm:ss[.ms] format.
  • The tool processes the file and returns a download link for the trimmed audio segment.

Use Cases

Creating audio snippets for social media or website previews.
Generating custom ringtones or alerts from the beginning of songs.
Preparing audio samples for educational content or presentations.

Examples

1. Extract Podcast Intro for Promotion

Podcast Producer
Background
A podcast producer needs to share a 30-second intro clip on social media to tease a new episode.
Problem
The full episode audio is 45 minutes long, and manually trimming the intro is time-consuming.
How to Use
Upload the podcast audio file and set the duration to 30 seconds.
Outcome
A 30-second audio clip of the podcast intro is generated and ready for download and sharing.

2. Create E-commerce Audio Preview

Background
An online retailer wants to add a 10-second audio preview of a product description to their product page.
Problem
The complete audio file is 2 minutes long, and only the first 10 seconds are needed for the preview.
How to Use
Upload the product audio file and specify 10 seconds as the duration.
Outcome
A 10-second audio preview is created and can be embedded on the website.

Try with Samples

audio, file

Related Hubs

FAQ

What audio formats are supported?

The tool supports common audio formats like MP3, WAV, and others as allowed by your browser.

Can I specify duration in hours and minutes?

Yes, you can enter duration in seconds or in hh:mm:ss[.ms] format, such as 00:00:10 for 10 seconds.

Is there a file size limit?

Yes, the maximum file size is 100 MB.

What happens if the duration exceeds the audio length?

The tool will extract the entire audio file if the specified duration is longer than the file.

Can I use this on mobile devices?

Yes, as long as your web browser supports audio file uploads and processing.

API Documentation

Request Endpoint

POST /en/api/tools/audio-head

Request Parameters

Parameter Name Type Required Description
audioFile file (Upload required) Yes -
duration text Yes -

File type parameters need to be uploaded first via POST /upload/audio-head 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-head": {
      "name": "audio-head",
      "description": "Get the first N seconds of an audio file",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=audio-head",
      "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]