Can I "subtract" a voice from a audio recording using a recording of just the voice?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
adrenalinetooth
Posts: 2
Joined: Tue Nov 12, 2019 11:51 am
Operating System: Windows 10

Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by adrenalinetooth » Tue Nov 12, 2019 11:57 am

My friend and I recorded us playing a game together and we both used two audio channels: our desktop audio, and an audio channel with just our voice.

I wanted to combine the two videos together but it turns out my desktop audio was recording his voice as well (screwed up the virtual audio cable). I was wondering if it was possible to use the recording of just his voice as a way of telling audacity exactly what sounds to "subtract" from my desktop audio recording.

I tried using the vocal remover function but it completely ruins the rest of the audio and doesn't really get rid of his voice. So can I use his vocals to tell audacity somehow what to exactly remove from the mixed audio so I can just get pure audio without his voice in it?

Thanks in advance.

jh90s
Posts: 115
Joined: Sun Feb 26, 2017 4:05 am
Operating System: Windows 10

Re: Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by jh90s » Tue Nov 12, 2019 12:41 pm

Yes. Use the kn0ck0ut VST plugin and turn both tracks into mono ones. Pan the video's audio to the left and the part with only his voice to the right. Make that a stereo track and run kn0ck0ut. It'll do spectral subtraction and more or less eliminate that voice and keep the other stuff intact.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by steve » Tue Nov 12, 2019 1:45 pm

jh90s wrote:
Tue Nov 12, 2019 12:41 pm
Yes. Use the kn0ck0ut VST plugin and turn both tracks into mono ones. Pan the video's audio to the left and the part with only his voice to the right. Make that a stereo track and run kn0ck0ut. It'll do spectral subtraction and more or less eliminate that voice and keep the other stuff intact.
My guess is that won't work very well, because it will suffer the same problems as Audacity's Noise Reduction effect - namely that the voice in one recording is not sufficiently similar to the voice in the other recording.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by kozikowski » Tue Nov 12, 2019 1:55 pm

Post back how well it worked. This is a common problem and it would be good to have a posted solution.

Live recording is a real joy, isn't it? Orchestra and band recordings run into similar problems.

Koz

DVDdoug
Forum Crew
Posts: 9416
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by DVDdoug » Tue Nov 12, 2019 6:05 pm

Under ideal conditions subtraction can work perfectly. Mixing is done by summation so if I have a mix of A+B I can invert A and mix that in giving A+B+(-A) = B.

But usually if you have a perfect copy of A and a "simple pure mix", you already have a perfect copy of B also.

The regular/traditional vocal remover also works by subtraction and can also work "perfectly" if the vocals are perfectly centered (identical and in-phase in both channels). But, it will perfectly-remove everything in the center (except you can keep the bass and extreme highs) and you end-up with a mono file.

adrenalinetooth
Posts: 2
Joined: Tue Nov 12, 2019 11:51 am
Operating System: Windows 10

Re: Can I "subtract" a voice from a audio recording using a recording of just the voice?

Post by adrenalinetooth » Tue Nov 12, 2019 7:40 pm

jh90s wrote:
Tue Nov 12, 2019 12:41 pm
Yes. Use the kn0ck0ut VST plugin and turn both tracks into mono ones. Pan the video's audio to the left and the part with only his voice to the right. Make that a stereo track and run kn0ck0ut. It'll do spectral subtraction and more or less eliminate that voice and keep the other stuff intact.
Seems like it deletes the right stereo channel with my friend's voice in it, and then just makes the left channel (the one with video audio and my friend's voice) quieter without removing his voice.
DVDdoug wrote:
Tue Nov 12, 2019 6:05 pm
Under ideal conditions subtraction can work perfectly. Mixing is done by summation so if I have a mix of A+B I can invert A and mix that in giving A+B+(-A) = B.

But usually if you have a perfect copy of A and a "simple pure mix", you already have a perfect copy of B also.

The regular/traditional vocal remover also works by subtraction and can also work "perfectly" if the vocals are perfectly centered (identical and in-phase in both channels). But, it will perfectly-remove everything in the center (except you can keep the bass and extreme highs) and you end-up with a mono file.
This is definitely what I am trying to achieve, it's just that I am a complete newbie to audio editing and don't know how to go about this..
My friend and I both recorded desktop audio plus our own voices in a separate audio channel. My desktop audio includes his voice picked up through Discord plus the game I was playing. I would imagine my recording would not have a perfect copy of his voice as the audio quality was surely compressed when he was talking through Discord.

Post Reply