# Noise canceling while recording from mobile on PC

I have a setup in which I have to control mobile Android device from the PC and record the outgoing sounds of it.
The control is done by a USB cable. For audio recording I use a headphones which I cutted off and have soldered a 3.5 mm plug instead.
Each cable functions great by itself - when I connect the audio cable without the USB cable and operate the device and the recording manually, I get clean audio. The problems start when connecting both cables together to the PC - the sound is very noisy and not useable. The strangest thing is that the noise is not consistent - I can get an hour or two of noise free recording, and then it starts.
I've soldered another wire to the audio's plug ground pin and connected it to the PC's schasis, but it doesn't make any difference.
A friend that had a similar problem in the past suggested to use 2 PCs - one for controlling the device and the other for audio recording, but I cannot do it.
I've thought of applying some signal proccesing method to try to eliminate the noise, like recording short time of noise and then use it as a reference, but it looks like an overkill to me.
Is there any simple solution?

• Hi! Welcome to StackeExchange EE! "the noise is not consistent" What did you notice in your PC or your surrounding before and after there was a noise? Like washing machine turning of and on or else? – Unknown123 Mar 2 '19 at 9:51
• @Unknown123 - I mean that there are periods of total silence, so I can record a noise free audio, just as I should, and then all at once I str\art to get white noise. – JustAsking Mar 2 '19 at 16:45