That's the "Doppler effect". It's also the operating principle behind police speed radar.
The Doppler effect is the change in frequency of a sound wave due to the relative motion between the source and the observer. It is mathematically defined and has practical applications in fields such as radar and medicine. This phenomenon was first described by physicist Christian Johann Doppler in 1842.
;