Agent Skills
› wukongrobot/wukongbot
› openai-whisper-api
openai-whisper-api
GitHub通过 OpenAI Whisper API 将音频文件转录为文本。支持多种音频格式、模型选择、语言指定及 JSON 输出,需配置 API Key。
触发场景
需要将音频文件转换为文字记录
请求进行语音转写或字幕生成
安装
npx skills add wukongrobot/wukongbot --skill openai-whisper-api -g -y
SKILL.md
Frontmatter
{
"name": "openai-whisper-api",
"homepage": "https:\/\/platform.openai.com\/docs\/guides\/speech-to-text",
"metadata": {
"moltbot": {
"emoji": "☁️",
"requires": {
"env": [
"OPENAI_API_KEY"
],
"bins": [
"curl"
]
},
"primaryEnv": "OPENAI_API_KEY"
}
},
"description": "Transcribe audio via OpenAI Audio Transcriptions API (Whisper)."
}
OpenAI Whisper API (curl)
Transcribe an audio file via OpenAI’s /v1/audio/transcriptions endpoint.
Quick start
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
Defaults:
- Model:
whisper-1 - Output:
<input>.txt
Useful flags
{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 key
Set OPENAI_API_KEY, or configure it in ~/.clawdbot/moltbot.json:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE"
}
}
}
版本历史
- 2a72816 当前 2026-08-20 10:14


