Earphone noise reduction compensation method, earphone and storage medium

The computer program processes the noise reduction parameters, ambient audio signals and fitting parameters of the headphones, and calculates the compensation noise reduction parameters, which solves the problem of the unsatisfactory effect of the existing headphone noise reduction technology in different scenarios and wearing situations, and improves the adaptive noise reduction capability and user experience of the headphones.

CN119996884APending Publication Date: 2025-05-13JIANGXI RUISHENG ELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411982071.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing headphone noise reduction technology is not ideal when facing different usage scenarios and user ear canal shapes, and the existing compensation method is difficult to adapt to the variable usage scenarios of headphones.

Method used

By obtaining the noise reduction parameters of the current scene, the ambient audio signal, the leaked audio signal and the fitting parameters of the headphones, the difference noise reduction and compensation noise reduction parameters are calculated to suit different usage scenarios and wear conditions.

Benefits of technology

It improves the noise reduction effect of the headphones in different usage scenarios, improves the user experience, and enhances the adaptive active noise reduction capability of the headphones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996884A_ABST
    Figure CN119996884A_ABST
Patent Text Reader

Abstract

The invention discloses an earphone noise reduction compensation method, an earphone and a storage medium, and the method comprises the steps: obtaining a target noise reduction amount and a judgment noise reduction amount based on a current noise reduction parameter corresponding to a current scene; obtaining a current noise reduction amount according to the environment audio signal outside the ear and the leakage audio signal inside the ear; obtaining a difference noise reduction amount according to the target noise reduction amount and the current noise reduction amount; judging whether the difference noise reduction amount meets the requirement of judging the noise reduction amount or not; if not, acquiring a fitting parameter of current wearing of the earphone; and acquiring a compensation noise reduction parameter based on the environment audio signal, the leakage audio signal and the fitting parameter. Compared with the prior art, the method has the advantages that the compensation noise reduction parameter with higher adaptability can be obtained, the requirements of the earphone in different use scenes can be better met, the self-adaptive active noise reduction effect of the earphone is improved, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of headphone noise reduction, and in particular to a headphone noise reduction compensation method, a headphone and a storage medium. Background Art

[0002] With the rapid development of electronic technology, wireless headphones have become an indispensable item for people's daily travel. When faced with various relatively noisy environments, people usually choose to wear wireless headphones to reduce the impact of environmental noise. Wearing appropriate active noise-cancelling headphones can relatively effectively suppress external noise. However, in actual use, due to differences in the shape of the user's ear canal or the aging of the headphones, there may be a relatively low fit between the headphones and the user's ear canal, which leads to a relatively unsatisfactory noise reduction effect of the headphones. The existing noise reduction leakage compensation method cannot cope well with the changing usage scenarios of the headphones.

[0003] In view of this, it is necessary to provide a method for headphone noise reduction compensation, a headphone and a storage medium to solve the above problems. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a method for headphone noise reduction compensation, headphones and a storage medium, which aim to solve the technical problems of low adaptability of headphone noise reduction compensation, low adaptability to multiple scenarios, and relatively poor active noise reduction effect.

[0005] To achieve the above-mentioned purpose, a first aspect of the present invention provides a method for headphone noise reduction compensation, the steps of which include:

[0006] Based on the current noise reduction parameters corresponding to the current scene, a target noise reduction amount and a determined noise reduction amount are obtained;

[0007] Obtain the current noise reduction amount based on the ambient audio signal outside the ear and the leaked audio signal inside the ear;

[0008] According to the target noise reduction amount and the current noise reduction amount, a difference noise reduction amount is obtained;

[0009] Determine whether the difference noise reduction amount meets the requirements for determining the noise reduction amount;

[0010] If not, obtain the current fitting parameters of the earphones;

[0011] Based on the ambient audio signal, the leakage audio signal and the fitting parameters, the compensation noise reduction parameters are obtained.

[0012] In a preferred embodiment, the step of obtaining the fitting parameters of the earphone currently being worn includes:

[0013] Obtain feedback values ​​outputted by at least three multi-channel sensors preset on the headset;

[0014] Based on the feedback value and the preset weight coefficient, a reference value is obtained;

[0015] According to the reference value, the corresponding fitting parameters are obtained.

[0016] In a preferred embodiment, the step of obtaining corresponding fitting parameters according to the reference value includes:

[0017] Obtaining a preset reference value interval within which the reference value falls;

[0018] Obtain the preset data corresponding to the reference interval and obtain the fitting parameters.

[0019] In a preferred embodiment, the step of obtaining the compensation noise reduction parameter based on the ambient audio signal, the leakage audio signal and the fitting parameter includes:

[0020] Determining whether the fitting parameter is within a preset comparison value range;

[0021] If yes, then obtain the recognition weight data corresponding to the current scene and the sound pressure level of the ambient audio;

[0022] According to the sound pressure level and the fitting parameter, a corresponding first transfer function is obtained;

[0023] Based on the leakage audio signal, the recognition weight data and the first transfer function, a compensation noise reduction parameter is obtained.

[0024] In a preferred embodiment, the step of obtaining the corresponding first transfer function according to the sound pressure level and the fitting parameter includes:

[0025] According to the fit parameter and the sound pressure level, a first correlation value and a second correlation value are obtained respectively;

[0026] Obtaining a product of the first correlation value and the second correlation value to obtain a third correlation value;

[0027] Accumulating the first correlation value, the second correlation value and the third correlation value to obtain a comprehensive correlation value;

[0028] Based on the integrated correlation value, a corresponding first transfer function is obtained.

[0029] In a preferred embodiment, the step of determining whether the fitting parameter is within a preset comparison value range further includes:

[0030] If not, determining whether the fitting parameter is greater than a preset first comparison value;

[0031] If yes, obtaining the recognition weight data corresponding to the preset second transfer function and the current scene;

[0032] Based on the leakage audio signal, the recognition weight data and the second transfer function, a compensation noise reduction parameter is obtained.

[0033] In a preferred embodiment, the step of determining whether the fitting parameter is greater than a preset first comparison value further includes:

[0034] If not, a reminder message for adjusting the wearing is output.

[0035] In a preferred embodiment, based on the current noise reduction parameters corresponding to the current scene, before the steps of obtaining the target noise reduction amount and determining the noise reduction amount, the steps include:

[0036] Get the current location information, current time information and ambient audio spectrum of the headset;

[0037] According to the current location information, key location information is obtained;

[0038] According to the key position information and the current time information, the recognition weight data is obtained;

[0039] Based on the ambient audio spectrum and recognition weight data, obtain the matching value corresponding to the scene determination model;

[0040] Based on the matching value, the current noise reduction parameters are obtained.

[0041] A second aspect of the present invention provides a headset, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned methods for headphone noise reduction compensation are implemented.

[0042] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for headphone noise reduction compensation are implemented.

[0043] The beneficial effects of the present invention are as follows: based on the comparison result between the determined noise reduction amount and the differential noise reduction amount, it is divided whether the headphones need noise reduction compensation in different scenarios; when the differential noise reduction amount does not meet the determined noise reduction amount, combined with the fitting parameters of the headphones, the noise reduction compensation modes corresponding to the different fitting parameters are divided to obtain more adaptable compensation noise reduction parameters, which can better adapt to the needs of the headphones in different usage scenarios, thereby improving the effect of the headphones' adaptive active noise reduction and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The first flowchart of the method for headphone noise reduction compensation disclosed in an embodiment of the present invention is shown.

[0045] Figure 2 This is a second flow chart of the headphone noise reduction compensation method disclosed in an embodiment of the present invention.

[0046] Figure 3 This is a schematic diagram of a third flow chart of the headphone noise reduction compensation method disclosed in an embodiment of the present invention.

[0047] Figure 4 This is a schematic diagram of a fourth flow chart of the headphone noise reduction compensation method disclosed in an embodiment of the present invention.

[0048] Figure 5 This is a fifth flow chart of the headphone noise reduction compensation method disclosed in an embodiment of the present invention.

[0049] Figure 6 This is a schematic diagram of the module structure of the earphone disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In the present invention, the terms "disposed", "provided with" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection, or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be an internal connection between two devices, elements or components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0051] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0052] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those skilled in the art, the specific meanings of these terms in the present invention can be understood according to specific circumstances.

[0053] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0054] The following is the content of the first aspect of the present invention:

[0055] Please refer to Figure 1 In this embodiment, the method for headphone noise reduction compensation includes:

[0056] S1. Obtaining a target noise reduction amount and determining a noise reduction amount based on a current noise reduction parameter corresponding to a current scene;

[0057] S2. Obtaining a current noise reduction amount according to an ambient audio signal outside the ear and a leaked audio signal inside the ear;

[0058] S3, obtaining a difference noise reduction amount according to the target noise reduction amount and the current noise reduction amount;

[0059] The earphones mentioned in this embodiment are earphones with active noise reduction function, which can be wireless earphones or wired earphones, and include a processor and an audio output unit. The processor can generate an audio signal with an opposite phase to the ambient noise through the obtained noise reduction parameters, thereby offsetting the external ambient noise. The ambient audio signal can be obtained through the external ear microphone on the earphone, and the leakage audio signal can be obtained through the in-ear microphone of the earphone; specifically, the external ear microphone continuously collects the noise information of the external environment of the earphone, and then converts it into the ambient audio signal; the in-ear microphone continuously collects the noise information inside the ear cavity, and then converts it into the leakage audio signal.

[0060] Among them, the current noise reduction parameters are data for generating corresponding noise reduction audio after the headphones identify and determine the current scene. The current noise reduction parameters include noise reduction filter parameters and acoustic EQ parameters. After obtaining the current noise reduction parameters, the processor of the headphones can generate an audio signal with an opposite phase to the ambient noise based on the current noise reduction parameters, thereby offsetting the external ambient noise.

[0061] The target noise reduction amount is the degree of noise reduction required after the headset recognizes the ambient audio of the current scene based on the current noise reduction parameters. The current noise reduction amount is the degree of noise reduction after the headset actually performs noise reduction based on the current noise reduction parameters. The noise reduction fluctuation degree allowed when the noise reduction amount is determined to be the target noise reduction amount, that is, the allowable degree of difference between the target noise reduction amount and the current noise reduction amount. The differential noise reduction amount is the degree of difference between the target noise reduction amount and the current noise reduction amount.

[0062] It is easy to understand that the noise reduction requirements of different usage scenarios are different. The noise reduction required for relatively noisy usage scenarios is greater than that for relatively quiet usage scenarios, that is, the degree of noise reduction is different. To ensure the effect of active noise reduction, different noise reduction amounts need to correspond to different determined noise reduction amounts, that is, the determined noise reduction amount corresponding to a larger noise reduction amount also needs to be relatively greater than the determined noise reduction amount corresponding to a smaller noise reduction amount.

[0063] The amount of noise reduction can be a comparison of a certain feature between sound signals, or a comprehensive comparison of multiple features between sound signals. That is, the target noise reduction amount, the determined noise reduction amount, the current noise reduction amount and the difference noise reduction amount are all quantitative parameters for the same sound feature or multiple identical sound features of the audio. Specifically, it can be determined by one or more of the audio energy, audio amplitude, audio frequency domain power, etc., and can be selected according to actual design needs.

[0064] It is easy to understand that after determining the selected sound features, based on the selected sound features, the corresponding target noise reduction amount and the determined noise reduction amount are obtained through the current noise reduction parameters. The determined noise reduction amount can be obtained in advance through real-scene testing. Specifically, the current noise reduction parameters, the target noise reduction amount and the determined noise reduction amount can be in one-to-one correspondence, that is, the current noise reduction parameters are pre-bound with the target noise reduction amount and the determined noise reduction amount. It can also be obtained by classification, that is, after obtaining the current noise reduction parameters, the corresponding target noise reduction amount and the determined noise reduction amount are obtained according to the interval in which the current noise reduction parameters fall. After determining the selected sound features, the current noise reduction amount can be obtained by comparing the ambient audio signal outside the ear with the leakage audio signal inside the ear, and the differential noise reduction amount can be obtained by comparing the target noise reduction amount with the current noise reduction amount.

[0065] S4, determining whether the difference noise reduction amount meets the requirements for determining the noise reduction amount;

[0066] S5. If not, obtaining the fitting parameters of the earphone currently being worn;

[0067] S6. Obtain compensation noise reduction parameters based on the ambient audio signal, the leakage audio signal and the fitting parameters.

[0068] Among them, the fitting parameter refers to the overall fit between the earphone and the user's ear cavity after the user wears the earphone. The size of the fitting parameter will affect the active noise reduction effect of the earphone.

[0069] It is easy to understand that after obtaining the difference noise reduction amount and the determined noise reduction amount, by comparing whether the difference noise reduction amount meets the requirements of the determined noise reduction amount, the situation of whether the headset starts noise reduction compensation in the current scene can be divided. When the difference noise reduction amount meets the requirements of the determined noise reduction amount, it means that the overall effect of the headset's active noise reduction is relatively good, and no additional noise reduction compensation is required. When the difference noise reduction amount does not meet the requirements of the determined noise reduction amount, it means that the overall effect of the headset's active noise reduction is relatively poor, and noise reduction compensation is required.

[0070] In the actual use of headphones, there are factors that affect the active noise reduction effect of headphones, such as the sound intensity of ambient audio, the wearing condition of headphones, etc. Among these factors, the sound pressure level of ambient audio and the wearing condition of headphones have a more significant impact on the active noise reduction effect of headphones. After determining that the difference noise reduction amount does not meet the determined noise reduction amount, the noise reduction compensation situation can be further divided in combination with the current fit of the headphones. Specifically, after obtaining the fit parameters of the current wear of the headphones, the noise reduction compensation mode can be divided based on the fit parameters, and then combined with the ambient audio signal and the leakage audio signal, the required compensation noise reduction parameters can be determined.

[0071] It can be understood that based on the comparison results of the judged noise reduction amount and the difference noise reduction amount, it is divided into situations where the headphones need noise reduction compensation in different scenarios; when the difference noise reduction amount does not meet the judged noise reduction amount, combined with the fitting parameters of the headphones, the noise reduction compensation modes corresponding to different fitting parameters are divided to obtain more adaptable compensation noise reduction parameters, which can better adapt to various situations of the headphones in different usage scenarios, thereby improving the effect of the headphones' adaptive active noise reduction and improving the user experience.

[0072] For further information, please refer to Figure 2 In one embodiment, step S5 of obtaining the fitting parameters of the earphone currently being worn includes:

[0073] S51, obtaining feedback values ​​respectively output by at least three multi-channel sensors preset on the headset;

[0074] S52, obtaining a reference value based on the feedback value and a preset weight coefficient;

[0075] S53: Obtain corresponding fitting parameters according to the reference value.

[0076] Among them, the multi-channel sensor can be used to detect the relevant feedback parameters generated by the interaction between the earphone and the user's ear cavity, so as to output the relevant parameters of wearing at the position of the multi-channel sensor. Depending on the number of channels triggered, the feedback value output by the multi-channel sensor is also different. The type of the multi-channel sensor can be a multi-channel capacitive sensor or a multi-channel pressure sensor, which can reflect the fit of the earphone by detecting the contact or squeezing between the user's ear cavity and the earphone. Preferably, the multi-channel sensor is a multi-channel capacitive sensor.

[0077] The layout position of the multi-channel sensor can be selected according to the actual shape of the headset. After determining the shape of the headset, the important fitting area where the headset fits the user's ear cavity can be determined based on the wearing test, and the weight coefficient of each important fitting area can be determined based on the actual wearing test, and then the multi-channel sensor can be set on the important fitting area. It is easy to understand that the number of multi-channel sensors is at least three, so more than three important fitting areas need to be selected. Preferably, the number of multi-channel sensors is three, which ensures the accuracy of the feedback on the wearing condition of the headset while taking into account the production cost of the headset.

[0078] It is understandable that the importance of different positions on the earphones fitting the user's ear cavity varies, that is, the degree of influence of different positions on the overall fit of the earphones is different. Therefore, after obtaining the feedback value output by the relevant multi-channel sensor, the corresponding weight coefficient should be combined to obtain the corresponding reference value to ensure the accuracy of the obtained fit parameters.

[0079] In a preferred embodiment, the multi-channel sensor is a multi-channel capacitive sensor, and the number of the multi-channel capacitive sensors is three. After the user wears the earphone, the multi-channel capacitive sensor outputs a corresponding feedback value according to the fit between the important fit area where the multi-channel capacitive sensor is located and the ear cavity of the user. Then, the weight coefficient corresponding to each feedback value is obtained, and then based on the weight accumulation relationship, the reference value can be calculated.

[0080] Furthermore, the method of obtaining the fitting parameters of the earphone currently worn by using the reference value may adopt a one-to-one correspondence method or a divided acquisition method. In a preferred embodiment, step S53 of obtaining the corresponding fitting parameters according to the reference value includes:

[0081] Obtaining a preset reference value interval within which the reference value falls;

[0082] Obtain the preset data corresponding to the reference interval and obtain the fitting parameters.

[0083] There is a corresponding relationship between the preset reference value interval and the reference value and the fitting parameter. By determining the relationship between the obtained reference value and each reference value interval, obtaining the reference value interval in which the reference value falls, and finally obtaining the data corresponding to the reference value interval, the fitting parameter can be obtained.

[0084] For further information, please refer to Figure 3 In one embodiment, step S6 of obtaining the compensation noise reduction parameter based on the ambient audio signal, the leakage audio signal and the fitting parameter includes:

[0085] S61, determining whether the fitting parameter is within a preset comparison value range;

[0086] S62: If yes, obtain the recognition weight data corresponding to the current scene and the sound pressure level of the ambient audio;

[0087] S63, acquiring a corresponding first transfer function according to the sound pressure level and the fitting parameter;

[0088] S64: Obtain compensation noise reduction parameters based on the leakage audio signal, the recognition weight data and the first transfer function.

[0089] Among them, the comparison value interval is the interval range of the fitting parameters corresponding to the relatively unsatisfactory fit between the earphone and the ear cavity. The sound pressure level indicates the volume of the ambient noise. The greater the sound pressure level, the greater the impact on the active noise reduction effect of the earphone. The first transfer function is the transfer function of the pre-measured sound transmitted to the in-ear microphone according to the sound pressure level of the ambient audio and the change of the fitting parameters when the earphone is not worn ideally. The recognition weight data is a pre-set audio recognition weight determined according to the audio characteristics of the current scene.

[0090] When the earphones are not worn ideally, the sound pressure level of the ambient audio noise will significantly increase the effect of the active noise reduction effect of the earphones, and the sound pressure level of the ambient noise and the fitting parameters will work together to affect the noise transfer function. Based on the above situation, after determining that the fitting parameters are within the comparison value interval, the recognition weight data corresponding to the current scene and the sound pressure level of the ambient audio are obtained, and then the first transfer function corresponding to the current situation can be determined by the sound pressure level of the current scene and the fitting parameters of the earphones currently worn, and then the current corresponding compensation noise reduction coefficient is obtained based on the leakage audio signal, the recognition weight data and the first transfer function. It can be understood that based on the recognition weight data and the first transfer function obtained for the current scene and the current wearing situation, more adaptable compensation noise reduction parameters can be obtained to better adapt to the various situations of the earphones in different usage scenarios, thereby improving the effect of the earphones' adaptive active noise reduction and improving the user experience.

[0091] Please refer to Figure 4 In one embodiment, according to the sound pressure level and the fitting parameter, step S63 of obtaining the corresponding first transfer function includes:

[0092] S631, obtaining a first correlation value and a second correlation value respectively according to the fit parameter and the sound pressure level;

[0093] S632, obtaining a product of the first correlation value and the second correlation value to obtain a third correlation value;

[0094] S633, accumulating the first correlation value, the second correlation value and the third correlation value to obtain a comprehensive correlation value;

[0095] S634: Obtain a corresponding first transfer function based on the comprehensive correlation value.

[0096] Among them, the first correlation value is a reflection value of the influence of the sound pressure level of the current scene environment audio on the first transfer function. The second correlation value is a reflection value of the influence of the fitting parameters of the current earphone on the first transfer function. The third correlation value is a reflection value of the effect of the fitting parameters on the sound pressure level, that is, the less ideal the fit between the earphone and the ear cavity, the greater the influence of the sound pressure level on the first transfer function. The comprehensive correlation value is a comprehensive reflection of the influence of the fitting parameters and the sound pressure level on the first transfer function. The aforementioned first correlation value and second correlation value can be designed after actual detection.

[0097] The method of obtaining the first related value and the second related value can adopt a one-to-one correspondence method or a classified acquisition method. Preferably, the classified acquisition method is adopted, and specifically, the fitting parameter is used as an example for explanation. Several fitting parameter intervals are pre-set, and the range size of the fitting parameter interval can be selected and set according to actual design requirements. Each fitting parameter interval corresponds to a predetermined first related value. After obtaining the fitting parameter, the first related value corresponding to the fitting parameter interval can be obtained by determining the fitting parameter interval into which the fitting parameter falls. Similarly, the second related value is obtained in the aforementioned manner.

[0098] During the use of headphones, the sound pressure level of the ambient audio and the fit of the headphones are two important factors that affect the active noise reduction effect of the headphones. By calculating the sum of the first correlation value, the second correlation value and the third correlation value, the comprehensive correlation value is obtained, and the overall influence of the sound pressure level and the fit parameters on the first transfer function can be determined. Then, the corresponding first transfer function can be obtained through the comprehensive correlation value. Specifically, the method of obtaining the first transfer function through the comprehensive correlation value is the same as the method of obtaining the first correlation value. A one-to-one correspondence method can be used, or a classification acquisition method can be used, which will not be repeated here. It can be understood that the sound pressure level of the ambient audio and the fit parameters of the headphones are used to ensure the adaptability of the first transfer function obtained under different conditions, thereby improving the effect of noise reduction compensation and improving the user experience.

[0099] For further information, please refer to Figure 3 In one embodiment, step S61 of determining whether the fitting parameter is within a preset comparison value range further includes:

[0100] S65, if not, determining whether the fitting parameter is greater than a preset first comparison value;

[0101] S66: If yes, obtain recognition weight data corresponding to the preset second transfer function and the current scene;

[0102] S67: Obtain compensation noise reduction parameters based on the leakage audio signal, the recognition weight data and the second transfer function.

[0103] S68: If not, output a reminder message for adjusting the wearing.

[0104] Among them, the first comparison value is the upper limit of the comparison value interval. The second transfer function is the transfer function of the pre-measured sound transmitted to the microphone in the ear when the earphone is relatively ideally worn. The prompt information can be an audio prompt information output by the earphone, or a vibration prompt information issued by a terminal connected to the earphone or the earphone, or a pop-up prompt message output by a terminal connected to the earphone, or a light prompt information output by the earphone or earphone box. It can be selected according to the design requirements and is not limited here.

[0105] After determining that the fit parameter is not within the preset comparison value interval, it means that the earphone may be worn relatively ideally or not properly, so it is necessary to further divide the earphone wearing conditions. It is easy to understand that after determining that the fit parameter is not within the comparison value interval, by comparing the fit parameter with the first comparison value, it is possible to distinguish whether the earphone is in a relatively ideal wearing state or a particularly poor wearing state.

[0106] When it is determined that the fit parameter is greater than the first comparison value, it means that the current wearing condition of the headset is relatively ideal, and the fit between the headset and the user's ear cavity has a relatively small impact on the active noise reduction effect of the headset; when the headset is worn relatively reasonably, the sound pressure level of the ambient audio has a relatively weaker impact on the active noise reduction effect of the headset, so the preset second transfer function and the recognition weight data corresponding to the current scene can be directly obtained, and then the corresponding compensation noise reduction parameters can be obtained based on the leaked audio signal, the recognition weight data and the second transfer function. It can be understood that when it is determined that the current wearing condition of the headset is relatively ideal, the preset second transfer function is directly obtained, which reduces the occupation of the headset chip computing power to a certain extent and reduces the loss of the headset battery.

[0107] When it is determined that the fitting parameter is not greater than the first comparison value, that is, the fitting parameter is neither within the comparison value interval nor greater than the first comparison value, it means that the current wearing of the earphone is particularly improper. At this time, compensatory noise reduction cannot play a good role. In order to reduce the power consumption of the earphone and the occupation of the computing power of the earphone chip, a prompt message can be output to prompt the user to put the earphone again, so as to improve the active noise reduction effect of the earphone and improve the user experience.

[0108] For further information, please refer to Figure 5 In a preferred embodiment, based on the current noise reduction parameters corresponding to the current scene, before the step S1 of obtaining the target noise reduction amount and determining the noise reduction amount, the following steps are included:

[0109] S10, obtaining the current position information, current time information and ambient audio spectrum of the headset;

[0110] Among them, the current position information of the headset can be the current position information with the headset as the positioning center, or it can be the current position information with the terminal device connected to the headset as the positioning center. The way of obtaining the current position information of the headset includes direct acquisition or indirect acquisition. Specifically, a positioning module can be set inside the headset, and the current position information of the headset can be directly obtained through the positioning module; it can also be obtained through a terminal device (such as a mobile phone, smart watch, etc.) with a positioning module set inside. After the headset and the terminal device establish a connection relationship, the current position information of the terminal device can be approximately equivalent to the current position information of the headset, thereby indirectly obtaining the current position information of the headset. It is easy to understand that in the daily use of the headset, the headset is mostly connected to the terminal device for use, and most terminal devices are equipped with a positioning module. Therefore, preferably, the current position information of the headset can be approximately equivalent to the current position information of the headset by obtaining the position information of the terminal device.

[0111] Similarly, the current time information can be obtained through the timing module set inside the headset, or through the timing module on the terminal device connected to the headset. The ambient audio spectrum is obtained by short-time Fourier transform of the ambient audio signal, and the ambient audio signal can be obtained through the collection microphone set on the headset. The collection microphone on the headset can obtain the sound signal of the environment in which the headset is located in real time, and can also collect the sound signal of the environment in which the headset is located within a preset period.

[0112] S20, obtaining key location information according to the current location information;

[0113] S30, obtaining recognition weight data according to key position information and current time information;

[0114] The key position information is based on the characteristic information obtained from the current position information of the headset, and can be used to reflect the characteristic conditions of the scene the headset is currently in. The recognition weight data is a focus parameter for identifying relevant characteristic information in the ambient audio spectrum.

[0115] In the daily use of headphones by users, the characteristics of the ambient audio corresponding to different usage scenarios and different time periods are different, and the human ear also has differences in the acquisition and recognition of ambient sounds. Therefore, when using ambient audio signals for scene recognition, it is necessary to focus on the feature recognition of the ambient audio spectrum. It is understandable that by using key position information and current time information, it is possible to determine the recognition focus of the ambient audio spectrum for the current scene of the headphones, and to more specifically identify the ambient audio signals of the current scene of the headphones, thereby improving the accuracy of identifying the usage scenario of the headphones.

[0116] S40, obtaining a matching value corresponding to the scene determination model based on the ambient audio spectrum and the recognition weight data;

[0117] S50: Obtain current noise reduction parameters based on the matching value.

[0118] Among them, the matching value is the numerical value obtained after comparing the ambient audio spectrum with the judgment scene model, and its numerical value represents the matching degree between the ambient audio spectrum and the judgment scene model. The larger the matching value, the higher the matching degree between the ambient audio spectrum and the judgment scene model. Conversely, the lower the matching degree between the ambient audio spectrum and the judgment scene model.

[0119] Specifically, the matching value can be calculated by a neural network algorithm model, such as CNN, RNN, Transformer algorithm model, etc. In a preferred embodiment, the matching value can be calculated by a Transformer algorithm model. Specifically, the ambient audio spectrum and the recognition weight data are input into the Transformer algorithm model. After obtaining the ambient audio spectrum, the ambient audio spectrum is truncated with a preset truncation length to obtain ambient audio spectrum sequence data. Based on the recognition weight data, feature extraction is performed on the ambient audio spectrum sequence data to obtain an ambient audio high-order feature map. After passing through a linear classifier, the matching value corresponding to each judgment scene model is calculated.

[0120] After obtaining the matching value of the judgment scene model, it is equivalent to obtaining the matching degree between the judgment scene model and the current scene of the headset, and the noise reduction parameters can be obtained by judging the specific situation of the matching value. Specifically, the maximum value in the matching value can be obtained, and then the noise reduction parameters can be obtained directly based on the judgment scene model corresponding to the maximum matching value; or the corresponding situation can be divided according to the judgment result of the matching value and the preset judgment condition, and then the noise reduction parameters can be obtained.

[0121] To summarize, the method for headphone noise reduction compensation provided by the present invention divides the situations in which the headphone needs to perform noise reduction compensation in different scenarios based on the comparison result between the determined noise reduction amount and the differential noise reduction amount; when the differential noise reduction amount does not meet the determined noise reduction amount, the noise reduction compensation modes corresponding to the different fitting parameters are divided in combination with the fitting parameters of the headphone to obtain compensation noise reduction parameters with higher adaptability, which can better adapt to the needs of the headphone in different usage scenarios, thereby improving the effect of the headphone's adaptive active noise reduction and improving the user experience.

[0122] The following is the content of the second aspect of the present invention:

[0123] The present invention provides an earphone, such as Figure 6As shown, the headset includes a memory 10, a processor 20, and a method program instruction 30 for headphone noise reduction compensation stored in the memory 10 and executable on the processor 20. When the method program instruction 30 for headphone noise reduction compensation is executed by the processor 20, the aforementioned method for headphone noise reduction compensation is implemented.

[0124] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is generally used to control the overall operation of the headset. In this embodiment, the processor is used to run program codes stored in a readable storage medium or process data.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course 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, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of various embodiments of the present invention.

[0126] The following is the content of the third aspect of the present invention:

[0127] The present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the headphone noise reduction compensation method are implemented.

[0128] The above is only a specific implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for headphone noise reduction compensation, characterized in that: include: Based on the current noise reduction parameters corresponding to the current scene, a target noise reduction amount and a determined noise reduction amount are obtained; Obtain the current noise reduction amount based on the ambient audio signal outside the ear and the leaked audio signal inside the ear; Obtaining a difference noise reduction amount according to the target noise reduction amount and the current noise reduction amount; Determining whether the difference noise reduction amount meets the requirement of the determined noise reduction amount; If not, obtain the current fitting parameters of the earphones; Based on the ambient audio signal, the leakage audio signal and the fitting parameter, a compensation noise reduction parameter is obtained.

2. The headphone noise reduction compensation method according to claim 1, characterized in that: The step of obtaining the fitting parameters of the earphone currently being worn comprises: Obtaining feedback values ​​respectively output by at least three multi-channel sensors preset on the headset; Based on the feedback value and a preset weight coefficient, a reference value is obtained; According to the reference value, the corresponding fitting parameter is obtained.

3. The headphone noise reduction compensation method according to claim 2, characterized in that: The step of obtaining corresponding fitting parameters according to the reference value comprises: Obtaining a preset reference value interval within which the reference value falls; The preset data corresponding to the reference interval is obtained to obtain fitting parameters.

4. The headphone noise reduction compensation method according to claim 1, characterized in that: The step of obtaining the compensation noise reduction parameter based on the ambient audio signal, the leakage audio signal and the fitting parameter comprises: Determining whether the fitting parameter is within a preset comparison value range; If yes, then obtain the recognition weight data corresponding to the current scene and the sound pressure level of the ambient audio; According to the sound pressure level and the fitting parameter, obtaining a corresponding first transfer function; A compensation noise reduction parameter is obtained based on the leakage audio signal, the recognition weight data and the first transfer function.

5. The headphone noise reduction compensation method according to claim 4, characterized in that: The step of acquiring the corresponding first transfer function according to the sound pressure level and the fitting parameter comprises: According to the fit parameter and the sound pressure level, respectively obtain a first correlation value and a second correlation value; Obtaining a product of the first correlation value and the second correlation value to obtain a third correlation value; Accumulating the first correlation value, the second correlation value and the third correlation value to obtain a comprehensive correlation value; Based on the comprehensive correlation value, a corresponding first transfer function is obtained.

6. The headphone noise reduction compensation method according to claim 4, characterized in that: The step of determining whether the fitting parameter is within a preset comparison value range also includes: If not, determining whether the fitting parameter is greater than a preset first comparison value; If yes, obtaining the recognition weight data corresponding to the preset second transfer function and the current scene; A compensation noise reduction parameter is obtained based on the leakage audio signal, the recognition weight data and the second transfer function.

7. The headphone noise reduction compensation method according to claim 6, characterized in that: The step of determining whether the fitting parameter is greater than a preset first comparison value further includes: If not, a reminder message for adjusting the wearing is output.

8. The headphone noise reduction compensation method according to claim 1, characterized in that: The step of obtaining the target noise reduction amount and determining the noise reduction amount based on the current noise reduction parameters corresponding to the current scene includes: Get the current location information, current time information and ambient audio spectrum of the headset; Obtaining key location information according to the current location information; Obtaining identification weight data according to the key position information and current time information; Based on the ambient audio spectrum and the recognition weight data, obtaining a matching value corresponding to the scene determination model; Based on the matching value, the current noise reduction parameter is obtained.

9. A headset comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the headphone noise reduction compensation method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the headphone noise reduction compensation method according to any one of claims 1 to 8 are implemented.