forgive me, I am not alexadry, but I can tell you a trick I used.
I would not bother yelling NO or anything else at the dog, I would call the dog to me as I walked into another area of my house. She could see the treat in my hand and she would immediately stop barking and follow me. When I had distracted her and she came, I would give her the treatand use the word "quiet" If she continued barking, then I would make a "shhushing sound,and walk away from her and not give her the treat. "quiet" meant treat "shush" meant no treat. She got the hang of it in less than two full days. She barked, I said quiet, she got treat. after about a week, I stopped the treat, said quiet, she stopped barking, I petted her and praised her.No more barking