Play sound during rotation when moving only

Ive made a door that uses physics constraint to simulate a hinge, and Im wondering how I could add sound to the door when it is moving and stop that sound when the door stops rotating.