Spaces:
Build error
Build error
File size: 6,839 Bytes
f0ea802 3f78401 f0ea802 b22f3f4 2dc41b2 b22f3f4 2dc41b2 b22f3f4 f0ea802 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | ---
license: apache-2.0
title: 'Aicover embrace '
sdk: gradio
emoji: π₯
colorFrom: purple
colorTo: green
pinned: true
short_description: A rvc with effects.
sdk_version: 6.2.0
---
# AICoverGen
An autonomous pipeline to create covers with any RVC v2 trained AI voice from YouTube videos or a local audio file. For developers who may want to add a singing functionality into their AI assistant/chatbot/vtuber, or for people who want to hear their favourite characters sing their favourite song.
<img width="1574" height="740" alt="image" src="https://github.com/user-attachments/assets/931189d8-e2e2-4240-84d6-52d7a13ac7f8" />
# AICoverGen Enhanced
**AI-Powered Voice Cover Generation with Advanced Audio Enhancement**
AICoverGen Enhanced is a powerful tool for creating AI voice covers with professional-grade audio enhancement features. This enhanced version includes advanced AI audio processing, EQ controls, dynamic range compression, and much more!
---
## β¨ New Features
### Advanced Audio Enhancement
- **AI Noise Reduction** β Remove background noise and artifacts
- **Professional EQ** β 5 EQ types: Balanced, Vocal Boost, Bass Boost, Treble Boost, Flat
- **Dynamic Range Compression** β Improve loudness and consistency
- **Harmonic Enhancement** β Add richness and warmth to vocals
- **Stereo Widening** β Enhance spatial imaging for stereo tracks
- **Reverb Control** β Add depth and professional polish
- **Gain Control** β Fine-tune volume (-20 to +20 dB)
### Enhancement Types
- **Full** β Balanced enhancement with all features
- **Light** β Subtle improvements for natural sound
- **Aggressive** β Maximum enhancement for impact
- **Custom** β Use your specific settings
---
## π₯οΈ System Requirements
### Minimum Requirements
- **OS:** Windows 10/11, Linux, or macOS
- **Python:** 3.9+ (3.10+ recommended)
- **RAM:** 8GB minimum, 16GB recommended
- **Storage:** 10GB free space
- **GPU:** NVIDIA GPU with CUDA support (recommended)
### Recommended Setup
- **OS:** Windows 11 or Ubuntu 20.04+
- **Python:** 3.10 or 3.11
- **RAM:** 16GB or more
- **GPU:** NVIDIA RTX 3060 or better
- **CUDA:** 11.8 or 12.0+
- **cuDNN:** 8.6 or 9.0+
---
## βοΈ Installation Guide
### Step 1: Clone the Repository
```bash
git clone https://github.com/SociallyIneptWeeb/AICoverGen.git
cd AICoverGen
```
### Step 2: Create Virtual Environment
```bash
# Windows
python -m venv AICoverGen
AICoverGen\Scripts\activate
# Linux/macOS
python3 -m venv AICoverGen
source AICoverGen/bin/activate
```
### Step 3: Install Dependencies
#### Option A: Automatic Installation (Recommended)
```bash
pip install -r requirements.txt
```
#### Option B: Manual Installation
```bash
# Core dependencies
pip install gradio==3.50.2 librosa==0.9.1 numpy==1.23.5 scipy==1.11.1 soundfile==0.12.1
pip install pedalboard==0.7.7 pydub==0.25.1 fairseq==0.12.2 faiss-cpu==1.7.3 pyworld==0.3.4
pip install praat-parselmouth>=0.4.2 ffmpeg-python>=0.2.0 tqdm==4.65.0 yt-dlp>=2025.9.23 sox==1.4.1
# AI Audio Enhancement dependencies
pip install noisereduce==3.0.3 scikit-learn==1.6.1
# PyTorch with CUDA support
pip install torch==2.0.1+cu118 --find-links https://download.pytorch.org/whl/torch_stable.html
pip install torchcrepe==0.0.20
# ONNX Runtime with CUDA support
pip install onnxruntime-gpu==1.18.0
```
### Step 4: Download Models
```bash
python src/download_models.py
```
### Step 5: Verify Installation
```bash
python src/audio_enhancer.py
```
---
## π Usage
### Quick Start
```bash
python src/webui.py
```
Then open your browser and go to: [http://127.0.0.1:7860](http://127.0.0.1:7860)
1. Upload a song (YouTube URL or audio file)
2. Select a voice model from the dropdown
3. Configure audio enhancement:
- Expand "AI Audio Enhancement" section
- Choose enhancement type (Full/Light/Aggressive/Custom)
- Adjust EQ type (Balanced/Vocal Boost/Bass Boost/Treble Boost/Flat)
- Set noise reduction strength (0β100%)
- Adjust gain (-20 to +20 dB)
- Set compression ratio (1β10)
- Add reverb amount (0β100%)
4. Click **Generate** and enjoy your enhanced AI cover!
---
## π οΈ Troubleshooting
### CUDA Not Detected
```bash
# Check CUDA installation
nvidia-smi
# Verify PyTorch CUDA support
python -c "import torch; print(torch.cuda.is_available())"
# Check ONNX Runtime CUDA
python -c "import onnxruntime as ort; print('CUDA' in ort.get_available_providers())"
```
### Audio Enhancement Errors
```bash
# Test audio enhancer
python src/audio_enhancer.py
# Check dependencies
pip list | grep -E "(noisereduce|scikit-learn|pedalboard)"
```
### Memory Issues
- Reduce batch size in settings
- Use CPU-only mode for ONNX Runtime
- Close other applications to free RAM
---
## π Project Structure
```
AICoverGen_Enhanced/
βββ src/
β βββ webui.py # Main web interface
β βββ main.py # Core pipeline with audio enhancement
β βββ audio_enhancer.py # AI audio enhancement module
β βββ rvc.py # RVC voice conversion
β βββ mdx.py # Audio separation
βββ rvc_models/ # Voice models
βββ mdxnet_models/ # Audio separation models
βββ song_output/ # Generated covers
βββ requirements.txt # Dependencies
βββ README_Enhanced.md # This file
```
---
## ποΈ Audio Enhancement Features
### AI Noise Reduction
- Uses ML to identify and remove background noise
- Preserves vocal clarity while eliminating artifacts
- Adjustable strength (0β100%)
### Professional EQ
- **Balanced**: Gentle mid boost for clarity
- **Vocal Boost**: Emphasizes 800β3000 Hz range
- **Bass Boost**: Enhances 60β250 Hz
- **Treble Boost**: Brightens 4β16 kHz
- **Flat**: Minimal processing with high-pass filter
### Dynamic Range Compression
- Improves loudness consistency
- Reduces dynamic range for streaming
- Configurable ratio (1β10)
### Harmonic Enhancement
- Adds warmth and richness
- Uses soft saturation for natural harmonics
### Stereo Widening
- Improves spatial imaging
- Enhances left-right separation
- Creates immersive experience
### Reverb Control
- Adds subtle depth and space
- Professional room simulation
- Configurable wet/dry mix
---
## π€ Contributing
We welcome contributions! Please see our **Contributing Guidelines** for details.
---
## βοΈ License
This project is licensed under the **MIT License** β see the LICENSE file for details.
---
## π Acknowledgments
- Original AICoverGen by **SociallyIneptWeeb**
- RVC (Retrieval-based Voice Conversion) framework
- MDXNet for audio separation
- All the amazing open-source audio processing libraries |