There is a rattling noise, but AC does still blow cold. From time to time it makes a loud humming noise. It is a Hyundai Sonata 2004, 4 door car.
It sounds like you may have an internal component of the AC compressor failing. It is possible to be a bearing or another non serviceable item. I suggest having a certified technician, like one from YourMechanic, diagnose the noise firsthand to determine the exact cause of your concern.
Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Fair and transparent pricing