Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-whisper

Local voice transcription using OpenAI Whisper. 100% private — audio never leaves your machine.

Why This Skill?

OpenClaw includes a bundled openai-whisper-api skill that sends audio to OpenAI's cloud API. This skill runs Whisper locally instead:

Feature openai-whisper-api (bundled) local-whisper (this skill)
Privacy Audio sent to OpenAI Audio stays local
Cost Pay per minute Free after setup
Speed Fast (cloud GPUs) Depends on your hardware
Offline ❌ Requires internet ✅ Works offline
API Key Required Not needed
Setup Just add key Install Whisper + models

When to Use Which

  • Use openai-whisper-api when you need fast transcription and don't mind cloud processing
  • Use local-whisper when privacy matters, you're offline, or you want to avoid API costs

⚠️ Critical: OpenClaw Integration

This skill is NOT automatically used for voice messages. You must configure OpenClaw's tools.media.audio to use it, otherwise:

  1. Without any tools.media.audio config: OpenClaw may pass raw audio data to the model, causing token overflow errors (e.g., "requested: 446497 tokens" for an 18-second voice message)
  2. With the bundled openai-whisper-api: Audio is sent to OpenAI's cloud API

Configure OpenClaw to Use This Skill

Add this to your ~/.openclaw/openclaw.json:

{
  tools: {
    media: {
      audio: {
        enabled: true,
        models: [
          {
            type: "cli",
            command: "node",
            args: ["/path/to/skills/local-whisper/transcribe.js", "{{MediaPath}}"]
          }
        ]
      }
    }
  }
}

Replace /path/to/skills/local-whisper with the actual path where this skill is installed (e.g., ~/.openclaw/skills/local-whisper or your workspace skills directory).

Fallback Chain (Recommended)

For reliability, configure a fallback to cloud transcription if local Whisper fails:

{
  tools: {
    media: {
      audio: {
        enabled: true,
        models: [
          // Try local first (free, private)
          {
            type: "cli",
            command: "node",
            args: ["/path/to/skills/local-whisper/transcribe.js", "{{MediaPath}}"]
          },
          // Fallback to OpenAI API if local fails
          { provider: "openai", model: "gpt-4o-mini-transcribe" }
        ]
      }
    }
  }
}

Quick Start

# Install Whisper (one-time)
pip install openai-whisper

# Transcribe
node transcribe.js audio.ogg

Requirements

  • Python 3.8+
  • ffmpeg (for audio conversion)
  • ~2GB RAM minimum (more for larger models)

Documentation

License

MIT

About

Local Whisper transcription skill for OpenClaw (no cloud API, full privacy)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages