From analogue to digital
Sound is an analogue wave. A microphone turns it into an electrical signal, and an analogue-to-digital converter (ADC) measures the height (amplitude) of that signal at regular intervals. Each measurement is a sample, stored as a binary number.