media_tools_extract_audio
Pull the sound out of a video as MP3, OGG, Opus, M4A, WAV or FLAC: all of it or a part, with optional mono and sample rate (16 kHz mono WAV is what speech-to-text wants). Price: $0.02 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_extract_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Where to start, in seconds. | |
| video | No | Video file as base64 (MP4, MOV, WebM, MKV, AVI or GIF). | |
| format | No | mp3 | |
| channels | No | 1 downmixes to mono. | |
| duration | No | How many seconds to keep. To the end when omitted. | |
| videoUrl | No | Link to the video. | |
| sampleRate | No | ||
| bitrateKbps | No | For mp3, ogg, opus and m4a. A sensible default per format when omitted. |