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

ncnn带端点检测的流式语音识别bug #322

Open
20246688 opened this issue Mar 7, 2024 · 6 comments
Open

ncnn带端点检测的流式语音识别bug #322

20246688 opened this issue Mar 7, 2024 · 6 comments

Comments

@20246688
Copy link

20246688 commented Mar 7, 2024

在使用python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py的时候,一些词语的尾音会重复输出的怎么回事呢?是否可以处理?
输出效果如下:
Started! Please speak
0:重要
1:要
2:要
3:非常重要
4:要
5:要
6:没有问题
7:重要
8:要
9:要

@csukuangfj
Copy link
Collaborator

s->GetResult().decoder_out = decoder_out;

你把这行删掉,然后再次编译,然后再测试下?

@20246688
Copy link
Author

20246688 commented Mar 7, 2024

删除后用git clone https://github.com/k2-fsa/sherpa-ncnn
cd sherpa-ncnn
python setup.py install吗?
输出效果:Started! Please speak
0:重要
1:要
2:要
3:非常的重要
4:要
5:要
6:你
7:车

@csukuangfj
Copy link
Collaborator

git clone https://github.com/k2-fsa/sherpa-ncnn
cd sherpa-ncnn

然后删除那一行

然后

python3 setup.py install

@20246688
Copy link
Author

20246688 commented Mar 7, 2024

是的结果还是一样的怎么办

@csukuangfj
Copy link
Collaborator

看看git diff的输出。你有重新编译吗

@20246688
Copy link
Author

20246688 commented Mar 7, 2024

啥意思?QQ上问吧

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

No branches or pull requests

2 participants