The solution can be had quite a few ways...from cheap to fairly expensive...
Expensive - construct a cabinet for the air compressor and line it with either insulation or carpet. Make sure it gets enough air to keep it running cool. If you build a cabinet outside and route the air through the wall, it'll be even quieter.
Cheap - Wear hearing protection.