Are you absolutely sure your dog is making a noise when you're out?
I say this because I had a similar situation. I'd had a dog in my mid terrace for years with no issues. New neighbour moves in and we immediately get a notice enforcement letter from the council, various visits etc. I was beside myself. I knew my dog wasn't a particularly barky dog, only when the postman came or someone knocked.
I set up a camera and it turned out that as soon as I left for work, the neighbour was deliberately knocking the door and shouting at my dog through the letterbox, then recording the barks and sending them to the council.
He made my life an absolute misery. I went round to confront him with the video evidence and he came out, twisted my arm behind my back and said he hated dogs and if I didn't get rid of it, he'd endure it would die.
Called police, wouldn't do anything despite a hospital visit for my arm. Council said he submitted the recordings and they were excessive. He'd put false times on his "log", even saying the dog had been barking when we were on holiday with the dog.
They said we'd have to get rid of the dog or pay a massive fine which we couldn't do. It was one of the worst times of my life and I was terrified for my dog's safety and ended up taking him to work with me every day and keeping him in my sight at all times. It was awful living next door to that man.
I had to sell the house and move.
Sorry OP, off on a rant there but please check your dog is actually barking as some people are just twats.