用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/malue-ai/dazee-small --skill mlx-whisper命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mlx-whisper |
| description | Fast local speech-to-text on Apple Silicon using MLX Whisper. 10x faster than OpenAI Whisper. |
| metadata | {"xiaodazi":{"dependency_level":"external","os":["darwin"],"backend_type":"local","user_facing":true}} |
| capabilities | ["stt","speech_recognition"] |
利用 Apple Silicon 的 MLX 框架本地转录语音,速度是 OpenAI Whisper 的 10 倍。完全离线,隐私安全。
pip install mlx-whisper
需要 Apple Silicon Mac(M1/M2/M3/M4)。
import mlx_whisper
result = mlx_whisper.transcribe(
"audio.mp3",
path_or_hf_repo="mlx-community/whisper-large-v3-turbo",
)
print(result["text"])
result = mlx_whisper.transcribe(
"audio.mp3",
path_or_hf_repo="mlx-community/whisper-large-v3-turbo",
word_timestamps=True,
)
for segment in result["segments"]:
print(f"[{segment['start']:.1f}s - {segment['end']:.1f}s] {segment['text']}")
| 模型 | 大小 | 速度 | 准确度 |
|---|---|---|---|
whisper-tiny | 39M | 最快 | 一般 |
whisper-base | 74M | 快 | 较好 |
whisper-small | 244M | 中 | 好 |
whisper-large-v3-turbo | 809M | 较慢 | 最佳 |
默认使用 large-v3-turbo,短音频(<1分钟)可用 small 加速。
result = mlx_whisper.transcribe("audio.mp3", language="zh")