Is it possible to check similarity of two recorded sounds, "throwing" out a noise and a time offset?

I did not implement the algorithm because it is not urgent at this moment. I had asked “generally”. I have today asked another question - it is more important for current moment. Present question is not such, it was asked only as information.