CN114095835B - Earphone through mode control method and device, earphone equipment and storage medium - Google Patents

Earphone through mode control method and device, earphone equipment and storage medium Download PDF

Info

Publication number
CN114095835B
CN114095835B CN202111372479.8A CN202111372479A CN114095835B CN 114095835 B CN114095835 B CN 114095835B CN 202111372479 A CN202111372479 A CN 202111372479A CN 114095835 B CN114095835 B CN 114095835B
Authority
CN
China
Prior art keywords
gain
signal
mode
earphone
energy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111372479.8A
Other languages
Chinese (zh)
Other versions
CN114095835A (en
Inventor
曲征
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111372479.8A priority Critical patent/CN114095835B/en
Priority to PCT/CN2021/139038 priority patent/WO2023087468A1/en
Publication of CN114095835A publication Critical patent/CN114095835A/en
Application granted granted Critical
Publication of CN114095835B publication Critical patent/CN114095835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a method and a device for controlling a headset through mode, headset equipment and a storage medium, wherein the method comprises the following steps: when the earphone equipment is in a through mode, acquiring a first signal which is played through a loudspeaker and picked up by a microphone, wherein the frequency of the first signal is outside the hearing frequency range of a user; if the signal energy of the picked-up first signal is smaller than or equal to a first energy threshold value, controlling the earphone equipment to adopt a gain value larger than or equal to a first gain threshold value to carry out gain processing in a through mode; and if the signal energy of the picked-up first signal is larger than a first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than a second gain threshold value in a through mode, wherein the second gain threshold value is smaller than or equal to the first gain threshold value. The invention can avoid howling caused by ear covering and poor permeation effect caused by misadjustment of gain value caused by sudden loud outside.

Description

Earphone through mode control method and device, earphone equipment and storage medium
Technical Field
The present invention relates to the field of headphones technologies, and in particular, to a method and apparatus for controlling a headphone through mode, a headphone device, and a storage medium.
Background
The pass-through mode is a common technique for headphones, and is intended to enable a wearer to hear ambient sounds without taking off the headphones. The common practice is to pick up external environmental sound through a microphone outside the earphone, gain-process the picked-up microphone signal (to obtain transparent sound), and send the sound to the human ear through an earphone speaker. At present, when a user covers the earphone by hand, the transparent sound played by the loudspeaker is picked up by the microphone again due to the leakage of the earphone, the transparent sound forms a closed loop in the link, and howling can be generated when the transparent sound is processed by the gain. The existing solution to howling is to reduce the gain value when it is detected that the external environment signal picked up by the microphone exceeds a certain threshold. However, this solution has a problem that when external loud sounds such as door closing sounds suddenly appear, the microphone monitoring function is triggered by mistake, so that the gain value is reduced, and the user can obviously feel that the external sounds become stuffy with the door closing sounds, and the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a method and a device for controlling a headset through mode, headset equipment and a storage medium, and aims to solve the problem of howling when the headset is covered in the headset through mode and avoid false touch caused by external loud sounds.
In order to achieve the above object, the present invention provides a method for controlling a through mode of an earphone, the method is applied to an earphone device, the earphone device includes a speaker and a microphone, when the earphone device is in the through mode, an external environment signal is picked up by the microphone and is played by the speaker after gain processing, the method includes the following steps:
when the earphone equipment is in the transparent mode, acquiring a first signal which is played through the loudspeaker and picked up by the microphone, wherein the frequency of the first signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up first signal is smaller than or equal to a first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to a first gain threshold value in the pass-through mode;
and if the signal energy of the picked first signal is larger than the first energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than a second gain threshold in the through mode, wherein the second gain threshold is smaller than or equal to the first gain threshold.
Optionally, the gain value adopted by the earphone device when entering the pass-through mode is greater than or equal to the first gain threshold, and before the step of acquiring the first signal played through the speaker and picked up by the microphone, the method further includes:
When the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is larger than or equal to the first gain threshold value, acquiring a first external environment signal picked up by the microphone currently;
and if the signal energy of the first external environment signal is larger than a second energy threshold value, playing the first signal through the loudspeaker.
Optionally, after the step of controlling the earphone device to perform gain processing with a gain value smaller than a second gain threshold in the pass-through mode if the signal energy of the picked-up first signal is greater than the first energy threshold, the method further includes:
when the earphone device is in the through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, playing a second signal through the loudspeaker, and picking up the second signal through the microphone, wherein the frequency of the second signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold value in the pass-through mode;
And if the signal energy of the picked-up second signal is larger than the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold value in the through mode.
Optionally, after the step of controlling the earphone device to perform gain processing with a gain value smaller than a second gain threshold in the pass-through mode if the signal energy of the picked-up first signal is greater than the first energy threshold, the method further includes:
when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is smaller than the second gain threshold value, acquiring a second external environment signal picked up by the microphone currently;
if the signal energy of the second external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode;
and if the signal energy of the second external environment signal is larger than the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold in the through mode.
Optionally, after the step of obtaining the first external environment signal currently picked up by the microphone when the earphone device is in the pass-through mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, the method further includes:
and if the signal energy of the first external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the through mode.
Optionally, if the signal energy of the picked-up first signal is greater than the first energy threshold, the step of controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the pass-through mode includes:
if the signal energy of the picked-up first signal is larger than the first energy threshold value, detecting whether the gain value adopted by the earphone equipment in the pass-through mode is smaller than a second gain threshold value or not;
if the gain value adopted by the earphone equipment in the pass-through mode is smaller than the second gain threshold value, keeping the gain value adopted by the earphone equipment in the pass-through mode unchanged;
And if the gain value adopted by the earphone equipment in the pass-through mode is larger than or equal to the second gain threshold value, reducing the gain value adopted by the earphone equipment in the pass-through mode to be smaller than the second gain threshold value according to a preset step.
Optionally, the step of acquiring the first signal played through the speaker and picked up by the microphone includes:
acquiring sound signals picked up by the microphone;
filtering the sound signal to obtain a first signal which is played through the loudspeaker and picked up by the microphone.
In order to achieve the above object, the present invention further provides a device for controlling a through mode of an earphone, the device being disposed in an earphone device, the earphone device including a speaker and a microphone, the earphone device picking up an external environment signal through the microphone and playing through the speaker after gain processing when in the through mode, the device comprising:
the acquisition module is used for acquiring a first signal which is played through the loudspeaker and picked up by the microphone when the earphone equipment is in the through mode, wherein the frequency of the first signal is outside the hearing frequency range of a user;
The first control module is used for controlling the earphone equipment to adopt a gain value which is larger than or equal to a first gain threshold value to carry out gain processing in the pass-through mode if the signal energy of the picked-up first signal is smaller than or equal to the first energy threshold value;
and the second control module is used for controlling the earphone equipment to adopt a gain value smaller than a second gain threshold value to perform gain processing in the pass-through mode if the signal energy of the picked-up first signal is larger than the first energy threshold value, wherein the second gain threshold value is smaller than or equal to the first gain threshold value.
In order to achieve the above object, the present invention further provides an earphone device, where the earphone device includes a memory, a processor, and an earphone pass-through mode control program stored in the memory and capable of running on the processor, and the earphone pass-through mode control program implements the steps of the earphone pass-through mode control method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer readable storage medium having stored thereon a control program for a headphone through mode, which when executed by a processor, implements the steps of the method for controlling a headphone through mode as described above.
In the invention, when the earphone device is in the pass-through mode, a first signal which is played through a loudspeaker of the earphone device and picked up by a microphone is acquired, the frequency of the first signal is set to be out of the hearing frequency range of a user, when the signal energy of the first signal is smaller than or equal to a first energy threshold value, the earphone device is controlled to perform gain processing by adopting a gain value which is larger than or equal to a first gain threshold value in the pass-through mode, and when the signal energy of the first signal is larger than the first energy threshold value, the earphone device is controlled to perform gain processing by adopting a gain value which is smaller than a second gain threshold value in the pass-through mode, and the second gain threshold value is set to be smaller than or equal to the first gain threshold value. Through adopting the speaker to broadcast the signal that the user can't hear under penetrating mode to judge through the energy size to this signal that the microphone picked up in order to confirm whether the user covers the ear, and then adjust the gain value little when the user covers the ear, adopt normal gain value to carry out gain processing when the user does not cover the ear, can enough avoid the howling that causes because of covering the ear, can avoid the external sudden loud sound to cause gain value misadjustment again and lead to penetrating effect not good, improved the user experience to earphone penetrating mode.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for controlling a headset pass-through mode according to the present invention;
fig. 2 is a schematic diagram of a control system framework of an earphone through mode according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a control flow of an earphone through mode according to an embodiment of the present invention;
fig. 4 is a schematic functional block diagram of a control device for earphone through mode according to a preferred embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first embodiment of a method for controlling a headset through mode according to the present invention.
The embodiments of the present invention provide embodiments of a method for controlling a headset pass-through mode, and it should be noted that although a logic sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein. The earphone penetrating mode control method is applied to earphone equipment, the earphone equipment can comprise one earphone or two earphones, and as the earphone penetrating mode control methods of the two earphones are the same, the earphone equipment comprises one earphone by default for example for embodiment explanation for convenience of description. In this embodiment, the method for controlling the earphone through mode includes:
Step S10, when the earphone equipment is in the transparent mode, acquiring a first signal which is played through the loudspeaker and picked up by the microphone, wherein the frequency of the first signal is out of the hearing frequency range of a user;
the earphone device may include a speaker and a microphone disposed at a side of the earphone device near the external environment for picking up external environment signals. The earphone device is provided with the transparent mode, when the earphone device is in the transparent mode, the earphone device can pick up external environment signals through the microphone, gain processing is carried out on the external environment signals, and then the external environment signals are played through the loudspeaker, so that when a user wears the earphone, the external sound heard is not influenced because the earphone blocks the auditory canal. Gain processing generally employs a pass filter for gain processing, and the specific manner is not limited herein.
In order to solve the problem of howling caused by ear covering in the pass-through mode and avoid bad experience effect of users on the pass-through mode caused by false touch when loud sounds are generated due to the fact that the howling problem is overcome, in this embodiment, a section of sound signal with specific frequency (hereinafter referred to as a first signal) is played by a loudspeaker when the earphone device is in the pass-through mode, the first signal is picked up by a microphone, whether the users cover the ears or not is accurately determined by judging the energy of the picked-up first signal, and then gain values are accurately adjusted, so that the howling is avoided, and gain adjustment when the users cover the ears due to false touch of loud sounds is avoided. Wherein the specific first signal is a signal having a frequency outside the range of the hearing of the user, i.e. which is not audible to the speaker by the user of the earphone device. The hearing frequency ranges of each person may be different, so in a specific embodiment, the frequency of the first signal may be selected empirically to accommodate most users, or may be set for a particular user, e.g. by playing different frequency sound signals through a speaker to test the hearing frequency range of a particular user, and the frequency of the first signal is selected according to the measured hearing frequency range.
When the earphone device is in the pass-through mode, the timing of playing the first signal through the speaker is not limited in the embodiment. For example, in an embodiment, the earphone device may play the first signal through the speaker uninterruptedly or periodically while in the pass-through mode, and accordingly, pick up the first signal through the microphone uninterruptedly or periodically; when the first signals are played by the loudspeaker at regular time, the first signals can be played once at intervals, each time a certain time is played, and the time interval between two adjacent first signals can be set to be short, so that howling caused by ear covering of a user in a period of non-playing in the middle is avoided. In another embodiment, the earphone device may play the first signal through the speaker when detecting that the energy value of the external environment signal picked up by the microphone is greater than a threshold value while in the pass-through mode; wherein the gain value may be maintained at a normal level in the pass-through mode when the energy value of the ambient signal is less than the threshold.
It should be noted that, when the speaker does not play the first signal, the sound signal picked up by the microphone only includes the external environment signal; when the loudspeaker plays the first signal, the sound signal picked up by the microphone comprises the first signal and an external environment signal. When the speaker plays the first signal, the headphone device can extract the first signal from the sound signal picked up by the microphone, since the first signal is known.
Further, in an embodiment, the step of acquiring the first signal played through the speaker and picked up by the microphone in the step S10 includes:
step S101, acquiring sound signals picked up by the microphone;
step S102, filtering the sound signal to obtain a first signal that is played through the speaker and picked up by the microphone.
The earphone device can play the first signal through the loudspeaker, acquire the sound signal picked up by the microphone, and filter the sound signal to acquire the first signal picked up by the microphone. The filtering may specifically be to set a filter according to the frequency of the first signal, and obtain the first signal by filtering with the filter. For example, when the frequency of the first signal is high, a high-pass filter may be set for filtering, and when the frequency of the first signal is low, a low-pass filter may be set for filtering, or a band-pass filter may be set for filtering, which is not limited in this embodiment.
Step S20, if the signal energy of the picked-up first signal is less than or equal to a first energy threshold, controlling the earphone device to perform gain processing by adopting a gain value greater than or equal to a first gain threshold in the pass-through mode;
After the first signal is picked up by the microphone, it may be determined whether the signal energy of the picked-up first signal is greater than a first energy threshold. The first energy threshold may be set through a test, so that when the signal energy of the picked-up first signal is greater than the first energy threshold, the user is indicated to cover the ear by hand, and when the signal energy of the picked-up first signal is less than or equal to the first energy threshold, the user is indicated to not cover the ear. When the user wears the earphone to cover the ear by hand and wear leakage occurs, the signal energy of the first signal picked up by the microphone is larger than the signal energy of the first signal picked up by the microphone when the user does not cover the ear, so that whether the user covers the ear can be judged by comparing the signal energy of the first signal with the set first energy threshold.
If the signal energy of the picked-up first signal is smaller than or equal to the first energy threshold, the user is not covered by the ear, and at this time, the earphone device can be controlled to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode. The first gain threshold value can be set according to experience, the first gain threshold value can achieve the transparent effect of external sound when the user does not cover the ear, howling cannot occur, and howling may occur when the user covers the ear by performing gain processing with the first gain threshold value. When the external environment generates sudden loud sound but the user does not cover the ears, the user can be determined that the user does not cover the ears by judging the signal energy of the picked-up first signal, and then gain processing is still performed with a normal gain value, so that the user can hear more real external sound, namely the permeation effect is more real.
Specific implementation details of controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the pass-through mode are not limited in this embodiment. For example, in an embodiment, the earphone device may first determine whether the currently employed gain value is greater than or equal to the first gain threshold when detecting that the signal energy of the picked-up first signal is less than or equal to the first energy threshold; if the gain value is greater than or equal to the first gain threshold value, the earphone equipment can be kept at the current gain value without adjustment; if the gain value is smaller than the first gain threshold value, the earphone device may directly set the gain value to a value greater than or equal to the first gain threshold value, or may increase the gain value based on the current gain value according to a certain step, and at least one step of adjustment is performed to make the gain value reach a level greater than or equal to the first gain threshold value. As another example, in another embodiment, the headphone device may directly set the gain value to a value greater than or equal to the first gain threshold when detecting that the signal energy of the picked-up first signal is less than or equal to the first energy threshold.
Step S30, if the signal energy of the picked-up first signal is greater than the first energy threshold, controlling the earphone device to perform gain processing by adopting a gain value smaller than a second gain threshold in the pass-through mode, where the second gain threshold is smaller than or equal to the first gain threshold.
If the signal energy of the picked-up first signal is greater than the first energy threshold, it indicates that the user covers the ear, and at this time, in order to avoid howling, the earphone device may be controlled to perform gain processing in the pass-through mode by adopting a gain value smaller than the second gain threshold. The second gain threshold may be set empirically, where the second gain threshold is a gain value that is not howling caused by leakage when the user covers the ear, and may be set smaller than or equal to the first gain threshold according to specific situations.
Further, in an embodiment, when detecting that the signal energy of the picked up first signal is greater than the first energy threshold, the earphone device may first detect whether the energy value of the external environment signal picked up by the microphone is greater than the second energy threshold, if so, control the earphone device to perform gain processing in the pass-through mode by using a gain value smaller than the second gain threshold, and if so, control the earphone device to perform gain processing in the pass-through mode by using a gain value greater than or equal to the first gain threshold. The second energy threshold may be set as needed, so that when the energy value of the external environment signal picked up by the microphone is smaller than or equal to the second energy threshold, howling does not occur, and when the energy value of the external environment signal picked up by the microphone is greater than the second energy threshold, howling may occur for a period of time. That is, if the user covers the ear, but the signal energy of the external environment signal does not reach the level where howling occurs, the normal gain level may still be maintained, and when the signal energy of the external environment signal reaches the level where howling occurs, the gain value is adjusted to be smaller, so as to avoid the occurrence of howling.
Specific implementation details of controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the pass-through mode are not limited in this embodiment. For example, in an embodiment, the earphone device may directly set the gain value to a value smaller than the second gain threshold value when it is detected that the signal energy of the picked-up first signal is larger than the first energy threshold value.
Further, in another embodiment, the step S30 includes:
step S301, if the signal energy of the picked up first signal is greater than the first energy threshold, detecting whether the gain value adopted by the earphone device in the pass-through mode is smaller than a second gain threshold;
step S302, if the gain value adopted by the earphone device in the pass-through mode is smaller than the second gain threshold value, the gain value adopted by the earphone device in the pass-through mode is kept unchanged;
step S303, if the gain value currently adopted by the earphone device in the pass-through mode is greater than or equal to the second gain threshold, reducing the gain value currently adopted by the earphone device in the pass-through mode to be less than the second gain threshold according to a preset step.
The earphone device may first determine whether the currently employed gain value is smaller than the second gain threshold value when detecting that the signal energy of the picked-up first signal is larger than the first energy threshold value. If the currently adopted gain value is smaller than the second gain threshold value, the earphone equipment can be kept at the current gain value without adjustment; if the currently adopted gain value is greater than or equal to the second gain threshold, the earphone device may directly set the gain value to a value smaller than the second gain threshold, or may reduce the gain value based on the current gain value according to a preset step, and adjust the gain value by at least one step to reach a level smaller than the second gain threshold. The preset step may be set as required, which is not limited in this embodiment.
In this embodiment, when the earphone device is in the pass-through mode, a first signal played through a speaker of the earphone device and picked up by a microphone is acquired, a frequency of the first signal is set to be out of a hearing frequency range of a user, when a signal energy of the first signal is less than or equal to a first energy threshold value, the earphone device is controlled to perform gain processing with a gain value greater than or equal to a first gain threshold value in the pass-through mode, and when the signal energy of the first signal is greater than the first energy threshold value, the earphone device is controlled to perform gain processing with a gain value less than a second gain threshold value in the pass-through mode, and the second gain threshold value is set to be less than or equal to the first gain threshold value. Through adopting the speaker to broadcast the signal that the user can't hear under penetrating mode to judge through the energy size to this signal that the microphone picked up in order to confirm whether the user covers the ear, and then adjust the gain value little when the user covers the ear, adopt normal gain value to carry out gain processing when the user does not cover the ear, can enough avoid the howling that causes because of covering the ear, can avoid the external sudden loud sound to cause gain value misadjustment again and lead to penetrating effect not good, improved the user experience to earphone penetrating mode.
Further, based on the first embodiment, a second embodiment of the method for controlling a headset through mode of the present invention is provided, in this embodiment, before the step of acquiring the first signal played by the speaker and picked up by the microphone in step S10, the method further includes:
step S40, when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is larger than or equal to the first gain threshold value, acquiring a first external environment signal picked up by the microphone currently;
in this embodiment, in order to avoid excessive consumption of resources of the earphone device caused by the earphone device always sending the first signal, the first signal may be played through the speaker when the signal energy of the external environment signal picked up by the microphone of the earphone device is greater than the second energy threshold.
Specifically, when the earphone device enters the pass-through mode, the gain value adopted by default may be greater than or equal to the first gain threshold, so as to ensure the normal pass-through function of the pass-through mode. And then, when the earphone equipment is in the through mode and the adopted gain value is larger than or equal to a first gain threshold value, acquiring an external environment signal (hereinafter referred to as a first external environment signal for convenience in distinguishing) picked up by the current microphone. It should be noted that, when the earphone device is in the pass-through mode and the adopted gain value is greater than or equal to the first gain threshold, the earphone device will acquire the external environment signal picked up by the microphone, so as to monitor whether the external environment has loud sound in real time.
And step S50, if the signal energy of the first external environment signal is larger than a second energy threshold value, playing the first signal through the loudspeaker.
After the first external environment signal is picked up, it may be determined whether the signal energy of the first external environment signal is greater than a second energy threshold. If the signal energy of the first external environment signal is greater than the second energy threshold, it is indicated that if the user continuously covers the ear, howling may be caused, at this time, the earphone device may play the first signal through the speaker, pick up the first signal through the microphone, and determine whether the user covers the ear at this time by determining the signal energy of the picked first signal; if the user ear covering is determined, the explanation is that the user ear covering causes larger signal energy of the external environment signal, and the gain value is reduced to be lower than a second gain threshold value at the moment so as to avoid howling; if the user is determined to not cover the ears, the outside natural loud sound is indicated, and at the moment, the gain value is kept at the first gain threshold value or above, so that the normal penetrating function is ensured.
When the earphone device is in the pass-through mode and the gain value adopted is smaller than the second gain threshold, the earphone device may restore the gain value to a level greater than or equal to the second gain threshold when a certain condition is satisfied, where the condition may be that the gain value is restored when the user is detected to be not covered by the ear by a certain method, or that the signal energy of the external environment signal is detected to be lower than the second energy threshold, which is not a limitation in the present embodiment.
Further, in an embodiment, after the step S30, the method further includes:
step A10, when the earphone device is in the pass-through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, playing a second signal through the loudspeaker, and picking up the second signal through the microphone, wherein the frequency of the second signal is outside the hearing frequency range of the user;
when the gain value adopted by the earphone device is smaller than the second gain threshold value, the earphone device can play the second signal through the loudspeaker. The second signal may be different from the first signal or the same signal, but the frequencies of the second signal and the first signal are both out of the hearing frequency range of the user, that is, by judging the energy of the second signal picked up by the microphone, it is also able to determine whether the user is ear-covered.
It should be noted that, when the earphone device is in the pass-through mode and the adopted gain value is smaller than the second gain threshold, the earphone device plays the second signal through the speaker to determine whether the user covers the ear in real time.
Step A20, if the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold, controlling the earphone device to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode;
After the second signal is picked up by the microphone, it may be determined whether the signal energy of the second signal is less than or equal to the first energy threshold. Similarly to the first signal, when the signal energy of the second signal is less than or equal to the first energy threshold, it is indicated that the user does not cover the ear, and at this time, the earphone device may be controlled to perform gain processing with a gain value greater than or equal to the first gain threshold in the pass-through mode, that is, to restore the gain value to a normal level, so as to ensure a normal pass-through function. At this time, since the previous gain value is smaller than the second gain threshold value, when the earphone device is controlled to perform gain processing with a gain value greater than or equal to the first gain threshold value, the gain value may specifically be set directly to a value greater than or equal to the first gain threshold value, or may be increased in a certain step on the basis of the current gain value, and the gain value is adjusted at least once to reach a level greater than or equal to the first gain threshold value.
And step A30, if the signal energy of the picked-up second signal is larger than the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold value in the pass-through mode.
When the signal energy of the second signal is greater than the first energy threshold, the user is still in the ear covering state, and at the moment, the earphone equipment is still controlled to perform gain processing by adopting a gain value smaller than the second gain threshold so as to avoid howling. Since the previous gain value is smaller than the second gain threshold value, when the earphone device is controlled to perform gain processing with the gain value smaller than the second gain threshold value, the gain value may be specifically set to be a value smaller than the second gain threshold value directly, or the current gain value may be kept unchanged.
If the gain value is reduced when the signal energy of the external environment signal picked up by the microphone is detected to be greater than a certain threshold value, and the gain value is recovered when the signal energy is smaller than or equal to the threshold value, then the noise of the earphone is disappeared after appearing when the user covers the ear, and the noise is continuously circulated when the user is continuously covered, so that the user experience is poor. In this embodiment, the earphone device adjusts the gain value down when detecting the ear covering, and the gain value is not recovered until the ear covering is not detected, so that the situation that the whistle suddenly disappears is avoided.
Further, in an embodiment, after the step S30, the method further includes:
step B10, when the earphone device is in the pass-through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, acquiring a second external environment signal picked up by the microphone currently;
when the earphone device is in the pass-through mode and the gain value adopted when performing gain processing is smaller than the second gain threshold value, the earphone device acquires an external environment signal (hereinafter referred to as a second external environment signal for convenience of distinction) picked up by the current microphone. It should be noted that, when the earphone device is in the pass-through mode and the adopted gain value is smaller than the second gain threshold, the earphone device will acquire the external environment signal picked up by the microphone, so as to monitor in real time whether the external environment has loud sound.
Step B20, if the signal energy of the second external environment signal is smaller than or equal to the second energy threshold, controlling the earphone device to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode;
after the second external environment signal is picked up, it may be determined whether the signal energy of the second external environment signal is greater than a second energy threshold. If the signal energy of the second external environment signal is smaller than or equal to the second energy threshold value, the howling cannot occur at the moment; at this time, the earphone device may be controlled to perform gain processing by using a gain value greater than or equal to the first gain threshold in the pass-through mode, so as to ensure a normal pass-through function.
Since the previous gain value is smaller than the second gain threshold, when the earphone device is controlled to perform gain processing by adopting the gain value larger than or equal to the first gain threshold, the gain value may be specifically set to a value larger than or equal to the first gain threshold directly, or the gain value may be increased according to a certain step on the basis of the current gain value, and the gain value is adjusted at least once to reach a level larger than or equal to the first gain threshold.
And step B30, if the signal energy of the second external environment signal is greater than the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold in the pass-through mode.
If the signal energy of the second external environment signal is greater than the second energy threshold, it is indicated that if the user continuously covers the ear, howling may be caused, and at this time, the earphone device is still controlled to perform gain processing by adopting a gain value smaller than the second gain threshold, so as to avoid howling. Since the previous gain value is smaller than the second gain threshold value, when the earphone device is controlled to perform gain processing with the gain value smaller than the second gain threshold value, the gain value may be specifically set to be a value smaller than the second gain threshold value directly, or the current gain value may be kept unchanged.
Further, in an embodiment, after the step S40, the method further includes:
step S60, if the signal energy of the first external environment signal is less than or equal to the second energy threshold, controlling the earphone device to perform gain processing in the pass-through mode by using a gain value greater than or equal to the first gain threshold.
If the signal energy of the first external environment signal is smaller than or equal to the second energy threshold value, the howling cannot occur at the moment; at this time, the earphone device may be controlled to perform gain processing by using a gain value greater than or equal to the first gain threshold in the pass-through mode, so as to ensure a normal pass-through function.
Further, in one embodiment, as shown in fig. 2, a schematic diagram of a control system framework of a possible earphone through mode is shown. The processor is a processing platform for performing relevant detection processing and permeable filtering processing; the microphone is used for picking up sound signals; the loudspeaker is used for converting the electric signal into a sound signal to be emitted; the energy monitoring module is used for monitoring the energy of the external environment signal picked up by the microphone; the filtering module is used for filtering interference and reserving high-frequency signals (the first signal is exemplarily limited to be the high-frequency signals which are out of the hearing frequency range of the user in fig. 2); the high-frequency signal energy monitoring module is used for monitoring the energy of the high-frequency signal picked up by the microphone; the gain control module is used for controlling the gain value of the permeable filter according to the output of the high-frequency signal energy monitoring module; the transparent filter is used for amplifying the intermediate frequency signal picked up by the microphone to achieve the effect of noninductive wearing in a transparent mode; the high-frequency signal generator generates a high-frequency signal for detecting whether a user is ear-covered. Further, in an embodiment, as shown in fig. 3, a control flow diagram of the earphone through mode implemented according to the system framework shown in fig. 2 is shown.
In addition, an embodiment of the present invention further provides a device for controlling a through mode of an earphone, where the device is disposed in an earphone device, the earphone device includes a speaker and a microphone, and when the earphone device is in the through mode, the external environment signal is picked up by the microphone and is played by the speaker after gain processing, and referring to fig. 4, the device for controlling the through mode of the earphone includes:
an acquisition module 10, configured to acquire, when the earphone device is in the pass-through mode, a first signal played through the speaker and picked up by the microphone, where a frequency of the first signal is outside a hearing frequency range of a user;
the first control module 20 is configured to control the earphone device to perform gain processing with a gain value greater than or equal to a first gain threshold in the pass-through mode if the signal energy of the picked-up first signal is less than or equal to a first energy threshold;
and the second control module 30 is configured to control the earphone device to perform gain processing with a gain value smaller than a second gain threshold in the pass-through mode if the signal energy of the picked-up first signal is greater than the first energy threshold, where the second gain threshold is smaller than or equal to the first gain threshold.
Further, the obtaining module 10 is further configured to obtain a first external environment signal currently picked up by the microphone when the earphone device is in the pass-through mode and a gain value adopted by the earphone device is greater than or equal to the first gain threshold;
the apparatus further comprises:
and the playing module is used for playing the first signal through the loudspeaker if the signal energy of the first external environment signal is larger than a second energy threshold value.
Further, the playing module is further configured to play a second signal through the speaker and pick up the second signal through the microphone when the earphone device is in the pass-through mode and a gain value adopted by the earphone device is smaller than the second gain threshold, where a frequency of the second signal is outside a hearing frequency range of a user;
the apparatus further comprises:
the third control module is used for controlling the earphone equipment to adopt a gain value which is larger than or equal to the first gain threshold value to carry out gain processing in the through mode if the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold value;
and the fourth control module is used for controlling the earphone equipment to adopt a gain value smaller than the second gain threshold value to carry out gain processing in the pass-through mode if the signal energy of the picked-up second signal is larger than the first energy threshold value.
Further, the obtaining module 10 is further configured to obtain a second external environment signal currently picked up by the microphone when the earphone device is in the pass-through mode and a gain value adopted by the earphone device is smaller than the second gain threshold value;
the apparatus further comprises:
a fifth control module, configured to control the earphone device to perform gain processing in the pass-through mode by using a gain value greater than or equal to the first gain threshold if the signal energy of the second external environment signal is less than or equal to the second energy threshold;
and the sixth control module is used for controlling the earphone equipment to adopt a gain value smaller than the second gain threshold value to perform gain processing in the pass-through mode if the signal energy of the second external environment signal is larger than the second energy threshold value.
Further, the apparatus further comprises:
and a seventh control module, configured to control the earphone device to perform gain processing in the pass-through mode by using a gain value greater than or equal to the first gain threshold if the signal energy of the first external environment signal is less than or equal to the second energy threshold.
Further, the second control module 30 is further configured to:
If the signal energy of the picked-up first signal is larger than the first energy threshold value, detecting whether the gain value adopted by the earphone equipment in the pass-through mode is smaller than a second gain threshold value or not;
if the gain value adopted by the earphone equipment in the pass-through mode is smaller than the second gain threshold value, keeping the gain value adopted by the earphone equipment in the pass-through mode unchanged;
and if the gain value adopted by the earphone equipment in the pass-through mode is larger than or equal to the second gain threshold value, reducing the gain value adopted by the earphone equipment in the pass-through mode to be smaller than the second gain threshold value according to a preset step.
Further, the acquisition module 10 is further configured to:
acquiring sound signals picked up by the microphone;
filtering the sound signal to obtain a first signal which is played through the loudspeaker and picked up by the microphone.
The expansion content of the specific implementation mode of the earphone through mode control device is basically the same as that of each embodiment of the earphone through mode control method, and details are not repeated here.
The earphone device of the invention can comprise a loudspeaker and a microphone, wherein when the earphone device is in a through mode, the external environment signal is picked up by the microphone and is played through the loudspeaker after being subjected to gain processing, the earphone device also comprises a memory, a processor and an earphone through mode control program which is stored in the memory and can run on the processor, and when the earphone through mode control program is executed by the processor, the following operations are realized:
When the earphone equipment is in the transparent mode, acquiring a first signal which is played through the loudspeaker and picked up by the microphone, wherein the frequency of the first signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up first signal is smaller than or equal to a first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to a first gain threshold value in the pass-through mode;
and if the signal energy of the picked first signal is larger than the first energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than a second gain threshold in the through mode, wherein the second gain threshold is smaller than or equal to the first gain threshold.
Further, the gain value adopted by the earphone device when entering the pass-through mode is greater than or equal to the first gain threshold, and before the first signal played by the speaker and picked up by the microphone is obtained, the control program of the earphone pass-through mode further realizes the following operations when executed by the processor:
when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is larger than or equal to the first gain threshold value, acquiring a first external environment signal picked up by the microphone currently;
And if the signal energy of the first external environment signal is larger than a second energy threshold value, playing the first signal through the loudspeaker.
Further, if the signal energy of the picked up first signal is greater than the first energy threshold, after controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the pass-through mode, the control program of the earphone pass-through mode further performs the following operations when executed by the processor:
when the earphone device is in the through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, playing a second signal through the loudspeaker, and picking up the second signal through the microphone, wherein the frequency of the second signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold value in the pass-through mode;
and if the signal energy of the picked-up second signal is larger than the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold value in the through mode.
Further, if the signal energy of the picked up first signal is greater than the first energy threshold, after controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the pass-through mode, the control program of the earphone pass-through mode further performs the following operations when executed by the processor:
when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is smaller than the second gain threshold value, acquiring a second external environment signal picked up by the microphone currently;
if the signal energy of the second external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode;
and if the signal energy of the second external environment signal is larger than the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold in the through mode.
Further, when the earphone device is in the pass-through mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, after the first external environment signal picked up by the microphone is obtained, the control program of the earphone pass-through mode further performs the following operations when executed by the processor:
And if the signal energy of the first external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the through mode.
Further, if the signal energy of the picked-up first signal is greater than the first energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the pass-through mode includes:
if the signal energy of the picked-up first signal is larger than the first energy threshold value, detecting whether the gain value adopted by the earphone equipment in the pass-through mode is smaller than a second gain threshold value or not;
if the gain value adopted by the earphone equipment in the pass-through mode is smaller than the second gain threshold value, keeping the gain value adopted by the earphone equipment in the pass-through mode unchanged;
and if the gain value adopted by the earphone equipment in the pass-through mode is larger than or equal to the second gain threshold value, reducing the gain value adopted by the earphone equipment in the pass-through mode to be smaller than the second gain threshold value according to a preset step.
Further, the acquiring the first signal played through the speaker and picked up by the microphone includes:
acquiring sound signals picked up by the microphone;
filtering the sound signal to obtain a first signal which is played through the loudspeaker and picked up by the microphone.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a control program of the earphone penetrating mode, and the control program of the earphone penetrating mode realizes the steps of the earphone penetrating mode control method when being executed by a processor.
Embodiments of the earphone device and the computer readable storage medium of the present invention may refer to embodiments of the earphone through mode control method of the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The method is characterized in that the method is applied to earphone equipment, the earphone equipment comprises a loudspeaker and a microphone, when the earphone equipment is in the through mode, external environment signals are picked up by the microphone and are played by the loudspeaker after gain processing, and the method comprises the following steps:
when the earphone equipment is in the transparent mode, acquiring a first signal which is played through the loudspeaker and picked up by the microphone, wherein the frequency of the first signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up first signal is smaller than or equal to a first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to a first gain threshold value in the pass-through mode;
if the signal energy of the picked first signal is larger than the first energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than a second gain threshold in the through mode, wherein the second gain threshold is smaller than or equal to the first gain threshold;
wherein if the signal energy of the picked-up first signal is greater than the first energy threshold, the step of controlling the earphone device to perform gain processing by adopting a gain value smaller than the second gain threshold in the pass-through mode includes:
If the signal energy of the picked-up first signal is larger than the first energy threshold value, detecting whether the gain value adopted by the earphone equipment in the pass-through mode is smaller than a second gain threshold value or not;
if the gain value adopted by the earphone equipment in the pass-through mode is smaller than the second gain threshold value, keeping the gain value adopted by the earphone equipment in the pass-through mode unchanged;
if the gain value adopted by the earphone equipment in the pass-through mode is larger than or equal to the second gain threshold value, reducing the gain value adopted by the earphone equipment in the pass-through mode to be smaller than the second gain threshold value according to a preset step, wherein the preset step is set according to user requirements;
and if the signal energy of the picked-up first signal is greater than the first energy threshold, controlling the earphone device to perform gain processing by adopting a gain value smaller than a second gain threshold in the pass-through mode, wherein the method further comprises the following steps:
when the earphone device is in the through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, playing a second signal through the loudspeaker, and picking up the second signal through the microphone, wherein the frequency of the second signal is out of the hearing frequency range of a user;
If the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold value in the pass-through mode;
and if the signal energy of the picked-up second signal is larger than the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold value in the through mode.
2. The method for controlling a through mode of an earphone according to claim 1, wherein a gain value adopted by the earphone device when the through mode is entered is greater than or equal to the first gain threshold, and the step of acquiring the first signal played through the speaker and picked up by the microphone further comprises, before:
when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is larger than or equal to the first gain threshold value, acquiring a first external environment signal picked up by the microphone currently;
and if the signal energy of the first external environment signal is larger than a second energy threshold value, playing the first signal through the loudspeaker.
3. The method for controlling a through mode of an earphone according to claim 2, wherein if the signal energy of the picked-up first signal is greater than the first energy threshold, the step of controlling the earphone device to perform gain processing with a gain value smaller than a second gain threshold in the through mode further comprises:
when the earphone equipment is in the through mode and the gain value adopted by the earphone equipment is smaller than the second gain threshold value, acquiring a second external environment signal picked up by the microphone currently;
if the signal energy of the second external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the pass-through mode;
and if the signal energy of the second external environment signal is larger than the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold in the through mode.
4. The method for controlling a headset through mode according to claim 2, wherein, when the headset device is in the through mode and a gain value adopted by the headset device is greater than or equal to the first gain threshold, the step of acquiring a first external environment signal currently picked up by the microphone further comprises:
And if the signal energy of the first external environment signal is smaller than or equal to the second energy threshold, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold in the through mode.
5. The method of controlling a headset through mode according to any one of claims 1 to 4, wherein the step of acquiring the first signal played through the speaker and picked up by the microphone comprises:
acquiring sound signals picked up by the microphone;
filtering the sound signal to obtain a first signal which is played through the loudspeaker and picked up by the microphone.
6. A control device for a through mode of an earphone, the device being disposed on an earphone device, the earphone device including a speaker and a microphone, the earphone device picking up an external environment signal through the microphone and playing through the speaker after gain processing when in the through mode, the device comprising:
the acquisition module is used for acquiring a first signal which is played through the loudspeaker and picked up by the microphone when the earphone equipment is in the through mode, wherein the frequency of the first signal is outside the hearing frequency range of a user;
The first control module is used for controlling the earphone equipment to adopt a gain value which is larger than or equal to a first gain threshold value to carry out gain processing in the pass-through mode if the signal energy of the picked-up first signal is smaller than or equal to the first energy threshold value;
the second control module is used for controlling the earphone equipment to perform gain processing by adopting a gain value smaller than a second gain threshold value in the pass-through mode if the signal energy of the picked-up first signal is larger than the first energy threshold value, wherein the second gain threshold value is smaller than or equal to the first gain threshold value;
wherein, the second control module is further configured to:
if the signal energy of the picked-up first signal is larger than the first energy threshold value, detecting whether the gain value adopted by the earphone equipment in the pass-through mode is smaller than a second gain threshold value or not;
if the gain value adopted by the earphone equipment in the pass-through mode is smaller than the second gain threshold value, keeping the gain value adopted by the earphone equipment in the pass-through mode unchanged;
if the gain value adopted by the earphone equipment in the pass-through mode is larger than or equal to the second gain threshold value, reducing the gain value adopted by the earphone equipment in the pass-through mode to be smaller than the second gain threshold value according to a preset step, wherein the preset step is set according to user requirements;
Wherein the apparatus further comprises:
when the earphone device is in the through mode and the gain value adopted by the earphone device is smaller than the second gain threshold value, playing a second signal through the loudspeaker, and picking up the second signal through the microphone, wherein the frequency of the second signal is out of the hearing frequency range of a user;
if the signal energy of the picked-up second signal is smaller than or equal to the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value larger than or equal to the first gain threshold value in the pass-through mode;
and if the signal energy of the picked-up second signal is larger than the first energy threshold value, controlling the earphone equipment to perform gain processing by adopting a gain value smaller than the second gain threshold value in the through mode.
7. A headset device, characterized in that the headset device comprises a memory, a processor and a headset pass-through mode control program stored on the memory and executable on the processor, which headset pass-through mode control program, when executed by the processor, implements the steps of the headset pass-through mode control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, wherein a control program for a headphone through mode is stored on the computer-readable storage medium, and the control program for a headphone through mode realizes the steps of the headphone through mode control method according to any one of claims 1 to 5 when executed by a processor.
CN202111372479.8A 2021-11-18 2021-11-18 Earphone through mode control method and device, earphone equipment and storage medium Active CN114095835B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111372479.8A CN114095835B (en) 2021-11-18 2021-11-18 Earphone through mode control method and device, earphone equipment and storage medium
PCT/CN2021/139038 WO2023087468A1 (en) 2021-11-18 2021-12-17 Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111372479.8A CN114095835B (en) 2021-11-18 2021-11-18 Earphone through mode control method and device, earphone equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114095835A CN114095835A (en) 2022-02-25
CN114095835B true CN114095835B (en) 2023-06-09

Family

ID=80302162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111372479.8A Active CN114095835B (en) 2021-11-18 2021-11-18 Earphone through mode control method and device, earphone equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114095835B (en)
WO (1) WO2023087468A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116156385B (en) * 2023-04-19 2023-07-07 深圳市汇顶科技股份有限公司 Filtering method, filtering device, chip and earphone

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007033484A1 (en) * 2007-07-18 2009-01-22 Ruwisch, Dietmar, Dr. hearing Aid
JP5197458B2 (en) * 2009-03-25 2013-05-15 株式会社東芝 Received signal processing apparatus, method and program
US20160300562A1 (en) * 2015-04-08 2016-10-13 Apple Inc. Adaptive feedback control for earbuds, headphones, and handsets
CN109151700B (en) * 2018-07-26 2020-04-21 Oppo广东移动通信有限公司 Microphone hole blockage detection method and related product
CN112291689B (en) * 2020-11-27 2022-07-22 歌尔光学科技有限公司 Sound playing method, wearable device and readable storage medium
CN113596665A (en) * 2021-07-29 2021-11-02 北京小米移动软件有限公司 Howling suppression method, howling suppression device, earphone and storage medium
CN113596662B (en) * 2021-07-30 2024-04-02 北京小米移动软件有限公司 Method for suppressing howling, device for suppressing howling, earphone, and storage medium
CN113473304B (en) * 2021-08-17 2024-01-23 北京小米移动软件有限公司 Howling suppression method, device, earphone and storage medium

Also Published As

Publication number Publication date
CN114095835A (en) 2022-02-25
WO2023087468A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
US11710473B2 (en) Method and device for acute sound detection and reproduction
US8718305B2 (en) Method and device for background mitigation
US8855343B2 (en) Method and device to maintain audio content level reproduction
CN101227759B (en) Earphone device with automatic volume control function
CN108551604B (en) Noise reduction method, noise reduction device and noise reduction earphone
CN111885458B (en) Audio playing method, earphone and computer readable storage medium
CN112911487B (en) In-ear detection method for wireless headset, wireless headset and storage medium
WO2017143714A1 (en) Earphones having automatic volume adjustment and method for automatic volume adjustment of earphones
CN114071308B (en) Headset self-adaptive tuning method and device, headset and readable storage medium
CN112291664B (en) Volume adjusting method, device and system of head-mounted display equipment
CN111510822A (en) Sound control system, device, method and computer readable storage medium thereof
CN114095835B (en) Earphone through mode control method and device, earphone equipment and storage medium
CN112235683B (en) Microphone and ambient sound noise reduction method
CN115767345A (en) Noise reduction method, noise reduction device, earphone device and computer readable storage medium
CN115225998A (en) Earphone noise reduction method and device, earphone equipment and computer readable storage medium
CN114125625B (en) Noise reduction adjustment method, earphone and computer readable storage medium
CN219697890U (en) Hearing aid equipment
CN113645533B (en) Active noise reduction earphone and noise reduction method thereof
US11782673B2 (en) Controlling audio output
CN115515041A (en) Audio playing method, device, earphone and storage medium
CN117202026A (en) Head-mounted audio playing device
CN115474118A (en) Earphone volume adjusting method, device, medium and earphone
CN115767355A (en) Earphone volume adaptive compensation method and device, terminal equipment and storage medium
CN111800712A (en) Audio processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant