FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

GLM-ASR怎么指定识别语言

Open surfincanoy opened this issue 6 months ago • 3 comments

如果可以的话,是language = “中文“ 还是”chinese“或者"zh"?

surfincanoy avatar Jun 03 '26 21:06 surfincanoy

你好!GLM-ASR 不是 FunASR 项目的模型,它是智谱 AI 的模型。如果你想在 FunASR 中指定识别语言,可以用以下方式:

FunASR 中指定语言:

from funasr import AutoModel

# 中文
model = AutoModel(model="paraformer-zh")

# 英文
model = AutoModel(model="paraformer-en")

# 多语言 (SenseVoice,自动检测语言)
model = AutoModel(model="iic/SenseVoiceSmall")

# Fun-ASR-Nano (指定语言)
model = AutoModel(model="FunAudioLLM/Fun-ASR-Nano")
result = model.generate(input="audio.wav", language="中文")
# language 参数支持: "中文", "English", "日本語", "한국어", "yue" 等

如果你确实在问 GLM-ASR 的使用方法,建议到 GLM-ASR 仓库 提问。

LauraGPT avatar Jun 04 '26 15:06 LauraGPT

2026/05/20: Added Qwen3-ASR (0.6B/1.7B) — 52 languages, auto detection. usage 2026/05/20: Added GLM-ASR-Nano (1.5B) — 17 languages, dialect support. usage

这个项目不是支持GLM-ASR-Nano了吗?

surfincanoy avatar Jun 04 '26 22:06 surfincanoy

Closing — GLM-ASR is not a FunASR model. Please refer to the GLM-ASR repository for language configuration.

LauraGPT avatar Jun 09 '26 15:06 LauraGPT