用途:调用 OpenAI 的 /v1/audio/transcriptions 端点,把音频文件转写为文本。
主要能力:提供脚本 {baseDir}/scripts/transcribe.sh,默认使用 whisper-1 模型,输出为 <input>.txt。支持通过参数指定模型与输出路径、指定语言、提供提示词(如说话人姓名),以及以 --json 输出 JSON 结果。
使用方式: {baseDir}/scripts/transcribe.sh /path/to/audio.m4a {baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1 --out /tmp/transcript.txt {baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en {baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel" {baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
API 密钥:设置环境变量 OPENAI_API_KEY,或在 ~/.clawdbot/clawdbot.json 中配置 skills."openai-whisper-api".apiKey。
适用场景:需要批量或脚本化转写音频文件时使用。
限制:资料未提供支持音频格式、文件大小上限、计费与速率限制等信息,需以 OpenAI 官方说明为准。