CN113613157B - Earphone and wearing state detection method and device thereof and storage medium - Google Patents

Earphone and wearing state detection method and device thereof and storage medium Download PDF

Info

Publication number
CN113613157B
CN113613157B CN202110592036.3A CN202110592036A CN113613157B CN 113613157 B CN113613157 B CN 113613157B CN 202110592036 A CN202110592036 A CN 202110592036A CN 113613157 B CN113613157 B CN 113613157B
Authority
CN
China
Prior art keywords
wearing state
earphone
capacitance
determining
capacitance value
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
CN202110592036.3A
Other languages
Chinese (zh)
Other versions
CN113613157A (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.)
Shenzhen Feikedi System Development Co Ltd
Original Assignee
Shenzhen Feikedi System Development 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 Shenzhen Feikedi System Development Co Ltd filed Critical Shenzhen Feikedi System Development Co Ltd
Priority to CN202110592036.3A priority Critical patent/CN113613157B/en
Publication of CN113613157A publication Critical patent/CN113613157A/en
Application granted granted Critical
Publication of CN113613157B publication Critical patent/CN113613157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • 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
    • 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)
  • Headphones And Earphones (AREA)

Abstract

The application is applicable to the technical field of earphones, and provides an earphone, a wearing state detection method, a wearing state detection device and a storage medium thereof, wherein the earphone comprises a capacitance component capable of forming a capacitance, and the method comprises the following steps: determining a first wearing state of the earphone according to the received sound; acquiring a reference capacitance value corresponding to the first wearing state; and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitance component. The embodiment of the application can allow a user to start up under the condition that the earphone is in any wearing state, and is convenient to use.

Description

Earphone and wearing state detection method and device thereof and storage medium
Technical Field
The application belongs to the technical field of headphones, and particularly relates to a method and a device for detecting a wearing state of a headphone, and a storage medium.
Background
Conventional headphones are mainly used for playing music and making and receiving calls, but many headphones on the market today add more and more functions, such as intelligent voice service, heart rate detection, brain wave detection, and temperature detection. To achieve a better user experience, different functions may be switched automatically depending on the state of wear, for example: music play may be paused while the user removes the headphones, the heart rate sensor may be turned off, etc.
There are many methods for detecting the wearing state of the earphone, one of which is to use capacitive sensing technology like a touch screen mechanism for the wearing state detection. A capacitive part (such as a metal sheet) capable of forming a capacitor is used at the top of the earphone or in the earmuff, and the capacitance value of the capacitor changes when the earphone is worn, so that the wearing state of the earphone can be detected; this detection mode has extremely low power consumption and is considered to be substantially free of electricity. However, the capacitance value is changed in different environments or temperatures, so that the earphone for detecting the wearing state by adopting the capacitive sensing technology at present requires a user to start up in an unworn state, which causes inconvenient use.
Disclosure of Invention
The embodiment of the application provides an earphone, a wearing state detection method and device thereof, and a storage medium, which can allow a user to start up under the condition that the earphone is in any wearing state, and are convenient to use.
In a first aspect, an embodiment of the present application provides a wearing state detection method of an earphone including a capacitive part capable of forming a capacitance, the method including:
determining a first wearing state of the earphone according to the received sound;
acquiring a reference capacitance value corresponding to the first wearing state;
and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitance component.
In a possible implementation manner of the first aspect, the earphone further includes a microphone;
the determining the first wearing state of the earphone according to the received sound includes:
obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone;
comparing the first transfer function with a first preset transfer function to obtain contrast;
and determining a first wearing state of the earphone according to the contrast ratio.
In a possible implementation manner of the first aspect, the determining, according to the contrast, a first wearing state of the earphone includes:
if the contrast meets a first condition, determining that the first wearing state is a worn state;
and if the contrast meets a second condition, determining that the first wearing state is an unworn state.
In a possible implementation manner of the first aspect, the earphone further includes a microphone;
the determining the first wearing state of the earphone according to the received sound includes:
obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone;
comparing the first transfer function with a first preset transfer function to obtain contrast;
performing correlation analysis on the first data and the second data to obtain correlation;
and determining a first wearing state of the earphone according to the contrast ratio and the correlation.
In a possible implementation manner of the first aspect, the determining a first wearing state of the earphone according to the contrast ratio and the correlation includes:
if the contrast meets a first condition and the correlation meets a third condition, determining that the first wearing state is a worn state, otherwise, determining that the first wearing state is an unworn state.
In a possible implementation manner of the first aspect, the method further includes: and determining a third wearing state of the earphone according to the first wearing state and the second wearing state.
In a possible implementation manner of the first aspect, the determining the second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitive component includes:
and calculating a capacitance difference value between the reference capacitance value and the capacitance value of the capacitance component, and determining a second wearing state of the earphone according to the capacitance difference value.
In a second aspect, an embodiment of the present application provides a wearing state detection device of an earphone including a capacitance section capable of forming a capacitance, the device including:
a sound detection unit for: determining a first wearing state of the earphone according to the received sound;
a reference setting unit for: acquiring a reference capacitance value corresponding to the first wearing state;
a capacitance detection unit for: and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitor.
In a third aspect, an embodiment of the application provides a headset comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any of the first aspects when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the method of any of the first aspects described above.
In a fifth aspect, embodiments of the present application provide a computer program product for, when run on a terminal device, causing the terminal device to perform the method of any of the first aspects above.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
in the embodiment of the application, the earphone comprises a capacitance component capable of forming a capacitance, and a first wearing state of the earphone is determined according to received sound; acquiring a reference capacitance value corresponding to a first wearing state; the second wearing state of the earphone can be determined in real time through a capacitance sensing technology according to the reference capacitance value and the real-time capacitance value of the capacitor. Therefore, under the condition that the earphone is in any wearing state, the wearing state (namely the first wearing state) of the earphone can be determined according to received sound, then the reference capacitance value corresponding to the first wearing state is obtained, the wearing state of the earphone can be detected by adopting the capacitance sensing technology with extremely low power consumption based on the reference capacitance value, the earphone is allowed to be started up under the condition that the earphone is in any wearing state, and the earphone is convenient to use.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an earphone to which a first embodiment of the present application is applied;
fig. 2 is a flowchart of a method for detecting a wearing state of an earphone according to a first embodiment of the present application;
fig. 3 is a flowchart of step A1 of a method for detecting a wearing state of an earphone according to a first embodiment of the present application;
fig. 4 is a flowchart of step A1 of a method for detecting a wearing state of an earphone according to a second embodiment of the present application;
fig. 5 is a flowchart of a method for detecting a wearing state of an earphone according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a wearing state detecting device for headphones according to a fourth embodiment of the present application;
fig. 7 is a schematic structural view of a sound detection unit provided in a fourth embodiment of the present application;
fig. 8 is a schematic structural view of a modification of the sound detection unit provided in the fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of a variation of the wearing state detecting device for headphones according to the fourth embodiment of the present application;
fig. 10 is a schematic structural diagram of an earphone according to an embodiment of the present application.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the present application is further described in detail below with reference to fig. 1 to 10 and embodiments. 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 application.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
First embodiment
Fig. 1 is a schematic structural diagram of an earphone to which the present embodiment is applied. Referring to fig. 1, the present embodiment provides an earphone 10, the earphone 10 including a capacitance part 101, a speaker 102, and a microphone 103.
The capacitance part 101 can form a capacitance. The capacitive part 101 may in particular be a metal sheet of the earphone 10, such as a metal sheet arranged on top of the earphone or in an ear cup. When the earphone 10 is worn, the capacitance value of the capacitance part 101 changes; the capacitance value is a capacitance value between the capacitance part 101 and the human body.
The horn 102 is used to convert electrical signals into sound. The horn 102 may also be referred to as a speaker.
The microphone 103 is used to convert a sound signal into an electrical signal, and can receive sound. The microphone 103 may be specifically an inner microphone disposed on an ear cup of the earphone 10, or may be an active noise reduction earphone feedback microphone, which is not limited to this embodiment.
The embodiment also provides a wearing state detection method of the earphone, which is used for detecting the wearing state of the earphone; wherein the wearing state includes worn and unworn. Fig. 2 shows a schematic flowchart of the wearing state detection method of the earphone provided in the present embodiment, which can be applied to the above-described earphone 10 by way of example and not limitation.
The method provided by the embodiment comprises the steps of A1 to A3.
And A1, determining a first wearing state of the earphone according to the received sound.
Referring to fig. 1, during use of the earphone, the earphone 10 plays sound, specifically, sound (or sound waves) through the speaker 102, such as a ring tone. The microphone 103 (e.g., an inner microphone or a feedback microphone) of the earphone 10 is disposed inside the earmuff in the same cavity as the horn 102. The sound emitted by the loudspeaker 102 may be transferred to the microphone 103, whether or not the earphone is in a worn state. However, the earphone 10 may vary greatly between an unworn state in which the speaker 102 and the microphone 103 are located and a worn state in which the speaker 102 and the microphone 103 are located in a closed cavity.
The transfer function from the loudspeaker 102 to the microphone 103 is greatly different between the worn state and the unworn state of the earphone, and particularly, after the earphone is worn in a low-frequency area, the transfer function is enhanced obviously, so that whether the earphone is in the worn state or not can be judged by analyzing the transfer function of the current system. For the case of playing a starting ring tone, the first wearing state refers to the wearing state of the earphone 10 when starting up; in other embodiments, the first wearing state may also be a wearing state of the earphone 10 after being turned on.
During use of the earphone, the horn 102 emits sound waves, which are received by the microphone 103 (and the corresponding feedback microphone if an active noise reducing earphone) located in the earmuff. By analyzing the output signal (also referred to as first data) of the earphone and the receiving signal (also referred to as second data) of the microphone, it is possible to determine whether the earphone is currently in a worn state. Fig. 3 is a flowchart of step A1 of the method for detecting a wearing state of an earphone according to the present embodiment. Referring to fig. 3, in the present embodiment, step A1 (determining the first wearing state of the headphone from the received sound) includes steps a11 to a13.
And step A11, obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone.
During the operation of the earphone 10, the earphone 10 plays first data, which is, for example, audio data of a starting bell sound, through the loudspeaker 102; the microphone 103 simultaneously captures the sound (the power-on bell sound) played by the loudspeaker 102, and obtains second data. By analyzing the first data played by the loudspeaker 102 and the second data collected by the microphone 103, a first transfer function from the loudspeaker 102 to the microphone 103 can be obtained.
And step A12, comparing the first transfer function with a first preset transfer function to obtain contrast.
The aforementioned first transfer function is a transfer function obtained by real-time measurement. The earphone 10 is preset with a specified transfer function corresponding to a wearing state of the earphone 10, such as a worn state or an unworn state; the specified transfer function of the earphone in the worn state or the unworn state can be tested in advance in the development process and saved. The specified transfer function preset by the earphone 10 is a first preset transfer function. And comparing the first transfer function with a first preset transfer function to obtain the contrast ratio.
And step A13, determining a first wearing state of the earphone according to the contrast.
After the contrast is obtained, determining a first wearing state of the earphone according to the contrast, wherein the first wearing state can be worn or not worn. Specifically, if the contrast meets a first condition, for example, the contrast is greater than a first threshold, the first wearing state is determined to be the worn state. If the contrast meets a second condition, such as being less than or equal to a first threshold, the first wearing state is determined to be an unworn state.
In some embodiments, after the current wearing state of the earphone is obtained, the earphone may perform motion control according to the current wearing state, such as pausing music playing or turning off a heart rate sensor.
And A2, acquiring a reference capacitance value corresponding to the first wearing state.
As previously described, for current headphones (such as active noise reduction headphones), an acoustic scheme may be used to detect whether the headphone is in a worn state. The earphone records the sound in the earmuff in real time through the microphone to obtain second data, and analyzes the transfer function under the current wearing scene by matching with the playing audio data (first data) of the loudspeaker, so that whether the current earphone is in a wearing state or not can be detected. However, the scheme requires that the loudspeaker of the earphone is in a playing state so as to detect the wearing state; this method will not detect when the headset is not in a sound producing state (e.g. the user pauses music) or the volume is very low. Therefore, the method provided by the embodiment combines the capacitive sensing technology to detect the wearing state of the earphone, and can detect the wearing state of the earphone under the condition that the earphone is not in a sounding state or the volume is extremely low.
As described above, the earphone 10 is provided with the capacitance part 101 capable of forming a capacitance, and when the earphone is worn or taken off, the capacitance value of the capacitance part 101 is changed significantly, so that the behavior of the user can be judged, and the wearing state of the earphone can be judged; the scheme has the advantages of high sensitivity and extremely low power consumption; however, since the capacitance value of the capacitive component 101 varies significantly with humidity and temperature, a reference threshold cannot be determined to determine wearing and taking off before shipment, which requires the user to start up the earphone in an unworn state, but this causes inconvenience to the user. For this purpose, after determining a first wearing state of the earphone, a reference capacitance value corresponding to the first wearing state is acquired; in this embodiment, the reference capacitance value is the capacitance value of the capacitive component 101 when the earphone is turned on, and since the first wearing state of the earphone is determined, that is, the wearing state or the unworn state of the earphone 10 at the moment of turning on the earphone is determined, the wearing state (for example, the worn or unworn state) of the earphone corresponding to the reference capacitance value is determined.
And A3, determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitance component.
As described above, the wearing state (such as worn or unworn) of the earphone corresponding to the reference capacitance value is determined, and when the earphone is worn or taken off, the capacitance value between the capacitance part 101 and the human body changes significantly, and the wearing state of the earphone at this time can be determined according to the change; since the wearing state of the earphone is determined based on the reference capacitance value and the detected capacitance value of the capacitance component (the capacitance value is a real-time capacitance value of the capacitance component) after the power-on, the wearing state is regarded as the second wearing state.
For example, a capacitance difference between the reference capacitance value and the capacitance value of the capacitive component 101 is calculated, where the capacitance difference is an absolute value, and the second wearing state of the earphone is determined according to the capacitance difference. Specifically, if the capacitance difference meets a fourth condition, for example, is greater than a specified value, the second wearing state is determined to be a worn state, otherwise (less than or equal to the specified value), the second wearing state is determined to be an unworn state. In this way, a second wearing state of the headset may be determined.
As can be seen from the above, the earphone 10 includes a capacitive part 11 capable of forming a capacitance, and determines a first wearing state of the earphone according to received sounds; acquiring a reference capacitance value corresponding to a first wearing state; the second wearing state of the earphone can be determined in real time through the capacitance sensing technology according to the reference capacitance value and the real-time capacitance value of the capacitor. Therefore, under the condition that the earphone is in any wearing state, the wearing state (namely the first wearing state) of the earphone can be determined according to received sound, then the reference capacitance value corresponding to the first wearing state is obtained, the wearing state of the earphone can be detected by adopting the capacitance sensing technology with extremely low power consumption based on the reference capacitance value, the earphone is allowed to be started up under the condition that the earphone is in any wearing state, and the earphone is convenient to use. The working state of the earphone can be further controlled according to the wearing state, and the user experience can be improved.
Second embodiment
Fig. 4 is a flowchart of step A1 of the method for detecting the wearing state of the earphone according to the present embodiment. Referring to fig. 4, in the present embodiment, step A1 (determining the first wearing state of the earphone from the received sound) further includes steps a11, a12, B14, and B13.
The details of step a11 and step a12 are the same as those of the first embodiment.
And step B14, carrying out correlation analysis on the first data and the second data to obtain correlation.
As described above, the first data is audio data played by the speaker 102, and the second data is second data obtained by the microphone 103 recording sound played by the speaker 102. And carrying out correlation analysis on the first data and the second data to obtain correlation. The correlation analysis is a mature technology for analyzing the similarity of the first data and the second data.
And step B13, determining a first wearing state of the earphone according to the contrast and the correlation.
Specifically, if the contrast ratio (obtained by comparing the first transfer function with the first preset transfer function) meets the first condition and the correlation meets a third condition (for example, when the correlation is higher than a set threshold), determining that the first wearing state is a worn state, otherwise, determining that the first wearing state is an unworn state; the first wearing state is determined to be the unworn state when the contrast meets the first condition but the correlation does not meet the third condition, or when the contrast meets the second condition but the correlation meets the third condition. It should be appreciated that in the case of less noise, the correlation is in accordance with the third condition (i.e., the first data and the second data are correlated); if the correlation does not meet the third condition, the current detection of the earphone (such as measuring the first transfer function) is influenced by stronger external noise, namely the earphone is in an unworn state; if the contrast satisfies the second condition, the first wearing state is determined to be the unworn state as described above. Then, the earphone performs an operation in the worn state or the unworn state.
Therefore, the false detection caused by the interference of the external environment, such as noise, can be prevented, the influence of the external noise on the measurement of the transfer function can be eliminated, and the detection accuracy can be ensured.
Third embodiment
Fig. 5 is a flowchart of a method for detecting a wearing state of an earphone according to the present embodiment. Referring to fig. 5, the method provided in this embodiment further includes step A4.
And A4, determining a third wearing state of the earphone according to the first wearing state and the second wearing state.
After the earphone is started, in the process of playing music, the microphone 103 is used for simultaneously recording audio data (also called first data) played by the loudspeaker 102 to obtain second data; calculating a first transfer function from the loudspeaker 102 to the microphone 103 at the moment according to the first data and the second data; comparing the first transfer function with a preset transfer function (namely, a first preset transfer function) to obtain contrast, wherein the contrast represents the consistency of the two transfer functions; as described above, the first wearing state of the earphone is determined according to the contrast ratio, and specifically, if the contrast ratio meets the first condition, the first wearing state is determined to be the worn state; and if the contrast meets the second condition, determining that the first wearing state is an unworn state.
In the process of playing music after the earphone is powered on, the current wearing state of the earphone is detected by the capacitive sensing technology at the same time, specifically, the second wearing state of the earphone 10 is determined according to the reference capacitance value and the detected capacitance value of the capacitive component 11 as in the aforementioned step A3. The second wearing state at this time is the wearing state when music is played after the earphone is started.
According to the above, after the earphone is turned on, the third wearing state (may be referred to as the current wearing state) of the earphone is determined according to the first wearing state and the second wearing state, where the second wearing state is determined according to the reference capacitance value and the capacitance value of the capacitive component, the first wearing state is determined according to the received sound after the earphone is turned on, and the detection situation of the two wearing states (the first wearing state and the second wearing state) is integrated, so that more accurate state change of the earphone can be obtained, and more accurate state detection can be achieved.
The wearing state of the earphone is detected by adopting the capacitance sensing technology, and when the earphone is started, the capacitance value of the capacitance component 101 is detected inaccurately, so that whether the earphone is in the wearing state at the moment cannot be judged, and the capacitance sensing technology mode is inaccurate in detection when the earphone is started. According to the embodiment of the application, the starting ring tone is played when the earphone is started, the wearing state of the earphone is detected through an acoustic scheme, and the capacitance value at the moment is set to be a corresponding reference capacitance value according to the wearing state obtained by the acoustic detection technology. Specifically, the transfer function is tested for the correct wearing posture of the earphone and stored as a preset designated transfer function (the first preset transfer function), and when the earphone is started up each time, whether the transfer function of the ring tone of the earphone (the first transfer function) is consistent with the first preset transfer function or not is compared; if the capacitance values are consistent, recording the capacitance value of the current capacitance component 101 as a reference capacitance value for the wearing state; in this way, the capacitance value is corrected by the acoustic wave detection, the capacitance value of the capacitive component 101 at the moment when the earphone is started is taken as a reference, and then the real-time change of the capacitance value of the capacitive component 101 is judged based on the reference to determine the wearing or taking-off behavior of the earphone.
The embodiment of the application combines the sound wave and the capacitance sensing technology to detect the wearing state of the earphone, adopts a mode of combining a sound field with the capacitance sensing technology to detect the wearing state of the earphone when the loudspeaker 102 sounds, and uses the capacitance sensing technology to detect the wearing state of the earphone when the earphone does not sound. Because the earphone plays the starting bell sound (such as the prompt tone) at the starting moment, whether the current earphone is in a wearing state or not can be detected through sound waves at the starting moment, and the problem that the wearing state cannot be detected when the earphone is started in a capacitive sensing mode can be effectively solved.
Fourth embodiment
Fig. 6 shows a block diagram of a wearing state detection device for headphones according to an embodiment of the present application, corresponding to the method described in the above embodiments, and only the portions related to the embodiments of the present application are shown for convenience of explanation.
Referring to fig. 6, the apparatus includes a sound detection unit 1, a reference setting unit 2, and a capacitance detection unit 3.
A sound detection unit 1 for: a first wearing state of the headset is determined from the received sound.
A reference setting unit 2 for: and acquiring a reference capacitance value corresponding to the first wearing state.
A capacitance detection unit 3 for: and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitor.
Fig. 7 is a schematic structural diagram of a sound detection unit provided in some embodiments. Referring to fig. 7, in some embodiments, the sound detection unit 1 includes an analysis unit 11, an alignment unit 12, and a first wearing state determination unit 13.
An analysis unit 11 for: and obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone.
An alignment unit 12 for: and comparing the first transfer function with a first preset transfer function to obtain contrast.
A first wearing state determining unit 13 for determining a first wearing state of the earphone according to the contrast.
In some embodiments, the first wearing state determination unit 13 is specifically configured to: if the contrast meets the first condition, determining that the first wearing state is the worn state; and if the contrast meets the second condition, determining that the first wearing state is an unworn state.
Fig. 8 is a schematic structural diagram of a sound detection unit provided in some embodiments. Referring to fig. 8, in some embodiments, the sound detection unit 1 further comprises a correlation analysis unit 14.
A correlation analysis unit 14 for: and carrying out correlation analysis on the first data and the second data to obtain correlation. The aforementioned first wearing state determination unit 13 is configured to: a first wearing state of the headset is determined based on the contrast and the correlation.
In some embodiments, the first wearing state determination unit 13 is specifically configured to: if the contrast meets the first condition and the correlation meets the third condition, determining that the first wearing state is a worn state, otherwise, determining that the first wearing state is an unworn state.
Fig. 9 is a schematic structural diagram of a wearing state detecting device of an earphone according to some embodiments. Referring to fig. 9, in some embodiments, the wear state detection device of the earphone further includes a third wear state determination unit 4.
And a third wearing state determining unit 4, configured to determine a third wearing state of the earphone according to the first wearing state and the second wearing state.
In some embodiments, the capacitance detection unit 3 is specifically configured to: and calculating a capacitance difference value between the reference capacitance value and the capacitance value of the capacitance component, and determining a second wearing state of the earphone according to the capacitance difference value.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Fig. 10 is a schematic structural diagram of an earphone according to an embodiment of the present application. As shown in fig. 10, the earphone 10 of this embodiment includes: at least one processor 100 (only one shown in fig. 10), a memory 101, and a computer program 102 stored in the memory 101 and executable on the at least one processor 100; the steps of any of the various method embodiments described above are implemented by processor 100 when executing computer program 102.
The earphone 10 may include, but is not limited to, a processor 100 and a memory 101. It will be appreciated by those skilled in the art that fig. 10 is merely an example of a headset and is not intended to be limiting, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input and output devices, network access devices, buses, etc.
The processor 100 may be a central processing unit (Central Processing Unit, CPU), and the processor 100 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 101 may in some embodiments be an internal storage unit of the headset 10, such as a hard disk or a memory of the headset. The memory 101 may also be an external storage device of the headset, such as a plug-in hard disk provided on the headset, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. Further, the memory 101 may also include both an internal storage unit of the earphone and an external storage device. The memory 101 is used to store an operating system, application programs, boot Loader (Boot Loader), data, and other programs and the like, such as program codes of computer programs and the like. The memory 101 may also be used to temporarily store data that has been output or is to be output.
By way of example, computer program 102 may be partitioned into one or more modules/units that are stored in memory 101 and executed by processor 100 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing a specific function, the instruction segments describing the execution of the computer program 102 in the headset 10.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The aforementioned integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow in the above-described embodiment method, which may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium; which, when executed by a processor, performs the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium includes: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps of the various method embodiments described above.
Embodiments of the present application provide a computer program product enabling a mobile terminal to carry out the steps of the various method embodiments described above, when the computer program product is run on a terminal device, such as a mobile terminal.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (7)

1. A wearing state detection method of an earphone, characterized in that the earphone includes a capacitance component capable of forming a capacitance and a microphone, the method comprising:
obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone;
comparing the first transfer function with a first preset transfer function to obtain contrast;
performing correlation analysis on the first data and the second data to obtain correlation;
determining a first wearing state of the earphone according to the contrast and the correlation;
acquiring a reference capacitance value corresponding to the first wearing state; and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitance component.
2. The method for detecting a wearing state of an earphone according to claim 1, wherein the determining a first wearing state of the earphone based on the contrast and the correlation includes:
if the contrast meets a first condition and the correlation meets a third condition, determining that the first wearing state is a worn state, otherwise, determining that the first wearing state is an unworn state.
3. The method for detecting a wearing state of an earphone according to claim 1, wherein the method further comprises: and determining a third wearing state of the earphone according to the first wearing state and the second wearing state.
4. A wearing state detection method of an earphone according to any one of claims 1 to 3, wherein the determining the second wearing state of the earphone based on the reference capacitance value and the detected capacitance value of the capacitive member includes:
and calculating a capacitance difference value between the reference capacitance value and the capacitance value of the capacitance component, and determining a second wearing state of the earphone according to the capacitance difference value.
5. A wearing state detection device of an earphone, characterized in that the earphone includes a capacitance member capable of forming a capacitance and a microphone, the device comprising:
a sound detection unit for: obtaining a first transfer function by analyzing the played first data and the second data recorded by the microphone; comparing the first transfer function with a first preset transfer function to obtain contrast; performing correlation analysis on the first data and the second data to obtain correlation; and determining a first wearing state of the headset according to the contrast and the correlation;
a reference setting unit for: acquiring a reference capacitance value corresponding to the first wearing state;
a capacitance detection unit for: and determining a second wearing state of the earphone according to the reference capacitance value and the detected capacitance value of the capacitor.
6. A headset comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of detecting the wearing state of the headset according to any one of claims 1 to 4 when the computer program is executed.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the wearing state detection method of an earphone according to any one of claims 1 to 4.
CN202110592036.3A 2021-05-28 2021-05-28 Earphone and wearing state detection method and device thereof and storage medium Active CN113613157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110592036.3A CN113613157B (en) 2021-05-28 2021-05-28 Earphone and wearing state detection method and device thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110592036.3A CN113613157B (en) 2021-05-28 2021-05-28 Earphone and wearing state detection method and device thereof and storage medium

Publications (2)

Publication Number Publication Date
CN113613157A CN113613157A (en) 2021-11-05
CN113613157B true CN113613157B (en) 2023-09-08

Family

ID=78303403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110592036.3A Active CN113613157B (en) 2021-05-28 2021-05-28 Earphone and wearing state detection method and device thereof and storage medium

Country Status (1)

Country Link
CN (1) CN113613157B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071304B (en) * 2021-11-29 2023-04-25 歌尔科技有限公司 Active noise reduction method and device for earphone, earphone and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429971A (en) * 2018-05-28 2018-08-21 Oppo广东移动通信有限公司 Headset control method and earphone
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium
EP3742756A1 (en) * 2019-05-23 2020-11-25 Beijing Xiaoniao Tingting Technology Co., Ltd Method and device for detecting wearing state of earphone, earphone, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429971A (en) * 2018-05-28 2018-08-21 Oppo广东移动通信有限公司 Headset control method and earphone
EP3742756A1 (en) * 2019-05-23 2020-11-25 Beijing Xiaoniao Tingting Technology Co., Ltd Method and device for detecting wearing state of earphone, earphone, and storage medium
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN113613157A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US9877661B2 (en) Aural heart monitoring apparatus and method
WO2021004334A1 (en) Volume adjustment method and device and computer-readable storage medium
JP4780185B2 (en) Music reproduction system and information processing method
US8259984B2 (en) Headset with on-ear detection
US20060147059A1 (en) Smart volume adjusting method for a multi-media system
CN108111952B (en) Recording method, device, terminal and computer readable storage medium
CN104967932B (en) Earphone uses based reminding method and device, intelligent terminal
CN105898650A (en) Volume reminding method and system for intelligent device
US20220417658A1 (en) User hearing protection method, apparatus, and electronic device
CN113613157B (en) Earphone and wearing state detection method and device thereof and storage medium
CN112019975A (en) Ambient and aggregate acoustic dosimetry
CN113596657A (en) Earphone in-ear detection method, terminal and computer readable storage medium
CN111028838A (en) Voice wake-up method, device and computer readable storage medium
US20200145756A1 (en) Headset
CN108432216B (en) Volume adjustment method and device and electronic equipment
CN113613156B (en) Wearing state detection method and device, headset and storage medium
CN115243183A (en) Audio detection method, device and storage medium
CN115499744A (en) Earphone noise reduction method and device, computer readable storage medium and earphone
CN112261229B (en) Bone conduction call equipment testing method, device and system
CN115086851A (en) Human ear bone conduction transfer function measuring method, device, terminal equipment and medium
CN114697849A (en) Earphone wearing detection method and device, earphone and storage medium
CN114903473A (en) Hearing detection method, device, electronic equipment and storage medium
CN114422897A (en) Audio processing method and device, electronic equipment and storage medium
CN116348030A (en) Electronic device and control method thereof
WO2022042862A1 (en) Earphone device and method for earphone device

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