🍎 Mlx Whisper — 语音转文本
v1.0.0利用 MLX Whisper 实现本地语音转文本,专为 Apple Silicon Mac 优化,无需 API 密钥。支持转录、翻译和字幕生成,多模型选择,简单的命令行界面。
1· 3.5k·18 当前·22 累计
安全扫描
OpenClaw
安全
high confidence技能的要求和运行指令与本地 Apple-Silicon 语音转文本包装器一致 — 没有任何超出此目的的请求或指令。
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/1/24
- 首次发布 mlx-whisper:使用 MLX Whisper 的本地语音转文本,针对 Apple Silicon Mac 优化。 - 无需 API 密钥;模型按需下载和缓存。 - 支持转录、翻译和字幕生成 (SRT)。 - 多个模型可用,平衡速度和质量。 - 简单的命令行界面,用于快速音频转录和字幕创建。
● 无害
安装命令
点击复制官方npx clawhub@latest install mlx-whisper
🇨🇳 镜像加速npx clawhub@latest install mlx-whisper --registry https://cn.longxiaskill.com
技能文档
MLX Whisper 本地语音转文本使用 Apple MLX,针对 Apple Silicon Mac 优化。
快速开始
mlx_whisper /path/to/audio.mp3 --model mlx-community/whisper-large-v3-turbo
常见用法
# 转录为文本文件
mlx_whisper audio.m4a -f txt -o ./output
# 带语言提示的转录
mlx_whisper audio.mp3 --language en --model mlx-community/whisper-large-v3-turbo
# 生成字幕 (SRT)
mlx_whisper video.mp4 -f srt -o ./subs
# 翻译为英文
mlx_whisper foreign.mp3 --task translate
模型(首次使用时下载)
| 模型 | 大小 | 速度 | 质量 |
|---|---|---|---|
| mlx-community/whisper-tiny | ~75MB | 最快 | 基本 |
| mlx-community/whisper-base | ~140MB | 快 | 良好 |
| mlx-community/whisper-small | ~470MB | 中等 | 较好 |
| mlx-community/whisper-medium | ~1.5GB | 较慢 | 极好 |
| mlx-community/whisper-large-v3 | ~3GB | 最慢 | 最佳 |
| mlx-community/whisper-large-v3-turbo | ~1.6GB | 快 | 优秀(推荐) |
- 需要 Apple Silicon Mac (M1/M2/M3/M4)
- 模型缓存到
~/.cache/huggingface/ - 默认模型为
mlx-community/whisper-tiny;使用--model mlx-community/whisper-large-v3-turbo获取最佳结果
数据来源:ClawHub ↗ · 中文优化:龙虾技能库