Virtually everything scientists know about sound began with microphones which output a voltage wave with the same 'pitch' as the sound wave, and the piezoelectric transducer which enabled extremely sensitive measurements. It's a deep rabbit hole I expect if we go into much detail.
It certainly helped when the cathode-ray tube was able to trace the waves visually in real time.