Community编程与开发github.com

openai-whisper-api

通过 curl 调用 OpenAI 音频转录 API;支持 gpt-4o-transcribe、mini、diarize 或 whisper-1 模型。

openai-whisper-api 是什么?

该技能通过 OpenAI 的 `/v1/audio/transcriptions` 端点提供音频转文本服务,支持多种模型:`gpt-4o-transcribe`(默认)、`gpt-4o-mini-transcribe`、带说话人分离的 `gpt-4o-transcribe-diarize` 以及 `whisper-1`。用户可通过简单脚本快速转录音频文件,支持 `mp3`、`m4a`、`wav` 等多种格式,输出纯文本或 JSON 格式的转录结果。脚本还提供 `--language`(指定音频语言)和 `--prompt`(提供上下文提示)等实用选项以提高准确性;使用 diarize 模型时会自动启用 `chunking_strategy=auto` 并禁用 `--prompt`。API 密钥可通过环境变量 `OPENAI_API_KEY` 或 OpenClaw 配置文件设置,并可选择配置 `OPENAI_BASE_URL` 以兼容代理或本地网关。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/openai-whisper-api

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OpenAI 转录 API

通过 /v1/audio/transcriptions 进行音频转写。设置 OPENAI_BASE_URL 以使用兼容 OpenAI 的代理或本地网关。

快速开始

{baseDir}/scripts/transcribe.sh /path/to/audio.m4a

默认值:

  • 模型:gpt-4o-transcribe
  • 输出:<输入文件名>.txt

实用参数

{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-mini-transcribe
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe-diarize --json
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "说话人名称:Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json

注意事项:

  • 支持的上传格式包括 mp3、mp4、mpeg、mpga、m4a、wav、webm。
  • 托管 API 的上传限制为 25 MB。
  • 使用 diarize 可获取说话人标签;脚本会发送 chunking_strategy=auto 并拒绝 --prompt 参数。

API 密钥

设置 OPENAI_API_KEY,或在当前使用的 OpenClaw 配置文件($OPENCLAW_CONFIG_PATH,默认为 ~/.openclaw/openclaw.json)中配置。可选择设置 OPENAI_BASE_URL:

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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能