Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api torchaudio.load bug #75

Merged
merged 1 commit into from
Jul 29, 2024
Merged

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 可以通过。

api.py Show resolved Hide resolved
@LauraGPT LauraGPT merged commit 797a9a5 into FunAudioLLM:main Jul 29, 2024
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