AS the board and CPU execute programs, they send associated sound signals to the sound card on your computer. The sound card converts the digital signal into analogue and sends that signal to the external port(s). Assuming a speaker is plugged in, the signal is carried over wire to the speaker (or headphone) speaker, where a electromagnet is used to move the speaker cone. This produces sound which can be heard.