名称: mlx-whisper
版本: 1.0.0
描述: 基于 MLX Whisper 的本地语音转文字工具(针对 Apple Silicon 优化,无需 API 密钥)。
主页: https://github.com/ml-explore/mlx-examples/tree/main/whisper
元数据: {"clawdbot":{"emoji":"🍎","requires":{"bins":["mlx_whisper"]},"install":[{"id":"pip","kind":"pip","package":"mlx-whisper","bins":["mlx_whisper"],"label":"安装 mlx-whisper (pip)"}]}}
基于 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 | 快 | 卓越(推荐) |
~/.cache/huggingface/mlx-community/whisper-tiny;建议使用 --model mlx-community/whisper-large-v3-turbo 以获得最佳效果