media_tools_audio_convert
Convert audio between MP3, OGG, Opus, M4A, WAV and FLAC with control of bitrate, sample rate and channels; cut a part, add fades, and normalize loudness to a LUFS target under a true-peak ceiling, keeping the dynamics. Price: $0.01 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "media_tools_audio_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | Audio file as base64 (MP3, WAV, OGG, FLAC, M4A, AAC), or a video to take the sound from. | |
| start | No | Where to start, in seconds. | |
| format | No | mp3 | |
| audioUrl | No | Link to the audio. | |
| channels | No | 1 downmixes to mono. | |
| duration | No | How many seconds to keep. To the end when omitted. | |
| fadeInMs | No | ||
| fadeOutMs | No | ||
| normalize | No | Bring loudness to the target level (two-pass, no pumping). | |
| sampleRate | No | ||
| targetLufs | No | Loudness target when normalize is on: -16 for web and podcasts, -14 for music platforms, -23 for broadcast. | |
| bitrateKbps | No | For mp3, ogg, opus and m4a. A sensible default per format when omitted. |