Patent 9264823 was granted and assigned to Apple (company) on February, 2016 by the United States Patent and Trademark Office.
An accessory having an earbud for insertion into a user's ear is disclosed. The earbud may include a speaker and a microphone in which the speaker plays an audio signal for the user and the microphone receives the audio signal. The accessory includes a processor that is coupled to the speaker and the microphone to execute various operations. For example, the operations may include: determining a ratio of an energy estimation of the speaker audio signal to an energy estimation of the audio signal received by the microphone; determining a gain for the speaker audio signal based upon the ratio; based upon the gain, selecting a shelving filter; and applying the shelving filter to the speaker audio signal.