360 Secure SkillHub
360 安全技能中心

ElevenLabs STT OpenClaw

通过本地 Bash 和 Python 脚本调用 ElevenLabs Scribe v2 语音转文字服务,将音频文件或音频 URL 转写为文本,支持说话人分离、事件标记、JSON 输出与 webhook 异步通知,并附带实时流式与实时监听脚本。

xhunx
xhunx
热度 57.40
最近更新 2026-05-11 17:27:20
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 工作流 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add elevenlabs-stt-openclaw
Metadata
name
eleven-stt
description
Transcribe audio files with ElevenLabs Speech-to-Text (Scribe v2) from the local CLI. Supports diarization, events, JSON output, webhooks, and advanced STT options.
metadata
{"openclaw":{"requires":{"bins":["curl","jq","python3","ffmpeg","websocat"],"env":["ELEVENLABS_API_KEY"]}}}

ElevenLabs Speech-to-Text (Local CLI)

Use

Run the script in scripts/transcribe.sh with an audio file path or URL.

Examples:

scripts/transcribe.sh /path/to/audio.mp3
scripts/transcribe.sh /path/to/audio.mp3 --diarize --lang en
scripts/transcribe.sh /path/to/audio.mp3 --json
scripts/transcribe.sh /path/to/audio.mp3 --webhook --webhook-metadata '{"job":"call-001"}'
scripts/transcribe.sh --url https://example.com/audio.mp3 --lang en

Environment

Set ELEVENLABS_API_KEY in your shell or OpenClaw env before running.

Notes

  • Defaults to scribe_v2 (the Speech-to-Text model) and uses a filesystem lock to avoid parallel requests.
  • Requires curl and jq.
  • For async workflows, use --webhook with optional --webhook-id and --webhook-metadata.
  • Realtime streaming is available via scripts/realtime.sh (requires ffmpeg + websocat) and uses the scribe_v2_realtime model.
  • Live listener mode is available via scripts/live_listen.sh with toggle/always-on modes and optional TTS response.