Gain optimization method of acoustic device, active noise reduction system and control method of active noise reduction system

By iteratively adjusting the gain of the microphone and speakers in the active noise reduction system and determining the optimal gain point based on the sound signal, the problem of poor noise reduction effect caused by mismatch in the sensitivity of the microphone and speakers is solved, and a better noise reduction effect is achieved.

CN119071710APending Publication Date: 2024-12-03NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411218645.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When the existing active noise reduction system is put into use, the noise reduction effect is poor due to the mismatch between the sensitivity of the microphone and speakers.

Method used

By obtaining the sound signal when the active noise reduction system is turned off and running, iteratively adjusting the gain of the microphone and speakers until the noise reduction amount meets the noise reduction conditions, the optimal gain point for each acoustic device is determined, and the active noise reduction system is optimized.

Benefits of technology

Even if the sensitivity of the microphone and speaker is different, the active noise reduction system can achieve satisfactory noise reduction effect, improving the system's noise reduction performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071710A_ABST
    Figure CN119071710A_ABST
Patent Text Reader

Abstract

The invention provides a gain optimization method of an acoustic device, an active noise reduction system and a control method of the active noise reduction system, the gain optimization method of the acoustic device is applied to the active noise reduction system, the acoustic device of the active noise reduction system comprises a microphone and a loudspeaker, and the gain optimization method comprises the steps that in the process of closing the active noise reduction system, the active noise reduction system is switched off; acquiring a first sound signal of the measurement point location; in the operation process of the active noise reduction system, acquiring a second sound signal of the measurement point location; iteratively adjusting the gain of the microphone and / or the loudspeaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition; the noise reduction amount is determined according to the first sound signal and the second sound signal; by comparing the sound signals collected before and after noise reduction, the optimal gain point of each device is found, and even if the sensitivity of the microphone and the sensitivity of the loudspeaker are different, the active noise reduction system can achieve a satisfactory noise reduction effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of noise reduction, and in particular to a gain optimization method of an acoustic device, an active noise reduction system and a control method thereof. Background Art

[0002] Before the active noise reduction system is put into use, the coefficients of the active noise reduction system (including at least one of the following coefficients: the coefficient of the primary path, the coefficient of the secondary path, the coefficient of the feedback path, and the coefficient of the controller) are generally calibrated. During the use of the active noise reduction system, noise reduction is achieved based on the pre-calibrated coefficients of the active noise reduction system. Since the coefficient calibration of the active noise reduction system is based on a set of microphones and speakers, and the sensitivities of the microphones and speakers actually used are not completely consistent, this results in that when the actual active noise reduction system is running, the pre-calibrated coefficients of the active noise reduction system may not completely match the sensitivities of the microphones and speakers, which will affect the noise reduction effect of the active noise reduction system. Summary of the invention

[0003] The technical problem to be solved by the present disclosure is to overcome the defect that the coefficients of the active noise reduction system pre-calibrated in the prior art do not match the sensitivities of the microphone and the speaker, resulting in a poor noise reduction effect of the active noise reduction system, and to provide a gain optimization method for an acoustic device, an active noise reduction system and a control method thereof.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] In a first aspect, a gain optimization method for an acoustic device is provided, which is applied to an active noise reduction system, wherein the acoustic device of the active noise reduction system includes a microphone and a speaker, and the gain optimization method includes:

[0006] During the process of shutting down the active noise reduction system, obtaining a first sound signal at a measurement point;

[0007] During the operation of the active noise reduction system, obtaining a second sound signal at the measuring point;

[0008] Iteratively adjusting the gain of the microphone and / or the speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition; the noise reduction amount is determined according to the first sound signal and the second sound signal;

[0009] When the noise reduction amount meets the noise reduction condition, the gain of each microphone and / or speaker is used as a target gain.

[0010] Optionally, iteratively adjusting the gain of the microphone and / or the speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition includes:

[0011] Each time the gain of the microphone and / or the speaker is adjusted, a target frequency band decibel value of the second sound signal corresponding to the gain is calculated;

[0012] Determining a noise reduction amount according to a target frequency band decibel value of the first sound signal and a target frequency band decibel value of the second sound signal;

[0013] It is determined whether the noise reduction amount meets the noise reduction condition.

[0014] Optionally, calculating the target frequency band decibel value includes:

[0015] Perform Fourier transform on each frame of sound signal to obtain spectrum data;

[0016] Adding the amplitudes of the frequencies within the target frequency band included in the spectrum data;

[0017] The logarithm of the addition result is calculated, and the decibel value of the target frequency band is determined according to the logarithm result.

[0018] Optionally, determining the target frequency band decibel value according to the logarithmic result includes:

[0019] In the case where at least two microphones are deployed at the measuring point, an average value of logarithmic results of sound signals collected by the microphones is determined as the decibel value of the target frequency band.

[0020] Optionally, adding the amplitudes of the frequencies within the target frequency band included in the spectrum data comprises:

[0021] Correcting the spectrum data by A-weighting;

[0022] The amplitude of each frequency in the target frequency band included in the corrected spectrum data is added.

[0023] Optionally, before iteratively adjusting the gain of the microphone and / or the speaker, the gain optimization method further includes:

[0024] A gain range for iterative adjustment of the microphone and / or speaker is determined according to performance parameters of the microphone and / or speaker.

[0025] In a second aspect, a control method for an active noise reduction system is provided, comprising:

[0026] Determine the target gain of the microphone and / or the speaker in the active noise reduction system according to any of the gain optimization methods described above;

[0027] Active noise reduction is performed according to the target gain.

[0028] In a third aspect, an active noise reduction system is provided, comprising: a speaker, a microphone, and a processor; the processor is connected to the speaker and the microphone, respectively, and when the processor executes a computer program, the gain optimization method described in any one of the above items or the control method of the active noise reduction system described in the above items is implemented.

[0029] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the gain optimization method as described in any one of the above or the control method of the active noise reduction system as described in the above is implemented.

[0030] In a fifth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the gain optimization method as described in any one of the above items or the control method of the active noise reduction system as described in the above items is implemented.

[0031] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0032] The positive progressive effect of the present disclosure is that by iteratively adjusting the gain of the acoustic components of the active noise reduction system, the noise reduction amount is determined based on the sound signals collected when the active noise reduction system is turned off and running, and then the optimal gain point of each acoustic component is found based on the noise reduction amount, the active noise reduction system is optimized, and even if the sensitivities of the microphone and the speaker are different, the active noise reduction system can achieve a satisfactory noise reduction effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flow chart of a gain optimization method for an acoustic device provided by an exemplary embodiment of the present disclosure;

[0034] Figure 2 The present invention is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0035] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0036] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0037] In the active noise reduction system, the overall system includes: acoustic devices and controllers. Acoustic devices can include but are not limited to reference microphones, speakers, and error microphones. The reference microphone is deployed near the noise source of the equipment equipped with the active noise reduction system. The reference microphone is used to obtain the sound signal. The sound signal is filtered by the calibrated controller and the secondary path (characterized by the transfer function from the speaker to the error microphone) to obtain the control signal, which is played through the speaker for active noise reduction. The error microphone is deployed at the measurement point to collect the sound signal at the measurement point in real time. The sound signal can be used to evaluate the noise reduction effect of the active noise reduction system. The noise reduction effect of the active noise reduction system is affected by the sensitivity of acoustic devices such as microphones and speakers. Although the difference between the microphone and speaker devices is controlled within a certain range, it will still affect the noise reduction effect of the active noise reduction system.

[0038] Based on this, Figure 1 This is a flow chart of a gain optimization method for an acoustic device provided by an exemplary embodiment of the present disclosure, which is applied to an active noise reduction system. The acoustic device of the active noise reduction system includes a microphone and a speaker. The number of microphones and speakers can be set according to actual conditions. Figure 1 , gain optimization methods include:

[0039] Step 101: Acquire a first sound signal at a measurement point while the active noise reduction system is turned off.

[0040] Specifically, an error microphone can be deployed at the measurement point, and the error microphone can be used to collect the sound signal of the measurement point. The setting of the measurement point can be set according to actual needs. When the active noise reduction system is turned off, the error microphone collects the sound signal actually heard by the user at the measurement point. And the actual start time of collection can be set after the noise source is stable. Taking the range hood equipped with the active noise reduction system as an example, the first sound signal can be obtained after the range hood is turned on so that the speed of the range hood reaches a normal working state. The collection time of each frame of the first sound signal can be greater than 10s, which is used to more accurately simulate the actual scene.

[0041] Step 102: During the operation of the active noise reduction system, a second sound signal at a measurement point is obtained.

[0042] Specifically, after the active noise reduction system is turned on, the error microphone collects the sound signal heard by the user after noise reduction.

[0043] Step 103: iteratively adjust the gain of the microphone and / or the speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition, and the noise reduction amount is determined according to the first sound signal and the second sound signal.

[0044] In step 103, generally only the gain of the reference microphone is adjusted.

[0045] The gain of the so-called acoustic device (microphone and / or speaker) represents the compensation amount of the sensitivity difference of the acoustic device on the noise reduction effect of the active noise reduction system. The noise reduction condition can be set according to the actual situation, for example, the noise reduction amount is greater than or equal to the noise reduction amount threshold and / or the noise reduction amount is the maximum value.

[0046] Specifically, iteratively adjusting the gain of the microphone and / or speaker can change the size of the second sound signal after noise reduction (the active noise reduction system is in operation), so as to evaluate the noise reduction effect by comparing the sound signals collected by the error microphone before noise reduction (the active noise reduction system is in the off state) and after noise reduction or the characteristic values ​​determined based on the sound signals (for example, decibel value, signal amplitude, etc.), until the noise reduction amount of the active noise reduction system meets the noise reduction conditions. The initial gain of the microphone and / or speaker is 1.0, and it can be iteratively adjusted by different gain step sizes. The gain step size can be comprehensively judged according to the actual situation. The smaller the step size is set, the more accurate the iterative adjustment of the gain of the microphone and / or speaker can be.

[0047] The object of each round of gain adjustment can be an acoustic device, for example, adjusting the gain of a microphone in each round, or adjusting the gain of a speaker in each round; the object of each round of gain adjustment can be multiple acoustic devices, for example, adjusting the gain of at least two microphones in each round, or adjusting the gain of at least two speakers in each round, or adjusting the gain of at least one microphone and the gain of at least one speaker in each round.

[0048] Step 104: When the noise reduction amount meets the noise reduction condition, the gain of each microphone and / or speaker is used as the target gain.

[0049] Specifically, when the noise reduction amount of the active noise reduction system meets the noise reduction condition, the gain combination of the microphone and / or the speaker at this time is saved as the final gain.

[0050] In this embodiment, by iteratively adjusting the gain of the microphone and / or the speaker, the collected sound signals before and after noise reduction are compared, the optimal gain point of each device is found, and the active noise reduction system is optimized. Even if the sensitivities of the microphone and the speaker are different, the active noise reduction system can achieve a satisfactory noise reduction effect.

[0051] In one embodiment, iteratively adjusting the gain of a microphone and / or a speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition includes:

[0052] Each time the gain of the microphone and / or speaker is adjusted, the target frequency band decibel value of the second sound signal corresponding to the gain is calculated, and the noise reduction amount is determined according to the target frequency band decibel value of the first sound signal and the target frequency band decibel value of the second sound signal to determine whether the noise reduction amount meets the noise reduction conditions.

[0053] Specifically, when judging whether the noise reduction amount meets the noise reduction condition, the noise reduction amount can be calculated by the difference between the decibel value of the first sound signal and the decibel value of the second sound signal. Each time the gain of the microphone and / or the speaker is adjusted, the difference between the decibel value of the second sound signal and the decibel value of the first sound signal is calculated. The greater the difference between the two, the greater the noise reduction amount and the better the noise reduction effect. The maximum difference between the decibel value of the first sound signal and the decibel value of the second sound signal can be used as the noise reduction amount meets the noise reduction condition, and the gain of each microphone and / or speaker is the final gain. In addition, in the calculation of the decibel value, only the decibel difference of a specific frequency band needs to be paid attention to. If the noise reduction frequency band range of the active noise reduction system is [60Hz, 1000Hz], then only the difference in the decibel value of the target frequency band needs to be paid attention to, that is, the decibel values ​​of the first sound signal and the second sound signal in the [60Hz, 1000Hz] frequency band range (target frequency band) are calculated respectively.

[0054] In this embodiment, the amount of noise reduction is determined by comparing the difference between the decibel value of the first sound signal and the decibel value of the second sound signal, and only the decibel value of the target frequency band needs to be paid attention to, thereby reducing the amount of calculation and the number of iterations of the gain of the microphone and / or speaker, while also avoiding the influence of other frequency bands in the on-site environment on the actual amount of noise reduction.

[0055] It should be noted that in other implementations, the amount of noise reduction can also be determined based on parameters such as the power and sound pressure of the sound signal. The specific implementation will not be repeated here.

[0056] In one embodiment, calculating the decibel value of the target frequency band includes:

[0057] Perform Fourier transform on each frame of sound signal to obtain spectrum data, which contains the amplitude corresponding to different frequencies (amplitude is represented by decibel value). Add the amplitude of each frequency in the target frequency band contained in the spectrum data, calculate the logarithm of the addition result, and determine the decibel value of the target frequency band based on the logarithmic result.

[0058] Specifically, the acquisition time of the error microphone for each frame of sound signal can be appropriately extended. If the time is short, the sound signal collected will fluctuate. If the time is longer, the fluctuation will be smaller, which is more in line with the actual situation. For example, if the acquisition time is 10S, then the length of the sound signal collected by each error microphone is N=10*sampling rate, where N represents the number of sampling points per frame of sound signal. The first sound signal and the second sound signal collected by each error microphone are converted into spectrum data fftR through Fourier transform. Then, through the formula , obtain the decibel value of each frequency of the first sound signal and the second sound signal in the frequency domain, add the decibel value corresponding to each frequency in the target frequency band and calculate the logarithm to determine the decibel value of the target frequency band. Specifically, the formula can be used:

[0059]

[0060] Get the target frequency band decibel of the sound signal between frequency a and frequency b value.

[0061] In this embodiment, since the effective frequency band controlled by active noise reduction is in the medium and low frequencies, the decibel value of each frequency is obtained by processing the sound signal, and then the decibel value corresponding to each frequency is added and the logarithm is calculated. The logarithm of the decibel value of the target frequency band is obtained by adding the decibel value. In this way, the noise reduction amount of the corresponding frequency band can be obtained very conveniently, so that the noise reduction effect can be confirmed more accurately.

[0062] In one embodiment, determining the decibel value of the target frequency band according to the logarithmic result includes:

[0063] When at least two microphones are deployed at the measurement point, the average value of the logarithmic results of the sound signals collected by the microphones is determined as the decibel value of the target frequency band.

[0064] Specifically, multiple error microphones may be deployed at the measurement point, and for the first sound signal, the logarithmic results of the sound signals of the first sound signal collected by each error microphone are calculated, and then the average value of the logarithmic results is calculated, and the average value is determined as the target frequency band decibel value of the first sound signal. The average value calculation here may be a direct average, or a weighted average calculation may be performed according to the weights of different error microphones.

[0065] For the second sound signal, the same processing method as the first sound signal can be used to calculate the corresponding target frequency band decibel value.

[0066] In this embodiment, the decibel value of the target frequency band is determined by multiple error microphones for use in subsequent noise reduction calculation, which can make the noise reduction calculation more accurate and more in line with the user's perception during actual use.

[0067] In one embodiment, adding the amplitudes of the frequencies within the target frequency band included in the spectrum data includes:

[0068] The spectrum data is corrected by A-weighting, and the amplitudes of the frequencies in the target frequency band included in the corrected spectrum data are added.

[0069] Specifically, after obtaining the decibel values ​​of the first sound signal and the second sound signal at each frequency collected by each error microphone, the spectrum data can be corrected by A-weighting. A-weighting takes into account the perception characteristics of the human ear to sounds of different frequencies, and the corrected spectrum data is more in line with our human perception.

[0070] In one embodiment, before iteratively adjusting the gain of the microphone and / or the speaker, the gain optimization method further comprises:

[0071] The gain range for iterative adjustment of the microphone and / or the speaker is determined according to the performance parameters of the microphone and / or the speaker.

[0072] Specifically, the performance parameters of each microphone and / or speaker are inconsistent, and the gain range setting can be determined based on the performance parameters of each microphone and / or speaker provided by the supplier, where the initial gain of the microphone and / or speaker is 1.0. For example, the sensitivity of the microphone is 24±2db, so we can use 1.0±log10(2) / log10(24) as our gain range, that is, 0.78-1.22. Increasing the gain range may increase the calculation time, and narrowing the gain range may result in failure to find the optimal gain. The deviation here should be calculated as logarithmic deviation, and the step size of the gain can be comprehensively determined based on the actual situation. The smaller the step size is set, the more accurate the iterative adjustment of the gain of the microphone and / or speaker can be.

[0073] The present disclosure also provides a control method for an active noise reduction system, including:

[0074] The target gain of the microphone and / or the loudspeaker in the active noise reduction system is determined according to any of the above gain optimization methods, and active noise reduction is performed according to the target gain.

[0075] The following introduces a method for implementing active noise reduction based on target gain.

[0076] When the active noise reduction system is working, the sound signal collected by the reference microphone is multiplied by the target gain of the reference microphone determined according to the gain optimization method to obtain a gain-compensated sound signal, the sound signal with the acoustic feedback removed is input into the controller, the controller outputs a control signal, the control signal is multiplied by the target gain of the speaker determined according to the gain optimization method to obtain a gain-compensated control signal, and the speaker is triggered to play the gain-compensated control signal. The sound signal with the acoustic feedback removed is: the result of removing the acoustic feedback in the sound signal after gain compensation. The acoustic feedback is the result of multiplying the historical playback control signal of the speaker by the feedback path.

[0077] In this embodiment, the gain of the microphone and / or the speaker is iteratively adjusted to compare the collected sound signals before and after noise reduction, and the optimal gain point of each device is found. The active noise reduction system controls the microphone and the speaker in the active noise reduction system according to the determined optimal gain point, so that even if the sensitivities of the microphone and the speaker are different, the active noise reduction system can achieve a satisfactory noise reduction effect.

[0078] An embodiment of the present disclosure further provides an active noise reduction system, which includes: a speaker, a microphone, and a processor; the processor is connected to the speaker and the microphone, respectively, and when the processor executes a computer program, it implements any of the above-mentioned gain optimization methods or the above-mentioned control method of the active noise reduction system.

[0079] Figure 2 This is a structural schematic diagram of an electronic device shown in an example embodiment of the present disclosure, the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the gain optimization method described in any of the above embodiments or the control method of the active noise reduction system described in the above embodiments is implemented. Figure 2 The electronic device 20 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0080] like Figure 2 As shown, the electronic device 20 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 20 may include, but are not limited to: at least one processor 21, at least one memory 22, and a bus 23 connecting different system components (including the memory 22 and the processor 21).

[0081] The bus 23 includes a data bus, an address bus, and a control bus.

[0082] The memory 22 may include a volatile memory, such as a random access memory (RAM) 221 and / or a cache memory 222 , and may further include a read only memory (ROM) 223 .

[0083] The memory 22 may also include a program tool 225 (or utility) having a set (at least one) of program modules 224, such program modules 224 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0084] The processor 21 executes various functional applications and data processing by running the computer program stored in the memory 22, such as the gain optimization method provided in any of the above embodiments or the control method of the active noise reduction system described above.

[0085] The electronic device 20 may also communicate with one or more external devices 24 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 25. Furthermore, the electronic device 20 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 26. As shown, the network adapter 26 communicates with other modules of the electronic device 20 via a bus 23. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 20, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0086] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0087] The embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the gain optimization method provided in any of the above embodiments or the control method of the active noise reduction system described above is implemented.

[0088] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0089] The embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned gain optimization methods or the above-mentioned control method of the active noise reduction system.

[0090] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0091] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A gain optimization method for an acoustic device, characterized in that: Applied to an active noise reduction system, the acoustic device of the active noise reduction system includes a microphone and a speaker, and the gain optimization method includes: When the active noise reduction system is turned off, obtaining a first sound signal at a measurement point; During the operation of the active noise reduction system, obtaining a second sound signal at the measuring point; Iteratively adjusting the gain of the microphone and / or the speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition; the noise reduction amount is determined according to the first sound signal and the second sound signal; When the noise reduction amount meets the noise reduction condition, the gain of each microphone and / or speaker is used as a target gain.

2. The gain optimization method according to claim 1, characterized in that: Iteratively adjusting the gain of the microphone and / or the speaker until the noise reduction amount of the active noise reduction system meets the noise reduction condition, comprising: Each time the gain of the microphone and / or the speaker is adjusted, a target frequency band decibel value of the second sound signal corresponding to the gain is calculated; Determining a noise reduction amount according to a target frequency band decibel value of the first sound signal and a target frequency band decibel value of the second sound signal; It is determined whether the noise reduction amount meets the noise reduction condition.

3. The gain optimization method according to claim 2, characterized in that: Calculating the decibel value of the target frequency band includes: Perform Fourier transform on each frame of sound signal to obtain spectrum data; Adding the amplitudes of the frequencies within the target frequency band included in the spectrum data; The logarithm of the addition result is calculated, and the decibel value of the target frequency band is determined according to the logarithm result.

4. The gain optimization method according to claim 3, characterized in that: Determining the decibel value of the target frequency band according to the logarithmic result includes: In the case where at least two microphones are deployed at the measuring point, an average value of logarithmic results of sound signals collected by the microphones is determined as the decibel value of the target frequency band.

5. The gain optimization method according to any one of claims 3 to 4, characterized in that: Adding the amplitude of each frequency within the target frequency band included in the spectrum data comprises: Correcting the spectrum data by A-weighting; The amplitude of each frequency in the target frequency band included in the corrected spectrum data is added.

6. The gain optimization method according to any one of claims 1 to 4, characterized in that: Before iteratively adjusting the gain of the microphone and / or the speaker, the gain optimization method further comprises: A gain range for iterative adjustment of the microphone and / or speaker is determined according to performance parameters of the microphone and / or speaker.

7. A control method for an active noise reduction system, characterized in that: include: Determine the target gain of the microphone and / or speaker in the active noise reduction system according to the gain optimization method according to any one of claims 1 to 6; Active noise reduction is performed according to the target gain.

8. An active noise reduction system, characterized in that: The active noise reduction system includes: a speaker, a microphone, and a processor; the processor is connected to the speaker and the microphone respectively, and when the processor executes a computer program, it implements the gain optimization method according to any one of claims 1 to 6 or the control method of the active noise reduction system according to claim 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the gain optimization method according to any one of claims 1 to 6 or the control method of the active noise reduction system according to claim 7 is implemented.

10. An electronic device 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 gain optimization method according to any one of claims 1 to 6 or the control method of the active noise reduction system according to claim 7 is implemented.