CN114501292A - Earphone wearing detection method and device, earphone equipment and storage medium - Google Patents

Earphone wearing detection method and device, earphone equipment and storage medium Download PDF

Info

Publication number
CN114501292A
CN114501292A CN202210193111.3A CN202210193111A CN114501292A CN 114501292 A CN114501292 A CN 114501292A CN 202210193111 A CN202210193111 A CN 202210193111A CN 114501292 A CN114501292 A CN 114501292A
Authority
CN
China
Prior art keywords
earphone
wearing
detection
detection result
detection sensor
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.)
Pending
Application number
CN202210193111.3A
Other languages
Chinese (zh)
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.)
Weifang Goertek Electronics Co Ltd
Original Assignee
Weifang Goertek Electronics 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 Weifang Goertek Electronics Co Ltd filed Critical Weifang Goertek Electronics Co Ltd
Priority to CN202210193111.3A priority Critical patent/CN114501292A/en
Publication of CN114501292A publication Critical patent/CN114501292A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • G01K13/20Clinical contact thermometers for use with humans or animals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • G01K13/20Clinical contact thermometers for use with humans or animals
    • G01K13/223Infrared clinical thermometers, e.g. tympanic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements

Abstract

The invention discloses a method and a device for detecting wearing of an earphone, earphone equipment and a storage medium, wherein a first wearing detection sensor is arranged on one side of the earphone equipment, which is in contact with the skin of a human body when the earphone equipment is worn, and a second wearing detection sensor is arranged on one side of the earphone equipment, which is far away from the skin of the human body, the method comprises the following steps: acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor; and when the first detection result represents that the earphone equipment is in a contact state and the second detection result represents that the earphone equipment is in a non-contact state, determining that the earphone equipment is in a wearing state. The invention improves the accuracy of wearing detection of the earphone equipment, thereby improving the experience of a user in using the earphone.

Description

Earphone wearing detection method and device, earphone equipment and storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to an earphone wearing detection method and apparatus, an earphone device, and a storage medium.
Background
Currently, a wearing detection function is generally supported in the headset to detect whether the headset is in a wearing state. However, in the existing wearing detection of the earphone, an infrared or capacitance sensor is generally used as a wearing detection sensor and is arranged on the inner side of the earphone head, which is in contact with the skin of a human body in the ear, so that after the earphone is worn, a corresponding wearing state signal can be detected. However, when the user takes off the headphone and holds the headphone in his hand, the wearing detection sensor may erroneously detect that the headphone is in a worn state. When the false detection is in a wearing state, the earphone may be triggered to enter a corresponding function by mistake, so that the user experience is affected. For example, if the transparent transmission mode is turned on in the holding state, the sound signal becomes a closed loop, which causes howling of the earphone. Therefore, how to improve the accuracy of the wearing detection of the earphone is a problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting wearing of an earphone, earphone equipment and a storage medium, and aims to provide an earphone wearing detection scheme so as to improve the accuracy of earphone wearing detection and further improve the experience of a user in using the earphone.
In order to achieve the above object, the present invention provides an earphone wearing detection method, which is applied to an earphone device, the earphone device being provided with a first wearing detection sensor on a side contacting with human skin and a second wearing detection sensor on a side away from the human skin when worn, the method comprising the steps of:
acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor;
and when the first detection result represents that the earphone equipment is in a contact state and the second detection result represents that the earphone equipment is in a non-contact state, determining that the earphone equipment is in a wearing state.
Optionally, after the steps of obtaining a first detection result detected by the first wearing detection sensor and obtaining a second detection result detected by the second wearing detection sensor, the method further includes:
if the first temperature value is detected to fall into a first preset temperature range, determining that the first detection result represents that the earphone equipment is in a contact state;
and if the second temperature value is detected to fall into a second preset temperature range, determining that the second detection result represents that the earphone equipment is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
Optionally, after the steps of obtaining a first detection result detected by the first wearing detection sensor and obtaining a second detection result detected by the second wearing detection sensor, the method further includes:
if the second temperature value is detected to fall into a third preset temperature range, determining that the second detection result represents that the earphone equipment is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
and if the earphone equipment is detected to be in the transparent transmission mode when the earphone equipment is determined to be in the hand-held state, closing the transparent transmission mode.
Optionally, the method further comprises:
acquiring temperature data from a user terminal connected with the earphone equipment, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an environment temperature value detected by a temperature sensor in the user terminal;
and setting the second preset temperature range according to the temperature data.
Optionally, the method further comprises:
when an in-ear temperature recording instruction triggered by wearing prompt information output by the earphone equipment is detected, acquiring a recorded third temperature value through the first wearing detection sensor;
and setting the first preset temperature range according to the third temperature value.
Optionally, after the step of determining that the earphone device is in the wearing state when the first detection result represents that the earphone device is in the contact state and the second detection result represents that the earphone device is in the non-contact state, the method further includes:
if the earphone equipment is determined to be in a wearing state, starting a transparent transmission mode in the earphone equipment;
picking up ambient sound signals by a feed-forward microphone in the earphone device in the pass-through mode;
and processing the environmental sound signal by adopting a preset transparent transmitter parameter to obtain a compensation sound signal, and playing the compensation sound signal through a loudspeaker of the earphone equipment.
Optionally, before the steps of obtaining a first detection result detected by the first wearing detection sensor and obtaining a second detection result detected by the second wearing detection sensor, the method further includes:
monitoring a wearing detection instruction in the earphone equipment;
and if the wearing detection instruction is monitored, executing the steps of obtaining a first detection result obtained by the detection of the first wearing detection sensor and obtaining a second detection result obtained by the detection of the second wearing detection sensor.
In order to achieve the above object, the present invention further provides an earphone wearing detection apparatus disposed in an earphone device, wherein a first wearing detection sensor is disposed on a side of the earphone device contacting with a skin of a human body when the earphone device is worn, and a second wearing detection sensor is disposed on a side of the earphone device away from the skin of the human body, the apparatus comprising:
the acquisition module is used for acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor;
the determining module is used for determining that the earphone device is in a wearing state when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a non-contact state.
To achieve the above object, the present invention also provides an earphone device, including: a memory, a processor and a headset wearing detection program stored on the memory and executable on the processor, the headset wearing detection program when executed by the processor implementing the steps of the headset wearing detection method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having a headset wearing detection program stored thereon, which when executed by a processor implements the steps of the headset wearing detection method as described above.
According to the invention, the first wearing detection sensor is arranged on the side, which is in contact with the skin of a human body when the earphone equipment is worn, and the second wearing detection sensor is arranged on the side, which is far away from the skin of the human body, of the earphone equipment, when the wearing detection is required, a first detection result obtained by the detection of the first wearing detection sensor is obtained, and a second detection result obtained by the detection of the second wearing detection sensor is obtained, when the first detection result represents that the earphone equipment is in a contact state, and the second detection result represents that the earphone equipment is in a non-contact state, the earphone equipment is determined to be in a wearing state, so that the accuracy of wearing detection of the earphone equipment can be improved, and the user experience of using the earphone is improved.
Drawings
Fig. 1 is a schematic flowchart of a first embodiment of a method for detecting wearing of an earphone according to the present invention;
fig. 2 is a schematic diagram illustrating a position where a wearing detection sensor is disposed in an earphone device according to an embodiment of the present invention;
fig. 3 is a schematic functional block diagram of an earphone wearing detection device according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of a method for detecting wearing of an earphone according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein. The earphone wearing detection method provided by the embodiment of the invention is applied to earphone equipment, and if the earphone equipment has two earphones, the method can be applied to any one of the earphones. In this embodiment, the earphone wearing detection method includes:
step S10, acquiring a first detection result detected by the first wearing detection sensor, and acquiring a second detection result detected by the second wearing detection sensor;
in this embodiment, for the degree of accuracy that the detection was worn to the improvement earphone, propose to set up different positions in earphone equipment and set up two sets of detection sensors of wearing, a set of detection sensor of wearing includes that at least one wears detection sensor. One set is arranged on one side of the earphone device, which is in contact with the skin of a human body when the earphone device is worn, and is called a first wearing detection sensor, and the other set is arranged on one side of the earphone device, which is far away from the skin of the human body when the earphone device is worn, and is called a second wearing detection sensor. As shown in fig. 2, the wearing detection design is the current earphone wearing detection scheme, which sets a set of wearing detection sensors (sensors) on the side in contact with the human skin when the earphone is worn, and in this embodiment, referring to the wearing detection design two, the first wearing detection Sensor (Sensor a) is set on the side in contact with the human skin when the earphone is worn, and the second wearing detection Sensor (Sensor B) is set on the side away from the human skin when the earphone is worn.
The wearing detection sensor in this embodiment is a sensor that can detect whether the position where the wearing detection sensor is disposed in the earphone device is in contact with an object (for example, the skin of a user), that is, any sensor that can achieve this effect may be used, for example, a conventional wearing detection sensor based on an infrared principle, or a wearing detection sensor based on a capacitance principle, etc., which is not limited in this embodiment. The wear detection sensors may be of the same type or of different types.
When the wearing detection is required, the headphone apparatus may perform wearing detection by the first wearing detection sensor and the second wearing detection sensor, and acquire a detection result of the first wearing detection sensor (hereinafter referred to as a first detection result) and a detection result of the second wearing detection sensor (hereinafter referred to as a second detection result). The first detection result and the second detection result are results that may directly or indirectly characterize whether the ear speaker device is in the contact state. It should be noted that the first detection result represents that the earphone device is in a contact state, specifically, the position where the first wearing detection sensor is arranged in the earphone device is in a state of being in contact with other objects, and the second detection result represents that the earphone device is in a contact state, specifically, the position where the second wearing detection sensor is arranged in the earphone device is in a state of being in contact with other objects; on the contrary, the first detection result representing that the earphone device is in the non-contact state specifically means that the position where the first wearing detection sensor is arranged in the earphone device is in the state of not contacting with other objects, and the second detection result representing that the earphone device is in the non-contact state specifically means that the position where the second wearing detection sensor is arranged in the earphone device is in the state of not contacting with other objects.
The first detection result and the second detection result may be data directly detected by the wearing detection sensor, for example, may be transceiving data of an infrared signal detected by the wearing detection sensor based on an infrared principle, and the headset device may determine whether the first detection result and the second detection result represent that the headset device is in a contact state based on the data; the first detection result and the second detection result may also be a result of whether the headset device is in a contact state or not, which is obtained by analyzing data obtained by direct detection by the wearing detection sensor, that is, the wearing detection sensor may report a state signal to the headset device, for example, 0 indicates a non-contact state, and 1 indicates a contact state.
In a specific embodiment, a scene in which the headset device needs to be worn for detection may be set as needed. In an embodiment, the headset device may be configured to start, i.e., perform periodic wearing detection, so as to automatically trigger a function that can only be started when certain wearing states are detected when the headset device is in a wearing state, and automatically close the function that can only be started when certain wearing states are detected when the headset device is in an unworn state; for example, the headphone device may be configured to automatically turn on the active noise reduction function when it is detected that it is in a worn state. In another embodiment, the headset device may be arranged to automatically perform the wearing detection when certain functions are switched on, so that no instruction to switch on the function is performed when these functions can only be switched on in the wearing state.
Further, in an embodiment, before the step S10, the method further includes:
step a, monitoring a wearing detection instruction in the earphone equipment;
and b, if the wearing detection instruction is monitored, executing the step S10.
The earphone equipment can be set to automatically trigger the wearing detection instruction when some functions are started, and monitor the wearing detection instruction after the earphone equipment is started to operate. If the headset device monitors the wearing detection instruction, step S10 is executed, that is, a first detection result obtained by the first wearing detection sensor and a second detection result obtained by the second wearing detection sensor are obtained, and whether the headset device is in a wearing state is determined according to the first detection result and the second detection result.
Step S20, when the first detection result indicates that the earphone device is in a contact state and the second detection result indicates that the earphone device is in a non-contact state, determining that the earphone device is in a wearing state.
The earphone device may determine whether the first detection result represents that the earphone device is in a contact state, and determine whether the second detection result represents that the earphone device is in a non-contact state, and if so, determine that the earphone device is in a wearing state.
It can be understood that, when the user wears the earphone, only one side of the earphone device, which is in contact with the skin of the user when worn, is in a contact state, and the side of the earphone device, which is away from the skin of the user when worn, is in a non-contact state, and when the user holds the earphone device with a hand, both the side of the earphone device, which is in contact with the skin of the user when worn, and the side of the earphone device, which is away from the skin of the user when worn, are in a contact state, in this embodiment, by determining that the earphone device is in the wearing state when the earphone device determines that the first detection result represents that the earphone device is in the contact state, and the second detection result represents that the earphone device is in the non-contact state, the state of the earphone device when held by the user can be prevented from being mistakenly identified as being in the wearing state, and further compared with a scheme in which the earphone device determines the wearing state of the earphone device only according to the detection result of the wearing detection sensor on the side of the earphone device, which is in contact with the skin of the user, this kind of scheme of this embodiment can improve the earphone equipment and wear the accuracy that detects.
Further, in an embodiment, the headset device may turn on a function that needs to be turned on in the wearing state, such as an active noise reduction function, a transparent transmission mode, and the like, in the headset device when detecting that the headset device is in the wearing state.
Further, in an embodiment, if the headset device determines that the first detection result represents that the headset device is in a non-contact state, or determines that the second detection result represents that the headset device is in a contact state, it may be determined that the headset device is in a non-wearing state. Further, the earphone device may turn off a function of the earphone device that is turned on only in the wearing mode when it is determined that the earphone device is not in the wearing state, so as to avoid a howling situation or avoid wasting the electric quantity of the earphone device.
Further, in an embodiment, after the step S20, the method further includes:
step S30, if the earphone device is in a wearing state, the transparent transmission mode in the earphone device is started;
step S40, in the pass-through mode, picking up an ambient sound signal by a feed-forward microphone in the headphone apparatus;
and step S50, processing the environmental sound signal by adopting preset transparent transmission device parameters to obtain a compensation sound signal, and playing the compensation sound signal through a loudspeaker of the earphone device.
When the transparent transmission mode is automatically triggered after the earphone device is detected to be in the wearing state, the transparent transmission mode in the earphone device can be started after the earphone device is determined to be in the wearing state. In the pass-through mode, the earphone device may pick up ambient sound signals through a feed-forward microphone. The feedforward microphone is generally disposed on a side of the earphone device housing structure that is in contact with the external environment. The headset device may process the picked-up ambient sound signal with preset transparent transmitter parameters to obtain a compensation sound signal for compensating for the sound that is not heard by the user and is blocked by the headset device. The preset transparent transmitter parameter may be set in advance as needed, and the processing of the environmental sound signal by using the preset transparent transmitter parameter may refer to a signal processing method in a conventional transparent transmission mode, which is not limited herein. The earphone device plays the supplementary sound signal with the speaker so that the user can hear the external environment sound blocked by the earphone device.
In this embodiment, a first wearing detection sensor is arranged on one side, which is in contact with human skin when the earphone device is worn, and a second wearing detection sensor is arranged on one side, which is far away from the human skin, of the earphone device, when the earphone device needs to be worn for detection, a first detection result obtained by detection of the first wearing detection sensor is obtained, a second detection result obtained by detection of the second wearing detection sensor is obtained, when the first detection result represents that the earphone device is in a contact state, and the second detection result represents that the earphone device is in a non-contact state, the earphone device is determined to be in a wearing state, the accuracy of wearing detection of the earphone device can be improved, and therefore the user experience of using the earphone is improved.
Further, in an embodiment, when the headset device is determined to be in the unworn state, if it is determined that the transparent transmission mode in the headset device is in the on state, the transparent transmission mode in the headset device is turned off, so that the phenomenon that the headset device is held in a hand of a user and howling occurs when the headset device is unworn is avoided.
Further, based on the first embodiment, a second embodiment of the method for detecting wearing of a headphone according to the present invention is provided, where in this embodiment, after step S20, the method further includes:
step S60, if it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result represents that the earphone device is in a contact state;
in the present embodiment, the first wearing detection sensor and the second wearing detection sensor may be implemented using dimension sensors. The temperature sensor can measure the temperature of the environment where the temperature sensor is located and output a temperature value. In this embodiment, whether the position where the temperature sensor is disposed in the earphone device (i.e., the position where the first wearing detection sensor and the second wearing detection sensor are disposed) is in a state of being in contact with the ear of the user may be determined by using a range where the temperature value is located.
The temperature value detected by the first wearing sensor is hereinafter referred to as a first temperature value, and the temperature value detected by the second wearing sensor is hereinafter referred to as a second temperature value. The earphone device may use the obtained first temperature value as a first detection result, and use the second temperature value as a second detection result.
After the first temperature value is obtained, the earphone device can detect whether the first temperature value falls into a first preset temperature range. The first preset temperature range can be a temperature range which is preset according to needs and used for representing the temperature range of the ear canal of a human, and in a specific implementation mode, the average level can be built in the earphone device after the crowd is measured in advance, and the average level can also be input by a user of the earphone device in a user-defined mode.
If the first temperature value is detected to fall into the first preset temperature range, the earphone device may determine that the first detection result represents that the earphone device is in a contact state, that is, may determine that a position where the first wearing detection sensor is disposed in the earphone device is in a contact state. It can be understood that, since the first preset temperature range is set according to the temperature range of the ear canal of the human ear, when the first temperature value falls into the range, it indicates that the position of the earphone device where the first wearing detection sensor is set is most likely to be in contact with the ear canal of the user, and when the position is in contact with other objects only, the result that the position is in a contact state cannot be obtained because of the temperature difference of other objects, thereby avoiding the false recognition caused when the earphone device is not worn but is only covered by other objects. That is, adopt temperature sensor as wearing the detection sensor in this embodiment, compare and adopt the wearing detection sensor based on infrared or electric capacity principle, detect whether earphone equipment is higher with the accuracy of user's duct contact.
Step S70, if it is detected that the second temperature value falls within a second preset temperature range, determining that the second detection result represents that the earphone device is in a non-contact state, where the first preset temperature range is different from the second preset temperature range.
After the second temperature value is obtained, the earphone device can detect whether the second temperature value falls into a second preset temperature range. The second preset temperature range may be a temperature range set in advance as required, and the second preset temperature range is different from the first preset temperature range and is used for representing the external environment temperature range. In a specific embodiment, the second preset temperature range may be entered by a user of the headset device in a customized manner, or set by the headset device according to an ambient temperature in weather forecast data acquired from the network platform.
If the second temperature value is detected to fall within the second preset temperature range, the earphone device may determine that the second detection result represents that the earphone device is in a non-contact state, that is, may determine that a position where the second wearing detection sensor is disposed in the earphone device is in a non-contact state. It is understood that, since the second preset temperature range is set according to the ambient temperature range, when the second temperature value falls within the range, it indicates that the position in the ear speaker device where the second wearing detection sensor is set is highly likely not to contact an object (e.g., the skin of the user). Therefore, when the first detection result represents that the earphone device is in the contact state and the second detection result represents that the earphone device is in the non-contact state, the earphone device is determined to be in the wearing state, and the accuracy of wearing detection of the earphone device can be improved.
Further, in an embodiment, after the step S20, the method further includes:
step A10, if it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result represents that the earphone device is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
after the earphone device acquires the second temperature value, whether the second temperature value falls within a third preset temperature range or not can be determined. The third preset temperature range may be a temperature range set in advance according to needs, and the third preset temperature range is different from the second preset temperature range and is used for representing a temperature range of the palm of the user. In a specific embodiment, the third preset temperature range may be entered by a user of the headset device in a customized manner, or set by the headset device according to an ambient temperature in weather forecast data acquired from the network platform. It will be appreciated that the temperature range of the ear canal of the human ear generally overlaps or coincides with the temperature range of the human palm, and thus, the third predetermined temperature range may be the same as or overlaps the first predetermined temperature range.
If it is detected that the third temperature value falls within a third preset temperature range, the headset device may determine that the second detection result represents that the headset device is in a contact state, that is, may determine that a position in the headset device where the second wearing detection sensor is disposed is in a contact state. It is understood that, since the third preset temperature range is set according to the user palm temperature range, when the second temperature value falls within the range, it indicates that the position of the headphone apparatus where the second wearing detection sensor is set is highly likely to have contact with the user palm.
Step A20, when the first detection result indicates that the earphone device is in a contact state and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
when the earphone device determines that the first detection result represents that the earphone device is in the contact state and the second detection result represents that the earphone device is in the contact state, it may be determined that the earphone device is in the hand-held state. That is, when the user holds the earphone device, the temperature values at the first wearing detection sensor and the second wearing detection sensor both fall within the corresponding temperature ranges, thereby triggering the earphone device to detect that the earphone device is in the held state, not the worn state.
Step a30, if it is detected that the earphone device is in the transparent transmission mode when it is determined that the earphone device is in the hand-held state, closing the transparent transmission mode.
The earphone device can detect whether the earphone device is in the transparent transmission mode or not when the earphone device is determined to be in the hand-held state, namely whether the transparent transmission mode is started or not, and if the transparent transmission mode is started, the transparent transmission mode is closed, so that howling of the earphone device caused by holding the earphone device by hand is avoided.
Further, in an embodiment, the method further comprises:
step A40, acquiring temperature data from a user terminal connected with the earphone device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an environmental temperature value detected by a temperature sensor in the user terminal;
in this embodiment, in order to further improve the accuracy of wearing detection of the headset device, the second preset temperature range in the headset device may be set according to the real-time weather forecast temperature value. In a specific embodiment, if the headset device can be directly connected to the network, the weather forecast temperature value can be directly obtained from the network platform, and if the headset device cannot be connected to the network, the headset device can be connected to the user terminal and then the weather forecast temperature value can be obtained from the network platform through the user terminal.
Or, in order to further improve the accuracy of wearing detection of the earphone device, a real-time ambient temperature value can be detected by the temperature sensor, and a second preset temperature range is set according to the real-time ambient temperature value. In a specific embodiment, the earphone device may detect the ambient temperature value through a temperature sensor serving as a second wearing detection sensor, and when the earphone device determines that the position where the second wearing detection sensor is located is exposed to the external environment according to an instruction triggered by a user, the earphone device acquires the ambient temperature value through the second wearing detection sensor; or, the earphone device can detect the environmental temperature value through a temperature sensor in a user terminal connected with the earphone device, the earphone device is connected with the user terminal, the user terminal sends the temperature value collected by the temperature sensor to the earphone device, and the temperature sensor of the user terminal can be arranged at a position which is not easy to be shielded by a user when the user terminal is held by the user.
Step A50, setting the second preset temperature range according to the temperature data.
After the earphone device acquires the temperature data, that is, the weather forecast temperature value or the environmental temperature value, the second preset temperature range may be set according to the temperature value, for example, the temperature value is added with a value as an upper limit value of the temperature range, and the subtracted value is used as a lower limit value of the temperature range. The specific configuration may be set as required, and is not limited herein.
In an embodiment, the time period for the earphone device to set the second preset temperature range may be set as needed, for example, once a day.
Further, in an embodiment, the method further comprises:
step A60, when detecting an in-ear temperature recording instruction triggered by wearing prompt information output by the earphone device, acquiring a recorded third temperature value through the first wearing detection sensor;
in order to further improve the accuracy of wearing detection of the earphone device, the earphone device may set an individualized ear canal temperature range for the user, that is, a first preset temperature range for the user, in consideration of the difference of human body temperatures. Specifically, the earphone device can output wearing prompt information, the information is used for prompting a user to wear the earphone, so that the earphone device can input a temperature value of an ear canal of the user, the prompt information can be output in a voice mode, text information can also be output to the user terminal, and the output is output through a display screen of the user terminal to be checked by the user.
After the wearing prompt information is output, the earphone device detects whether an ear canal temperature input instruction is received within a certain time period. The earphone device can receive a confirmation instruction triggered by a user through voice or key triggering and the like, wherein the confirmation instruction represents an ear canal temperature entry instruction. That is, after the user hears or sees the wearing prompt information output by the earphone device, the user can wear the earphone device well and trigger the confirmation instruction, so that the earphone device starts to enter the temperature value.
After detecting the ear canal temperature recording instruction, the earphone device acquires a recorded temperature value (hereinafter referred to as a third temperature value for distinction) through the first wearing detection sensor. The third temperature value may be considered to be the temperature value within the ear canal of the user.
Step A70, setting the first preset temperature range according to the third temperature value.
After the earphone device obtains the third temperature value, the first preset temperature range may be set according to the third temperature value, for example, a value is added to the temperature value to serve as an upper limit value of the temperature range, and a value is subtracted to serve as a lower limit value of the temperature range. The specific configuration may be set as required, and is not limited herein.
In an embodiment, the earphone device may set the first preset temperature range periodically, may set the first preset temperature range when the earphone device is turned on for the first time, and may also set the first preset temperature range in a triggering manner in other scenes, which is not limited specifically.
In addition, an embodiment of the present invention further provides an earphone wearing detection apparatus, where the apparatus is disposed in an earphone device, a first wearing detection sensor is disposed on a side of the earphone device, which is in contact with a skin of a human body when the earphone device is worn, and a second wearing detection sensor is disposed on a side of the earphone device, which is away from the skin of the human body, with reference to fig. 3, the apparatus includes:
an obtaining module 10, configured to obtain a first detection result obtained by detection of the first wearing detection sensor, and obtain a second detection result obtained by detection of the second wearing detection sensor;
a determining module 20, configured to determine that the earphone device is in a wearing state when the first detection result indicates that the earphone device is in a contact state and the second detection result indicates that the earphone device is in a non-contact state.
Further, the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, the second detection result is a second temperature value detected by the second wearing detection sensor, and the determining module 20 is further configured to:
if the first temperature value is detected to fall into a first preset temperature range, determining that the first detection result represents that the earphone equipment is in a contact state;
and if the second temperature value is detected to fall into a second preset temperature range, determining that the second detection result represents that the earphone equipment is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
Further, the determining module 20 is further configured to:
if the second temperature value is detected to fall into a third preset temperature range, determining that the second detection result represents that the earphone equipment is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
the device further comprises:
and the closing module is used for closing the transparent transmission mode if the earphone device is detected to be in the transparent transmission mode when the earphone device is determined to be in the handheld state.
Further, the obtaining module 10 is further configured to:
acquiring temperature data from a user terminal connected with the earphone equipment, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an environmental temperature value detected by a temperature sensor in the user terminal;
the device further comprises:
and the first setting module is used for setting the second preset temperature range according to the temperature data.
Further, the obtaining module 10 is further configured to:
when an in-ear temperature recording instruction triggered by wearing prompt information output by the earphone equipment is detected, acquiring a recorded third temperature value through the first wearing detection sensor;
the device further comprises:
and the second setting module is used for setting the first preset temperature range according to the third temperature value.
Further, the apparatus further comprises:
the starting module is used for starting a transparent transmission mode in the earphone equipment if the earphone equipment is determined to be in a wearing state;
the obtaining module 10 is further configured to pick up an ambient sound signal through a feedforward microphone in the earphone device in the transparent transmission mode;
the device further comprises:
and the processing module is used for processing the environmental sound signal by adopting a preset transparent transmitter parameter to obtain a compensation sound signal, and playing the compensation sound signal through a loudspeaker of the earphone equipment.
Further, the apparatus further comprises:
the monitoring module is used for monitoring a wearing detection instruction in the earphone equipment;
the obtaining module is further configured to, if the wearing detection instruction is monitored, perform an operation of obtaining a first detection result detected by the first wearing detection sensor and obtaining a second detection result detected by the second wearing detection sensor.
The specific implementation of the earphone wearing detection apparatus of the present invention is basically the same as the embodiments of the earphone wearing detection method, and is not described herein again.
The earphone device comprises a structural shell, a communication module, a main control module (such as a Micro Control Unit (MCU)), a loudspeaker, a microphone, a memory and the like. When the earphone device is worn, a first wearing detection sensor is arranged on one side, which is in contact with the skin of a human body, of the earphone device, and a second wearing detection sensor is arranged on one side, which is far away from the skin of the human body, of the earphone device. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The earphone device can establish a communication connection with the user terminal through the communication module. The memory of the headset may store a headset wearing detection program, and the microprocessor may be configured to call the headset wearing detection program stored in the memory and perform the following operations:
acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor;
and when the first detection result represents that the earphone equipment is in a contact state and the second detection result represents that the earphone equipment is in a non-contact state, determining that the earphone equipment is in a wearing state.
Further, after the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, the second detection result is a second temperature value detected by the second wearing detection sensor, the first detection result obtained by detecting the first wearing detection sensor and the second detection result obtained by detecting the second wearing detection sensor are obtained, the microprocessor may be further configured to call an earphone wearing detection program stored in the memory, and execute the following operations:
if the first temperature value is detected to fall into a first preset temperature range, determining that the first detection result represents that the earphone equipment is in a contact state;
and if the second temperature value is detected to fall into a second preset temperature range, determining that the second detection result represents that the earphone equipment is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
Further, after the operations of obtaining the first detection result detected by the first wearing detection sensor and obtaining the second detection result detected by the second wearing detection sensor, the microprocessor may be further configured to call the earphone wearing detection program stored in the memory, and perform the following operations:
if the second temperature value is detected to fall into a third preset temperature range, determining that the second detection result represents that the earphone equipment is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
and if the earphone equipment is detected to be in the transparent transmission mode when the earphone equipment is determined to be in the hand-held state, closing the transparent transmission mode.
Further, the microprocessor may be further configured to invoke a headset wearing detection program stored in the memory to perform the following operations:
acquiring temperature data from a user terminal connected with the earphone equipment, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an environment temperature value detected by a temperature sensor in the user terminal;
and setting the second preset temperature range according to the temperature data.
Further, the microprocessor may be further configured to invoke a headset wearing detection program stored in the memory to perform the following operations:
when an in-ear temperature recording instruction triggered by wearing prompt information output by the earphone equipment is detected, acquiring a recorded third temperature value through the first wearing detection sensor;
and setting the first preset temperature range according to the third temperature value.
Further, after the operation of determining that the earphone device is in the wearing state when the first detection result represents that the earphone device is in the contact state and the second detection result represents that the earphone device is in the non-contact state, the microprocessor may be further configured to call an earphone wearing detection program stored in the memory, and perform the following operations:
if the earphone equipment is determined to be in a wearing state, starting a transparent transmission mode in the earphone equipment;
picking up ambient sound signals by a feed-forward microphone in the earphone device in the pass-through mode;
and processing the environmental sound signal by adopting a preset transparent transmitter parameter to obtain a compensation sound signal, and playing the compensation sound signal through a loudspeaker of the earphone equipment.
Further, before the operations of obtaining the first detection result detected by the first wearing detection sensor and obtaining the second detection result detected by the second wearing detection sensor, the microprocessor may be further configured to call an earphone wearing detection program stored in the memory, and perform the following operations:
monitoring a wearing detection instruction in the earphone equipment;
and if the wearing detection instruction is monitored, executing the operation of acquiring a first detection result detected by the first wearing detection sensor and acquiring a second detection result detected by the second wearing detection sensor.
The embodiments of the headset device and the computer-readable storage medium of the present invention can refer to the embodiments of the headset wearing detection method of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. An earphone wearing detection method is applied to an earphone device, a first wearing detection sensor is arranged on one side, which is in contact with human skin, of the earphone device when the earphone device is worn, and a second wearing detection sensor is arranged on one side, which is far away from the human skin, of the earphone device, and the method comprises the following steps:
acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor;
and when the first detection result represents that the earphone equipment is in a contact state and the second detection result represents that the earphone equipment is in a non-contact state, determining that the earphone equipment is in a wearing state.
2. The method of detecting wearing of a headphone according to claim 1, wherein the steps of obtaining the first detection result detected by the first wearing detection sensor and obtaining the second detection result detected by the second wearing detection sensor, each of the first wearing detection sensor and the second wearing detection sensor being a temperature sensor, the method including:
if the first temperature value is detected to fall into a first preset temperature range, determining that the first detection result represents that the earphone equipment is in a contact state;
and if the second temperature value is detected to fall into a second preset temperature range, determining that the second detection result represents that the earphone equipment is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
3. The headphone wear detection method according to claim 2, wherein the steps of acquiring a first detection result detected by the first wear detection sensor and acquiring a second detection result detected by the second wear detection sensor further include:
if the second temperature value is detected to fall into a third preset temperature range, determining that the second detection result represents that the earphone equipment is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
and if the earphone equipment is detected to be in the transparent transmission mode when the earphone equipment is determined to be in the hand-held state, closing the transparent transmission mode.
4. The headset wear detection method of claim 2, wherein the method further comprises:
acquiring temperature data from a user terminal connected with the earphone equipment, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an environmental temperature value detected by a temperature sensor in the user terminal;
and setting the second preset temperature range according to the temperature data.
5. The headset wear detection method of claim 2, wherein the method further comprises:
when an in-ear temperature recording instruction triggered by wearing prompt information output by the earphone equipment is detected, acquiring a recorded third temperature value through the first wearing detection sensor;
and setting the first preset temperature range according to the third temperature value.
6. The headset wear detection method of claim 1, wherein the step of determining that the headset device is in the worn state when the first detection result indicates that the headset device is in the contact state and the second detection result indicates that the headset device is in the non-contact state further comprises, after the step of determining that the headset device is in the worn state:
if the earphone equipment is determined to be in a wearing state, starting a transparent transmission mode in the earphone equipment;
picking up ambient sound signals by a feed-forward microphone in the earphone device in the pass-through mode;
and processing the environmental sound signal by adopting a preset transparent transmitter parameter to obtain a compensation sound signal, and playing the compensation sound signal through a loudspeaker of the earphone equipment.
7. The headphone wear detection method according to any one of claims 1 to 6, wherein the steps of acquiring a first detection result detected by the first wear detection sensor and acquiring a second detection result detected by the second wear detection sensor are preceded by:
monitoring a wearing detection instruction in the earphone equipment;
and if the wearing detection instruction is monitored, executing the steps of obtaining a first detection result obtained by the detection of the first wearing detection sensor and obtaining a second detection result obtained by the detection of the second wearing detection sensor.
8. An earphone wearing detection device, characterized in that the device is disposed in an earphone device, a first wearing detection sensor is arranged on one side of the earphone device contacting with human skin when being worn, and a second wearing detection sensor is arranged on one side of the earphone device far away from the human skin, the device comprises:
the acquisition module is used for acquiring a first detection result obtained by the detection of the first wearing detection sensor and acquiring a second detection result obtained by the detection of the second wearing detection sensor;
the determining module is used for determining that the earphone device is in a wearing state when the first detection result represents that the earphone device is in a contact state and the second detection result represents that the earphone device is in a non-contact state.
9. An earphone device, characterized in that the earphone device comprises: memory, a processor and a headset wearing detection program stored on the memory and executable on the processor, the headset wearing detection program when executed by the processor implementing the steps of the headset wearing detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headset wearing detection program, which when executed by a processor implements the steps of the headset wearing detection method according to any one of claims 1 to 7.
CN202210193111.3A 2022-02-28 2022-02-28 Earphone wearing detection method and device, earphone equipment and storage medium Pending CN114501292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210193111.3A CN114501292A (en) 2022-02-28 2022-02-28 Earphone wearing detection method and device, earphone equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210193111.3A CN114501292A (en) 2022-02-28 2022-02-28 Earphone wearing detection method and device, earphone equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114501292A true CN114501292A (en) 2022-05-13

Family

ID=81484286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210193111.3A Pending CN114501292A (en) 2022-02-28 2022-02-28 Earphone wearing detection method and device, earphone equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114501292A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023246714A1 (en) * 2022-06-24 2023-12-28 维沃移动通信有限公司 State determination method and apparatus, electronic device, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208434109U (en) * 2018-06-27 2019-01-25 深圳普罗声声学科技有限公司 Hearing device
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone
CN111366175A (en) * 2020-04-20 2020-07-03 深圳市科奈信科技有限公司 Wireless earphone, method and device for detecting wearing state of wireless earphone and storage medium
CN113038325A (en) * 2018-09-25 2021-06-25 深圳市汇顶科技股份有限公司 Earphone and method for realizing wearing detection and touch operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208434109U (en) * 2018-06-27 2019-01-25 深圳普罗声声学科技有限公司 Hearing device
CN113038325A (en) * 2018-09-25 2021-06-25 深圳市汇顶科技股份有限公司 Earphone and method for realizing wearing detection and touch operation
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone
CN111366175A (en) * 2020-04-20 2020-07-03 深圳市科奈信科技有限公司 Wireless earphone, method and device for detecting wearing state of wireless earphone and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023246714A1 (en) * 2022-06-24 2023-12-28 维沃移动通信有限公司 State determination method and apparatus, electronic device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
JP6551919B2 (en) Watch system, watch detection device and watch notification device
CN105451111A (en) Earphone play control method and apparatus and terminal
CN107566604B (en) Message reminding control method and user terminal
CN111770407A (en) Earphone state detection method and device, earphone and readable storage medium
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN108781320B (en) Wireless body-worn personal device with loss detection function
CN110784915B (en) Power consumption control method of electronic equipment and electronic equipment
CN105704317A (en) Antenna parameter adjustment method and apparatus, and electronic device
CN109743652B (en) Headset control method, headset, and computer-readable storage medium
CN108848267B (en) Audio playing method and mobile terminal
CN111698632A (en) Headset state detection method and device, TWS headset and computer storage medium
CN113920975B (en) Noise reduction parameter setting method and device, earphone equipment and storage medium
CN114501292A (en) Earphone wearing detection method and device, earphone equipment and storage medium
US11166113B2 (en) Method for operating a hearing system and hearing system comprising two hearing devices
EP3157270B1 (en) Hearing device with vibration sensitive transducer
CN111586515A (en) Sound monitoring method, equipment and storage medium based on wireless earphone
CN112817554A (en) Alert sound control method, alert sound control device, and storage medium
CN113039774A (en) Method and device for processing application program and electronic equipment
CN109361987B (en) Sports earphone and control method, device and equipment thereof
CN112492439A (en) Earphone falling reminding method and device, electronic equipment and storage medium
CN109729431B (en) Video privacy protection method and terminal equipment
CN113766411A (en) Earphone state detection method, earphone and storage medium
CN107677363A (en) The method and intelligent terminal of noise prompting
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium

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