# how to extract telephone audio only from an mp3

I have mp3s of radio talk shows in which the host interviews people on the phone. The host uses a microphone, and the interviewee uses either a landline phone or a cell phone.

I want to save just the telephone audio to a different file. Is that feasible?

• Are the recordings from FM radio or something of similar quality? I've never tried to do this, but one idea that comes to mind is that telephone audio is typically pretty narrowband (~300 Hz to ~3 kHz), while in-studio audio from the host should be comparatively wideband (one reason why it sounds better). You might be able to compute something like a spectrogram on the audio and pull out regions of the file where the signal bandwidth appears to be within the region you would expect for telephone audio. Commented Jan 27, 2013 at 16:22
• The recordings are from the radio studio, 44.1 KHz. I thought of a solution similar to yours - FFT the signal, and calculate the ration of the energy between 300 and 3400 Hz and the whole spectrum. If it exceeds a threshold then I keep the audio. I have to run VAD when I have telephone audio to keep the silence between words and sentences. Commented Jan 28, 2013 at 7:02
• @barisdad I generally agree with your suggestion. Just for clarity VAD = Voice Activity Detection. VAD functions as an audio switch that passes the audko signal when voice energy exceeds a predetermined threshold and passes silences otherwise. You can modify the “voice energy” algorithm to favor the full spectrum (broadcast) audio over the phone audio. Commented Jan 29, 2013 at 17:41
• I tried implementing and ran into a problem. I am currently using a rectangular window for the FFT with no overlap and I can't seem to find a consistent energy threshold to tell the signals apart. I think this is due to leakage from the rectangular windows. I want to use a hann / hamming window instead, but I understand these favor the center of the signal, so I want to use overlapping windows with a step size of half the window size, and average the energy in 3 adjacent windows to get the result. Does this sound correct? Commented Feb 3, 2013 at 7:04
• You may want to look in to Independent Component Analysis (ICA) for audio. Here's a paper that is attempting to separate two sources from one source. research.microsoft.com/pubs/66912/2004-hershey-icassp.pdf Commented Feb 12, 2013 at 19:56