Before Bluetooth transmits audio to your headset, it is compressed to make it as small and therefore as fast as possible. The Bluetooth headset then decompresses the audio and plays it into your ears. A codec is the software used to do that. Different headsets and devices use different codes, though many common ones are standard on all devices and headsets. This includes AAC, aptX, MP3, and more.