I agree that pepper spray is a good idea for protection.
as for the barking....I'm not sure. But I think just keep looking ahead and if you see something she might bark at then distract her by talking to her, etc., and praise her if she doesn't bark. and if she does bark, then make her stop walking and say "No bark."
Good luck!