Doppler Effect for High School Physics

For spectrograms like that you will have to change the resolution , (“window size”), from the default setting of 256 to 2048 [ or 4096]…
waving ringing mobile phone in front of computer microphone.png
That spectrogram setting is in “Audacity preferences” menu … Audacity Manual