transcribe_audio
Convert audio files to text, timestamps, or SRT subtitles with automatic language detection. Specify the audio file path and desired output format.
Instructions
将音频文件转写为文本。调用前若用户未明确指定,应先询问用户选择哪种转写类型。
转写在后台子进程中运行,完成后自动上报结果,不需要轮询进度。 默认超时 10 分钟;超时后会如实检查并告知是「尚未完成」(任务继续后台运行, 完成后结果自动写入输出文件)还是「转写出错」(附带错误信息)。
Args: audio_path: 音频文件的绝对路径(支持 m4a/mp3/wav/flac 等常见格式) task_type: 转写类型。text=纯文本含标点(默认),timestamps=带时间轴,srt=SRT 字幕 output_dir: 输出目录,默认与音频文件同目录 language: 语言提示,如 zh、en。不指定则自动检测 timeout: 超时时间(秒),默认 600(10 分钟)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| language | No | ||
| task_type | No | text | |
| audio_path | Yes | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |