Have other people told you this or do you just think that they can hear you swallow? Remember that it probably sounds much louder to you than it does to them. Do you hear other people swallowing? If you can't hear them, they probably can't hear you.
Since it's only when you are around other people (right?), it's probably anxiety. That can cause your throat to dry and tighten, making it difficult to swallow, or even speak sometimes. If your throat is dry all the time, are you on any medications? Many meds can cause dry mouth and throat. If it happens at other times (not just when you are around other people), you should see a doctor to make sure something else isn't going on. Even if it is only around other people, you may still want to talk to a doctor about it for either anti-anxiety pills, therapy, or just relaxation techniques so you can stop your throat from closing when you start to feel it happen. If you are aware of it, you can take control over it.
I hope some of this helps.