OP I feel your pain and have found some dogs just don't seem to care if you spray or shake stuff at them or some of the other ideas people have, it's all trial and error. The problem with some of the methods is you have to be next to the dog to make it effective. I work from home and I would be in my office upstairs, on the phone and he would be on the landing looking out and bark and run down the stairs ready to attack, or I would be cooking with my hands a mess and he would see something and then start, then he would see me coming and take off running somewhere. I normally had to shut us in my office so I could work on the phone. I did something radical once to cure my first yorkie from non stop barking. It was 25 years ago, and I will preface this with if you want to jump on me go ahead cause LOL I don't give a chit

My vet told me there was an operation for debarking, so I had it done when he was having another procedure, the vet took a few biopsy type hole punches in his vocal cords which reduced the bark to a very low raspy sound. For a few days I could tell it hurt him and I felt bad, but after several days he was back to his old but much more quite self. I don't think I would ever have this done again, unless I was forced into some type of situation where I
had to live in a condo or apartment and it was that or give up a barking dog.