CN114095823A - Earphone leakage compensation method, device, equipment and storage medium - Google Patents

Earphone leakage compensation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114095823A
CN114095823A CN202111351730.2A CN202111351730A CN114095823A CN 114095823 A CN114095823 A CN 114095823A CN 202111351730 A CN202111351730 A CN 202111351730A CN 114095823 A CN114095823 A CN 114095823A
Authority
CN
China
Prior art keywords
earphone
leakage
output value
output signal
target
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
CN202111351730.2A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111351730.2A priority Critical patent/CN114095823A/en
Publication of CN114095823A publication Critical patent/CN114095823A/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
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • 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/1083Reduction of ambient noise

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for compensating earphone leakage, wherein the method is applied to earphones and comprises the following steps: detecting an output value of a capacitive sensor arranged in an earphone wearing part, wherein the output value of the capacitive sensor is determined by a fitting area between the wearing part of the earphone and human ears; matching the output value of the capacitive sensor with a preset leakage mapping table to determine the target leakage of the earphone; and carrying out leakage compensation on the output signal of the earphone according to the target leakage amount. According to the invention, the fitting area of the earphone and the human ear is determined through the output value of the capacitance sensor, so that the leakage amount of the output signal of the earphone is determined, the output signal which can be received by the human ear is compensated according to the leakage amount of the output signal of the earphone, and the consistency of the signal actually received by the human ear and the output signal of the earphone can be ensured, thereby ensuring the sound effect quality of the earphone and improving the use experience of a user.

Description

Earphone leakage compensation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to an earphone leakage compensation method, apparatus, device, and storage medium.
Background
With the development of earphone technology, the application of wireless earphones is more and more extensive, so that the requirements of people on listening to music, making a call, watching videos and the like are met to different degrees, and the life of people is enriched. In order to ensure the sound effect quality of a user when the user uses the earphone, a plurality of earphones with active noise reduction functions are provided, and a signal capable of offsetting external noise is generated by monitoring the external environment noise to compensate the output signal of the earphones so as to reduce the interference of the external noise. In practical use, however, when the earphone is not tightly attached to the ears of a person, the earphone is not only interfered by external noise, but also the sound signal output by the earphone itself is leaked, so that the use experience of a user is influenced. At present, the output signal of the earphone is mostly subjected to noise reduction or compensation aiming at external noise, leakage of the output signal of the earphone is ignored, and after an interference signal generated by the external noise is offset, if the signal output by the earphone is leaked, the quality of sound effect which can be received by human ears is affected, so that the hearing effect of a user is affected, and user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for compensating leakage of an earphone, and aims to solve the technical problem that in the prior art, the output signal of the earphone is only subjected to noise reduction or compensation aiming at noise, and the leakage of the output signal of the earphone is neglected, so that the quality of the sound effect output by the earphone is poor.
In addition, in order to achieve the above object, the present invention further provides an earphone leakage compensation method, applied to an earphone, wherein the earphone includes a wearing portion, and a capacitance sensor is disposed in the wearing portion, and the earphone leakage compensation method includes the following steps:
detecting an output value of the capacitive sensor, wherein the output value of the capacitive sensor is determined by a fit area between a wearing part of the earphone and a human ear;
matching the output value of the capacitive sensor with a preset leakage mapping table to determine the target leakage of the earphone;
and carrying out leakage compensation on the output signal of the earphone according to the target leakage amount.
Optionally, the step of performing leakage compensation on the output signal of the earphone according to the target leakage amount includes:
detecting a target output signal of the earphone and generating a leakage compensation signal according to the target leakage amount;
and superposing the leakage compensation signal to the target output signal, and performing leakage compensation on the output signal of the earphone.
Optionally, the step of matching the output value of the capacitive sensor with a preset leakage mapping table to determine a target leakage of the earphone includes:
determining the corresponding relation between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table;
and calculating the target leakage amount of the earphone based on the corresponding relation and the output value of the capacitance sensor.
Optionally, the output value of the capacitance sensor is determined by a fitting area between the wearing part of the earphone and the ear of the person, and includes:
the output value of the capacitance sensor increases with the increase of the bonding area;
alternatively, the output value of the capacitance sensor decreases as the attachment area increases.
Optionally, the headphone leakage compensation method further includes:
when detecting that the earphone is in an in-ear state in a simulated human ear, acquiring a simulated output value of a capacitance sensor in the earphone;
detecting the analog leakage amount of the output signal of the earphone, and storing the analog output value and the analog leakage amount as a group of test values;
when detecting that the analog output value changes, returning to and executing the step of detecting the analog leakage amount of the output signal of the earphone until the analog leakage amount does not change any more;
and establishing a leakage quantity mapping table of the earphone according to the stored test value, wherein the leakage quantity mapping table comprises a corresponding relation between the output value of the capacitance sensor and the leakage quantity of the earphone.
Optionally, a sound effect detection device is disposed in the simulated human ear, and the step of detecting the amount of leakage of the simulation of the output signal of the earphone includes:
detecting first sound effect information received by the simulated human ear by using a sound effect detection device in the simulated human ear;
and acquiring second sound effect information output by the earphone, comparing the first sound effect information with the second sound effect information, and determining the analog leakage amount of the earphone.
Optionally, the step of establishing a leakage mapping table of the output signal of the earphone according to the stored test value includes:
fitting the stored test values, and determining the corresponding relation between the simulation output value and the simulation leakage amount;
and establishing a leakage quantity mapping table of the earphone according to the corresponding relation.
In addition, to achieve the above object, the present invention also provides an earphone leakage compensation device, including:
the capacitance detection module is used for detecting an output value of the capacitance sensor, wherein the output value of the capacitance sensor is determined by the fit area between the wearing part of the earphone and the ears of a person;
the leakage detection module is used for matching the output value of the capacitive sensor with a preset leakage mapping table and determining the target leakage of the earphone;
and the leakage compensation module is used for performing leakage compensation on the output signal of the earphone according to the target leakage amount.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor and a headphone leakage compensation program stored on the memory and executable on the processor, the headphone leakage compensation program when executed by the processor implementing the steps of the headphone leakage compensation method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having an earphone leakage compensation program stored thereon, wherein the earphone leakage compensation program, when executed by a processor, implements the steps of the earphone leakage compensation method as described above.
The embodiment of the invention provides an earphone leakage compensation method, an earphone leakage compensation device, an earphone leakage compensation equipment and a storage medium. Among the prior art, only fall to make an uproar and compensate to the output signal of earphone to external noise, and ignored the earphone self because with the inseparable signal leakage that produces of human ear laminating, fall to make an uproar the compensation back when falling to external noise signal, when the signal production of earphone self output is revealed, still can influence the quality of the audio that the human ear can receive, lead to the output audio quality of earphone not good. Compared with the prior art, in the embodiment of the invention, the leakage amount of the earphone is detected by arranging the capacitive sensor in the wearing part of the earphone, specifically, the output value of the capacitive sensor is detected, wherein the output value of the capacitive sensor is determined by the attaching area between the wearing part of the earphone and the human ear; matching the output value of the capacitive sensor with a preset leakage mapping table to determine the target leakage of the earphone; and carrying out leakage compensation on the sound effect of the earphone according to the target leakage amount. Confirm the laminating area of earphone and people's ear through capacitive sensor's output value, and then confirm the leakage quantity of earphone output signal, compensate the output signal that people's ear can be received to the leakage quantity of earphone output signal, can guarantee the uniformity of the signal of people's ear actual receipt and earphone self output signal to ensure the audio quality of earphone, promote user's use and experience.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a terminal device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a method for headphone leakage compensation according to the present invention;
fig. 3 is a schematic diagram of an earphone structure according to a first embodiment of the earphone leakage compensation method of the present invention;
fig. 4 is a schematic diagram of functional modules of an embodiment of the earphone leakage compensation device according to 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.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal (also called terminal, equipment or terminal equipment) in the embodiment of the invention can be a PC (personal computer), and can also be mobile terminal equipment with display and data processing functions, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a headphone leakage compensation program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a headphone leakage compensation program stored in the memory 1005 that, when executed by the processor, implements operations in the headphone leakage compensation methods provided by the embodiments described below.
Based on the hardware structure of the equipment, the embodiment of the earphone leakage compensation method is provided.
Referring to fig. 2, in a first embodiment of an earphone leakage compensation method of the present invention, the earphone leakage compensation method includes:
step S10 of detecting an output value of the capacitive sensor, wherein the output value of the capacitive sensor is determined by a bonding area between a wearing portion of the earphone and a human ear;
it should be noted that, the existing earphone only compensates the output signal of the earphone for the external noise, so as to achieve the purpose of active noise reduction, and improve the quality of the sound effect output by the earphone by eliminating the interference of the external noise. The earphone essentially reduces interference signals in actual received signals of human ears, ensures that the signals received by the human ears are all from output signals of the earphone, and further ensures the auditory effect of earphone users. However, in practical use, the wearing part of the earphone is not completely attached to the ears of a person, and because the size and the shape of the earphone are fixed, the sizes and the shapes of the ears of different users of the earphone are different, so that the attachment degree of the earphone to different users is different, a certain amount of leakage of the output signal of the earphone is caused more or less, and if the interference of external noise is only considered to be offset during signal compensation, the leakage of the output signal of the earphone is ignored, and the optimal compensation effect cannot be achieved.
Based on this, the embodiment of the present invention provides an earphone leakage compensation method, which is applied to an earphone, implemented in a terminal device such as a PC or a personal computer, and used for performing leakage compensation on the earphone, where the earphone may be a TWS earphone or a wired bluetooth earphone, and the following application to the TWS earphone is taken as an example. The method can be used for leakage compensation of the earphone independently, can also be used with active noise reduction, and can simultaneously compensate output signals leaked by the earphone on the basis of noise reduction. It will be appreciated that the compensation effect is better when used simultaneously with noise reduction. The wearing portion of the earphone is a portion of the earphone corresponding to the ear canal when the earphone is worn, such as an earplug, and the earplug is hereinafter described as an example of the wearing portion. As shown in fig. 3, fig. 3 is a schematic structural diagram of the earphone in the present embodiment, the earphone includes a handle portion 1, an earplug 2 and a sound outlet 4, and a capacitive sensor 3 is disposed in the earplug 2 for detecting a fitting area of the earplug 2 and a human ear. Specifically, the output value of the capacitance sensor 3 is detected, the output value of the capacitance sensor is determined by the fitting area of the ear plug of the earphone and the human ear, and the leakage amount of the earphone, namely the target leakage amount, can be determined according to the fitting area of the ear plug part of the earphone and the human ear.
It can be known that, since the attaching area between the earplug and the human ear determines the output value of the capacitive sensor, the output value of the capacitive sensor may be positively or negatively correlated with the attaching area. That is, the output value of the capacitance sensor may be increased as the bonding area increases, or may be decreased as the bonding area increases, and is related to the characteristics of the capacitance sensor, and is not particularly limited herein.
Step S20, matching the output value of the capacitance sensor with a preset leakage mapping table, and determining the target leakage of the earphone;
further, the output value of the capacitance sensor 3 is matched with a preset leakage amount mapping table, and the leakage amount of the earphone (hereinafter referred to as a target leakage amount for distinguishing) is determined. The capacitive sensor provided in the earphone may be of a proximity type or a pressure type. Wherein, pressure type capacitive sensor atress produces deformation and leads to the capacitance value sound production to change after the earplug is gone into the ear, can be used for detecting the size of earplug and people's ear contact force to judge the laminating degree of earplug and people's ear. The proximity type capacitive sensor can judge the distance relation between the human ear and the earplug according to the mutual capacitance influence between the earplug and the human ear, and the output size of the proximity type capacitive sensor is only related to the fitting area (namely the contact area) between the human ear and the earplug of the earphone in actual use. The proximity type capacitive sensor can also be used for detecting the in-ear state of the earphone, and only judges the in-ear state of the earphone when the in-ear state is detected, wherein the in-ear state comprises two detection results of in-ear state or out-of-ear state. When the output value of the capacitance sensor is subdivided, the output value of the capacitance sensor can be associated with the leakage state of the earphone, and when the leakage of the earphone changes, the change of the contact area between the human ear and the earplug is proved, and at the moment, the output value of the capacitance sensor also changes. Therefore, when there is a correlation between the output value of the capacitance sensor and the leakage amount of the earphone, the leakage amount of the earphone can be obtained by detecting the output value of the capacitance sensor based on the correlation.
Specifically, after the output value of the capacitive sensor is detected, the output value of the capacitive sensor is matched with a preset leakage mapping table, and the target leakage of the earphone is determined. The leakage mapping table can be obtained through experimental means, based on the correlation among the output value of the capacitance sensor, the attaching area between the earplug and the human ear and the leakage of the earphone, the attaching area between the earplug and the human ear is continuously changed through the experimental means, then the output value of the capacitance sensor and the leakage of the earphone are detected, the corresponding relation between the output value of the capacitance sensor and the leakage of the earphone can be obtained, and the mapping table between the leakage of the earphone and the output value of the capacitance sensor can be established based on the corresponding relation. When the output value of the capacitance sensor is detected, the target leakage amount of the earphone corresponding to the output value of the capacitance sensor can be determined based on the leakage amount mapping table.
It will be appreciated that other types of capacitive sensors may be provided in the ear bud of the headset to achieve the same technical effect, and therefore the type of capacitive sensor is not specifically limited herein.
Further, the refinement of step S20 further includes:
step S201, determining a corresponding relation between the leakage amount of the earphone and the output value of the capacitance sensor according to the leakage amount mapping table;
step S202, calculating the target leakage amount of the earphone based on the corresponding relation and the output value of the capacitance sensor.
When the target leakage amount of the earphone is determined, the output value of the capacitance sensor is matched with a preset leakage amount mapping table, specifically, the corresponding relation between the leakage amount of the earphone and the output value of the capacitance sensor is determined according to the leakage amount mapping table, and the target leakage amount of the earphone is calculated based on the corresponding relation and the output value of the capacitance sensor.
And step S30, performing leakage compensation on the output signal of the earphone according to the target leakage amount.
After the target leakage amount of the earphone is determined, leakage compensation is carried out on the output signal of the earphone according to the target leakage amount, and the specific compensation mode is that a compensation signal which is the same as a signal corresponding to the leakage amount of the earphone is generated and is superposed into the output signal of the earphone to carry out leakage compensation on the output signal of the earphone, so that the signal received by human ears is consistent with the output signal of the earphone.
Further, the refinement of step S30 further includes:
step S301, detecting a target output signal of the earphone, and generating a leakage compensation signal according to the target leakage amount;
step S302, superimposing the leakage compensation signal on the target output signal, and performing leakage compensation on the target output signal.
When leakage compensation is performed on the output signal of the earphone according to the target leakage amount, firstly, the target output signal of the earphone is detected, and a waveform corresponding to the output signal of the earphone is obtained, wherein the target output signal is the output signal which is output by the earphone and is expected to be received by human ears. However, after the target output signal is output by the earphone, in the process of transmitting the target output signal to the ear for receiving, because the earplug is not tightly attached to the ear, the signal output by the earphone is leaked, so that the signal actually received by the ear is inconsistent with the signal output by the earphone, and the auditory effect of a user is affected. Therefore, it is necessary to perform leakage compensation on the output signal of the earphone, and specifically, a leakage compensation signal having the same waveform as that of the target leakage amount of the earphone is generated according to the target leakage amount of the earphone and is superimposed on the output signal of the earphone, so as to perform leakage compensation on the output signal of the earphone.
In the present embodiment, the leakage amount of the earphone is detected by providing a capacitive sensor in the wearing part of the earphone, specifically, the output value of the capacitive sensor is detected, wherein the output value of the capacitive sensor is determined by the fitting area between the wearing part of the earphone and the human ear; matching the output value of the capacitive sensor with a preset leakage mapping table to determine the target leakage of the earphone; and carrying out leakage compensation on the sound effect of the earphone according to the target leakage amount. Confirm the laminating area of earphone and people's ear through capacitive sensor's output value, and then confirm the leakage quantity of earphone output signal, compensate the output signal that people's ear can be received to the leakage quantity of earphone output signal, can guarantee the uniformity of the signal of people's ear actual receipt and earphone self output signal to ensure the audio quality of earphone, promote user's use and experience.
Further, on the basis of the above-mentioned embodiments of the present invention, a second embodiment of the headphone leakage compensation method of the present invention is proposed.
Based on the foregoing embodiment, in this embodiment, the headphone leakage compensation method further includes:
step A10, when detecting that the earphone is in an in-ear state, acquiring an analog output value of a capacitive sensor in the earphone;
in this embodiment, before performing leakage compensation on the output signal of the earphone, a leakage amount mapping table of the earphone needs to be obtained, that is, a corresponding relationship between an output value of the capacitance sensor and a leakage amount of the output signal of the earphone needs to be determined. First, by means of experimental means, when it is detected that the earphone is in an in-ear state in the dummy human ear, an output value of the capacitance sensor (hereinafter referred to as a dummy output value for distinction) is acquired. The simulated human ear used for the experiment may be a human ear model or a human ear satisfying the experimental conditions, and is not limited herein. Taking the human ear model as an example, the detection of whether the earphone is in the in-ear state may be to compare the output value of the capacitive sensor with a preset threshold value through the output value of the capacitive sensor, so as to determine whether the earphone is in the in-ear state, and the acquisition of the output value of the capacitive sensor may be performed once every preset time period, or may be performed when a user triggers a corresponding acquisition instruction, which is not specifically limited herein.
Step A20, detecting the analog leakage quantity of the output signal of the earphone, and storing the analog output value and the analog leakage quantity as a group of test values;
after the output value of the capacitance sensor is obtained, the leakage amount of the earphone under the output value of the capacitance sensor is detected (hereinafter referred to as a simulated leakage amount for distinction), and then the obtained simulated output value of the capacitance sensor and the simulated leakage amount of the earphone are stored as a set of test values.
Further, the refinement of the step a20 further includes:
step B1, detecting first sound effect information received by the simulated human ear by using the sound effect detection device in the simulated human ear;
and step B2, acquiring second sound effect information output by the earphone, comparing the first sound effect information with the second sound effect information, and determining the analog leakage amount of the output signal of the earphone.
A in the simulation people's ear for the experiment, be equipped with sound effect detection device, can be used to detect the audio signal that people's ear received, utilize this sound effect detection device to detect the signal that people's ear received at the receiving end of simulation people's ear and be first sound information promptly, then obtain the output signal of earphone, confirm the second sound information of earphone output according to this output signal, compare the second sound information of the first sound information that will acquire and earphone output, confirm the difference between the output signal of signal and earphone that people's ear received, thereby confirm the leakage quantity of the output signal of earphone.
Step A30, when detecting the analog output value changes, returning and executing the step of detecting the analog leakage amount of the output signal of the earphone until the analog leakage amount does not change any more;
after a group of test values are stored, the attaching area of the ear plug of the earphone and the simulated human ear is adjusted, so that the attaching area of the ear plug of the earphone and the human ear determines the output value of the capacitance sensor, when the capacitance sensor is of an approaching type, the attaching area changes, the output value of the capacitance sensor changes, when the attaching area changes, the pressure of the human ear acting on the ear plug changes, and therefore the output value of the capacitance sensor changes. When the fitting area of the earplug and the human ear changes, the output value of the capacitance sensor changes, and when the output value of the capacitance sensor changes, the analog leakage amount of the corresponding earphone is obtained again and stored. Further, when the fitting area between the earplug and the simulated human ear is adjusted, the adjustment can be from large to small, namely, the fitting area between the earplug and the simulated human ear is gradually reduced from the complete fitting of the earplug and the simulated human ear; or the size of the earplug can be adjusted from small to large, namely, the fitting area between the earplug and the human ear is gradually increased from the state that the earplug is just inserted into the ear until the earplug is completely fitted with the human ear. And detecting the simulated leakage amount of the earphone once under the regulated analog output value of the capacitance sensor every time the fitting area between the earplug and the human ear is regulated, and then storing the leakage amount as a group of test values until the leakage amount of the earphone is not changed any more, thus showing that the earplug of the earphone and the simulated human ear are completely fitted or not contacted at the moment.
Step A40, establishing a leakage mapping table of the earphone according to the stored test value, wherein the leakage mapping table comprises the corresponding relation between the output value of the capacitance sensor and the leakage of the earphone.
And establishing a leakage mapping table of the earphone by using the stored test value, wherein the established leakage mapping table represents the corresponding relation between the output value of the capacitance sensor and the leakage of the earphone, so that the corresponding leakage of the earphone can be obtained when the output value of the capacitance sensor is obtained based on the leakage mapping table.
Further, the refinement of the step a40 further includes:
step C1, fitting the stored test values, and determining the corresponding relation between the simulation output value and the simulation leakage amount;
and step C2, establishing a leakage quantity mapping table of the earphone according to the corresponding relation.
After the test values are obtained, fitting is carried out on the stored test values, so that the corresponding relation between the output value of the capacitance sensor and the leakage amount of the earphone is determined, and a leakage amount mapping table of the earphone is established based on the corresponding relation, so that the established leakage mapping table comprises the corresponding relation between the output value of the capacitance sensor and the leakage amount.
In this embodiment, by determining the correspondence between the output value of the capacitance sensor and the leakage amount of the earphone, a correspondence mapping table between the output value of the capacitance sensor and the leakage amount of the earphone is established, and when the output value of the capacitance sensor is obtained according to the fitting area between the wearing part of the earphone and the ear of a person, the leakage amount corresponding to the earphone can be determined based on the mapping table, so that the leakage compensation can be performed on the output signal of the earphone.
In addition, referring to fig. 4, an embodiment of the present invention further provides an earphone leakage compensation apparatus, where the earphone leakage compensation apparatus includes:
a capacitance detection module 10, configured to detect an output value of the capacitance sensor, where the output value of the capacitance sensor is determined by a fit area between a wearing portion of the earphone and an ear of a person;
the leakage detection module 20 is configured to match an output value of the capacitive sensor with a preset leakage mapping table, and determine a target leakage of the earphone;
and a leakage compensation module 30, configured to perform leakage compensation on the output signal of the earphone according to the target leakage amount.
Optionally, the leak detection module 20 is further configured to:
determining the corresponding relation between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table;
and calculating the target leakage amount of the earphone based on the corresponding relation and the output value of the capacitance sensor.
Optionally, the leakage compensation module 30 is further configured to:
detecting a target output signal of the earphone and generating a leakage compensation signal according to the target leakage amount;
and superposing the leakage compensation signal to the target output signal, and performing leakage compensation on the output signal of the earphone.
Optionally, the earphone leakage compensation device further includes an analog detection module, configured to:
when detecting that the earphone is in an in-ear state in a simulated human ear, acquiring a simulated output value of a capacitance sensor in the earphone;
detecting the analog leakage amount of the output signal of the earphone, and storing the analog output value and the analog leakage amount as a group of test values;
when detecting that the analog output value changes, returning to and executing the step of detecting the analog leakage amount of the output signal of the earphone until the analog leakage amount does not change any more;
and establishing a leakage quantity mapping table of the earphone according to the stored test value, wherein the leakage quantity mapping table comprises a corresponding relation between the output value of the capacitance sensor and the leakage quantity of the earphone.
Optionally, the analog detection module is further configured to:
detecting first sound effect information received by the simulated human ear by using a sound effect detection device in the simulated human ear;
and acquiring second sound effect information output by the earphone, comparing the first sound effect information with the second sound effect information, and determining the analog leakage amount of the output signal of the earphone.
Optionally, the analog detection module is further configured to:
fitting the stored test values, and determining the corresponding relation between the simulation output value and the simulation leakage amount;
and establishing a leakage quantity mapping table of the earphone according to the corresponding relation.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores an earphone leakage compensation program, and the earphone leakage compensation program, when executed by a processor, implements operations in the earphone leakage compensation method provided in the foregoing embodiment.
Furthermore, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when executed by a processor, the computer program implements the operations in the earphone leakage compensation method provided in the foregoing embodiment.
The embodiments of the apparatus, the computer program product and the storage medium of the present invention may refer to the embodiments of the method for compensating for leakage of an earphone of the present invention, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method for compensating for headphone leakage according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An earphone leakage compensation method is applied to an earphone and is characterized in that the earphone comprises a wearing part, a capacitance sensor is arranged in the wearing part, and the earphone leakage compensation method comprises the following steps:
detecting an output value of the capacitive sensor, wherein the output value of the capacitive sensor is determined by a fit area between a wearing part of the earphone and a human ear;
matching the output value of the capacitive sensor with a preset leakage mapping table to determine the target leakage of the earphone;
and carrying out leakage compensation on the output signal of the earphone according to the target leakage amount.
2. The headphone leakage compensation method of claim 1, wherein the step of leakage compensating the output signal of the headphone based on the target leakage amount comprises:
detecting a target output signal of the earphone and generating a leakage compensation signal according to the target leakage amount;
and superposing the leakage compensation signal to the target output signal, and performing leakage compensation on the output signal of the earphone.
3. The headphone leakage compensation method of claim 1, wherein the step of matching the output value of the capacitive sensor with a preset leakage map to determine a target leakage of the headphone comprises:
determining the corresponding relation between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table;
and calculating the target leakage amount of the earphone based on the corresponding relation and the output value of the capacitance sensor.
4. The headphone leakage compensation method of claim 1, wherein the output value of the capacitive sensor is determined by a fitting area between the wearing portion of the headphone and the human ear, and comprises:
the output value of the capacitance sensor increases with the increase of the bonding area;
alternatively, the output value of the capacitance sensor decreases as the attachment area increases.
5. The headphone leakage compensation method of claim 1, wherein the headphone leakage compensation method further comprises:
when detecting that the earphone is in an in-ear state in a simulated human ear, acquiring a simulated output value of a capacitance sensor in the earphone;
detecting the analog leakage amount of the output signal of the earphone, and storing the analog output value and the analog leakage amount as a group of test values;
when detecting that the analog output value changes, returning to and executing the step of detecting the analog leakage amount of the output signal of the earphone until the analog leakage amount does not change any more;
and establishing a leakage quantity mapping table of the earphone according to the stored test value, wherein the leakage quantity mapping table comprises a corresponding relation between the output value of the capacitance sensor and the leakage quantity of the earphone.
6. The headphone leakage compensation method of claim 5 wherein the simulated human ear is provided with an audio effect detection device, and the step of detecting the amount of simulated leakage of the output signal of the headphone comprises:
detecting first sound effect information received by the simulated human ear by using a sound effect detection device in the simulated human ear;
and acquiring second sound effect information output by the earphone, comparing the first sound effect information with the second sound effect information, and determining the analog leakage amount of the output signal of the earphone.
7. The method of claim 5, wherein the step of establishing a leakage map of the earphone according to the stored test values comprises:
fitting the stored test values, and determining the corresponding relation between the simulation output value and the simulation leakage amount;
and establishing a leakage quantity mapping table of the earphone according to the corresponding relation.
8. An earphone leakage compensation device, comprising:
the capacitance detection module is used for detecting an output value of the capacitance sensor, wherein the output value of the capacitance sensor is determined by the fit area between the wearing part of the earphone and the ears of a person;
the leakage detection module is used for matching the output value of the capacitive sensor with a preset leakage mapping table and determining the target leakage of the earphone;
and the leakage compensation module is used for performing leakage compensation on the output signal of the earphone according to the target leakage amount.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor and a headphone leakage compensation program stored on the memory and executable on the processor, the headphone leakage compensation program when executed by the processor implementing the steps of the headphone leakage compensation method according to any one of claims 1 to 7.
10. A storage medium having stored thereon an earphone leakage compensation program which, when executed by a processor, implements the steps of the earphone leakage compensation method according to any one of claims 1 to 7.
CN202111351730.2A 2021-11-15 2021-11-15 Earphone leakage compensation method, device, equipment and storage medium Pending CN114095823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111351730.2A CN114095823A (en) 2021-11-15 2021-11-15 Earphone leakage compensation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111351730.2A CN114095823A (en) 2021-11-15 2021-11-15 Earphone leakage compensation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114095823A true CN114095823A (en) 2022-02-25

Family

ID=80300742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111351730.2A Pending CN114095823A (en) 2021-11-15 2021-11-15 Earphone leakage compensation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114095823A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100246855A1 (en) * 2009-03-31 2010-09-30 Apple Inc. Dynamic audio parameter adjustment using touch sensing
CN105246000A (en) * 2015-10-28 2016-01-13 维沃移动通信有限公司 Method for improving sound quality of headset and mobile terminal
CN108235170A (en) * 2017-12-29 2018-06-29 湖南海翼电子商务股份有限公司 For the circuit and method of the adaptive adjustment sound of earphone
CN112804607A (en) * 2020-12-24 2021-05-14 歌尔光学科技有限公司 Tone quality adjusting method and device and tone quality adjustable earphone
US20210150522A1 (en) * 2018-04-13 2021-05-20 nChain Holdings Limited Computer-implemented system and method suitable for increasing the security of instant off-line blockchain transactions
CN113453122A (en) * 2021-06-29 2021-09-28 歌尔科技有限公司 Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100246855A1 (en) * 2009-03-31 2010-09-30 Apple Inc. Dynamic audio parameter adjustment using touch sensing
CN105246000A (en) * 2015-10-28 2016-01-13 维沃移动通信有限公司 Method for improving sound quality of headset and mobile terminal
CN108235170A (en) * 2017-12-29 2018-06-29 湖南海翼电子商务股份有限公司 For the circuit and method of the adaptive adjustment sound of earphone
US20210150522A1 (en) * 2018-04-13 2021-05-20 nChain Holdings Limited Computer-implemented system and method suitable for increasing the security of instant off-line blockchain transactions
CN112804607A (en) * 2020-12-24 2021-05-14 歌尔光学科技有限公司 Tone quality adjusting method and device and tone quality adjustable earphone
CN113453122A (en) * 2021-06-29 2021-09-28 歌尔科技有限公司 Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN110969981A (en) Screen display parameter adjusting method and electronic equipment
CN107562406B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN110855313B (en) Signal control method and electronic equipment
CN111554321A (en) Noise reduction model training method and device, electronic equipment and storage medium
CN110365853B (en) Prompting method and electronic equipment
CN110460721B (en) Starting method and device and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
US20230254395A1 (en) Electronic Device and Control Method Thereof
CN108848267B (en) Audio playing method and mobile terminal
CN111698632A (en) Headset state detection method and device, TWS headset and computer storage medium
CN108683980B (en) Audio signal transmission method and mobile terminal
US20230037238A1 (en) Audio output mode switching method and electronic device
CN114071308A (en) Earphone self-adaptive tuning method and device, earphone and readable storage medium
CN107749306B (en) Vibration optimization method and mobile terminal
CN111182118B (en) Volume adjusting method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN109873894B (en) Volume adjusting method and mobile terminal
US20220110036A1 (en) Random access method and terminal
CN108540642B (en) Mobile terminal and operation method thereof
CN108319440B (en) Audio output method and mobile terminal
CN109067429B (en) Control method and terminal equipment
CN109062483B (en) Image processing method and terminal equipment
CN110990029A (en) Application processing method and electronic equipment
CN114095823A (en) Earphone leakage compensation method, device, equipment and storage medium
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal

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