fix: Xinference STT failed: INVALID #4231
Merged
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.
修复amr/silk 自动识别和转换逻辑 解决了#4225 存在的bug
fixes: #4225
Modifications / 改动点
实现了直接使用qq发送语音消息时,xinference中的sensevoice也可以正常识别转换成文字,而不再出现“Xinference STT failed: INVALID”错误
Screenshots or Test Results / 运行截图或测试结果
Checklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.Summary by Sourcery
改进 Xinference STT 提供方中的音频格式检测与转换逻辑,以正确处理 QQ 语音消息并避免出现 INVALID 错误。
Bug Fixes(错误修复):
Enhancements(功能增强):
Original summary in English
Summary by Sourcery
Improve audio format detection and conversion in the Xinference STT provider to correctly handle QQ voice messages and avoid INVALID errors.
Bug Fixes:
Enhancements: