Skip to content

Comments

fix api torchaudio.load bug#75

Merged
LauraGPT merged 1 commit intoFunAudioLLM:mainfrom
godxiaoji:fix-api
Jul 29, 2024
Merged

fix api torchaudio.load bug#75
LauraGPT merged 1 commit intoFunAudioLLM:mainfrom
godxiaoji:fix-api

Conversation

@godxiaoji
Copy link
Contributor

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

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

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

@LauraGPT LauraGPT merged commit 797a9a5 into FunAudioLLM:main Jul 29, 2024
freespace8 pushed a commit to freespace8/SenseVoice that referenced this pull request Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants