[go: up one dir, main page]

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

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

Info

Publication number
CN113613157A
CN113613157A CN202110592036.3A CN202110592036A CN113613157A CN 113613157 A CN113613157 A CN 113613157A CN 202110592036 A CN202110592036 A CN 202110592036A CN 113613157 A CN113613157 A CN 113613157A
Authority
CN
China
Prior art keywords
wearing state
earphone
determining
capacitance
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.)
Granted
Application number
CN202110592036.3A
Other languages
Chinese (zh)
Other versions
CN113613157B (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

Images

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 and a method, a device and a storage medium for detecting a wearing state of the earphone, wherein the earphone comprises a capacitor component capable of forming a capacitor, and the method comprises the following steps: determining a first wearing state of the headset 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, wearing state detection method and device thereof, and storage medium
Technical Field
The application belongs to the technical field of earphones, and particularly relates to an earphone, a wearing state detection method and device of the earphone, and a storage medium.
Background
The conventional earphones are mainly used for playing music and receiving and calling, but many earphones on the market currently add more and more functions, such as intelligent voice service, heart rate detection, brain wave detection, temperature detection and the like. To achieve a better user experience, different functions may be switched automatically depending on the wearing state, for example: when the user takes off the earphone, the music playing can be paused, and the heart rate sensor is closed.
There are many methods for detecting the wearing state of the headset, and one of them is to use a capacitive sensing technology similar to a touch screen mechanism for the wearing state detection. A capacitance component (such as a metal sheet) which can form 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 method has extremely low power consumption and is considered to be almost power-saving. However, the capacitance value changes in different environments or temperatures, so that the current earphone using the capacitance sensing technology for detecting the wearing state requires the user to start up the earphone without wearing the earphone, which causes inconvenience in use.
Disclosure of Invention
Embodiments of the present application provide an earphone, a method and an apparatus for detecting a wearing state of the earphone, and a storage medium, which allow a user to boot up the earphone 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 for an earphone, where the earphone includes a capacitance component capable of forming a capacitance, the method including:
determining a first wearing state of the headset 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 one possible implementation form of the first aspect, the headset further comprises a microphone;
the determining a first wearing state of the headset 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 a contrast;
and determining a first wearing state of the earphone according to the contrast.
In a possible implementation manner of the first aspect, the determining a first wearing state of the headset according to the contrast includes:
if the contrast accords with a first condition, determining that the first wearing state is a worn state;
and if the contrast accords with a second condition, determining that the first wearing state is an unworn state.
In one possible implementation form of the first aspect, the headset further comprises a microphone;
the determining a first wearing state of the headset 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 a contrast;
performing correlation analysis on the first data and the second data to obtain correlation;
determining a first wearing state of the headset according to the contrast and the correlation.
In a possible implementation manner of the first aspect, the determining a first wearing state of the headset according to the contrast and the correlation includes:
and if the contrast conforms to a first condition and the correlation conforms to 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 a 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 apparatus of a headphone including a capacitance component that can form a capacitance, the apparatus including:
a sound detection unit to: determining a first wearing state of the headset according to the received sound;
a reference setting unit configured to: 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, embodiments of the present application provide 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 one of the above 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, which, when run on a terminal device, causes the terminal device to perform the method of any one of the above first aspects.
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 capacitance, and the first wearing state of the earphone is determined according to the received sound; acquiring a reference capacitance value corresponding to the first wearing state; and subsequently, 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 the received sound, the reference capacitance value corresponding to the first wearing state is acquired, the wearing state of the earphone can be detected subsequently based on the reference capacitance value by adopting a capacitance sensing technology with extremely low power consumption, and the earphone can be started by a user under the condition that the earphone is in any wearing state, so that the earphone is convenient to use.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions 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 it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a headset to which the first embodiment of the present application is applied;
fig. 2 is a schematic flow chart of a method for detecting a wearing state of an earphone according to a first embodiment of the present application;
fig. 3 is a schematic flowchart of step a1 of a method for detecting wearing state of a headset according to a first embodiment of the present application;
fig. 4 is a schematic flowchart of step a1 of a method for detecting wearing state of a headset according to a second embodiment of the present application;
fig. 5 is a schematic flow chart 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 detection device of an earphone according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a sound detection unit according to a fourth embodiment of the present application;
FIG. 8 is a schematic structural diagram of a variation of the sound detecting unit provided in the fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of a modified manner of the wearing state detection device of the earphone 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 solutions and advantageous effects to be solved by the present application more clearly apparent, the present application is further described in detail below with reference to fig. 1 to 10 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the 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 will 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 suitable for this embodiment. 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 component 101 can form a capacitance. The capacitive part 101 may particularly be a metal sheet of the headset 10, such as a metal sheet arranged on top of the headset or in the ear cup. When the earphone 10 is worn, the capacitance value of the capacitance part 101 changes; the capacitance is a capacitance between the capacitive component 101 and the human body.
The speaker 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 electric signal, enabling reception of sound. The microphone 103 may be specifically an inner microphone disposed in an ear shell of the earphone 10, or may be an active noise reduction earphone feedback microphone, which is not limited in 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 comprises worn and unworn. Fig. 2 shows a schematic flow chart of a wearing state detection method of the headset provided in the present embodiment, which can be applied to the headset 10 described above by way of example and not limitation.
The method provided by the embodiment includes steps a1 to A3.
Step A1, determining a first wearing state of the earphone according to the received sound.
Referring to fig. 1, during use of the headset, the headset 10 plays a sound, specifically a sound (or sound wave) through the speaker 102, such as a ring tone. The microphone 103 (e.g., the inner microphone or the feedback microphone) of the earphone 10 is disposed inside the ear cup in the same cavity as the speaker 102. The sound emitted from the speaker 102 can be transmitted to the microphone 103 regardless of whether the headset is worn or not. However, the cavity where the speaker 102 and the microphone 103 are located may be greatly changed between the unworn state and the worn state of the earphone 10, where the cavity is a semi-open cavity in the unworn state, and the speaker 102 and the microphone 103 are located in a closed cavity in the worn state.
The transfer function from the speaker 102 to the microphone 103 is greatly different between the worn state and the unworn state of the headset, and particularly after the headset is worn in a low frequency region, the transfer function is obviously enhanced, so that whether the headset is worn or not can be judged by analyzing the transfer function of the current system. For the case of playing the power-on ring tone, the first wearing state is the wearing state of the earphone 10 when the earphone is powered on; in other embodiments, the first wearing state may also be a wearing state after the headset 10 is turned on.
During use of the headset, sound waves are emitted from the speaker 102, and the sound (or sound waves) emitted from the speaker 102 is received by a microphone 103 (corresponding to the feedback microphone if an active noise reduction headset) located in the ear cup. By analyzing the output signal of the headset (also referred to as first data) and the received signal of the microphone (also referred to as second data), it can be determined whether the headset is currently worn. Fig. 3 is a flowchart illustrating step a1 of the wearing state detection method for earphones according to the present embodiment. Referring to fig. 3, in the present embodiment, step a1 (determining the first wearing state of the headphones from the received sound) includes steps a11 to a 13.
Step a11, a first transfer function is obtained by analyzing the played first data and the second data recorded by the microphone.
During the operation of the headset 10, the headset 10 plays first data, for example, audio data of a power-on ring tone, through the speaker 102; the microphone 103 simultaneously records the sound (the power-on ring tone) played by the speaker 102 to obtain the 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 currently from the loudspeaker 102 to the microphone 103 can be obtained.
Step a12, comparing the first transfer function with a first preset transfer function to obtain a contrast.
The aforementioned first transfer function is a transfer function obtained by real-time measurement. The headset 10 is preset with a specified transfer function corresponding to a wearing state of the headset 10, such as a worn state or an unworn state; the specified transfer function of the headset 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 headphone 10 is a first preset transfer function. And comparing the first transfer function with a first preset transfer function to obtain the contrast.
And A13, determining the first wearing state of the earphone according to the contrast.
After the contrast is obtained, a first wearing state of the earphone is determined 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, it is determined that the first wearing state is 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 headset is acquired, the headset may perform action control according to the current wearing state, such as pausing music playing or turning off a heart rate sensor.
Step a2 is to acquire a reference capacitance value corresponding to the first wearing state.
As mentioned above, for current headsets (such as active noise reduction headsets), an acoustic scheme may be used to detect whether the headset is worn. The earphone records the sound in the earmuff in real time through the microphone to obtain second data, and the transfer function under the current wearing scene is analyzed in cooperation 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 must be in a playing state to detect the wearing state; this method will not detect when the headset is not in a sound state (e.g. the user has paused music) or the volume is very low. Therefore, the method provided by the embodiment combines the capacitance sensing technology to detect the wearing state, and can detect the wearing state of the earphone under the condition that the earphone is not in the sounding state or the volume is extremely low.
As mentioned above, the earphone 10 is provided with the capacitor part 101 capable of forming a capacitor, and when the earphone is worn or taken off, the capacitance value of the capacitor part 101 is obviously changed, so that the behavior of the user can be judged, and the wearing state of the earphone can also be judged; the scheme has the advantages of high sensitivity and extremely low power consumption; however, since the capacitance of the capacitor 101 varies significantly with humidity and temperature, a reference threshold cannot be determined before shipping to determine whether the earphone is worn or removed, which requires the user to turn on the earphone when the earphone is not worn, but causes inconvenience for the user. For this purpose, after determining a first wearing state of the headset, a reference capacitance value corresponding to the first wearing state is acquired; in this embodiment, the reference capacitance value is a capacitance value of the capacitance component 101 when the earphone is turned on, and since the first wearing state of the earphone is already determined, that is, it is determined whether the earphone 10 is in a worn state or an unworn state at the moment of turning on, a wearing state (for example, worn or unworn) of the earphone corresponding to the reference capacitance value is determined.
Step 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 (e.g., worn or not worn) of the earphone corresponding to the reference capacitance value is determined, and when the earphone is worn or removed, the capacitance value between the capacitance component 101 and the human body may change significantly, and the wearing state of the earphone at this time may be determined according to the change; after the earphone is turned on, the wearing state of the earphone is determined according to the reference capacitance value and the detected capacitance value of the capacitance component (the capacitance value is the real-time capacitance value of the capacitance component), and therefore the wearing state is taken as the second wearing state.
Illustratively, a capacitance difference value of the aforementioned reference capacitance value and the capacitance value of the capacitance part 11 is calculated, wherein the capacitance difference value is an absolute value, and the second wearing state of the earphone is determined according to the capacitance difference value. Specifically, if the capacitance difference value meets a fourth condition, for example, is greater than a specified value, the second wearing state is determined to be the worn state, otherwise (less than or equal to the specified value), the second wearing state is determined to be the unworn state. In this way, the second wearing state of the headset can be determined.
As described above, the headphone 10 includes the capacitor 11 that forms a capacitor, and determines the first wearing state of the headphone based on the received sound; acquiring a reference capacitance value corresponding to the first wearing state; and subsequently, 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 the received sound, the reference capacitance value corresponding to the first wearing state is acquired, the wearing state of the earphone can be detected subsequently based on the reference capacitance value by adopting a capacitance sensing technology with extremely low power consumption, and the earphone can be started by a user under the condition that the earphone is in any wearing state, so that the earphone is convenient to use. The working state of the earphone can be further controlled according to the wearing state subsequently, and the user experience can be improved.
Second embodiment
Fig. 4 is a flowchart illustrating step a1 of the wearing state detection method for earphones according to the present embodiment. Referring to fig. 4, in the present embodiment, step a1 (determining the first wearing state of the headphones from the received sound) further includes step a11, step a12, step B14, and step B13.
The specific contents 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 capturing sound played by the speaker 102. And performing correlation analysis on the first data and the second data to obtain correlation. The correlation analysis is a mature technique for analyzing the similarity between the first data and the second data.
And step B13, determining the first wearing state of the earphones according to the contrast and the correlation.
Specifically, if the contrast (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, the correlation is higher than a set threshold), the first wearing state is determined to be a worn state, otherwise, the first wearing state is determined to be an unworn state; and determining that the first wearing state is the non-wearing state if the contrast meets the first condition and the correlation does not meet the third condition, or if the contrast meets the second condition and the correlation meets the third condition. It will be appreciated that in the case of less noise, the correlation is conditional on the third (i.e. the first and second data are correlated); if the correlation does not meet the third condition, it indicates that the current detection of the headset (e.g. measuring the aforementioned first transfer function) is affected by strong external noise, i.e. the headset is in an unworn state; in addition, as described above, if the contrast ratio satisfies the second condition, the first wearing state is determined to be the unworn state. Then, the headset performs an operation in a worn state or an unworn state.
Therefore, the interference of the external environment, such as noise, can be prevented, the influence of external noise on the measurement of the transfer function can be eliminated, and the accuracy of detection can be ensured.
Third embodiment
Fig. 5 is a schematic flow chart of a method for detecting a wearing state of an earphone according to this embodiment. Referring to fig. 5, the method provided in this embodiment further includes step a 4.
And step A4, determining a third wearing state of the earphone according to the first wearing state and the second wearing state.
After the earphone is turned on, in the process of playing music, the microphone 103 is used for simultaneously recording audio data (also called as 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 a 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, and specifically, if the contrast meets the first condition, the first wearing state is determined to be the worn state; and if the contrast accords with the second condition, determining that the first wearing state is the non-wearing state.
In the process of playing music after the headset is powered on, the current wearing state of the headset is detected by using the capacitance sensing technology, specifically, as in the foregoing step a3, the second wearing state of the headset 10 is determined according to the reference capacitance value and the detected capacitance value of the capacitance component 11. The second wearing state at this time is a wearing state when music is played after the earphone is turned on.
According to the above, after the earphone is powered on, the third wearing state (which may be referred to as a 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 capacitance component, the first wearing state is determined according to the received sound after the earphone is powered on, and by integrating the detection conditions of the two wearing states (the first wearing state and the second wearing state), a more accurate change of the earphone state can be obtained, and more accurate wearing state detection can be realized.
The wearing state of the earphone is detected by adopting a capacitance sensing technology, and when the earphone is started, the capacitance value of the capacitance component 101 is not accurately detected, so that whether the earphone is in the worn state at that time can not 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 can be 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 as the corresponding reference capacitance value according to the wearing state obtained through the sound wave detection technology. Specifically, the transfer function is tested according to the correct wearing posture of the earphone and is stored as a preset specified transfer function (the first preset transfer function), and whether the transfer function of the startup ring tone (the first transfer function) is consistent with the first preset transfer function is compared when the earphone is started up each time; if the capacitance values are consistent, recording the capacitance value of the current capacitance part 101 as a reference capacitance value for the wearing state; in this way, the capacitance value is corrected by sound wave detection, the capacitance value of the capacitance component 101 at the moment when the earphone is turned on is taken as a reference, and then the real-time change of the capacitance value of the capacitance component 101 is judged based on the reference to determine the wearing or taking-off behavior of the earphone.
The embodiment of this application combines sound wave and electric capacity induction technology to detect the wearing state of earphone, adopts the sound field to combine the mode detection earphone's of electric capacity induction technology wearing state when loudspeaker 102 sound production, uses electric capacity induction technology to detect the wearing state of earphone when the earphone does not produce sound. Because the earphone can play the starting ring tone (such as the prompt tone) at the starting moment, whether the current earphone is in the wearing state can be detected through the sound wave at the starting moment, and the problem that the wearing state cannot be detected in a capacitance sensing mode when the earphone is started can be effectively solved.
Fourth embodiment
Fig. 6 shows a block diagram of a wearing state detection device of a headset according to an embodiment of the present application, corresponding to the method of the foregoing embodiment, and only shows portions related to the embodiment of the present application for convenience of description.
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 according to the received sound.
A reference setting unit 2 for: a reference capacitance value corresponding to the first wearing state is acquired.
A capacitance detection unit 3 for: and determining a second wearing state of the earphone according to the reference capacitance value and the capacitance value of the detected capacitor.
Fig. 7 is a schematic structural diagram of a sound detection unit according to some embodiments. Referring to fig. 7, in some embodiments, the sound detection unit 1 includes an analysis unit 11, a comparison 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, configured to: and comparing the first transfer function with a first preset transfer function to obtain the contrast.
A first wearing state determining unit 13, configured to determine a first wearing state of the headset according to the contrast.
In some embodiments, the first wearing state determination unit 13 is specifically configured to: if the contrast accords with a first condition, determining that the first wearing state is a worn state; and if the contrast accords with 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 according to 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: and determining a first wearing state of the earphone according to the contrast and the correlation.
In some embodiments, the first wearing state determination unit 13 is specifically configured to: and if the contrast conforms to a first condition and the correlation conforms to a 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 detection device of an earphone according to some embodiments. Referring to fig. 9, in some embodiments, the wearing state detection apparatus of the headset further includes a third wearing state determination unit 4.
And a third wearing state determining unit 4, configured to determine a third wearing state of the headset 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, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 10 is a schematic structural diagram of an earphone according to an embodiment of the present application. As shown in fig. 10, the headphone 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 in any of the various method embodiments described above are implemented when the computer program 102 is executed by the processor 100.
The headset 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 some components in combination, or different components, such as input output devices, network access devices, buses, etc.
The Processor 100 may be a Central Processing Unit (CPU), and the Processor 100 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), off-the-shelf Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. 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 in other embodiments, such as a plug-in hard disk provided on the headset, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 101 may also include both an internal storage unit of the headset and an external storage device. The memory 101 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of a computer program. The memory 101 may also be used to temporarily store data that has been output or is to be output.
Illustratively, the computer program 102 may be partitioned into one or more modules/units, which are stored in the memory 101 and executed by the 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 specific functions that describe the execution of the computer program 102 in the headset 10.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The aforementioned integrated units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer-readable storage medium, to instruct related hardware; the computer program may, when being executed by a processor, realize the steps of the respective method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or 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), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, and the computer program is implemented to realize the steps of the above method embodiments when executed by a processor.
Embodiments of the present application provide a computer program product, which when run on a terminal device, such as a mobile terminal, enables the mobile terminal to implement the steps in the above-described method embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A wearing state detection method of an earphone, characterized in that the earphone includes a capacitance part that can form a capacitance, the method comprising:
determining a first wearing state of the headset 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.
2. The wearing state detection method of an earphone according to claim 1, wherein the earphone further comprises a microphone;
the determining a first wearing state of the headset 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 a contrast;
and determining a first wearing state of the earphone according to the contrast.
3. The method for detecting the wearing state of the headphone according to claim 2, wherein the determining the first wearing state of the headphone according to the contrast comprises:
if the contrast accords with a first condition, determining that the first wearing state is a worn state;
and if the contrast accords with a second condition, determining that the first wearing state is an unworn state.
4. The wearing state detection method of an earphone according to claim 1, wherein the earphone further comprises a microphone;
the determining a first wearing state of the headset 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 a contrast;
performing correlation analysis on the first data and the second data to obtain correlation;
determining a first wearing state of the headset according to the contrast and the correlation.
5. The wearing state detection method of an earphone according to claim 4, wherein said determining the first wearing state of the earphone based on the contrast and the correlation comprises:
and if the contrast conforms to a first condition and the correlation conforms to a third condition, determining that the first wearing state is a worn state, otherwise determining that the first wearing state is an unworn state.
6. The wearing state detection method of an earphone according to claim 1, characterized by further comprising: and determining a third wearing state of the earphone according to the first wearing state and the second wearing state.
7. The wearing state detection method of an earphone according to any one of claims 1 to 6, wherein the determining the second wearing state of the earphone based on the reference capacitance value and the detected capacitance value of the capacitive component comprises:
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.
8. A wearing state detection device of an earphone, characterized in that the earphone includes a capacitance section capable of forming a capacitance, the device comprising:
a sound detection unit to: determining a first wearing state of the headset according to the received sound;
a reference setting unit configured to: 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.
9. A headset characterized by comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the wearing state detection method of the headset of any one of claims 1 to 7 when executing the computer program.
10. 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 a headphone according to any one of claims 1 to 7.
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 true CN113613157A (en) 2021-11-05
CN113613157B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071304A (en) * 2021-11-29 2022-02-18 歌尔科技有限公司 Earphone active noise reduction method and device, earphone and computer readable storage medium
CN115412826A (en) * 2022-08-23 2022-11-29 安克创新科技股份有限公司 Wearing detection method and device for headset, medium and headset

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广东移动通信有限公司 Earphone 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广东移动通信有限公司 Earphone 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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071304A (en) * 2021-11-29 2022-02-18 歌尔科技有限公司 Earphone active noise reduction method and device, earphone and computer readable storage medium
CN115412826A (en) * 2022-08-23 2022-11-29 安克创新科技股份有限公司 Wearing detection method and device for headset, medium and headset

Also Published As

Publication number Publication date
CN113613157B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
US10628119B2 (en) Sound effect processing method and mobile terminal
US11361785B2 (en) Sound outputting device including plurality of microphones and method for processing sound signal using plurality of microphones
CN108111952B (en) Recording method, device, terminal and computer readable storage medium
CN105451111A (en) Earphone play control method and apparatus and terminal
CN113613156B (en) Wearing state detection method and device, headset and storage medium
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
US12069451B2 (en) User hearing protection method, apparatus, and electronic device
CN108391207A (en) Data processing method, device, terminal, earphone and readable storage medium
US20240013789A1 (en) Voice control method and apparatus
CN113038337B (en) Audio playing method, wireless earphone and computer readable storage medium
CN113613157B (en) Earphone and wearing state detection method and device thereof and storage medium
US11190873B2 (en) Electronic device and method for detecting blocked state of microphone
EP4131907B1 (en) Sound recording method and apparatus
CN111510785A (en) Video playback control method, device, terminal and computer-readable storage medium
CN106453838A (en) Method and apparatus for adjusting volume
CN113470613A (en) Chorus sound mixing method and device, electronic equipment and storage medium
EP3240265A1 (en) Apparatus and method for processing audio signals
CN108432216B (en) Method, device and electronic device for volume adjustment
CN111028838A (en) Voice wake-up method, device and computer readable storage medium
US20200145756A1 (en) Headset
CN107889031B (en) Audio control method, audio control device and electronic equipment
CN114040293B (en) Earphone control method and device, earphone and computer readable storage medium
CN109274826B (en) Method, device, terminal and computer-readable storage medium for switching voice playback mode
CN115499744A (en) Earphone noise reduction method and device, computer readable storage medium and earphone
CN111669456B (en) Audio adjustment method, storage medium and electronic 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