Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backing vocal separation #9

Open
Ryouko-Yamanda65777 opened this issue Oct 25, 2024 · 2 comments
Open

backing vocal separation #9

Ryouko-Yamanda65777 opened this issue Oct 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Ryouko-Yamanda65777
Copy link
Contributor

Ryouko-Yamanda65777 commented Oct 25, 2024

can you add that? this for example:

import os
from audio_separator.separator import Separator

input = "/content/input.mp3"
output = "/content/output"

separator = Separator(output_dir=output)

Vocals and Instrumental

vocals = os.path.join(output, 'Vocals.wav')
instrumental = os.path.join(output, 'Instrumental.wav')

Vocals with Reverb and Vocals without Reverb

vocals_reverb = os.path.join(output, 'Vocals (Reverb).wav')
vocals_no_reverb = os.path.join(output, 'Vocals (No Reverb).wav')

Lead Vocals and Backing Vocals

lead_vocals = os.path.join(output, 'Lead Vocals.wav')
backing_vocals = os.path.join(output, 'Backing Vocals.wav')

Splitting a track into Vocal and Instrumental

separator.load_model(model_filename='model_bs_roformer_ep_317_sdr_12.9755.ckpt')
voc_inst = separator.separate(input)
os.rename(os.path.join(output, voc_inst[0]), instrumental) # Rename file to “Instrumental.wav”
os.rename(os.path.join(output, voc_inst[1]), vocals) # Rename file to “Vocals.wav”

Applying DeEcho-DeReverb to Vocals

separator.load_model(model_filename='UVR-DeEcho-DeReverb.pth')
voc_no_reverb = separator.separate(vocals)
os.rename(os.path.join(output, voc_no_reverb[0]), vocals_no_reverb) # Rename file to “Vocals (No Reverb).wav”
os.rename(os.path.join(output, voc_no_reverb[1]), vocals_reverb) # Rename file to “Vocals (Reverb).wav”

Separating Back Vocals from Main Vocals

separator.load_model(model_filename='mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt')
backing_voc = separator.separate(vocals_no_reverb)
os.rename(os.path.join(output, backing_voc[0]), backing_vocals) # Rename file to “Backing Vocals.wav”
os.rename(os.path.join(output, backing_voc[1]), lead_vocals) # Rename file to “Lead Vocals.wav”

@Eddycrack864 Eddycrack864 added the enhancement New feature or request label Oct 26, 2024
@Eddycrack864
Copy link
Owner

This can be added, but it will require me to change a lot of my current code. So for now I'll put it on my TO-DO list.

@Ryouko-Yamanda65777
Copy link
Contributor Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants