Scribe logo

Scribe

Community
noah-1106
scribe

本地录音转写工具:音频/视频文件 → 带时间戳的文字稿(TXT/SRT/JSON),可选说话人标记。 每当用户提到以下场景,务必使用本技能(即使没提工具名): - 用户提供音频/视频文件(m4a/wav/mp3/mp4/会议录音/采访/语音备忘录/口播),要求"转写""出文字稿""整理成文字""会议纪要""字幕" - 用户说"帮我转写这个录音""这段采访整理成文档""把口播变成文字" - 用户要求"录音转写"且愿意在浏览器录音页录音(http://localhost:8399,人录机转) 本技能自包含:代码全在 skill 内;首次运行 setup.py 自动装依赖(funasr+torch)并下载模型(SenseVoice 897MB,modelscope 国内源)。 服务常驻 http://localhost:8399:首次加载模型约 3-15 秒,之后转写秒级(RTF≈0.1,10 倍实时)。

Overview

Publishernoah-1106
RepositorySkills_Repo
Skill namescribe
Stars
32
Forks
5
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by noah-1106 on GitHub. Read the source before you install it.

Installation

Install the Scribe AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/noah-1106/Skills_Repo/tree/main/skills/scribe
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/noah-1106/Skills_Repo.git /tmp/Skills_Repo
mkdir -p .claude/skills
cp -r /tmp/Skills_Repo/skills/scribe .claude/skills/scribe
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Scribe in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Scribe on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Scribe is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

scribe — 本地录音转写

音频/视频 → 带时间戳文字稿。全本地、常驻服务、Agent 可自动调用。

快速使用(Skill 自包含,无需外部项目)

bash
# 首次安装(新机器/新环境,一次)——建 venv + 装 funasr/torch + 下载模型 897MB
python3 scripts/setup.py

# 启动服务(常驻,http://localhost:8399)
python3 scripts/start.py --detach

# Agent 调用(上传转写 + 下载留存,一条命令)
python3 scripts/scribe.py 会议录音.m4a --diarize --format all --out ~/输出目录

三种入口(同一服务)

入口谁用干什么
scripts/scribe.pyAgent上传文件转写 + 下载 TXT/SRT/JSON 留存(全自动闭环)
浏览器 http://localhost:8399人实时/上传录音(页面录音,人录机转)
scripts/transcribe.pyCLI直接转写文件(不经过服务)

Agent 调用闭环(核心用法)

用户丢录音文件
  → python3 scripts/scribe.py <文件> [--diarize] [--format txt|srt|json|all] [--out DIR]
      → ① 检测服务没起 → 自动启动并等待就绪(≤180s)
      → ② POST /api/transcribe 上传 → 转写
      → ③ GET /api/download 下载产物 → 存到 --out
  → Agent 读 TXT/JSON 做会议纪要/存档/知识库留存

API(Agent 直接调用也行)

GET  /api/health         # 服务状态(ok/base_dir/disk_free_gb/模型信息)
POST /api/transcribe     # multipart: file=音频; query: ?diarize=true(说话人标记)
GET  /api/download/{项目}/{文件}.txt|srt|json   # 下载产物
GET  /api/projects       # 历史转写项目
GET  /api/projects/{项目}/files   # 项目产物列表
DELETE /api/projects/{项目}       # 删除项目(不可恢复)
WS   /ws/live            # 实时录音转写(浏览器用)

首次环境搭建(唯一前置)

bash
cd ~/.exflower/skills/scribe
python3 scripts/setup.py
# 做什么: ① 建 .venv + 装依赖(funasr/torch/fastapi,5-15 分钟)
#         ② 下载模型 SenseVoice-Small 897MB + FSMN-VAD + CAM++(modelscope 国内源)
#         ③ 验证环境就绪
  • .venv 绑定 CPU 架构:换机器/换架构重跑 setup.py(模型和代码通用)
  • 模型走 modelscope(阿里,国内快);断网可重跑续传
  • 服务端无 OCR 平台分支,纯 CPU 推理 Mac/Windows 均可

执行要点(为什么这么做)

  1. 服务常驻而非每次现转:模型加载 3-15 秒,之后秒级响应——start.py 拉起后一直挂着(日志 data/server.log)
  2. scribe.py 自动管理服务:没起就 spawn + 轮询 health,Agent 无需关心服务状态
  3. diarize 是 query 参数(?diarize=true),不是 form 字段(FastAPI 坑,已踩)
  4. 产物三格式:TXT(带时间戳句子)/ SRT(字幕)/ JSON(结构化 sentences 含起止秒)
  5. 转写质量:SenseVoice 中文强;英文词偶发不准("AI"→"爱")——重要英文术语建议画面/人工校对
  6. 实时录音逐句落盘:每闭合一句立即追加写入项目目录 txt,崩溃/断电/关页不丢已转内容(断线再兜底补全量 srt/json)

已知坑(详见 references/已知坑.md)

  • Python 3.9 注解要 from __future__ import annotations
  • CAM++ "Loading remote code failed" 是无害警告(回退内置类,实测加载成功)
  • TTS 合成音频声纹区分度低,说话人聚类可能归并;真人音频区分可靠
  • 上传临时文件/缓存钉在 skill 内 data/(不写系统盘)

系统依赖

依赖谁负责说明
Python 3.9+接收方唯一硬前置
ffmpeg接收方系统安装音频解码(brew/官网)
模型 897MBsetup.py 下载modelscope 国内源

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Scribe AI skill do?

本地录音转写工具:音频/视频文件 → 带时间戳的文字稿(TXT/SRT/JSON),可选说话人标记。 每当用户提到以下场景,务必使用本技能(即使没提工具名): - 用户提供音频/视频文件(m4a/wav/mp3/mp4/会议录音/采访/语音备忘录/口播),要求"转写""出文字稿""整理成文字""会议纪要""字幕" - 用户说"帮我转写这个录音""这段采访整理成文档""把口播变成文字" - 用户要求"录音转写"且愿意在浏览器录音页录音(http://localhost:8399,人录机转) 本技能自包含:代码全在 skill 内;首次运行 setup.py 自动装依赖(funasr+torch)并下载模型(SenseVoice 897MB,modelscope 国内源)。 服务常驻 http://localhost:8399:首次加载模型约 3-15 秒,之后转写秒级(RTF≈0.1,10 倍实时)。

Why use Scribe on TypingMind?

Because you install it once and use it with any model. Scribe is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Scribe in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/noah-1106/Skills_Repo/tree/main/skills/scribe. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Scribe?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Scribe?

As many as you like. As long as a model supports skills, you can use Scribe with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Scribe AI skill free?

Yes. It is published on GitHub by noah-1106 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇