Use a soft muzzle, or buy him a special toy/bone like a kong and only let him play with it when your not home. Maybe leave the TV on for him too, that might help

I have a dacshund too and he use to have a barking problem whenever I went into a store and tie him outside he barked bloody murder, now I bring a bone with me and leave him the bone.