Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

热词使用无效果 #1498

Closed
wanghanyang123 opened this issue Mar 14, 2024 · 1 comment
Closed

热词使用无效果 #1498

wanghanyang123 opened this issue Mar 14, 2024 · 1 comment
Labels
question Further information is requested

Comments

@wanghanyang123
Copy link

使用以下代码测试音频文件时,热词并未起到作用,不知道是使用方式问题还是模型对热词的支持效果偏弱?各位有正确使用热词的结果吗?

from funasr import AutoModel
# paraformer-zh is a multi-functional asr model
# use vad, punc, spk or not as you need
model = AutoModel(model="paraformer-zh", model_revision="v2.0.4",
                  vad_model="fsmn-vad", vad_model_revision="v2.0.4",
                  punc_model="ct-punc-c", punc_model_revision="v2.0.4",
                  spk_model="cam++", spk_model_revision="v2.0.2",
                  )
res = model.generate(input="./20240314-test.wav", 
            batch_size_s=300, 
            hotword='地铁站')
print(res)
@wanghanyang123 wanghanyang123 added the question Further information is requested label Mar 14, 2024
@LauraGPT
Copy link
Collaborator

Please raise an issue follow the template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants