Update this question was previously titled as \"Give me the name of a simple algorithm for signal(sound) pattern detection\"
You may want a Wiener filter approach.