微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎤

零成本本地语音转文字

whisper-mlx-local · v127.0.0
专业技能 安全 A 级 作者 ImpKind 公开目录收录
949 下载 236 安装 3.8k 收藏 6.2k 浏览

简介

基于 Apple Silicon 的本地 Whisper 语音转文字方案,零成本、全隐私保护,替代付费 API 服务。

原始描述

Free local speech-to-text for Telegram and WhatsApp using MLX Whisper on Apple Silicon. Private, no API costs.

通过你的 Agent 添加

安装目录:whisper-mlx-local/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/whisper-mlx-local/
Codex CLI~/.codex/skills/whisper-mlx-local/
DeepSeek Harness~/.agents/skills/whisper-mlx-local/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

whisper-mlx-local 是一款专为 macOS Apple Silicon 设备设计的本地语音转文字技能。用户通过安装 Python 依赖并启动本地守护进程(daemon),即可在 localhost:8787 提供 HTTP API 服务。该技能通过 OpenClaw 配置集成到 Telegram、WhatsApp 等即时通讯工具的工作流中,自动将接收到的语音消息转录为文本。首次运行需下载约 1.5GB 的 Whisper 模型,后续转录速度可达约 1 秒/条。支持多语言识别及英译功能,完全离线运行。

显著优点

零成本运营:彻底消除 OpenAI Whisper($0.006/分钟)、Groq($0.001/分钟)等商业 API 的持续费用,适合高频语音处理场景。隐私优先:音频数据全程本地处理,不上传任何第三方服务器,满足敏感场景需求。性能优异:基于 Apple MLX 框架深度优化,在 M1/M2/M3/M4 芯片上实现高效推理。生态兼容:通过标准 HTTP 接口与 OpenClaw 网关无缝对接,支持 Telegram、WhatsApp 等多平台语音消息自动化处理。开源透明:MIT 许可证,代码完全公开可审计。

潜在缺点与局限性

硬件门槛严格:仅限 macOS Apple Silicon 设备,Intel Mac 及 Windows/Linux 用户无法使用。首次配置较重:1.5GB 模型下载与内存加载(10-30 秒冷启动)对网络与耐心有要求。功能边界清晰:专注语音转文字,无说话人分离、情感分析等高级功能。维护依赖社区:非官方团队维护,长期更新与技术支持存在不确定性。多后端复杂性:虽支持 OpenAI/Groq 作为备选,但切换后丧失本地隐私优势。

适合的目标群体

  • 高频处理 Telegram/WhatsApp 语音消息的 macOS 用户
  • 对数据隐私有严格要求的内容创作者、记者、研究人员
  • 希望消除 API 订阅成本的个人开发者与小团队
  • 已部署 OpenClaw 生态、追求工作流自动化的效率用户

使用风险

性能波动:首条转录延迟显著,大文件或长语音可能触发 60 秒超时。依赖管理:Python 环境与多库依赖(mlx-whisper、faster-whisper 等)可能引发版本冲突。模型存储:1.5GB 模型持续占用磁盘空间。后端误配:配置不当可能导致音频意外发送至 OpenAI/Groq API,破坏隐私预期。进程稳定性:daemon 需手动或配置 LaunchAgent 保活,异常退出将中断服务。

技能正文


name: whisper-mlx-local description: "Free local speech-to-text for Telegram and WhatsApp using MLX Whisper on Apple Silicon. Private, no API costs." metadata: openclaw: emoji: "🎤" version: "1.5.0" author: "Community" repo: "https://github.com/ImpKind/local-whisper" requires: os: ["darwin"] arch: ["arm64"] bins: ["python3"] install: - id: "deps" kind: "manual" label: "Install dependencies" instructions: "pip3 install -r requirements.txt"

Local Whisper

Transcribe voice messages for free on Telegram and WhatsApp. No API keys. No costs. Runs on your Mac.

The Problem

Voice transcription APIs cost money:

  • OpenAI Whisper: $0.006/minute
  • Groq: $0.001/minute
  • AssemblyAI: $0.01/minute

If you transcribe a lot of Telegram voice messages, it adds up.

The Solution

This skill runs Whisper locally on your Mac. Same quality, zero cost.

  • ✅ Free forever
  • ✅ Private (audio never leaves your Mac)
  • ✅ Fast (~1 second per message)
  • ✅ Works offline

⚠️ Important Notes

  • First run downloads ~1.5GB model — be patient, this only happens once
  • First transcription is slow — model loads into memory (~10-30 seconds), then it's instant
  • Already using OpenAI API for transcription? Replace your existing tools.media.audio config with the one below

Quick Start

1. Install dependencies

pip3 install -r requirements.txt

2. Start the daemon

python3 scripts/daemon.py

First run will download the Whisper model (~1.5GB). Wait for "Ready" message.

3. Add to OpenClaw config

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

{
  "tools": {
    "media": {
      "audio": {
        "enabled": true,
        "models": [
          {
            "type": "cli",
            "command": "~/.openclaw/workspace/skills/local-whisper/scripts/transcribe.sh",
            "args": ["{{MediaPath}}"],
            "timeoutSeconds": 60
          }
        ]
      }
    }
  }
}

4. Restart gateway

openclaw gateway restart

Now voice messages from Telegram, WhatsApp, etc. will be transcribed locally for free!

Manual test

./scripts/transcribe.sh voice_message.ogg

Use Case: Telegram Voice Messages

Instead of paying for OpenAI API to transcribe incoming voice messages, point OpenClaw to this local daemon. Free transcription forever.

Auto-Start on Login

cp com.local-whisper.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.local-whisper.plist

API

Daemon runs at localhost:8787:

curl -X POST http://localhost:8787/transcribe -F "file=@audio.ogg"
# {"text": "Hello world", "language": "en"}

Translation

Any language → English:

./scripts/transcribe.sh spanish_audio.ogg --translate

Requirements

  • macOS with Apple Silicon (M1/M2/M3/M4)
  • Python 3.9+

License

MIT

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-mediaproductivityautomationmacosprivacyai-mlapi

同类 Skill