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

允许 model.generate 使用bytes io, 以便不写入文件,节省io时间 #2343

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

maliubiao
Copy link
Contributor

直接将用户上传的语音文件传入torchaudio,它支持bytes io, 以避免服务端的文件写入, 直接传入wav bytes不能正常工作。
model = AutoModel(model="paraformer-zh", vad_model="fsmn-vad", punc_model="ct-punc",
# spk_model="cam++",
disable_update=True)
model.generate(input=wav,
batch_size_s=300)

@LauraGPT LauraGPT merged commit 172a315 into modelscope:main Dec 29, 2024
@maliubiao maliubiao deleted the patch-1 branch December 29, 2024 14:58
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.

2 participants