JSON RVC Inference

VC/VC++ 2025-07-31

JSON RVC Inference

信息

JSON RVC Inference是带有JSON文件的RVC的高级版本,以选择所需的模型以下载和加载推理。 Google COLAB环境的最佳用例。

请支持原始RVC。没有它,这种推论将是不可能的。

特征

  • 支持V1和V2模型✅
  • 使用JSON文件的模型下载器[下载语音模型所需的Internet]✅
  • YouTube音频下载器✅
  • 语音分离器[下载分离器型号所需的互联网]✅
  • 麦克风支撑✅
  • TTS支持✅

安装

  1. 安装Pytorch

    • 仅CPU(任何操作系统)
    pip install torch torchvision torchaudio
    • NVIDIA(使用的CUDA)
     # For Windows (Due to flashv2 not supported in windows, Issue: https://githu*b.*co*m/Dao-AILab/flash-attention/issues/345#issuecomment-1747473481)
    pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.*p*yt*orch.org/whl/cu121
    # Other (Linux, etc)
    pip install torch torchvision torchaudio --index-url https://download.*p*yt*orch.org/whl/cu121
  2. 安装依赖项

pip install -r requirements.txt
  1. 安装FFMPEG

  2. 下载预制

 # Hubert Model
https://hug**gi*ngface.co/lj1995/VoiceConversionWebUI/blob/main/hubert_base.pt
# Save it to /assets/hubert/hubert_base.pt

# RVMPE (rmvpe pitch extraction, Optional)
https://*hu*ggingfa*ce.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt
# Save it to /assets/rvmpe/rmvpe.pt

运行webui

对于Windows:

Open run.bat

其他:

python infer.py
下载源码

通过命令行克隆项目:

git clone https://github.com/ArkanDash/JSON-RVC-Inference.git