1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 12:00:49 +08:00

fix: no attribute 'FILE_LIKE'' & update instructions

This commit is contained in:
源文雨
2025-06-19 17:25:21 +09:00
parent b88cc1e8fe
commit 6223116f6b
30 changed files with 106 additions and 587 deletions

View File

@@ -13,6 +13,7 @@ from torchaudio.transforms import Resample
from rvc.f0 import Generator
from rvc.synthesizer import load_synthesizer
from rvc.utils import FileLike
class RVC:
@@ -20,7 +21,7 @@ class RVC:
self,
key: Union[int, float],
formant: Union[int, float],
pth_path: torch.serialization.FILE_LIKE,
pth_path: FileLike, # type: ignore
index_path: str,
index_rate: Union[int, float],
n_cpu: int = os.cpu_count(),