Learn it to do basic commands like sit and heel in the lead. And then the dog may see you as the "leader" dont hit it just correct it with a loud and clear no. And maybe a hand signal showin the back of your hand, dont do it after it barks or it will get confused, make sure you check it whilst its in the wrong. It will take time but it will get you. Also dont give too much love and attention because dogs dont see affection the same as humans, giving too much affection brings you down to their level, allowing them to think the have some control( barking). Hope this helps : )