@mkv21

ElevenLabs STT

OpenClaw plugin for ElevenLabs speech-to-text on inbound audio

当前版本
v0.2.2
code-plugin社区source-linked

elevenlabs-stt

Add ElevenLabs Speech-to-Text to OpenClaw's normal inbound audio pipeline (tools.media.audio).

The plugin is intentionally simple to use: install it, add an ElevenLabs provider block, and point an audio model entry at provider: elevenlabs. It also exposes selected ElevenLabs request options through providerOptions.elevenlabs, so you can tune transcript quality and behavior without leaving normal OpenClaw config.

Table of contents

Prerequisites

Quick start

Install with OpenClaw:

openclaw plugins install @mkv21/elevenlabs-stt

Use the scoped package name for OpenClaw installs. On current OpenClaw versions, the unscoped name elevenlabs-stt collides with an existing ClawHub skill during resolver lookup.

Warning Before restarting the OpenClaw Gateway after installation, add the full models.providers.elevenlabs config block shown below. If the plugin is enabled but the provider block is missing or incomplete, OpenClaw can fail validation during startup and the Gateway may no longer start.

Minimal working config:

plugins:
  entries:
    elevenlabs-stt:
      enabled: true

models:
  providers:
    elevenlabs:
      baseUrl: https://api.elevenlabs.io/v1
      apiKey: ${ELEVENLABS_API_KEY}
      models: []

tools:
  media:
    audio:
      enabled: true
      timeoutSeconds: 90
      language: en
      models:
        - provider: elevenlabs
          model: scribe_v2

Important notes:

  • models.providers.elevenlabs.models: [] is currently required by OpenClaw's shared provider config shape.

  • If you prefer an explicit env-backed secret ref, you can use:

    apiKey:
      source: env
      provider: default
      id: ELEVENLABS_API_KEY
    
  • If you want fallback behavior, add additional entries after the ElevenLabs model in tools.media.audio.models.

Configuration

FieldDefaultDescription
models.providers.elevenlabs.baseUrlhttps://api.elevenlabs.io/v1Base URL for ElevenLabs API
models.providers.elevenlabs.apiKeyRequired. ElevenLabs API key
models.providers.elevenlabs.modelsMust be [] (required by OpenClaw's provider config shape)
tools.media.audio.models[].providerMust be elevenlabs for this plugin
tools.media.audio.models[].modelscribe_v2ElevenLabs STT model ID
tools.media.audio.languageGlobal language hint passed as language_code
tools.media.audio.models[].languagePer-entry language override
tools.media.audio.timeoutSecondsGlobal request timeout in seconds
tools.media.audio.models[].timeoutSecondsPer-entry request timeout override

Provider options

Tune the upstream ElevenLabs request through providerOptions.elevenlabs, set globally on tools.media.audio.providerOptions.elevenlabs or per model entry on tools.media.audio.models[].providerOptions.elevenlabs.

OptionTypeDefaultDescription
tag_audio_eventsbooleanInclude audio-event cues in transcript text
no_verbatimbooleanCleaner transcript with fillers and false starts reduced (scribe_v2)
diarizebooleanEnable speaker diarization
num_speakersnumberExpected number of speakers for diarization
diarization_thresholdnumberDiarization sensitivity threshold
use_multi_channelbooleanTreat input as separate speaker channels
timestamps_granularitystringTimestamp level: word or character
entity_detectionstringEntity detection mode (e.g. pii)
redactbooleanEnable transcript redaction
entity_redactionstringEntity redaction behavior
temperaturenumberTranscription generation temperature
seednumberTranscription generation seed
file_formatstringOverride audio format detection

Example:

tools:
  media:
    audio:
      providerOptions:
        elevenlabs:
          no_verbatim: true
          tag_audio_events: true
      models:
        - provider: elevenlabs
          model: scribe_v2

Note: OpenClaw currently consumes only the plain transcript text. Options whose main value is extra metadata (timestamps, speakers, channels, entities) are forwarded to ElevenLabs but not yet surfaced through OpenClaw's current audio result shape. Array-shaped options such as keyterms and additional_formats are not supported because current OpenClaw media providerOptions are scalar-only.

What this plugin covers

  • Normal inbound audio transcription only
  • No telephony, realtime/streaming, or async webhook-based transcription flow

Compatibility

  • Tested locally with OpenClaw 2026.3.24
  • Requires OpenClaw host version >=2026.3.24

Development

# Run tests
npm test

# Type check
npm run typecheck

Documentation

AI-Assisted Development Disclaimer

Parts of this project were developed with assistance from generative AI tools. All generated code and text were reviewed and adapted by a human before publication.

License

This project is licensed under the MIT License. See LICENSE for details.

源码与版本

源码仓库

MKV21/openclaw-elevenlabs-stt

打开仓库

源码提交

73f0822

查看提交

安装命令

openclaw plugins install clawhub:@mkv21/elevenlabs-stt

元数据

  • 包名: @mkv21/elevenlabs-stt
  • 创建时间: 2026/03/27
  • 更新时间: 2026/03/28
  • 执行代码:
  • 源码标签: 73f0822

兼容性

  • 构建于 OpenClaw: 0.2.2
  • 插件 API 范围: >=2026.3.24
  • 标签: latest
  • 文件数: 8