It can be greatly reduced. You need a "plant leaf misting bottle" you can buy at a dollar store that has a trigger pump handle. Fill container half full of white vinegar(stuff you buy at a grocery store) Set the nozzle for fine misting spray and pump it so it rains above the area that stinks and add a foot in either direction. Say, if you were standing, shooting out horizontally or just barely into the carpet because the air around the carpet stinks too so as the vinegar mist comes down it evaporates even before hitting the carpet and that that hits the carpet goes into the fibers so take longer to dry. You don't need it sopping wet. Just lightly damp. Now walk out of that area for the full day, maybe 2 and you MIGHT HAVE SOME VINEGAR SMELL MEANING IT IS NOT QUITE DRY. As soon as it is 100% dry you will not smell vinegar, or pet urine odor. If you still smell the pet odor, then mist it again and wait 24 hours. And you should be good. Vinegar is mainly water so no worry about it bleaching or staining anything. It is a great deodorizer. I have used it to get rid of paint smells when I paint the house in the winter using Oil paints, or in a very stinky bathroom when a guest took a dump and you wondered "what died?"...or horrible cooking smells in the kitchen such as burnt cabbage. It also removes the perfume odors and smoking odors.
Do not use Baking Soda on vinegar as it NEUTRALIZES THE VINEGAR changing it into basically water so does NOTHING. Baking soda boxes are left in the fridge and they absorb odors for a year and then chuck the box for a new one.
Handyman 20+ years