Electrocochleography (ECoG) is a diagnostic test that measures the electrical potentials generated by the inner ear (cochlea) and auditory nerve in response to sound stimulation. This test is crucial for diagnosing certain auditory conditions, such as Ménière's disease and other hearing disorders. It involves placing electrodes near the ear and recording the electrical activity in response to auditory stimuli.