金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

openai-whisper-api

openai-whisper-api 是面向数据与分析、内容与媒体的 Agent Skill,来自 clawdbot/clawdbot。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Transcribe audio via OpenAI Audio Transcriptions API (Whisper).

SKILL.md

下载 MD ↓
nameopenai-whisper-api
descriptionTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
homepagehttps://platform.openai.com/docs/guides/speech-to-text
metadata{"clawdbot": {"emoji": "☁️", "requires": {"bins": ["curl"], "env": ["OPENAI_API_KEY"]}, "primaryEnv": "OPENAI_API_KEY"}}

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/clawdbot.json:

{
  skills: {
    "openai-whisper-api": {
      apiKey: "OPENAI_KEY_HERE"
    }
  }
}

来源:clawdbot/clawdbot · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本