Skip to content

[BUG] 热词偶尔生效的问题 #3908

Description

@zyl168

Important Instructions ⚠️

Before submitting this issue, please read carefully and confirm the following:

  • I am using the latest version of sherpa-onnx. If not, I will upgrade and check if the issue persists.
  • I understand that issues not reproducible on the latest version may be closed without response.
  • I have verified that the error is reproducible using only sherpa-onnx, not code from my own project.
  • I will provide detailed steps to reproduce the issue.
  • I will provide complete logs and error messages.
  • I understand that issues not following these instructions may be closed or receive no response (如果直接删掉这个issue template 里的步骤,我们很有可能不会回复您的issue).

Describe the issue

我在使用x-asr-streaming时配置了热词,但是发现热词只有部分时候生效

Steps to reproduce

  1. 配置热词和bpe.vocab,使用go-example-api代码
  2. 配置相应热词权重,使用x-asr-streaming-480-int8版本
  3. 阅读热词内容,发现有时生效,有时不生效

Expected behavior

阅读热词内容,发现有时生效,有时不生效

Environment

  • sherpa-onnx version:[v1.13.4]
  • OS: Linux-x86 Ubuntu 20.04.6 LTS
  • Python version:3.8.18
  • onnxruntime version:1.17.1
  • GPU (if applicable):
  • NPU (if applicable):

Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions