Headphone leakage compensation method, device, equipment and storage medium

By setting up a capacitive sensor on the earphone wearing part to detect the fitting area and determine the target leakage amount, the earphone output signal is leaked and compensated, which solves the problem of leakage of the earphone's own output signal and improves the sound quality and user experience.

CN114095823BActive Publication Date: 2025-01-24GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111351730.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2025-01-24
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

The prior art ignores the leakage of the headphones' own output signal during noise reduction compensation, resulting in poor sound quality.

Method used

By setting the capacitor sensor in the wearing part of the headset, the fitting area between the headset and the human ear is detected, the target leakage volume is determined, and the output signal of the headset is leaked compensation for the output signal of the headset according to the target leakage amount.

Benefits of technology

Ensure that the signal received by the human ear is consistent with the output signal of the headset, improves the quality of sound effects and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095823B_ABST
    Figure CN114095823B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for compensating for earphone leakage. The method is applied to earphones and includes: detecting the output value of a capacitive sensor provided in the wearing part of the earphone, 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 performing leakage compensation on the output signal of the earphone according to the target leakage. The present invention determines the fitting area between the earphone and the human ear through the output value of the capacitive sensor, and then determines the leakage of the earphone output signal. The output signal that can be received by the human ear is compensated according to the leakage of the earphone output signal, and can ensure the consistency between the signal actually received by the human ear and the output signal of the earphone itself, thereby ensuring the sound quality of the earphone and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone technology, and in particular to an earphone leakage compensation method, device, equipment and storage medium. Background Art

[0002] With the development of headphone technology, wireless headphones are more and more widely used, which makes people's needs for listening to music, making phone calls, watching videos, etc. satisfied to varying degrees and enriches people's lives. In order to ensure the sound quality of users when using headphones, many headphones with active noise reduction functions have emerged. By monitoring the external environmental noise, a signal that can offset the external noise is generated to compensate the output signal of the headphones, which is used to reduce the interference of external noise. However, in actual use, when the headphones are not tightly fitted to the human ear, they will not only be interfered by external noise, but the sound signal output by the headphones themselves will also leak, thus affecting the user experience. At present, most of the noise reduction or compensation of the output signal of the headphones is carried out for external noise, while the leakage of the output signal of the headphones themselves is ignored. After the interference signal generated by the external noise is offset, if the signal output by the headphones themselves leaks, it will also affect the quality of the sound effect that the human ear can receive, thereby affecting the user's hearing effect, resulting in a poor user experience. Summary of the invention

[0003] The main purpose of the present invention is to provide a headphone leakage compensation method, device, equipment and storage medium, aiming to solve the technical problem that the prior art only reduces or compensates the output signal of the headphone for noise, but ignores the leakage of the headphone's own output signal, resulting in poor headphone output sound quality.

[0004] In addition, to achieve the above-mentioned purpose, the present invention also provides an earphone leakage compensation method, which is applied to an earphone, wherein the earphone includes a wearing portion, and a capacitive sensor is provided in the wearing portion. The earphone leakage compensation method includes the following steps:

[0005] Detecting an output value of the capacitive sensor, wherein the output value of the capacitive sensor is determined by a fitting area between a wearing portion of the earphone and a human ear;

[0006] Matching the output value of the capacitance sensor with a preset leakage mapping table to determine a target leakage amount of the earphone;

[0007] Leakage compensation is performed on the output signal of the earphone according to the target leakage amount.

[0008] Optionally, the step of performing leakage compensation on the output signal of the earphone according to the target leakage amount includes:

[0009] detecting a target output signal of the earphone, and generating a leakage compensation signal according to the target leakage amount;

[0010] The leakage compensation signal is superimposed on the target output signal to perform leakage compensation on the output signal of the earphone.

[0011] Optionally, the step of matching the output value of the capacitive sensor with a preset leakage amount mapping table to determine the target leakage amount of the earphone includes:

[0012] Determining a correspondence between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table;

[0013] A target leakage amount of the earphone is calculated based on the corresponding relationship and the output value of the capacitance sensor.

[0014] Optionally, the output value of the capacitive sensor is determined by a fitting area between the wearing portion of the earphone and the human ear, including:

[0015] The output value of the capacitive sensor increases as the bonding area increases;

[0016] Alternatively, the output value of the capacitive sensor decreases as the contact area increases.

[0017] Optionally, the earphone leakage compensation method further includes:

[0018] When it is detected that the earphone is in an in-ear state in a simulated human ear, an analog output value of a capacitive sensor in the earphone is obtained;

[0019] Detecting a simulated leakage amount of an output signal of the earphone, and saving the simulated output value and the simulated leakage amount as a set of test values;

[0020] When it is detected 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 no longer changes;

[0021] A leakage mapping table of the earphone is established according to the stored test values, wherein the leakage mapping table includes a corresponding relationship between the output value of the capacitive sensor and the leakage amount of the earphone.

[0022] Optionally, a sound effect detection device is provided in the simulated human ear, and the step of detecting the simulated leakage amount of the output signal of the earphone comprises:

[0023] Using the sound effect detection device in the simulated human ear to detect the first sound effect information received by the simulated human ear;

[0024] The second sound effect information output by the earphone is obtained, and the first sound effect information is compared with the second sound effect information to determine the simulated leakage amount of the earphone.

[0025] Optionally, the step of establishing a leakage mapping table of the output signal of the earphone according to the stored test values ​​comprises:

[0026] Fitting the saved test value to determine the corresponding relationship between the simulated output value and the simulated leakage amount;

[0027] A leakage amount mapping table of the earphone is established according to the corresponding relationship.

[0028] In addition, to achieve the above-mentioned purpose, the present invention further provides an earphone leakage compensation device, the earphone leakage compensation device comprising:

[0029] A capacitance detection module, used to detect the output value of the capacitance sensor, wherein the output value of the capacitance sensor is determined by the fitting area between the wearing portion of the headset and the human ear;

[0030] A leakage detection module, used to match the output value of the capacitive sensor with a preset leakage amount mapping table to determine a target leakage amount of the earphone;

[0031] The leakage compensation module is used to perform leakage compensation on the output signal of the earphone according to the target leakage amount.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and an earphone leakage compensation program stored in the memory and executable on the processor, and the earphone leakage compensation program implements the steps of the above-mentioned earphone leakage compensation method when executed by the processor.

[0033] In addition, to achieve the above-mentioned purpose, the present invention further provides a storage medium, on which a headphone leakage compensation program is stored, and when the headphone leakage compensation program is executed by a processor, the steps of the headphone leakage compensation method as described above are implemented.

[0034] The embodiments of the present invention propose a method, device, equipment and storage medium for earphone leakage compensation. In the prior art, only the output signal of the earphone is reduced and compensated for external noise, while the signal leakage caused by the earphone itself due to the loose fit with the human ear is ignored. After the external noise signal is reduced and compensated, when the signal output by the earphone itself leaks, it will still affect the quality of the sound effect that the human ear can receive, resulting in poor output sound quality of the earphone. Compared with the prior art, in the embodiments of the present invention, a capacitive sensor is set in the wearing part of the earphone to detect the leakage 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; the output value of the capacitive sensor is matched with a preset leakage mapping table to determine the target leakage of the earphone; and the sound effect of the earphone is leakage compensated according to the target leakage. The output value of the capacitive sensor is used to determine the fitting area between the earphone and the human ear, and then the leakage of the earphone output signal. The output signal that can be received by the human ear is compensated according to the leakage of the earphone output signal. This can ensure the consistency between the signal actually received by the human ear and the output signal of the earphone itself, thereby ensuring the sound quality of the earphone and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the hardware structure of a terminal device according to an embodiment of the present invention;

[0036] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the earphone leakage compensation method of the present invention;

[0037] Figure 3 Schematic diagram of the earphone structure in the first embodiment of the earphone leakage compensation method of the present invention;

[0038] Figure 4 Schematic diagram of functional modules of an embodiment of an earphone leakage compensation device of the present invention.

[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0041] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0042] The terminal (also called terminal, device or terminal equipment) in the embodiment of the present invention may be a PC, or may be a mobile terminal equipment with display and data processing functions such as a smart phone, a tablet computer and a portable computer.

[0043] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and 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 and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0045] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0046] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an earphone leakage compensation program.

[0047] exist Figure 1In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the headphone leakage compensation program stored in the memory 1005. When the headphone leakage compensation program is executed by the processor, the operations in the headphone leakage compensation method provided in the following embodiment are implemented.

[0048] Based on the above device hardware structure, an embodiment of the earphone leakage compensation method of the present invention is proposed.

[0049] Reference Figure 2 In a first embodiment of the earphone leakage compensation method of the present invention, the earphone leakage compensation method comprises:

[0050] Step S10, detecting an output value of the capacitive sensor, wherein the output value of the capacitive sensor is determined by a fitting area between the wearing portion of the earphone and the human ear;

[0051] It should be noted that the existing headphones only compensate the output signal of the headphones for external noise to achieve the purpose of active noise reduction, and improve the quality of the headphone output sound effect by eliminating the interference of external noise. Its essence is to reduce the interference signal in the signal actually received by the human ear, and ensure that the signal received by the human ear comes from the output signal of the headphone, thereby ensuring the hearing effect of the headphone user. However, in actual use, the wearing part of the headphone is not necessarily completely in line with the human ear, and because the size and shape of the headphone are fixed, the size and shape of the ears of different headphone users are different. Therefore, the degree of fit between the headphone and different users is different, which will more or less cause a certain amount of leakage in the output signal of the headphone. If, when compensating the signal, only the interference of external noise is considered, and the leakage of the headphone's own output signal is ignored, the best compensation effect cannot be achieved.

[0052] Based on this, an embodiment of the present invention proposes a headphone leakage compensation method, which is applied to headphones and implemented in terminal devices such as PCs or personal computers to perform leakage compensation on the headphones. The headphones can be TWS headphones or wired Bluetooth headphones. The following takes the application to TWS headphones as an example. This method can be used alone to compensate for leakage of headphones, or it can be used simultaneously with active noise reduction. On the basis of noise reduction, the output signal leaking from the headphones is compensated at the same time. It can be understood that the compensation effect is better when used simultaneously with noise reduction. Furthermore, the wearing part of the headphone refers to the part of the headphone corresponding to the ear canal when worn, such as earplugs, etc. The earplugs are used as the wearing part for explanation below. Figure 3 As shown, Figure 3: is a schematic diagram of the earphone structure in this embodiment. In this embodiment, the earphone includes a handle 1, an earplug 2 and a sound outlet 4. A capacitive sensor 3 is provided in the earplug 2 to detect the fitting area between the earplug 2 and the human ear. Specifically, the output value of the capacitive sensor 3 is detected, and the output value of the capacitive sensor is determined by the fitting area between the earplug of the earphone and the human ear. According to the fitting area between the earplug part of the earphone and the human ear, the leakage amount of the earphone, that is, the target leakage amount, can be determined.

[0053] It can be seen that since the contact area between the earplug and the human ear determines the output value of the capacitive sensor, the output value of the capacitive sensor can be positively correlated with the contact area or negatively correlated. That is, the output value of the capacitive sensor can increase or decrease with the increase of the contact area, which is related to the characteristics of the capacitive sensor and is not specifically limited here.

[0054] Step S20, matching the output value of the capacitance sensor with a preset leakage mapping table to determine a target leakage amount of the earphone;

[0055] Further, the output value of the capacitance sensor 3 is matched with the preset leakage mapping table to determine the leakage of the earphone (hereinafter referred to as the target leakage for distinction). The capacitance sensor provided in the earphone can be a proximity type or a pressure type. Among them, the pressure type capacitance sensor is deformed by force after the earplug is inserted into the ear, resulting in a change in capacitance value, which can be used to detect the size of the contact force between the earplug and the human ear, thereby judging the degree of fit between the earplug and the human ear. The proximity type capacitance sensor can judge the distance relationship between the human ear and the earplug according to the mutual capacitance between the earplug and the human ear. In actual use, the output size of the proximity type capacitance sensor is only related to the fitting area (i.e., contact area) between the human ear and the earphone earplug. The proximity type capacitance sensor can also be used for earphone in-ear detection. When the in-ear detection is used, only the in-ear state of the earphone is judged, including two detection results of in-ear or not in-ear. 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. When the leakage of the earphone changes, it means that the contact area between the human ear and the earplug has changed. At this time, the output value of the capacitance sensor will also change. Therefore, when there is a correlation between the output value of the capacitance sensor and the leakage amount of the earphone, based on the correlation, the leakage amount of the earphone can be obtained by detecting the output value of the capacitance sensor.

[0056] Specifically, after detecting the output value of the capacitance sensor, the output value of the capacitance sensor is matched with a preset leakage mapping table to determine the target leakage of the earphone. The leakage mapping table can be obtained by experimental means. Based on the correlation between the output value of the capacitance sensor, the fitting area between the earplug and the human ear, and the leakage of the earphone, the fitting area between the earplug and the human ear is continuously changed by experimental means, and then the output value of the capacitance sensor and the leakage of the earphone are detected. The corresponding relationship between the output value of the capacitance sensor and the leakage of the earphone can be obtained, and a mapping table between the leakage of the earphone and the output value of the capacitance sensor can be established based on the corresponding relationship. After detecting the output value of the capacitance sensor, based on the leakage mapping table, the target leakage of the earphone corresponding to the output value of the capacitance sensor can be determined.

[0057] It is understandable that other types of capacitive sensors may be provided in the earplug of the earphone to achieve the same technical effect. Therefore, the type of the capacitive sensor is not specifically limited herein.

[0058] Furthermore, the refinement of step S20 further includes:

[0059] Step S201, determining a correspondence between the leakage amount of the earphone and the output value of the capacitance sensor according to the leakage amount mapping table;

[0060] Step S202: Calculate a target leakage amount of the earphone based on the corresponding relationship and the output value of the capacitive sensor.

[0061] When determining the target leakage amount of the earphone, the output value of the capacitance sensor is matched with a preset leakage amount mapping table. Specifically, the correspondence 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 correspondence and the output value of the capacitance sensor.

[0062] Step S30: performing leakage compensation on the output signal of the earphone according to the target leakage amount.

[0063] After determining the target leakage amount of the earphone, leakage compensation is performed on the output signal of the earphone according to the target leakage amount. The specific compensation method is to generate a compensation signal that is the same as the signal corresponding to the leakage amount of the earphone, and superimpose it on the output signal of the earphone, and perform leakage compensation on the output signal of the earphone, so that the signal received by the human ear is consistent with the output signal of the earphone.

[0064] Furthermore, the refinement of step S30 further includes:

[0065] Step S301, detecting a target output signal of the earphone, and generating a leakage compensation signal according to the target leakage amount;

[0066] Step S302: superimpose the leakage compensation signal onto the target output signal to perform leakage compensation on the target output signal.

[0067] When leakage compensation is performed on the output signal of the earphone according to the target leakage amount, the target output signal of the earphone is first detected to obtain a waveform corresponding to the output signal of the earphone. The target output signal is the output signal output by the earphone and expected to be received by the human ear. However, after the target output signal is output by the earphone, during the process of being transmitted to the human ear for reception, the signal output by the earphone may leak due to the loose fit between the earplug and the human ear, resulting in inconsistency between the signal actually received by the human ear and the signal output by the earphone, thereby affecting the user's auditory effect. Therefore, it is necessary to perform leakage compensation on the output signal of the earphone. Specifically, a leakage compensation signal having the same waveform as that corresponding to the target leakage amount is generated according to the target leakage amount of the earphone, and the leakage compensation signal is superimposed on the output signal of the earphone, thereby performing leakage compensation on the output signal of the earphone.

[0068] In this embodiment, a capacitive sensor is set in the wearing part of the earphone to detect the leakage 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; the output value of the capacitive sensor is matched with a preset leakage mapping table to determine the target leakage of the earphone; and the sound effect of the earphone is leak compensated according to the target leakage. The fitting area between the earphone and the human ear is determined by the output value of the capacitive sensor, and then the leakage of the earphone output signal is determined. The output signal that can be received by the human ear is compensated according to the leakage of the earphone output signal, which can ensure the consistency between the signal actually received by the human ear and the output signal of the earphone itself, thereby ensuring the sound quality of the earphone and improving the user experience.

[0069] Furthermore, based on the above-mentioned embodiment of the present invention, a second embodiment of the earphone leakage compensation method of the present invention is proposed.

[0070] Based on the above embodiment, in this embodiment, the earphone leakage compensation method further includes:

[0071] Step A10, when it is detected that the earphone is in the in-ear state, obtaining an analog output value of a capacitive sensor in the earphone;

[0072] This embodiment is a step before leakage compensation is performed on the output signal of the earphone in the above embodiment. Before leakage compensation is performed on the earphone, it is necessary to obtain an earphone leakage mapping table, that is, to determine the corresponding relationship between the output value of the capacitive sensor and the leakage amount of the earphone output signal. First, with the help of experimental means, when it is detected that the earphone is in the in-ear state in the simulated human ear, the output value of the capacitive sensor (hereinafter referred to as the simulated output value for distinction) is obtained. Among them, the simulated human ear used for the experiment can be a human ear model or a human ear that meets the experimental conditions, which is not limited here. Taking the human ear model as an example below, the detection of whether the earphone is in the in-ear state can be performed by comparing the output value of the capacitive sensor with a preset threshold 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 can be obtained once every preset time length, or it can be obtained when the user triggers the corresponding acquisition instruction, which is not specifically limited here.

[0073] Step A20, detecting a simulated leakage amount of an output signal of the earphone, and saving the simulated output value and the simulated leakage amount as a set of test values;

[0074] After obtaining the output value of the capacitance sensor, the leakage amount of the earphone under the output value of the capacitance sensor is detected (hereinafter referred to as simulated leakage amount for distinction), and then the obtained analog output value of the capacitance sensor and the analog leakage amount of the earphone are saved as a set of test values.

[0075] Furthermore, the refinement of step A20 further includes:

[0076] Step B1, using the sound effect detection device in the simulated human ear to detect the first sound effect information received by the simulated human ear;

[0077] Step B2, obtaining second sound effect information output by the earphone, and comparing the first sound effect information with the second sound effect information to determine the simulated leakage amount of the output signal of the earphone.

[0078] The simulated human ear used in the experiment is provided with a sound effect detection device, which can be used to detect the sound effect signal received by the human ear. The sound effect detection device is used to detect the signal received by the human ear, i.e., the first sound effect information, at the receiving end of the simulated human ear, and then the output signal of the earphone is obtained. The second sound effect information output by the earphone is determined based on the output signal, and the obtained first sound effect information is compared with the second sound effect information output by the earphone to determine the difference between the signal received by the human ear and the output signal of the earphone, thereby determining the leakage amount of the output signal of the earphone.

[0079] Step A30, when it is detected 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 no longer changes;

[0080] After saving a set of test values, the fitting area between the earplug of the earphone and the simulated human ear is adjusted. It can be known that the fitting area between the earplug of the earphone and the human ear determines the output value of the capacitive sensor. When the capacitive sensor is a proximity type, when the fitting area changes, the output value of the capacitive sensor also changes accordingly. When the capacitive sensor is a pressure type, when the fitting area changes, the pressure exerted by the human ear on the earplug changes accordingly, thereby causing the output value of the capacitive sensor to change. When the fitting area between the earplug and the human ear changes, the output value of the capacitive sensor will change accordingly. When the output value of the capacitive sensor changes, the simulated leakage amount of the corresponding earphone is reacquired and saved. Further, when adjusting the fitting area between the earplug and the simulated human ear, it can be adjusted from large to small, that is, from the earplug and the simulated human ear are completely fitted, gradually reduce the fitting area between the earplug and the simulated human ear; it can also be adjusted from small to large, that is, from the earplug just in the ear state, gradually increase the fitting area between the ear and the human ear until the earplug and the human ear are completely fitted. Each time the fitting area between the earplug and the human ear is adjusted, the simulated leakage of the earphone is detected once under the adjusted analog output value of the capacitive sensor, and then saved as a set of test values ​​until the leakage of the earphone no longer changes, which means that the earplug of the earphone and the simulated human ear are now in a state of complete fit or no contact.

[0081] Step A40: establishing a leakage mapping table of the earphone according to the stored test value, wherein the leakage mapping table includes a corresponding relationship between the output value of the capacitive sensor and the leakage amount of the earphone.

[0082] A leakage mapping table of the earphone is established using the saved test values, wherein the established leakage mapping table represents the correspondence between the output value of the capacitive sensor and the leakage amount of the earphone. Therefore, based on the leakage mapping table, when the output value of the capacitive sensor is obtained, the corresponding earphone leakage amount can be obtained.

[0083] Furthermore, the refinement of step A40 further includes:

[0084] Step C1, fitting the saved test value to determine the corresponding relationship between the simulated output value and the simulated leakage amount;

[0085] Step C2: establishing a leakage mapping table of the earphone according to the corresponding relationship.

[0086] After obtaining the test value, the saved test value is fitted to determine the corresponding relationship between the output value of the capacitance sensor and the leakage amount of the earphone, and a leakage amount mapping table of the earphone is established based on the corresponding relationship. Therefore, the established leakage mapping table contains the corresponding relationship between the output value of the capacitance sensor and the leakage amount.

[0087] In this embodiment, by determining the correspondence between the output value of the capacitance sensor and the leakage amount of the earphone, a mapping table of the correspondence between the output value of the capacitance sensor and the leakage amount of the earphone is established. When the output value of the capacitance sensor is obtained according to the fitting area between the wearing part of the earphone and the human ear, the corresponding leakage amount of the earphone can be determined based on the mapping table, so that the output signal of the earphone can be leakage compensated.

[0088] In addition, refer to Figure 4 The embodiment of the present invention further provides an earphone leakage compensation device, the earphone leakage compensation device comprising:

[0089] A capacitance detection module 10, used to detect the output value of the capacitance sensor, wherein the output value of the capacitance sensor is determined by the fitting area between the wearing part of the earphone and the human ear;

[0090] A leakage detection module 20, used to match the output value of the capacitive sensor with a preset leakage mapping table to determine a target leakage amount of the earphone;

[0091] The leakage compensation module 30 is used to perform leakage compensation on the output signal of the earphone according to the target leakage amount.

[0092] Optionally, the leakage detection module 20 is further used for:

[0093] Determining a correspondence between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table;

[0094] A target leakage amount of the earphone is calculated based on the corresponding relationship and the output value of the capacitance sensor.

[0095] Optionally, the leakage compensation module 30 is further used for:

[0096] detecting a target output signal of the earphone, and generating a leakage compensation signal according to the target leakage amount;

[0097] The leakage compensation signal is superimposed on the target output signal to perform leakage compensation on the output signal of the earphone.

[0098] Optionally, the earphone leakage compensation device further includes an analog detection module, configured to:

[0099] When it is detected that the earphone is in an in-ear state in a simulated human ear, an analog output value of a capacitive sensor in the earphone is obtained;

[0100] Detecting a simulated leakage amount of an output signal of the earphone, and saving the simulated output value and the simulated leakage amount as a set of test values;

[0101] When it is detected 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 no longer changes;

[0102] A leakage mapping table of the earphone is established according to the stored test values, wherein the leakage mapping table includes a corresponding relationship between the output value of the capacitive sensor and the leakage amount of the earphone.

[0103] Optionally, the simulation detection module is further used to:

[0104] Using the sound effect detection device in the simulated human ear to detect the first sound effect information received by the simulated human ear;

[0105] The second sound effect information output by the earphone is obtained, and the first sound effect information is compared with the second sound effect information to determine the simulated leakage amount of the output signal of the earphone.

[0106] Optionally, the simulation detection module is further used to:

[0107] Fitting the saved test value to determine the corresponding relationship between the simulated output value and the simulated leakage amount;

[0108] A leakage amount mapping table of the earphone is established according to the corresponding relationship.

[0109] In addition, an embodiment of the present invention further provides a storage medium, on which a headphone leakage compensation program is stored. When the headphone leakage compensation program is executed by a processor, the operations in the headphone leakage compensation method provided in the above embodiment are implemented.

[0110] In addition, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the operations in the earphone leakage compensation method provided in the above embodiment.

[0111] The various embodiments of the device, computer program product and storage medium of the present invention may refer to the various embodiments of the headphone leakage compensation method of the present invention, which will not be described in detail here.

[0112] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0113] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. The device embodiment described above is only illustrative, and the units described as separate components may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the present invention. Those of ordinary skill in the art can understand and implement it without paying creative work.

[0114] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the headphone leakage compensation method described in each embodiment of the present invention.

[0116] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A headphone leakage compensation method, applied to a headphone, characterized in that: The earphone comprises a wearing part, in which a capacitive sensor is provided, 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 fitting area between the wearing portion of the earphone and the human ear, and the output value of the capacitive sensor is positively correlated or negatively correlated with the fitting area; Matching the output value of the capacitance sensor with a preset leakage mapping table to determine a target leakage amount of the earphone; Performing leakage compensation on the output signal of the earphone according to the target leakage amount; The leakage mapping table is determined according to the analog output value of the capacitive sensor, the fitting area between the earphone and the simulated human ear, and the simulated leakage of the earphone.

2. The earphone leakage compensation method according to claim 1, characterized in that: The step of performing leakage compensation on the output signal of the earphone according to 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; The leakage compensation signal is superimposed on the target output signal to perform leakage compensation on the output signal of the earphone.

3. The earphone leakage compensation method according to claim 1, characterized in that: The step of matching the output value of the capacitance sensor with a preset leakage amount mapping table to determine the target leakage amount of the earphone comprises: Determining a correspondence between the leakage amount of the earphone and the output value of the capacitive sensor according to the leakage amount mapping table; A target leakage amount of the earphone is calculated based on the corresponding relationship and the output value of the capacitance sensor.

4. The earphone leakage compensation method according to claim 1, characterized in that: The output value of the capacitive sensor is determined by the fitting area between the wearing portion of the earphone and the human ear, including: The output value of the capacitive sensor increases as the bonding area increases; Alternatively, the output value of the capacitive sensor decreases as the contact area increases.

5. The earphone leakage compensation method according to claim 1, characterized in that: The earphone leakage compensation method further includes: When it is detected that the earphone is in an in-ear state in a simulated human ear, an analog output value of a capacitive sensor in the earphone is obtained; Detecting a simulated leakage amount of an output signal of the earphone, and saving the simulated output value and the simulated leakage amount as a set of test values; When it is detected 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 no longer changes; A leakage mapping table of the earphone is established according to the stored test values, wherein the leakage mapping table includes a corresponding relationship between the output value of the capacitive sensor and the leakage amount of the earphone.

6. The earphone leakage compensation method according to claim 5, characterized in that: The simulated human ear is provided with a sound effect detection device, and the step of detecting the simulated leakage amount of the output signal of the earphone comprises: Using the sound effect detection device in the simulated human ear to detect the first sound effect information received by the simulated human ear; The second sound effect information output by the earphone is obtained, and the first sound effect information is compared with the second sound effect information to determine the simulated leakage amount of the output signal of the earphone.

7. The earphone leakage compensation method according to claim 5, characterized in that: The step of establishing the leakage mapping table of the earphone according to the stored test values ​​comprises: Fitting the saved test value to determine the corresponding relationship between the simulated output value and the simulated leakage amount; A leakage amount mapping table of the earphone is established according to the corresponding relationship.

8. An earphone leakage compensation device, characterized in that: The earphone leakage compensation device comprises: A capacitance detection module, used to detect an output value of a capacitance sensor, wherein the output value of the capacitance sensor is determined by a fitting area between the wearing portion of the headset and the human ear, and the output value of the capacitance sensor is positively correlated or negatively correlated with the fitting area; A leakage detection module, used to match the output value of the capacitive sensor with a preset leakage amount mapping table to determine a target leakage amount of the earphone; A leakage compensation module, used for performing leakage compensation on the output signal of the earphone according to the target leakage amount; The leakage mapping table is determined according to the analog output value of the capacitive sensor, the fitting area between the earphone and the simulated human ear, and the simulated leakage of the earphone.

9. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and an earphone leakage compensation program stored in the memory and executable on the processor, wherein the earphone leakage compensation program implements the steps of the earphone leakage compensation method according to any one of claims 1 to 7 when executed by the processor.

10. A storage medium, characterized in that: The storage medium stores an earphone leakage compensation program, and when the earphone leakage compensation program is executed by the processor, the steps of the earphone leakage compensation method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for improving sound quality of headset and mobile terminal

    CN105246000A

  • Dynamic audio parameter adjustment using touch sensing

    US20100246855A1