skills/standard/office-transcribe/SKILL.md
音频/视频转文字、字幕时间轴、说话人分段;Whisper/faster-whisper,转写后接纪要
npx skillsauth add sunflowermm/XRK-AGT office-transcribeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
会议录音、语音备忘、采访、.mp3 .wav .m4a 转文字、要 SRT 字幕。
run 执行转写脚本,输出 .txt / .srt / .jsonoffice-meeting 出纪要;短备忘:摘要 5 条from faster_whisper import WhisperModel
model = WhisperModel("large-v3", device="cpu", compute_type="int8")
segments, info = model.transcribe("meeting.mp3", language="zh", vad_filter=True)
lines = []
for seg in segments:
lines.append(f"[{seg.start:.1f}s-{seg.end:.1f}s] {seg.text.strip()}")
open("transcript.txt", "w", encoding="utf-8").write("\n".join(lines))
pip install faster-whisper
# 可选 GPU:device=cuda
Whisper 原生无 diarization;需 pyannote 等额外模型时先说明环境与授权。
def fmt(t):
h, r = divmod(int(t), 3600); m, s = divmod(r, 60); ms = int((t % 1) * 1000)
return f"{h:02d}:{m:02d}:{s:02d},{ms:03d}"
# 每 segment 写一条 SRT 块
memory/无 faster-whisper / 无 run → 请用户提供文字稿或外部转写结果;见 office-env-setup
development
统一回复版式:短、结构化、可复制;减少空话
tools
MCP 工具地图:默认工作流、web_search、何时启用 desktop/browser/memory
development
检索栈:web_search(13 提供商 + parallel-free 免费通道)、web_fetch、与 office-research 分工
data-ai
工作区 Markdown 记忆 + memory 工作流向量记忆的使用边界