本地免费会议 / 面试录音转录 + AI 智能清洗工作流(LLM 费用取决于所用服务)。告别飞书妙计 / 通义听悟,30 分钟录音直接出 Markdown 或 Word,给 AI agent 一句话就能跑完。
Overview
本地免费会议 / 面试录音转录 + AI 智能清洗工作流(LLM 费用取决于所用服务)。告别飞书妙计 / 通义听悟,30 分钟录音直接出 Markdown 或 Word,给 AI agent 一句话就能跑完。
README
Murmur
本地免费会议 / 面试录音转录 + AI 智能清洗工作流(LLM 费用取决于所用服务)。告别飞书妙计 / 通义听悟,30 分钟录音直接出 Markdown 或 Word,给 AI agent 一句话就能跑完。
中文 · English
这是什么
把任意一段会议 / 面试 / 课堂 / 播客录音在自己电脑上转成可读的 Markdown 或 Word 文档:
- 本地转录:依赖和所选 Whisper 模型准备好后,ASR 可离线运行,录音不需上传;AI 清洗是否离线取决于所用 LLM
- 足够快:M2/M3 上 30 分钟录音约 10-15 分钟跑完;Windows / Intel Mac CPU 也能跑
- 足够准:基于 OpenAI Whisper large-v3-turbo + 中文常见 ASR 错词修正
- AI agent 原生:给 Claude Code / Codex / GitHub Copilot / Cursor 一句话,端到端跑完整流程
- 默认可选:首次同时选择输出格式(md / docx)和默认离线 ASR 模型,之后随时改
和飞书妙计 / 通义听悟比
| 飞书妙计 | 通义听悟 | Murmur | |
|---|---|---|---|
| 单次费用 | 约 ¥0.5/分钟 | 约 ¥0.3/分钟 | 本地 ASR 免费;LLM 费用另计 |
| 数据隐私 | 上传云端 | 上传云端 | ASR 本地;云端 LLM 清洗会上传文本 |
| 离线可用 | 否 | 否 | ASR 可离线;清洗需本地 LLM 才可离线 |
| 自定义清洗 | 模板固定 | 模板固定 | prompt 完全可改 |
| 输出 docx | 是 | 是 | 是(pandoc) |
| 跨平台 | Web 全平台 | Web 全平台 | macOS / Windows / Linux |
上手:在你的 AI agent 里调用
Murmur 是一个 agent skill。最快的安装方式:把下面这句话复制到你的 agent 对话框,它会自己判断该装到哪个目录:
请帮我安装这个 skill 到本地:https://github.com/xiaopengde/murmur
agent 会自动识别你用的是 Claude Code / Copilot / Cursor / Codex,clone 到对应的 skills 目录,然后告诉你"装好了"。之后跟它说"用 Murmur 转一下 xxx.m4a"就行。
手动指定安装位置(可选)
如果你想自己控制装到哪:
| Agent | 推荐安装位置 |
|---|---|
| Claude Code | ~/.claude/skills/(全局,所有项目可用) |
| GitHub Copilot Agent(VS Code) | /.github/skills/ |
| Cursor | ~/.cursor/skills/ 或 /.cursor/skills/ |
| OpenAI Codex CLI | /.agents/skills/ |
| 任意支持 agentskills.io 标准的 agent | ~/.agents/skills/ |
clone 到对应目录,例如以 Claude Code 全局安装为例:
mkdir -p ~/.claude/skills && cd ~/.claude/skills
git clone https://github.com/xiaopengde/murmur.git
VS Code Copilot 用户在自己的工作区里:
cd
mkdir -p .github/skills && cd .github/skills
git clone https://github.com/xiaopengde/murmur.git
装完之后,在 agent 对话框里说一句话
“用 Murmur 把
~/Desktop/会议.m4a转成纪要”
agent 会自动按 SKILL.md 走完整套流程:
- 跑
doctor体检脚本,看你环境缺什么 - 缺啥装啥(Mac 跑
install-mac.sh,Win 跑install-windows.ps1) - 首次会让你选择默认输出格式(
md/docx)和默认离线 ASR 模型(large-v3-turbo/large-v3/medium/small),选完后保存配置 - 跑转录(首次会先下载约 1.5GB 模型,默认 large-v3-turbo;依赖和模型准备好后才进入推理,ASR 可离线)
- 用 LLM 自动清洗成可读 Markdown(带说话人、修错字、分章节)
- 默认 docx 时再转 Word
首次 onboarding 同时确认格式和 ASR 模型。清洗使用的 LLM 不在这两个选项中;执行前应明确其运行环境和文本去向,之后可按已确认的方式运行。
常用对话清单
| 你想做什么 | 跟 agent 说 |
|---|---|
| 转一段录音 | “用 Murmur 转 xxx.m4a” |
| 临时换格式 | “这次输出 md,不改默认” |
| 改默认格式 | “Murmur 改成默认 docx”(或 md) |
| 看当前默认 | “Murmur 现在默认是什么格式” |
| 顺便出复盘 | “用 Murmur 转 面试.m4a,再出一份复盘纪要” |
agent 会自己翻译成对应命令跑。
不用 agent,纯命令行也行
如果你不想用 AI agent,想自己手工跑:
macOS:
git clone https://github.com/xiaopengde/murmur.git && cd murmur
bash scripts/install-mac.sh
python3 scripts/transcribe.py 你的录音.m4a
Windows(管理员 PowerShell):
git clone https://github.com/xiaopengde/murmur.git ; cd murmur
powershell -ExecutionPolicy Bypass -File scripts\install-windows.ps1
python scripts\transcribe.py 你的录音.m4a
首次转录前,先运行 python scripts/transcribe.py --onboarding 查看候选,再按自己的选择运行 python scripts/transcribe.py --init-defaults --format --set-default-model 保存配置(Windows 同样适用)。未完成 onboarding 时,直接转录会退出;--format / --model 不能绕过。
转录完会得到 转录原稿.txt + 字幕.srt。把 docs/prompts/clean-transcript.md 的内容连同 转录原稿.txt 一起喂给任意 LLM(ChatGPT / Claude / 国内大模型都行),就能得到清洗后的 Markdown 文档。如果你设了默认 docx,再跑一下 python scripts/md2docx.py 逐字稿-清洗版.md 转 Word。
完整命令参考:
python scripts/transcribe.py 录音.m4a # 默认配置
python scripts/transcribe.py 录音.m4a --format md # 单次覆盖输出格式
python scripts/transcribe.py 录音.m4a --lang en # 改语言(默认 zh)
python scripts/transcribe.py --set-default md # 改永久默认格式
python scripts/transcribe.py --set-default docx
python scripts/transcribe.py --show-config # 看当前配置
python scripts/md2docx.py 逐字稿-清洗版.md # md → Word
仓库结构
murmur/
├── README.md ← 你现在看的这个
├── SKILL.md ← agent 入口(agent 自动读这个)
├── LICENSE ← MIT
├── docs/
│ ├── install-mac.md ← macOS 详细安装说明
│ ├── install-windows.md ← Windows / Linux / WSL 详细安装说明
│ ├── troubleshooting.md ← 故障排查
│ └── prompts/
│ ├── clean-transcript.md ← 给 LLM 的清洗 prompt
│ └── retrospective.md ← 给 LLM 的复盘 prompt(可选)
├── scripts/
│ ├── doctor.sh / doctor.ps1 ← 环境体检
│ ├── install-mac.sh ← macOS 一键安装
│ ├── install-windows.ps1 ← Windows 一键安装
│ ├── transcribe.py ← 主入口(跨平台)
│ ├── md2docx.py ← Markdown → Word
│ └── config.py ← 默认格式配置管理
└── examples/
└── sample-clean-output.md ← 清洗后效果示例
工作原理
你的 .m4a / .mp3 / .mp4
│
│ ffmpeg
▼
16kHz 单声道 WAV(临时)
│
│ 本地 Whisper large-v3-turbo
│ ├─ Apple Silicon → mlx-whisper(GPU 加速)
│ └─ Win/Linux/Intel Mac → whisper-ctranslate2(CPU/CUDA)
▼
转录原稿.txt + 字幕.srt
│
│ 你 / agent 用清洗 prompt(docs/prompts/clean-transcript.md)
▼
逐字稿-清洗版.md(带说话人 / 修字 / 分段)
│
│ 默认 docx 时再走一步:pandoc
▼
逐字稿-清洗版.docx
隐私与离线边界
- 本地 ASR:ffmpeg 预处理和 Whisper 转录在本机完成;安装依赖、下载或更换模型可能需要联网。依赖和所选模型已缓存后,ASR 支持离线运行。
- 云端 LLM 清洗:向 ChatGPT / Claude / Gemini 等云端服务提交原稿或片段,会将这些文本发送到服务端,适用其数据处理政策;本地 ASR 不代表后续清洗也在本地。
- 本地 LLM 清洗:可自行使用本机运行的 LLM 处理同一 prompt;模型和依赖准备好,且客户端 / agent 不调用云端或同步文本时,清洗才可离线、文本才留在本机。Murmur 不内置本地 LLM 部署。
clean.py 仅在本地组装 prompt,不调用 LLM。若由云端 agent 读取原稿、字幕或清洗稿,内容同样可能发往其服务端;严格本地场景应使用本地命令行和本地清洗环境,也可仅保留 ASR 原稿。
环境要求
| 最低 | 推荐 | |
|---|---|---|
| macOS | macOS 12+ Apple Silicon | M2/M3/M4 + 16GB RAM |
| Windows | Windows 10/11 + 8GB RAM | + NVIDIA GPU(CUDA 加速) |
| Linux | 任意发行版 + Python 3.9+ | x86_64 + 16GB RAM |
| 磁盘 | 模型缓存约 3GB | 5GB |
| 网络 | 安装依赖和下载模型需联网 | 缓存就绪后 ASR 可离线;清洗见上方说明 |
常见问题
Q:模型有多大?下载慢怎么办?
A:默认 large-v3-turbo 约 1.5GB;若改用 large-v3 约 2.9GB。国内首次下慢的话,transcribe.py 会按时区/语言/系统区域自动判断:命中大陆环境时,优先从 ModelScope 下载已验证模型并缓存到本地;没有已验证 ModelScope 映射时,再给子进程注入 HF_ENDPOINT=https://hf-mirror.com(HuggingFace 镜像)和 UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple(uv 拉依赖也走清华源)。
也可以手动指定模型源:
python scripts/transcribe.py 录音.m4a --model-source modelscope # 强制优先 ModelScope
python scripts/transcribe.py 录音.m4a --model-source hf # 强制原 HuggingFace/引擎默认源
当前已验证的大陆优先模型:
- Apple Silicon /
mlx-whisper:large-v3-turbo→ ModelScopemlx-community/whisper-large-v3-turbo-4bit(约 464MB,下载后自动做weights.safetensors兼容) - Windows / Linux / Intel Mac /
whisper-ctranslate2:large-v3-turbo→ ModelScopemobiuslabsgmbh/faster-whisper-large-v3-turbo(约 1.62GB,CTranslate2 格式;仍建议首次真实机型 smoke test)
首次没有模型缓存时,进度会先显示 📥 模型下载/准备中...;确认模型缓存就绪或下载完成后,才会切换为 ⏳ 转录推理中...。
⚠️ 走 ModelScope 时别开全局 VPN:ModelScope 是国内 CDN,大陆直连最快;开着全局 VPN/代理会绕到海外再回来,反而更慢。如果走的是 HuggingFace 路线则相反——那时开 VPN 才快。
不想每次都加 --cn?跑一次 python scripts/transcribe.py --set-default-cn on 持久化偏好;或直接 bash scripts/install-mac.sh --cn,安装脚本会自动帮你把偏好写进去。
Q:能换更小/更快的模型吗?
A:能。--model 接受 tiny / base / small / medium / large-v2 / large-v3 / large-v3-turbo 短名,会按引擎自动映射(mlx-whisper 用社区量化版,whisper-ctranslate2 用官方名)。也接受完整 HF repo 名。单次:--model medium;永久:--set-default-model medium,清空:--set-default-model ""。
Q:能转英语 / 日语 / 其他语言吗?
A:能。python scripts/transcribe.py 录音.m4a --lang en,支持 Whisper 全部 99 种语言,默认 zh。
Q:能识别说话人吗?
A:mlx-whisper / whisper-ctranslate2 都不带说话人分离。Murmur 的策略是让 LLM 在清洗阶段从上下文推断(面试/对话场景非常准),多人混乱场景标 **说话人 1/2/3** 占位即可。如果对 diarization 有硬需求,issue 里讨论。
Q:录音超过 1 小时会不会出问题?
A:不会,但建议拆段。本地 Whisper 在长音频上偶发幻觉循环,本工具已默认开了 --condition-on-previous-text False 防这个,但更稳妥还是分段。
Q:可以商用吗? A:MIT License,可以。Whisper 模型本身也是 MIT 开源,无商用限制。
完整故障排查见 docs/troubleshooting.md。
License
MIT © 2026 xiaopengde
底层依赖:
- openai-whisper — MIT
- mlx-whisper — MIT (Apple)
- whisper-ctranslate2 — MIT
- pandoc — GPL-2.0+
English (brief)
Murmur combines free local ASR with LLM cleanup in an audio → markdown/docx workflow that replaces SaaS transcription services like Otter.ai or Fireflies.ai. It’s built agent-first — drop it into your AI coding agent’s skills directory (Claude Code / Codex / GitHub Copilot / Cursor) and it runs end-to-end with a single natural-language request.
Quick start (agent-first): copy this line into your AI agent:
Please install this skill locally for me: https://github.com/xiaopengde/murmur
The agent will detect whether you’re on Claude Code / Copilot / Cursor / Codex and clone Murmur into the right skills directory. Then say “Use Murmur to transcribe ~/Desktop/meeting.m4a into a doc” and it’ll run env doctor, install missing deps, ask you to choose both a default output format (md/docx) and an offline ASR model, transcribe with Whisper large-v3-turbo (mlx on Apple Silicon, whisper-ctranslate2 elsewhere), and clean the output via LLM into a readable document.
ASR can run offline once dependencies and the selected Whisper model are cached. Cloud LLM cleanup sends transcript text to the provider and may incur fees. Fully offline cleanup requires a separately configured local LLM and a client/agent that does not send or sync text to cloud services; Murmur does not bundle local LLM deployment.
Manual usage: bash scripts/install-mac.sh (Mac) / scripts/install-windows.ps1 (Win) → python scripts/transcribe.py --onboarding → save your choices with --init-defaults --format --set-default-model → python scripts/transcribe.py recording.m4a.
Full docs in Chinese above. PRs welcome.
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add xiaopengde/murmur