If other methods are welcome then disconnect the pc speaker
Alternativly you should be able to setterm beep off or something try man setterm or setterm help
Or if your doing it in gnome, you should be able to right click in the properties and disbale beeps, or even in gnome control panel (i think, have not used gnome in ages)