FunAudioLLM / SenseVoice

Multilingual Voice Understanding Model
https://funaudiollm.github.io/
Other
2.61k stars 249 forks source link

fix api torchaudio.load bug #75

Closed godxiaoji closed 1 month ago

godxiaoji commented 1 month ago

使用 FastAPI 部署的方式,调用 /api/v1/asr 会抛出以下异常:

s = torch.classes.torchaudio.ffmpeg_StreamReader(src, format, None)
RuntimeError: Failed to open the input

推测是 torchaudio.load 不支持传入 bytes, 改成 BytesIO 可以通过。