mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-04-29 21:00:42 +08:00
1. 修复音频超采样时 int16 双重转换导致整数溢出(CRITICAL)
- audio_postprocess 中 `audio = (audio * 32768).astype(np.int16)` 位于
if/else 块之外无条件执行,当 super_sampling=True 时音频已在分支内
转为 int16,再次乘以 32768 导致溢出和音频完全失真
- 同时修复 super_sampling=True 但超分模型不存在时 torch.Tensor 调用
.astype() 的 AttributeError
2. 修复 batched vocoder 推理中 padding_len=0 导致音频丢失(HIGH)
- 当 padding_len 恰好为 0 时,`-0 * upsample_rate == 0`,切片
`audio[x:0]` 返回空张量,导致整段音频丢失
3. 修复文件不存在时错误地抛出 FileExistsError(LOW)
- 应为 FileNotFoundError
Made-with: Cursor