Yeah, I remembered something about having a constant, rythmatic sound seems to keep some animals from feeling lonely. I don't know if it's ever been tried with birds, though.
I don't know about requirements for ducks, but a lot of birds don't sleep through the night, but off and on.