
A program tells the computer to make numbers, which are sent to a D/A converter, which converts them to voltages, which are sent to an amplifier, which amplifies them and sends them to a speaker, which transforms the voltages into changes of air pressure, which are detected by the ear, which get sent to the brain, which understands them as sound.