You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: "modelscope/FunASR" ***@***.***>;
发送时间: 2025年5月15日(星期四) 下午2:06
***@***.***>;
***@***.******@***.***>;
主题: Re: [modelscope/FunASR] FunASR hotword 是否支持设置热词权重 (Issue #2497)
Chun-J1 left a comment (modelscope/FunASR#2497)
并且文档里的例子是这样的
model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc", # spk_model="cam++", ) res = model.generate(input=f"{model.model_path}/example/asr_example.wav", batch_size_s=300, hotword='魔搭')
但实际上"paraformer-zh"模型无法使用热词功能
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
Activity
StargazerWayne commentedon Apr 27, 2025
支持的,具体用法可以参考文档。
raomx commentedon May 14, 2025
参考文档哪儿有?没找到,不好意思,能贴一下链接吗?
Chun-J1 commentedon May 14, 2025
我也没看到哪有
StargazerWayne commentedon May 14, 2025
quick start
pictureyong commentedon May 15, 2025
FunASR runtime 版本支持,但是 python FunASR包使用 offline版本asr 没找到怎么支持
Chun-J1 commentedon May 15, 2025
我也想问这个,热词相关的文档那么不齐全吗?应该是个热门的功能吧
Chun-J1 commentedon May 15, 2025
并且文档里的例子是这样的
model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc", # spk_model="cam++", ) res = model.generate(input=f"{model.model_path}/example/asr_example.wav", batch_size_s=300, hotword='魔搭')但实际上"paraformer-zh"模型无法使用热词功能
Proletariat-wh commentedon May 15, 2025
使用funasr_wss_server.py启动的服务端,好像热词不生效。
Proletariat-wh commentedon May 15, 2025
最新版的镜像启动还有报错;
raomx commentedon May 15, 2025
raomx commentedon May 15, 2025
model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc", # spk_model="cam++", ) res = model.generate(input=f"{model.model_path}/example/asr_example.wav", batch_size_s=300, hotword='热词1 热词2 热词3 热词4')
这样可以
StargazerWayne commentedon May 15, 2025
在这个issue里就有提及了
gengpeip commentedon Jun 27, 2025
您好,请问这个问题解决了吗?我测试也发现热词没起作用
suxuanning commentedon Jul 8, 2025
能用,词与词之间用空格隔起来
ferlljimiygkererfww commentedon Sep 26, 2025
按照官方的代码,这个 python 版本,模型使用 paraformer-zh,针对热词,配置“单个的”,配置“空格隔起来”。对音频的结果也输出了。但是热词确实没有起到效果。请问该怎么办呢?
892902296 commentedon Sep 30, 2025
我测试还是没有效果,配置:
funasr 1.2.7
模型:speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch
huangqinpeng commentedon Nov 18, 2025
看这个文件 site-packages/funasr/models/seaco_paraformer/model.py
_seaco_decode_with_ASF方法中seaco_weight融合权重默认是1.0
调用时没有传参,修改同文件中调用该方法的代码为
seaco_weight = kwargs.get("seaco_weight", 1.0)
decoder_out = self._seaco_decode_with_ASF(
encoder_out,
encoder_out_lens,
pre_acoustic_embeds,
pre_token_length,
hw_list=self.hotword_list,
seaco_weight=seaco_weight
)
823639792 commentedon May 15, 2026
你解决了嘛?我用这个模型也不行,设置任何热词都无效