Dynamics of snoring sounds and its connection with obstructive sleep apnea