Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

fix(vc): avoid duplicate output extensions

Open wyf027 opened this issue 6 months ago • 0 comments

Summary

  • Strip an existing source extension before appending the selected export format in vc_multi
  • Avoid writing files like song.wav.wav when the input file is already a WAV/FLAC/etc.
  • Preserve the original input path for status reporting by using a separate save_path variable for converted formats

Fixes RVC-Project/Retrieval-based-Voice-Conversion-WebUI#2758.

Test Plan

  • python3 -m py_compile /tmp/rvc_2758_patchwork/infer/modules/vc/modules.py
  • Local filename behavior check:
    • song.wav + wav -> song.wav
    • song.flac + flac -> song.flac
    • song.mp3 + wav -> song.wav
    • dir/song.wav + mp3 -> song.mp3

Notes

  • This is a minimal WebUI/export path fix and does not touch model inference or algorithm logic.

wyf027 avatar May 17 '26 02:05 wyf027