modelscope-funasr这种错误是音频本身有问题吗? File "/home/jqxxuser/miniconda3/envs/funasr/lib/python3.8/site-packages/funasr/auto/auto_model.py", line 259, in inference
res = model.inference(batch, kwargs)
File "/home/jqxxuser/miniconda3/envs/funasr/lib/python3.8/site-packages/funasr/models/fsmn_vad_streaming/model.py", line 599, in inference
audio_sample = torch.cat((cache["prev_samples"], audio_sample_list[0]))
TypeError: expected Tensor as element 1 in argument 0, but got str
0%|
简单的设置一个断点,你就知道原因了,wav路径不对,建议遇到问题,多debug。
此回答整理自钉群“modelscope-funasr社区交流”