What function does the sound port do on a computer?

Sound port on a computer has sound output and input connectors. These are used for connecting a headphone or speakers (sound output) and microphone (sound input). - Neeraj Sharma