If the zombies can hear, you will only attract more. The more you attract, the more you must shoot, thus causing a cycle of zombie attraction that only ends once you are defenseless. Of course, who knows what senses zombies would have. I'm guessing they would specialize in sight. Just think if they could track living things through scent. Nobody would survive. So you should really be afraid of a zombie dog apocalypse. I guess many wild carnivores would also work. Swords would be a bad idea unless you've had training. Depending on your strength, a bludgeoning weapon might be a better choice. Knives would be stupid because as a small weapon, they don't have the killing power or the range of a larger weapon.
Regardless of the zombies' senses, guns would be a bad choice unless you have an infinite ammo cheat. So if you're going with guns, just be sure to have a backup weapon.