360 Secure SkillHub
360 安全技能中心

ANY WHISPER API

该 Skill 提供 shell 脚本,通过 curl 调用兼容 OpenAI Whisper 的音频转写接口,将音频文件转写为文本;默认模型 whisper-1,默认输出 .txt 文件,支持指定语言、提示词、模型、输出路径和 JSON 结果,并可通过环境变量指向 OpenAI 或兼容的本地服务。

nw15d
nw15d
热度 64.36
最近更新 2026-05-17 12:46:41
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add any-whisper-api
Metadata
name
any-whisper-api
description
Transcribe audio via API Whisper with any compatible local servers.
homepage
https://platform.openai.com/docs/guides/speech-to-text
metadata
{"clawdbot":{"emoji":"☁️","requires":{"bins":["curl"],"env":["WHISPER_API_KEY","WHISPER_API_HOST"]}}}

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

Whisper.cpp example

/ai/whisper.cpp/build/bin/whisper-server -m /ai/models/whisper/ggml-large-v3-turbo-q8_0.bin --host 192.168.0.55 --port 5005 -sow --vad --vad-model /ai/models/whisper/ggml-silero-v6.2.0.bin --inference-path /v1/audio/transcriptions

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 WHISPER_API_KEY and WHISPER_API_HOST, or configure it in ~/.clawdbot/clawdbot.json:

{
  skills: {
    "openai-whisper-api": {
      apiKey: "WHISPER_API_KEY_HERE",
      apiHost: "WHISPER_API_HOST_HERE"
    }
  }
}