diff --git a/README.md b/README.md index 90c34cb..a13733a 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ from rvc.modules.vc.modules import VC def main(): vc = VC() vc.get_vc("{model.pth}") - tgt_sr, audio_opt, times, _ = vc.vc_single( + tgt_sr, audio_opt, times, _ = vc.vc_inference( 1, Path("{InputAudio}") ) wavfile.write("{OutputAudio}", tgt_sr, audio_opt) diff --git a/rvc/modules/vc/modules.py b/rvc/modules/vc/modules.py index 0d6b1e3..55812fe 100644 --- a/rvc/modules/vc/modules.py +++ b/rvc/modules/vc/modules.py @@ -85,7 +85,7 @@ def get_vc(self, sid: str, *to_return_protect: int): return self.n_spk, return_protect, index - def vc_single( + def vc_inference( self, sid: int, input_audio_path: Path, @@ -164,7 +164,7 @@ def vc_multi( paths = [path.name for path in paths] infos = [] for path in paths: - tgt_sr, audio_opt, _, info = self.vc_single( + tgt_sr, audio_opt, _, info = self.vc_inference( sid, Path(path), f0_up_key, diff --git a/rvc/wrapper/api/endpoints/inference.py b/rvc/wrapper/api/endpoints/inference.py index fe7d4da..42ae103 100644 --- a/rvc/wrapper/api/endpoints/inference.py +++ b/rvc/wrapper/api/endpoints/inference.py @@ -27,7 +27,7 @@ def inference( ): vc = VC() vc.get_vc(modelpath) - tgt_sr, audio_opt, times, _ = vc.vc_single( + tgt_sr, audio_opt, times, _ = vc.vc_inference( sid, input, f0_up_key, diff --git a/rvc/wrapper/cli/handler/infer.py b/rvc/wrapper/cli/handler/infer.py index 9cf0d04..872cdc9 100644 --- a/rvc/wrapper/cli/handler/infer.py +++ b/rvc/wrapper/cli/handler/infer.py @@ -112,7 +112,7 @@ def infer( load_dotenv() vc = VC() vc.get_vc(modelpath) - tgt_sr, audio_opt, times, _ = vc.vc_single( + tgt_sr, audio_opt, times, _ = vc.vc_inference( sid, inputpath, f0upkey,