You could try having professional carpet cleaners clean your carpets and other soft upholstered surfaces in your home, but if it's that bad, that could be a waste of money. It's likely that to get rid of the smell you will need to remove the carpet and pad, replace or seal wooden subfloor, and install new flooring. Any wooden flooring which was soiled and penetrated the wood may also need to be replaced, along with baseboards which were soiled. If you have plank or tile vinyl flooring with seams, or laminate flooring, it may have got up under that as well and may also need replacing to get rid of the smell.
A rug doctor or other self use options won't do nearly as good a job as the truck-mount extractor systems a professional carpet cleaner will have, I wouldn't bother if it's as bad as you say, it's just money down the drain.