Baby gasping at random times

Megan

So my son is 10 months old and for a while when he would get excited he would make a gasping sound and I just thought it was his way of showing excitement. Recently tho he has started to do it when he’s wakes up and he has done it a couple times in his sleep and now I’m worried that he is having trouble breathing. Anyone else experience this?