modelscope / FunASR

A Fundamental End-to-End Speech Recognition Toolkit and Open Source SOTA Pretrained Models, Supporting Speech Recognition, Voice Activity Detection, Text Post-processing etc.
https://www.funasr.com
Other
4.46k stars 493 forks source link

IndexError: index 6802 is out of bounds for dimension 0 with size 6802 #1832

Closed lichengyang666 closed 4 days ago

lichengyang666 commented 1 week ago

What is your question?

本地运行离线asr服务,一开始正常识别,运行一段时间后报错,原来可以识别的音频现在也开始报错

Code

from funasr import AutoModel image image

What have you tried?

开始正常,识别了若干个离线录音之后开始报错了,还提示“Something wrong with the VAD algorithm”

What's your environment?

LauraGPT commented 1 week ago

set cache={} when decode

di-osc commented 1 week ago

set cache={} when decode

能否给个推理的代码示例

LauraGPT commented 1 week ago

set cache={} when decode

能否给个推理的代码示例

res = model.generate(
    input=input_file,
    cache={},)