OK, you may think I am nuts, but I once trained a neighbor's dog, who lived downstairs from me, to stop whining without ever even seeing the dog. This is what I did - maybe it will work for you.
I bought a dog whistle. Some people think they are "mean" but they do not hurt the dog, they do get their attention though, and humans are not bothered by the frequency - so it is ideal for use at night (which is when I needed it for my neighbor's dog).
I would blow the dog whistle once, very hard, while standing at the window right above where the dog sat at night, and then would say, "stop," quietly. When the dog whined again, I'd do it again, and again, and again. The first 2 nights, I had to do it about 20 times. The 3rd night, I did it 4 or 5 times, and then every single night after that, I had to do it only one time, when the dog would start whining, for about a month, and then it magically stopped.
This method also worked to quiet the dog during the day as well, when its owners were at work.
This can really work - give it a try and my best to you.