Apparent change in the frequency of sound as a result of relative motion between the source and the observer is the Doppler effect.

Doppler Effect

There are eight Doppler Effect Formulas for frequency depending on cases:

(i) When the source is moving towards a observer at rest
                                    Observer at Rest 
(ii) When the source is moving away from the observer at rest
                                   Source Away from Stationary Observer
(iii) When observer is moving towards the stationary source
                                   Observer Moving Stationary Source
(iv) When observer moving away from a stationary source
                                   Observer Away from Stationary Source
(v) When both Source and observer moves towards each other
                                   Source and Observer Towards Each Other

(vi) When both Source and observer move away from each other
                                   Source and Observer Away Each Other
(Vii) When the Source is approaching the Stationary observer and observer moving away from it
                                    Source Approaching the Observer
(Viii) When the Observer is approaching the Stationary source and source moving away from it
                                    Observer Approaching the Source
Where, vs = Velocity of the Source,
vo = Velocity of the Observer,
v = Velocity of sound or light in medium,
f = Real frequency,
f’ = Apparent frequency.