Computers can output music, voices and many other complicated sounds using speakers.
To be able to output sound a computer needs to have a special circuit board inside it called a sound card.