This research article presents an enhanced speech recognition algorithm that integrates digital signal processing techniques, specifically the Butterworth stopband filter and discrete cosine transformation, to improve recognition accuracy in the presence of noise. The implemented MATLAB-based algorithm achieves a recognition ratio of approximately 98%, outperforming existing methods. A thorough evaluation demonstrates significant improvements in accuracy, speed, and noise reduction effectiveness, making it a valuable advancement in speech recognition technology.