modelscope-funasr这种错误是音频本身有问题吗?

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%|

展开
收起
三分钟热度的鱼 2024-05-05 14:17:51 250 分享 版权
1 条回答
写回答
取消 提交回答
  • 简单的设置一个断点,你就知道原因了,wav路径不对,建议遇到问题,多debug。a11120bca8fca3bb104d70b548e73838.png
    此回答整理自钉群“modelscope-funasr社区交流”

    2024-05-05 18:55:35
    赞同 2 展开评论

包含命名实体识别、文本分类、分词、关系抽取、问答、推理、文本摘要、情感分析、机器翻译等多个领域

热门讨论

热门文章

还有其他疑问?
咨询AI助理