Glm Asr logo

Glm Asr

Community
noah-1106
glm-asr

智谱 GLM-ASR-2512 语音转文本 CLI。输入音频文件(wav/mp3,≤25MB,≤30秒),输出转录文本,支持热词表(专有名词/项目代号提升识别率)与上下文提示。模型、端点、API Key 全部走 config.json 可换。用于录音转写、会议纪要、语音输入、字幕文本提取。

Overview

Publishernoah-1106
RepositorySkills_Repo
Skill nameglm-asr
Stars
32
Forks
5
Bundled files
2
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.

  • 2 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 Glm Asr 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/glm-asr
  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/glm-asr .claude/skills/glm-asr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Glm Asr 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 Glm Asr 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 Glm Asr 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.

glm-asr — 语音转文本(GLM-ASR-2512)

场景

  • 录音/语音备忘录转文字
  • 会议片段、访谈片段的快速转写
  • 语音输入(说一段话 → 文本给下游 Agent 处理)
  • 带专有名词的音频(--hotwords 提升识别率)

触发条件

用户给出音频文件并要求转文字/转录/提取内容时。

输入(硬限制,超了会被 API 直接拒绝)

  • 格式:仅 wav / mp3(其他格式先用 ffmpeg 转:ffmpeg -i in.xxx out.mp3)
  • 单文件:≤25MB 且 ≤30 秒
  • 并发:勿超过 10(20 并发实测触发 429/1302;高峰期 14:00-18:00 更严)
  • 视频(mp4/mov/m4a)不收:先抽音轨 ffmpeg -i in.mp4 -vn -b:a 64k out.mp3(伪装后缀也会被服务端识破)
  • --hotwords "词1,词2":热词表(≤100 个),专有名词识别更准(实测:给"智谱"可把"质朴"修回"智谱")
  • --prompt "上下文":长文本场景的前文提示
  • --out 文件:保存到文件

步骤

bash
python3 scripts/glm_asr.py 录音.mp3
python3 scripts/glm_asr.py meeting.mp3 --hotwords "智谱,AutoGLM" --out transcript.txt

视频先抽音轨,超 30 秒的长音频先切分(ffmpeg):

bash
# 视频抽音轨(mp4/mov/m4a 都不收,必须先转)
ffmpeg -i video.mp4 -vn -b:a 64k audio.mp3

# 超长音频切分(每段 28 秒,留 2 秒余量)
ffmpeg -i audio.mp3 -f segment -segment_time 28 -c copy part_%03d.mp3
python3 scripts/glm_asr.py part_001.mp3 --prompt "(上一段的转录文本作为上下文)"

判断标准

  • 输出空文本 → stderr 有明确错误(401 key / 429 限流 / 格式问题)
  • 专有名词错 → 加 --hotwords 重试

输出

stdout:转录文本。--out 时同时落盘。错误写 stderr,退出码非 0。

异常处理

症状处理
401key 无效 → 检查 config.json 或环境变量 GLM_ASR_API_KEY
429(code 1302)并发/频率超限(实测安全水位 ≤10 并发)→ 退避 1-2s 重试;高峰期 14:00-18:00 更严
不是 wav/mp3用 ffmpeg 转:ffmpeg -i in.aiff out.mp3
超 25MB / 超 30 秒切分(命令见上)或压缩:ffmpeg -i in.wav -b:a 64k out.mp3

数据回流(2026-09-08 实测)

  • 端点:coding plan(/api/coding/paas/v4/audio/transcriptions)与普通端点(/api/paas/v4/...)均可用(同 key),config 默认前者
  • 响应 text 直接在顶层(无 reasoning 坑)
  • 中文 TTS 测试 24 字逐字准确;专有名词(GLM ASR→GLM ATP)加 hotwords 后修正
  • 端点/模型/key 变化只改 config.json,脚本零改动

版本

v1.0 · 2026-09-08 · 项项(skill-creator-exflower 流程:冒烟先行→开发→10 项功能测试→安装)

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 Glm Asr AI skill do?

智谱 GLM-ASR-2512 语音转文本 CLI。输入音频文件(wav/mp3,≤25MB,≤30秒),输出转录文本,支持热词表(专有名词/项目代号提升识别率)与上下文提示。模型、端点、API Key 全部走 config.json 可换。用于录音转写、会议纪要、语音输入、字幕文本提取。

Why use Glm Asr on TypingMind?

Because you install it once and use it with any model. Glm Asr 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 Glm Asr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/noah-1106/Skills_Repo/tree/main/skills/glm-asr. 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 Glm Asr?

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 Glm Asr?

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

Is the Glm Asr 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 👇