Cognitive neuroscience describes the brain as a predictive machine. The brain supports perception by constantly attempting to match sensory information with predictions. The sensory information that predictions fail to explain would be communicated forward to update predictions in the form of precision-weighted prediction errors. Projects in my lab investigate how the precision-weighted prediction errors are represented in the auditory brain. I will describe a series of EEG and MEG experiments designed to illustrate how the human brain optimizes auditory processing within a predictive coding framework.