extract_audio_segment
Extract a specified time segment of audio from a video file. Define the start time and duration in HH:MM:SS format.
Instructions
从视频中提取指定时间段的音频
Args:
video_path: 输入视频文件路径
start_time: 开始时间(格式:HH:MM:SS)
duration: 持续时间(格式:HH:MM:SS)
output_path: 输出音频文件路径(可选)
audio_format: 音频格式
Returns:
提取结果信息
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": {
"video_path": "<video_path>",
"start_time": "<start_time>",
"duration": "<duration>"
},
"name": "extract_audio_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_path | Yes | ||
| start_time | Yes | ||
| duration | Yes | ||
| output_path | No | ||
| audio_format | No | mp3 |