Repository navigation
Fix audio format - #2159
Merged
Merged
Fix audio format#2159
Conversation
LauraGPT
approved these changes
Oct 21, 2024
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.
运行runtime/python/onnxruntime/demo_sencevoice_small.py文件时发现了无法处理mp3文件的缺陷。现已改进runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py文件中SenseVoiceSmall类的load_data函数,增加了对音频文件文件后缀名的检查。
实现功能:检查文件后缀名,如果后缀名不是.wav,则将该非wav格式的文件转化为wav格式。
目前仅对runtime/python/onnxruntime/funasr_onnx/sensevoice_bin.py做了修改,后续可以给其他几个模型增加同样的补丁。
诚望采纳!