Use the expression for observed frequency from the Doppler effect when the source is moving.
Use the expression for observed frequency (Doppler effect) for a moving source.