Skip to content

Fix audio format 2.0 - #2186

Merged
LauraGPT merged 8 commits into
modelscope:mainfrom
Djraemon:fix-audio-format
Nov 4, 2024
Merged

LauraGPT merged 8 commits into
modelscope:mainfrom
Djraemon:fix-audio-format

Conversation

@Djraemon

@Djraemon Djraemon commented Nov 1, 2024

Copy link
Copy Markdown
Contributor

做的改动有以下两点:

1、继上一次给SenseVoiceSmall(文件路径FunASR/runtime/python/onnxruntime/funasr_onnx/paraformer_online_bin.py)模型添加了检查音频文件后缀名的补丁后,向同个路径下的paraformer_bin.py、paraformer_online_bin.py、vad_bin.py文件中的模型也加入了相同的补丁。

补丁实现功能:检查文件后缀名,如果后缀名不是.wav,则将该非wav格式的文件转化为wav格式。

2、运行FunASR/runtime/python/onnxruntime/demo_paraformer_online.py文件时发现"wav_path"变量设置为列表会引起错误,所以做了小小的修改使其顺利运行。

希望能够帮助刚接触FunASR的小伙伴们成功运行demo并感受到语音识别的乐趣!

@LauraGPT LauraGPT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@LauraGPT
LauraGPT merged commit 7e9696f into modelscope:main Nov 4, 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.

2 participants