Skip to content
AI & Agents
Skill

/local-audio-transcriber

本地录音转文字工具。当用户发送已有录音、音频或视频文件,并希望把语音转成 Markdown 文稿和 SRT 字幕时使用。Apple Silicon 优先用 MLX/Apple GPU 和 whisper-large-v3-turbo-q4,本地转写,不生成 txt/json/vtt,不用于现场临时录音,也不默认调用云端语音识别服务。

From plugin
skills
75645 skills1 command

Claude Code

$ npx -y skills add chujianyun/skills --skill local-audio-transcriber --agent claude-code

SKILL.md

local-audio-transcriber.SKILL.md
name: local-audio-transcriber
description: 本地录音转文字工具。当用户发送已有录音、音频或视频文件,并希望把语音转成 Markdown 文稿和 SRT 字幕时使用。Apple Silicon 优先用 MLX/Apple GPU 和 whisper-large-v3-turbo-q4,本地转写,不生成 txt/json/vtt,不用于现场临时录音,也不默认调用云端语音识别服务。

Local Audio Transcriber

把用户提供的本地录音、音频或视频文件转成文字。核心目标是:用户发来音频后,直接返回转写文本;同时在本地保存 Markdown 文稿和 SRT 字幕。

适用边界

  • 适用:`.m4a`、`.mp3`、`.wav`、`.aac`、`.flac`、`.ogg`、`.opus`、`.mp4`、`.mov`、`.mkv` 等已有文件
  • 适用:会议录音、访谈录音、课程音频、播客片段、视频提取文字、字幕生成
  • 不适用:现场临时录音、麦克风采集、实时听写,除非用户另行明确要求
  • 默认本地处理,不上传音频到云端

工作流程

1. 确认用户提供的是可访问的本地音频/视频文件路径或附件。 2. 先判断机器类型和可用引擎:

python3 - <<'PY'
import platform, sys
print(sys.platform, platform.machine())
try:
    import mlx.core as mx
    print("mlx", mx.default_device())
except Exception as e:
    print(type(e).__name__ + ": " + str(e))
PY

3. Apple Silicon(M1/M2/M3/M4)优先安装并使用 MLX,本地调用 Apple GPU/统一内存:

python3.13 -m venv /tmp/local-audio-transcriber-mlx
/tmp/local-audio-transcriber-mlx/bin/python -m pip install -U pip mlx-whisper

4. 非 Apple Silicon、CUDA 机器或 MLX 不可用时,再使用 faster-whisper:

python3 -m pip install -U faster-whisper

5. 运行转写脚本,中文录音优先指定 `--language zh`;不确定语言时省略语言参数:

/tmp/local-audio-transcriber-mlx/bin/python {skill_dir}/scripts/transcribe.py "input.m4a" --language zh --print-text

6. 向用户直接发送转写文本。文本很长时,优先交付本地文件路径,并贴出开头和关键说明。 7. 默认只保存 `.md` 和 `.srt` 文件;不要生成 `txt`、`json` 或 `vtt`。

常用命令

# Apple Silicon 中文长录音:优先使用 MLX + Apple GPU + turbo-q4
/tmp/local-audio-transcriber-mlx/bin/python {skill_dir}/scripts/transcribe.py "recording.m4a" --language zh --print-text

# 明确指定 MLX 和模型
/tmp/local-audio-transcriber-mlx/bin/python {skill_dir}/scripts/transcribe.py "recording.m4a" --engine mlx --model mlx-community/whisper-large-v3-turbo-q4 --language zh --print-text

# 非 Apple Silicon / CUDA / CPU:使用 faster-whisper
python3 {skill_dir}/scripts/transcribe.py "recording.m4a" --engine faster-whisper --model small --language zh --print-text

# 自动识别语言,生成 Markdown 和 SRT
python3 {skill_dir}/scripts/transcribe.py "video.mp4" --print-text

# 多个文件批量转写到指定目录
python3 {skill_dir}/scripts/transcribe.py *.m4a --language zh --output-dir ./transcripts

# faster-whisper 质量更高但更慢
python3 {skill_dir}/scripts/transcribe.py "meeting.m4a" --engine faster-whisper --model medium --language zh --print-text

参数取舍

  • Apple Silicon 默认引擎:`mlx`,默认模型:`mlx-community/whisper-large-v3-turbo-q4`
  • 非 Apple Silicon 默认引擎:`faster-whisper`,默认模型:`small`
  • 中文长录音、多人直播、专有名词较多:优先 `whisper-large-v3-turbo-q4`
  • `whisper-large-v3-turbo-q4` 是量化模型,适合 M1 16GB 这类统一内存机器;首次运行会下载模型,之后走本地缓存
  • OpenAI Whisper 的 `--device mps` 在 M1 上可能极慢;本地 Apple GPU 路线优先用 MLX,不优先用 PyTorch MPS
  • 长录音默认关闭 `condition_on_previous_text`,避免 Whisper 在中文口语录音里进入重复幻觉循环
  • 只有明确需要跨段一致性且没有重复风险时,才加 `--condition-on-previous-text`
  • faster-whisper 长会议、嘈杂环境或多人访谈:可用 `--model medium`
  • CPU 环境:默认 `int8`,更省内存
  • CUDA 环境:脚本会尽量自动使用 `float16`
  • 口语录音:默认开启 VAD 静音过滤;如切分异常,使用 `--no-vad-filter`
  • 如果 MLX `small` 出现明显错词,优先升级到 `whisper-large-v3-turbo-q4`,不要只靠后处理硬校对
  • 初始提示词可以帮助专有名词,但如果配合上下文续写出现重复,立即关闭 `--condition-on-previous-text`

输出要求

  • 用户明确要“转文字”时,最终回复应包含转写正文,不要只给文件路径。
  • 用户要“整理成会议纪要/文章/字幕”时,先完成转写,再按用户目标继续加工。
  • 转写文件只保留 Markdown 和 SRT 两种格式,不生成 txt/json/vtt。
  • 对隐私敏感录音,只说明本地处理和输出位置,不复述无关敏感信息。

故障处理

  • `ModuleNotFoundError: faster_whisper`:运行 `python3 -m pip install -U faster-whisper`
  • `ModuleNotFoundError: mlx_whisper`:在虚拟环境中运行 `/tmp/local-audio-transcriber-mlx/bin/python -m pip install -U mlx-whisper`
  • macOS 系统 Python 提示 `externally-managed-environment`:不要加 `--break-system-packages`,改用 `python3.13 -m venv /tmp/local-audio-transcriber-mlx`
  • `mlx` 默认设备不是 `Device(gpu, 0)`:说明 MLX/Metal 没走通,降级到 faster-whisper 或检查系统环境
  • 音频无法解码:建议安装或更新 `ffmpeg`,或让用户换成 `.m4a/.mp3/.wav`
  • 转写很慢:改用 `--model small` 或 `--model base`
  • Apple Silicon 转写很慢:确认不是 OpenAI Whisper `--device mps`,优先使用本脚本 `--engine mlx`
  • 中文被识别成其他语言:加 `--language zh`
  • 字幕时间轴不准:尝试 `--model medium`,或关闭 VAD:`--no-vad-filter`
  • 出现“同一句话无限重复”:重跑并确保没有开启 `--condition-on-previous-text`,必要时换 `whisper-large-v3-turbo-q4`
Read more
@chujianyun
Ships withskills

这是悟鸣公开维护的一组 Agent Skills,偏实战、偏工作流,主要服务于 AI 工具使用、文档解读、项目配置、运维排障与技能分发。 和“技能清单”相比,这个仓库更适合被理解成一张能力地图:每个 skill 不只是一个说明文件,而是围绕某一类任务组织起来的可复用能力单元。

Stars on GitHub

Momentum

stars in total
756
Star history of chujianyun/skills on GitHub, a chart by star-history.com

Other skills on skills.

add-photo-certificate-watermarks

add-photo-certificate-…

为照片、身份证、护照、学位证、毕业证、资格证、营业执照等证件或证书扫描件及 PDF 添加本地文字水印。用户提出照片加版权水印、身份证或学历证件添加“仅限某用途”水印、资质文件批量加水印、生成水印预览,或需要保持头像、二维码、印章等区域可辨认时使用。支持…

@chujianyun@chujianyunInstall Skill
agent-md-advisor

agent-md-advisor

AGENTS.md / CLAUDE.md 最佳实践顾问。用于用户询问 agents markdown、AGENTS.md、CLAUDE.md、Claude Code memory、AI coding agent…

@chujianyun@chujianyunInstall Skill
agent-optimizer

agent-optimizer

Agent 设计顾问与审查工具。基于 12-Factor AgentOps 最佳实践,用于:(1) 探讨 Agent 架构设计方案;(2) 审查现有 Agent/Skill/工作流的设计,发现问题,给出改进建议。触发词:审查我的 agent、帮我分析这个…

@chujianyun@chujianyunInstall Skill
alltuu-downloader

alltuu-downloader

喔图(alltuu.com)云摄影相册批量下载工具。当用户需要从 alltuu.com / m.alltuu.com 相册批量下载原图时使用此技能。支持下载原图(6720x4480 级别),自动处理签名URL,并发下载。适用于…

@chujianyun@chujianyunInstall Skill
article-interpreter

article-interpreter

文章解读助手。对用户提供的文章(URL、Markdown、PDF、粘贴文本)进行结构化解读,输出包含总览、关键要点、个人启发、批判性思考和延伸思考的 Markdown 报告。触发词:文章解读、解读文章、帮我解读、读一下这篇、分析这篇文章、article…

@chujianyun@chujianyunInstall Skill
baize

baize

将公开或用户有权访问的 Wiki 完整转换为面向 Agent 的离线知识 Skill,并按原 Wiki 层级保存 Markdown、生成检索索引和逐文档哈希清单,支持无变化不落盘的手动或自动增量更新。当用户要求把 Wiki、文档站或帮助中心做成…

@chujianyun@chujianyunInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw2w393k
@openclaw@openclawInstall Skill

Questions about local-audio-transcriber.

Which coding agents can use local-audio-transcriber?
local-audio-transcriber installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.