This repository is a specialized fork of the RVC-WebUI project, specifically optimized for macOS (Apple Silicon M1/M2/M3 and Intel). It solves common environment issues, leverages hardware acceleration, and ensures a seamless "out-of-the-box" experience for Mac users.
- 🚀 Hardware Acceleration: Enabled
CoreMLExecutionProviderfor UVR5 (5-10x faster vocal separation). - 🧠 MPS Integration: Configured PyTorch to use Metal Performance Shaders for GPU-accelerated inference.
- 🛠️ Environment Fixes:
- Fixed Tcl/Tk version conflicts for the Real-time GUI.
- Resolved OpenMP library conflicts (Segfault fix).
- Patched Gradio timeout issues for long audio processing (>5s).
- 🐍 Modern Python Support: Fully compatible with Python 3.9+ and PyTorch 2.6 (fixed
weights_onlyloading errors). - 📦 One-Click Scripts: Enhanced
run.shand addedrun-realtime.shfor easy startup.
Ensure you have Homebrew installed. Then, install the necessary dependencies:
brew install ffmpeg python@3.9 aria2Clone this repository and run the automated setup script:
git clone https://github.com/qingbo1011/RVC-WebUI-MacOS.git
cd RVC-WebUI-MacOS
sh ./run.shThe script will automatically create a virtual environment, install dependencies, and download required pre-trained models.
./run.shAccess at: http://127.0.0.1:7865
./run-realtime.shNote: Ensure you have your .pth and .index files ready in the assets/weights and assets/indices folders.
| Component | Configuration |
|---|---|
| Python | 3.9 (Homebrew recommended) |
| Venv | Located in .venv/ |
| GUI Framework | FreeSimpleGUI (Patched for Mac Tcl/Tk 8.6) |
These are automatically handled by our startup scripts:
PYTORCH_ENABLE_MPS_FALLBACK=1: Ensures stability if an operation isn't implemented in MPS.KMP_DUPLICATE_LIB_OK=TRUE: Prevents crashes caused by duplicate OpenMP runtimes.CoreMLExecutionProvider: Used inmdxnet.pyto leverage Mac's Neural Engine.
To use your models, place them in the following directories:
- Model Files (
.pth):/assets/weights/ - Index Files (
.index):/assets/indices/(or/logs/)
After placing the files, click "Refresh voice list and index path" in the WebUI.
- Chinese Paths: Avoid using Chinese characters in file paths for input audio, as it may cause FFmpeg issues.
- MPS Warnings: You might see "MPS fallback" warnings in the terminal; these are normal and don't affect output quality.
Contributions to further optimize RVC for macOS are welcome!
- Bug Reports: Open an issue describing the macOS version and chip (M1/M2/Intel) you are using.
- Pull Requests: For performance optimizations, please include a brief benchmark (e.g., "Inference time reduced by 20%").
- Localization: Help us improve the English/Chinese documentation.
- RVC-Project: The original amazing voice conversion framework.
- Vocal pitch extraction: RMVPE
- Ultimate Vocal Remover
Maintained by qingbo1011