0qwpifs commited on
Commit
69e9c01
Β·
verified Β·
1 Parent(s): 1708cd9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +173 -0
README.md ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ru
5
+ - en
6
+ - ja
7
+ - zh
8
+ tags:
9
+ - singing-voice-conversion
10
+ - svc
11
+ - reflow
12
+ - bigvgan
13
+ - voice-cloning
14
+ - no-encoder
15
+ - mel-spectrogram
16
+ - audio
17
+ - music
18
+ pipeline_tag: audio-to-audio
19
+ ---
20
+
21
+ # NICO_SVC β€” Singing Voice Conversion without Encoders
22
+
23
+ ## 🎀 What is NICO_SVC?
24
+
25
+ A custom Singing Voice Conversion (SVC) system built from scratch.
26
+ **No ContentVec. No HuBERT. No Whisper. No encoders at all.**
27
+
28
+ # NICO_SVC β€” Singing Voice Conversion without Encoders
29
+
30
+ ## 🎀 What is NICO_SVC?
31
+
32
+ A custom Singing Voice Conversion (SVC) system built from scratch.
33
+ **No ContentVec. No HuBERT. No Whisper. No encoders at all.**
34
+
35
+ Unlike every existing SVC (RVC, Diff-SVC, SO-VITS-SVC, DDSP-SVC, Reflow-VAE-SVC),
36
+ NICO_SVC does NOT pass audio through a 16kHz speech encoder.
37
+ Instead, it works directly with Mel spectrograms at native 44.1kHz sample rate.
38
+
39
+ ## πŸ”₯ Why?
40
+
41
+ Every SVC system in 2023-2025 uses a speech encoder (ContentVec/HuBERT/Whisper)
42
+ that internally operates at 16kHz. This creates a bottleneck:
43
+
44
+ ```
45
+ Voice 48kHz β†’ Encoder 16kHz β†’ Lost upper frequencies β†’ Vocoder guesses β†’ Plastic sound
46
+ ```
47
+
48
+ NICO_SVC eliminates this entirely:
49
+
50
+ ```
51
+ Voice 44.1kHz β†’ Mel spectrogram (direct) β†’ Reflow model β†’ BigVGAN v2 β†’ Real 44.1kHz output
52
+ ```
53
+
54
+ ## πŸ—οΈ Architecture
55
+
56
+ | Component | Details |
57
+ |-----------|---------|
58
+ | **Input** | Mel spectrogram 44.1kHz (128 bands, hop=512, n_fft=2048) |
59
+ | **F0 Extractor** | RMVPE |
60
+ | **Speaker Embedding** | Learnable (trained per speaker) |
61
+ | **Model** | Reflow (Rectified Flow Matching) with Conv + Attention blocks |
62
+ | **Parameters** | ~100M |
63
+ | **Vocoder** | BigVGAN v2 44kHz 128band (NVIDIA, pretrained) |
64
+ | **Output** | 44.1kHz WAV |
65
+ | **Training** | Single-speaker fine-tune, no pretrain needed |
66
+ | **Inference** | ~50 Euler steps, real-time capable |
67
+
68
+ ## πŸ“Š Key Differences from Existing SVC
69
+
70
+ | Feature | RVC / Diff-SVC / SO-VITS | NICO_SVC |
71
+ |---------|--------------------------|----------|
72
+ | Speech Encoder | ContentVec 16kHz | ❌ None |
73
+ | Max Audio Frequency | ~8kHz (encoder limit) | **22kHz** (full Mel) |
74
+ | Pretrain Required | Yes (multi-speaker) | **No** |
75
+ | Mel Source | From encoder output | **Direct from WAV** |
76
+ | Vocoder | HiFi-GAN / NSF-HiFiGAN | **BigVGAN v2** (NVIDIA) |
77
+ | Architecture | Diffusion / DDSP | **Reflow** (faster, cleaner) |
78
+ | Sound Quality | Plastic, missing harmonics | **Natural, full spectrum** |
79
+
80
+ ## 🎯 Design Principles
81
+
82
+ 1. **No encoders** β€” they all operate at 16kHz and destroy timbre
83
+ 2. **Native 44.1kHz** β€” at every stage of the pipeline
84
+ 3. **Single-speaker focus** β€” one model = one voice = perfect copy
85
+ 4. **Fine-tune only** β€” no pretrain means no "average voice" contamination
86
+ 5. **Free tools only** β€” runs on Google Colab free tier (T4 GPU)
87
+ 6. **Fast inference** β€” 2-3 minutes per cover, not 18 minutes
88
+
89
+ ## πŸ“¦ Pipeline
90
+
91
+ ### Preprocessing:
92
+ ```
93
+ WAV 44.1kHz β†’ Mel spectrogram (torchaudio)
94
+ β†’ F0 extraction (RMVPE)
95
+ β†’ Speaker embedding (learnable)
96
+ ```
97
+
98
+ ### Training:
99
+ ```
100
+ Mel (target) + noise β†’ Reflow model learns to denoise
101
+ Conditioning: F0 + Speaker Embedding
102
+ Loss: MSE between predicted and target flow vectors
103
+ Optimizer: AdamW + fp16 mixed precision
104
+ ```
105
+
106
+ ### Inference (Cover):
107
+ ```
108
+ Input acapella β†’ RMVPE (extract F0)
109
+ β†’ F0 * 2^(key/12) (pitch shift)
110
+ β†’ Reflow model (generate Mel with target speaker)
111
+ β†’ BigVGAN v2 (Mel β†’ WAV)
112
+ β†’ Output cover
113
+ ```
114
+
115
+ ## 🎀 Training Data
116
+
117
+ - **Speaker:** SomNICO_Ai (lyric tenor, natural flat tone without vibrato)
118
+ - **Dataset:** up to 1951 files, ~3.92 hours
119
+ - **Languages:** Russian, English, Japanese, Chinese
120
+ - **Quality:** 48kHz WAV, single microphone, clean recording
121
+ - **Content:** Pure singing, no background noise
122
+
123
+ ## πŸ”§ Requirements
124
+
125
+ - Google Colab (free tier, T4 GPU)
126
+ - Google Drive (for checkpoints and data)
127
+ - Python 3.12
128
+ - PyTorch 2.x
129
+ - torchaudio, librosa, BigVGAN v2, RMVPE
130
+
131
+ ## πŸ“ˆ Results
132
+
133
+ | Metric | Value |
134
+ |--------|-------|
135
+ | Training loss | < 0.5 (272 files, 19M model) |
136
+ | Perceptual quality | Near-indistinguishable from original on test set |
137
+ | Inference speed | ~50 steps, real-time on T4 |
138
+ | Checkpoint size | ~400MB (100M model) |
139
+
140
+ ## πŸ‘€ Author
141
+
142
+ - **Developer:** SomNICO_Ai / Kedo
143
+ - **Age:** 20
144
+ - **Vocal experience:** 12 years (since age 6)
145
+ - **AI voice experience:** 5 years, 143+ RVC models trained
146
+ - **YouTube:** SomNICO_Ai
147
+ - **HuggingFace:** 0qwpifs
148
+
149
+ ## πŸ“œ Philosophy
150
+
151
+ > "I'm tired of using other people's tools.
152
+ > Every SVC crushes my voice through 16kHz encoders.
153
+ > I hear my voice differently β€” it has more detail, more character.
154
+ > NICO_SVC was built to preserve EVERYTHING."
155
+
156
+ ## πŸ—“οΈ Timeline
157
+
158
+ - **Day 1:** Full pipeline from scratch β€” Mel, F0, Reflow, BigVGAN working
159
+ - **Week 1:** 100M model + Attention, first covers
160
+ - **Week 2-3:** Volume conditioning, TensorBoard, production quality
161
+ - **Goal:** Voice clone indistinguishable from real recording
162
+
163
+ ## License
164
+
165
+ MIT
166
+
167
+ ## Credits
168
+
169
+ - BigVGAN v2: NVIDIA (pretrained vocoder)
170
+ - RMVPE: yxlllc (F0 extraction)
171
+ - Architecture inspired by Rectified Flow Matching papers
172
+ - Built entirely in Google Colab, free tier
173
+ ```