Spaces:
Runtime error
Runtime error
examples
#1
by
ewebspace
- opened
README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reference Voice Conversion (HF Space)
|
| 2 |
+
|
| 3 |
+
Convert any vocal to match a **reference voice** (tone color) with [OpenVoice v2] and optional vocal separation via [Demucs]. Built with Gradio for fast UX.
|
| 4 |
+
|
| 5 |
+
## β¨ Features
|
| 6 |
+
- Upload **Reference** (clean 5β20 seconds) and **Track** or **Acapella**
|
| 7 |
+
- Optional **Demucs** stem separation to extract vocals from full mix
|
| 8 |
+
- Control **style strength**, **pitch**, **formant tilt**
|
| 9 |
+
- **Remix** converted vocal with instrumental and gain controls
|
| 10 |
+
|
| 11 |
+
## π Deploy
|
| 12 |
+
1. Create a new **Hugging Face Space** (Python + Gradio). Hardware: **GPU recommended**.
|
| 13 |
+
2. Add these files (`app.py`, `requirements.txt`, `README.md`).
|
| 14 |
+
3. (Optional) Add `spaces.yml`:
|
| 15 |
+
```yaml
|
| 16 |
+
sdk: gradio
|
| 17 |
+
python_version: 3.10
|
| 18 |
+
resources:
|
| 19 |
+
accelerators: ["gpu"]
|
| 20 |
+
Commit & run. First build downloads models (~hundreds MB).
|
| 21 |
+
π§ͺ Tips
|
| 22 |
+
Reference should be clean, dry (no heavy FX), mono is fine.
|
| 23 |
+
Better results
|
app.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
-
|
| 2 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
|
|
|
| 5 |
import librosa
|
| 6 |
|
| 7 |
from huggingface_hub import snapshot_download
|
|
|
|
| 1 |
+
app.py
|
| 2 |
import os
|
| 3 |
+
import tempfile
|
| 4 |
+
import warnings
|
| 5 |
+
warnings.filterwarnings("ignore")
|
| 6 |
+
|
| 7 |
import gradio as gr
|
| 8 |
import numpy as np
|
| 9 |
+
import soundfile as sf
|
| 10 |
import librosa
|
| 11 |
|
| 12 |
from huggingface_hub import snapshot_download
|