Enhancing Automatic Speech Recognition Through Integrated Noise Detection Architecture