I may be wrong but this sounds quite easy to fake...
Next, go to the same room (or a similar room) at a time when the victim will not have a good alibi and when the room will have the same basic ambient noise. Record using the same recording device in the same conditions (e.g. if it was in your pocket for the original recording, keep it in your pocket for the second recording). This is "sample B".
Take your recordings into Audacity. On sample A, apply the "Equalization" effect like this: http://i.imgur.com/gxPTV.png
On sample B, apply the opposite filter like this: http://i.imgur.com/6qeYQ.png
Now mix the two samples. As long as the ambient noise does not contain easily isolated components like other people's voices, you'll have a convincing forgery.
Now you might argue that there could be other forensics techniques to detect this kind of tampering, but I would argue that if such reliable alternative techniques were available, this mains analysis technique wouldn't be particularly valuable in the first place.
It's not necessary to mix in the frequency domain because mixing in the frequency domain is mathematically equivalent to mixing in the time domain (FFT(x + y) = FFT(x) + FFT(y)).
- step 1: Set up a recorder in a relatively isolated environment, ensuring that the hum is being recorded.
- step 2: Record a 30 minute conversation with the target, ensuring that you have enough to splice together something incriminating.
- step 3: invert the hum recorded from step 1 and mix it into the track from step 2. This produces 30 minutes of humless audio with the target.
- step 4: edit the 30 minute recording to produce incriminating audio clip of about 30 seconds.
- step 5: overlay legitimate audio from 30 seconds of real hum onto faked recording.
It seems like it could work.
- step 6: Get caught for something much simpler that you overlooked, and ruin your life.
Please don't actually use this maliciously. I suppose it could be a decent defense in court if you could prove that it is possible to fake the hum.
Another contributing factor is when power supplies to the equipment are different or "dirty". Often this can be resolved with something as simple as a multi-adapter with the earth pin disconnected (note, this shouldn't be attempted unless your hardware is already insulated. but then if you're trying to commit a crime, then an electric shock is likely preferable to life sentences in jail).
Probably doable, but a lot harder than your method.
Made me think, what about audio compression? Psychoacoustic algorithms might want to alter the signal, or cut off the some of the frequencies entirely. This could make the record neither valid nor invalid according to this method, since the hum would be too altered to be a valid information source.
Anyway, who uses a landline these days?
Actually, it calls it an "annoyance", which is a good characterization of it. And that's for professionals trying to make very high quality recordings where they accurately capture the output of instruments within that frequency range while eliminating the mains interference in the same range.
If you're recording someone's voice on a portable recorder that's in your pocket or stashed somewhere in a room, you're not likely to capture much in terms of voice in that range in the first place. Even if you did, it would still be plausible that you didn't. So if you tampered with a recording and then replaced everything under 70 Hz with ambient noise recorded separately (including mains noise) in the same location, it would be pretty difficult to prove tampering.