media_audio
Prepares audio from WAV, MP3, or video soundtracks and extracts loudness, true peak, and sound/silence spans for precise timing and Gemini media analysis.
Instructions
Audio prep and stats from wav / mp3 / a video's sound track (local ffmpeg; no model).
Writes audio.wav (mono 16 kHz, small enough for gemini_analyze_media), wave.png, spectrum.png (both readable by you) and stats.json. Returns loudness (LUFS, true peak) and sound / silence spans in source seconds; silences match utterance breaks closely, so use these spans for exact times rather than the times a model reports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"src_path": "<src_path>"
},
"name": "media_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| out_dir | No | ||
| src_path | Yes | ||
| session_id | No | ||
| silence_db | No | ||
| silence_min | No |