If you snore and have sleep apnea, your doctor may recommend using auto CPAP machines (continuous positive airway pressure machines) to treat your condition. Snoring and sleep apnea may be avoided by using a continuous positive airway pressure (CPAP) machine, which delivers precisely the proper air pressure to a mask.