Repository navigation
Fix audio format 2.0 - #2186
Merged
Merged
Fix audio format 2.0#2186
Conversation
4 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做的改动有以下两点:
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并感受到语音识别的乐趣!