An earphone, comprising a primary microphone, a secondary microphone, and a processor,
- wherein the primary microphone and the secondary microphone are configured to pick up sound signals from a specified sound source;
- the processor is configured to perform at least one of four operations:
- first operation:
- obtain the sound signals picked up by the primary microphone and the secondary microphone from the specified sound source when the earphone is in a self-detection state;
- obtaining signal sensitivities of the primary microphone and the secondary microphone in a set frequency band according to frequency response curves of sound signals picked up by the primary microphone and the secondary microphone respectively;
- and
- in response to determining that the signal sensitivity of only one of the primary microphone and the secondary microphone in the set frequency band is greater than a preset sensitivity threshold, switching a dual-microphone noise reduction algorithm to a single microphone noise reduction algorithm;
- second operation:
- obtaining sound signals picked up by the primary microphone and the secondary microphone from a specified sound source when the earphone is in a self-detection state;
- obtaining signal sensitivities of the primary microphone and the secondary microphone in a set frequency band according to frequency response curves of sound signals picked up by the primary microphone and the secondary microphone respectively;
- in response to determining that it is not a case where the signal sensitivity of only one of the primary microphone and the secondary microphone in the set frequency band is greater than a preset sensitivity threshold, calculating difference between the frequency response curves of the sound signals picked up by the primary microphone and the secondary microphone to obtain a frequency response difference curve;
- and
- performing, if an absolute value of the frequency response difference curve in the set frequency band is within a first sensitivity range, gain compensation on one microphone of the primary microphone and the secondary microphone which picks up the sound signal with the lower sensitivity;
- third operation:
- obtaining sound signals picked up by the primary microphone and the secondary microphone from a specified sound source when the earphone is in a self-detection state;
- obtaining signal sensitivities of the primary microphone and the secondary microphone in a set frequency band according to frequency response curves of sound signals picked up by the primary microphone and the secondary microphone respectively;
- in response to determining that it is not a case where the signal sensitivity of only one of the primary microphone and the secondary microphone in the set frequency band is greater than a preset sensitivity threshold, calculating difference between the frequency response curves of the sound signals picked up by the primary microphone and the secondary microphone to obtain a frequency response difference curve;
- selecting, if the absolute value of the frequency response difference curve in the set frequency band is not within the first sensitivity range, a first sub frequency band from the set frequency band, wherein an upper limit frequency of the first sub frequency band is the same as an upper limit frequency of the set frequency band;
- and
- performing, if an absolute value of the frequency response difference curve in the first sub frequency band is within a second sensitivity range, gain compensation on one microphone of the primary microphone and the secondary microphone which picks up the sound signal with the lower sensitivity;
- fourth operation:
- obtaining sound signals picked up by the primary microphone and the secondary microphone from a specified sound source when the earphone is in a self-detection state;
- obtaining signal sensitivities of the primary microphone and the secondary microphone in a set frequency band according to frequency response curves of sound signals picked up by the primary microphone and the secondary microphone respectively;
- in response to determining that it is not a case where the signal sensitivity of only one of the primary microphone and the secondary microphone in the set frequency band is greater than a preset sensitivity threshold, calculating difference between the frequency response curves of the sound signals picked up by the primary microphone and the secondary microphone to obtain a frequency response difference curve;
- selecting, if the absolute value of the frequency response difference curve in the set frequency band is not within the first sensitivity range, a first sub frequency band from the set frequency band, wherein an upper limit frequency of the first sub frequency band is the same as an upper limit frequency of the set frequency band;
- selecting, if the absolute value of the frequency response difference curve in the first sub frequency band is not within the second sensitivity range, a second sub frequency band from the first sub frequency band, wherein an upper limit frequency of the second sub frequency band is the same as the upper limit frequency of the first sub frequency band;
- and
- disabling, if an absolute value of the frequency response difference curve in the second sub frequency band is larger than an upper limit value of the second sensitivity range, a broadband call mode of the earphone.