SIGN IN SIGN UP
RVC-Boss / GPT-SoVITS UNCLAIMED

1 min voice data can also be used to train a good TTS model! (few shot voice cloning)

0 0 70 Python

fix: 修复 TTS 音频后处理中的多个缺陷 (#2753)

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
H
huang yutong committed
445d18ccce0b4ea7cb6f8c93ff688b662bc61338
Parent: 00ce973
Committed by GitHub <noreply@github.com> on 4/18/2026, 9:16:24 AM