A suppressor, sound suppressor, or sound moderator, is a device attached to or part of the barrel of a firearm which reduces the amount of noise , and usually the amount of muzzle flash , generated by firing the weapon.