Closed godxiaoji closed 1 month ago
使用 FastAPI 部署的方式,调用 /api/v1/asr 会抛出以下异常:
/api/v1/asr
s = torch.classes.torchaudio.ffmpeg_StreamReader(src, format, None) RuntimeError: Failed to open the input
推测是 torchaudio.load 不支持传入 bytes, 改成 BytesIO 可以通过。
torchaudio.load
使用 FastAPI 部署的方式,调用
/api/v1/asr
会抛出以下异常:推测是
torchaudio.load
不支持传入 bytes, 改成 BytesIO 可以通过。