audio_duration
Get audio file duration in seconds to synchronize animation scenes with narration or background music. Supports MP3, WAV, OGG, and MID formats.
Instructions
Get the duration of any audio file in seconds.
Accepts audio files (.mp3, .wav, .ogg, .mid) created by the server. Uses ffprobe internally.
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": {
"file_path": "<file_path>"
},
"name": "audio_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the audio file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||