@btoueg

Gladia

Gladia batch speech-to-text provider for OpenClaw media understanding

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

OpenClaw Gladia

Gladia batch speech-to-text provider for OpenClaw media understanding.

This plugin registers the gladia media-understanding provider for audio transcription. It uses Gladia v2 pre-recorded transcription:

  1. POST /v2/upload
  2. POST /v2/pre-recorded
  3. poll GET /v2/pre-recorded/{id} until done

Install Locally

cd openclaw-gladia
openclaw plugins install .
openclaw gateway restart

Configure

Expose the Gladia API key to the Gateway:

GLADIA_API_KEY=gladia_xxx

Then configure audio media understanding in ~/.openclaw/openclaw.json:

{
  tools: {
    media: {
      audio: {
        enabled: true,
        maxBytes: 20971520,
        models: [
          {
            provider: "gladia",
            model: "solaria-1",
            language: "fr"
          }
        ]
      }
    }
  }
}

Use

openclaw infer audio transcribe --file ./memo.m4a --model gladia/solaria-1 --json

Provider options can be passed through OpenClaw tools.media.audio provider query/options. Supported primitive query fields:

  • languages: comma-separated language hints, for example fr,en
  • code_switching: boolean
  • diarization: boolean
  • sentences: boolean
  • punctuation_enhanced: boolean
  • poll_interval_ms: polling interval, default 3000

Development

npm install
npm test
npm run pack:check

This package is intentionally small: the runtime entry registers one OpenClaw media-understanding provider named gladia, and the provider implementation contains the Gladia v2 upload/job/polling flow.

Publishing Notes

Before publishing:

  • confirm the package name and npm ownership;
  • add repository metadata to package.json once the GitHub URL exists;
  • publish to npm;
  • register the plugin in the OpenClaw plugin catalog or ClawHub flow with the manifest id gladia.

源码与版本

源码仓库

btoueg/openclaw-gladia

打开仓库

源码提交

c4b98a4ab30715ebf8b288959ce43746270ecfc5

查看提交

安装命令

openclaw plugins install clawhub:openclaw-gladia

元数据

  • 包名: openclaw-gladia
  • 创建时间: 2026/05/05
  • 更新时间: 2026/05/05
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.5.4
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 6