get_audio_duration
Measures an audio file's duration in milliseconds and seconds to calculate timing before recording, so you can pace video movements to a voiceover.
Instructions
[Cinematic Engine] Get the duration of an audio file in milliseconds.
Use this to calculate timing for video recording - know how long a voiceover is BEFORE starting to record, so you can pace movements.
Args: path: Absolute path to the audio file (MP3, WAV, etc.)
Returns: {"success": True, "data": {"duration_ms": 3500, "duration_sec": 3.5}}
Requires: pip install browser-director[video]
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": {
"path": "<path>"
},
"name": "get_audio_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |