For normal person, just hold breath as long as he can for several times (it will stop the involuntry contractions of the diaphragm). For sick person search for the cause .
I totally agree with Pallavi ; Baclofen in the doses of 12.5 mg to 25 mg tds .Sometimes when i fail with above medication i do give xylocaine viscous 15 ml tds & that works even if that fails i do give amitryptiline 12 mg q8h( 6am,2pm, and 10pm) .That has never failed . Of course azotemia , organic , metabolic causes may not respond !