There was a post on there just a few days ago about a thing that looks like a bird house. When the dog barks it gives off a sound that cannot be heard by humans but dogs do not like.
You could try that. I don't know how well it would work indoors. Perhaps someone that has tried one can give you more information |