Noise reduction method, electronic equipment and storage medium
By pre-constructing the compensation parameter set to generate optimal parameters for different engine speeds, the problem of poor high dynamic noise reduction effect of the vehicle is solved, and faster and more effective noise cancellation is achieved.
Patent Information
- Application Number
- CN202411047878.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-08
AI Technical Summary
The high dynamic noise reduction effect of existing vehicles is not ideal, mainly because the adaptive algorithms are difficult to quickly adapt to the rapid changes in engine noise, resulting in limited noise cancellation effect.
By pre-constructing the compensation parameter set, the optimal compensation parameters are generated for different engine speeds, which are used to adjust the reference signal, filter coefficient and microphone signal, thereby generating a cancellation signal closer to actual needs, shortening the adjustment time, and improving noise reduction efficiency.
It improves the noise reduction effect of the vehicle under high dynamic conditions, can adapt to the rapidly changing environment faster and better, narrows the gap between the initial offset signal and the actual required signal, and achieves faster and better noise cancellation.
Smart Images

Figure CN118918874A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of vehicle noise reduction, and in particular to a noise reduction method, an electronic device and a storage medium. Background Art
[0002] With the technological development and competition in the automotive industry, active noise reduction technology is increasingly appearing in automotive products of all levels, and engine noise elimination technology is an important part of it. Whether it is a traditional fuel vehicle or a hybrid vehicle, active noise reduction can effectively reduce engine idling noise and certain acceleration noise in an environmentally friendly and low-carbon state, and is welcomed by more and more OEMs and end customers.
[0003] However, current vehicles do not achieve ideal noise reduction under high dynamic conditions. Summary of the invention
[0004] The embodiments of the present invention provide a noise reduction method, an electronic device and a storage medium, which are at least helpful in improving the noise reduction effect.
[0005] According to some embodiments of the present invention, on the one hand, an embodiment of the present invention provides a noise reduction method, comprising: determining optimal compensation parameters from a preset compensation parameter set according to a current engine speed, the compensation parameters including compensation for at least one of the following information: a reference signal, a filter coefficient, a speaker signal, and a microphone signal; generating a cancellation signal based on the determined compensation parameters, the cancellation signal being used to cancel the current engine noise.
[0006] In some embodiments, before determining the optimal compensation parameters from a preset compensation parameter set based on the current engine speed, the method also includes: obtaining the engine speed and microphone signal of the actual vehicle under different working conditions, the engine speed being collected by a speed sensor deployed at the engine, and the microphone signal being a signal collected by a microphone deployed on the actual vehicle; generating order slices corresponding to the reference signals of different orders based on the engine speed and the microphone signal; and determining the compensation parameters corresponding to the reference signals of different orders for compensating for the amplitude of the reference signals based on the order slices corresponding to the reference signals of different orders.
[0007] In some embodiments, before determining the optimal compensation parameter from a preset compensation parameter set based on the current engine speed, the method further includes: acquiring an impulse response between each speaker and each microphone; generating an amplitude response between each speaker and each microphone based on the impulse response between each speaker and each microphone; and determining the compensation parameters for compensating the amplitude of each speaker signal corresponding to the reference signals of different orders based on the amplitude response between each speaker and each microphone.
[0008] In some embodiments, the compensation parameters of the amplitude of each speaker signal are determined based on the amplitude response between each speaker and each microphone, including: setting the amplitude response coefficient of the amplitude response between each speaker and each microphone in the interval outside the target frequency interval to 1 to obtain the effective amplitude response between each speaker and each microphone, wherein the target frequency interval is the operating frequency range of the engine; and determining the compensation parameters of the amplitude of each speaker signal corresponding to the reference signals of different orders based on the effective amplitude response between each speaker and each microphone.
[0009] In some embodiments, before determining the optimal compensation parameters from a preset compensation parameter set based on the current engine speed, the method also includes: acquiring microphone signals of the actual vehicle under different working conditions; determining order slices corresponding to the reference signals of different orders based on the microphone signals; and simulating the order slices corresponding to the reference signals of different orders to obtain optimal step size factors and optimal leakage factors corresponding to the reference signals of different orders, wherein the optimal step size factors and the optimal leakage factors are the compensation parameters for compensating the filter coefficients.
[0010] In some embodiments, before determining the optimal compensation parameters from a preset compensation parameter set based on the current engine speed, the method also includes: obtaining noise reduction conditions of the actual vehicle, the noise reduction conditions including at least one of the following conditions: the lowest noise reduction value for different seats, the lowest noise reduction value under different working conditions; performing simulation according to the noise reduction conditions to obtain compensation parameters corresponding to the reference signals of different orders for compensating the amplitudes of each microphone signal.
[0011] In some embodiments, before determining the optimal compensation parameter from a preset compensation parameter set based on the current engine speed, the method further includes: performing simulation based on the currently acquired compensation parameter and a preset noise reduction target to adjust the compensation parameter until a simulation stop condition is met, wherein the simulation stop condition includes: reaching the noise reduction target, or reaching a preset number of adjustments.
[0012] In some embodiments, generating a cancellation signal based on the determined compensation parameters includes: compensating the reference signal and the microphone signal based on the compensation parameters; generating current filter coefficients based on the compensated reference signal, the compensated microphone signal and the estimated secondary path; compensating the generated filter coefficients based on the compensation parameters; generating an initial cancellation signal based on the reference signal and the compensated filter coefficients; and compensating the initial cancellation signal based on the compensation parameters to obtain the cancellation signal.
[0013] According to some embodiments of the present invention, on the other hand, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the noise reduction method described in any embodiment of the present invention.
[0014] According to some embodiments of the present invention, on the other hand, embodiments of the present invention further provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the noise reduction method described in any embodiment of the present invention is implemented.
[0015] The technical solution provided by the embodiment of the present invention has at least the following advantages:
[0016] By pre-constructing a compensation parameter set for compensating at least one of a reference signal, a filter coefficient, a speaker signal, and a microphone signal, it is possible to more efficiently determine an optimal compensation parameter when generating a cancellation signal for the current engine speed, thereby at least being able to obtain a better reference signal, filter coefficient, speaker signal, or microphone signal, so that the cancellation signal generated therefrom will be closer to the cancellation signal required for the actual engine noise, that is, the gap between the initially generated cancellation signal and the actually required cancellation signal is narrowed. In this way, the time for subsequently generating the actually required cancellation signal through adjustment will be shortened, noise reduction can be achieved faster and better, and it can adapt to rapidly changing environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 It is a schematic diagram of the noise reduction principle provided by the present invention;
[0019] Figure 2 is a structural schematic diagram of a noise reduction system provided in an embodiment of the present invention;
[0020] Figure 3 is a flow chart of a noise reduction method provided in an embodiment of the present invention;
[0021] Figure 4 is another flow chart of the noise reduction method provided in an embodiment of the present invention;
[0022] Figure 5is another structural schematic diagram of the noise reduction system provided in an embodiment of the present invention;
[0023] Figure 6 is a flow chart of compensation parameter determination involved in the noise reduction method provided in an embodiment of the present invention;
[0024] Figure 7 is another flow chart for determining compensation parameters involved in the noise reduction method provided in an embodiment of the present invention;
[0025] Figure 8 is another flow chart for determining compensation parameters involved in the noise reduction method provided in an embodiment of the present invention;
[0026] Fig. 9 is another flow chart for determining compensation parameters involved in the noise reduction method provided in an embodiment of the present invention;
[0027] Fig.10 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] As can be seen from the background technology, the current vehicle noise reduction effect is not ideal, and there is an urgent need to provide a noise reduction method that can improve the noise reduction effect.
[0029] After analysis, it was found that the reason for the above problems is at least that the current engine noise elimination mainly uses an adaptive algorithm to update the signal for reverse elimination. In actual use, due to the existence of secondary paths, there is attenuation and reverberation in the car sound field, and the phase and amplitude need to be matched to the corresponding cancellation signal through an adaptive algorithm; but in order to adapt to the optimal coefficient, it needs to be stabilized for a period of time. In the actual use process, especially in the acceleration and deceleration conditions, the dynamic range is relatively large, and the system is always in a process of change, and often has no time to adapt. Generally, we can obtain the optimal step size factor μ under steady-state conditions through a priori testing, and set the optimal step size factor μ at each speed to the step size factor μ required at the corresponding speed, but when the in-vehicle environment is complex and changes rapidly, this effect is still very limited. At the same time, in order to ensure robustness, the adjustment will be more conservative, resulting in a discount in the actual noise reduction effect.
[0030] Based on this, an embodiment of the present invention provides a noise reduction method, an electronic device and a storage medium. By pre-constructing a compensation parameter set for compensating at least one of a reference signal, a filter coefficient, a speaker signal and a microphone signal, when generating a cancellation signal for the current engine speed, an optimal compensation parameter can be determined more efficiently, so that at least a better reference signal, filter coefficient, speaker signal or microphone signal can be obtained, so that the cancellation signal generated based on this will be closer to the cancellation signal required for the actual engine noise, that is, the gap between the initially generated cancellation signal and the actually required cancellation signal is narrowed. In this way, the time for subsequently generating the actually required cancellation signal through adjustment will be shortened, noise reduction can be achieved faster and better, and it can adapt to rapidly changing environments, thereby improving the noise reduction effect.
[0031] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it can be understood by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable readers to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented.
[0032] The following embodiments are divided for the convenience of description and shall not constitute any limitation on the specific implementation of the present invention. The embodiments may be combined with each other and referenced to each other without contradiction.
[0033] To help those skilled in the art better understand the noise reduction method provided by the embodiment of the present invention, the principle of the noise reduction algorithm is exemplarily described below.
[0034] The core of the adaptive noise reduction algorithm is to generate Figure 1 The cancellation signal 1 shown has the same amplitude and opposite phase as the actual engine noise 2. Thus, after the signals are superimposed, the engine noise 2 will be exactly cancelled out, thereby achieving noise elimination in the signal.
[0035] In order to generate a sound wave signal with the same amplitude and opposite phase as the noise, some embodiments of the present invention provide the following Figure 2 The architecture shown is used for calculations.
[0036] First, if Figure 2 As shown, the reference signal generation module is required to first generate a reference signal based on the engine speed detected by the engine speed detection module. That is, the engine speed is tracked in real time, and a corresponding harmonic angular velocity signal is generated according to the detected engine speed, so as to obtain an angle signal by integrating the angular velocity, thereby obtaining a corresponding harmonic sinusoidal signal. In some examples, the reference signal can be determined by the following expression:
[0037]
[0038] Among them, rpm(t) is the engine speed signal detected in real time, m is the order value corresponding to the reference signal, a m (t) is the amplitude of the corresponding reference signal.
[0039] It should be noted that the tracking of the engine speed can be further achieved by deploying a speed sensor at the engine, so that the accuracy and reliability of the obtained engine speed can be guaranteed through actual measurement. Of course, in some cases, it can also be determined by monitoring the control signal of the engine, etc., which will not be elaborated here.
[0040] In this way, the reference signal constructed in the above manner will have a frequency opposite to the actual required engine noise, but it does not meet the requirement of the same amplitude.
[0041] Based on this, the secondary path estimation module is used to estimate the secondary path, where the secondary path refers to the path of the signal output by the speaker on the vehicle to the microphone. The filter coefficient update module is used to convolve the reference signal through the estimated secondary path, and the convolved signal is multiplied and added with the corresponding error signal to obtain an adaptive gradient. In some examples, the adaptive filter coefficient update is implemented by the following expression:
[0042]
[0043] Among them, w mn (i+1) is the filter coefficient at the next moment, μ is the corresponding adaptive step size factor, leaky is the adaptive leakage factor, e k (n) is the microphone signal collected by the corresponding error microphone, x′ mnk (i) is the signal after the reference signal is transmitted through the secondary path.
[0044] It should be noted that the error microphone can be any microphone provided on the vehicle, and there can be one or more error microphones. In some examples, multiple error microphones are provided, so that a microphone signal that more comprehensively and accurately reflects the signal can be obtained.
[0045] In this way, feedback is achieved through the collection of speaker signals by the microphone, so that the cancellation effect can be continuously tracked, which is conducive to better adjusting the cancellation signal by adjusting the filter coefficient, thereby bringing about a better noise reduction effect.
[0046] Then, the cancellation signal generation module obtains the cancellation signal based on the reference signal and the filter coefficients determined above. That is, the reference signal is convolved with the coefficients updated by the adaptive filter to obtain the cancellation signal and output it through the speaker. The convolution process is as follows:
[0047]
[0048] in, is the adaptive filter coefficient corresponding to the mth reference signal being input to the nth speaker, x m is the mth reference signal, y n is the cancellation signal output by the nth speaker.
[0049] It should be noted that the above-mentioned N speakers and K microphones are set up to achieve a better noise reduction effect. In some cases, such as limited by the vehicle configuration, one or more speakers, or one or more microphones can be set as needed, which will not be elaborated here or later.
[0050] From the above content, it can be seen that the generation and action of the cancellation signal will be affected by the selection of the reference signal, the iteration of the filter coefficients, and the internal structure of the speaker and microphone. For example, when the amplitude of the reference signal is significantly different from the actual engine noise, the amplitude of the filter adjustment will be larger, which will make the iteration of the filter coefficients more difficult; the initial value of the filter coefficient will affect the iteration of the filter coefficient; the speaker and microphone affect the effect of the cancellation signal by affecting the filter coefficients, etc.
[0051] Based on this, an embodiment of the present invention provides a noise reduction method, such as Figure 3 As shown, the following steps are included:
[0052] Step 301, determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed.
[0053] Step 302: Generate a cancellation signal according to the determined compensation parameter, where the cancellation signal is used to cancel the current engine noise.
[0054] In this way, through the pre-constructed compensation parameter set, corresponding optimal compensation parameters are provided for different engine speeds, and the optimization calculation of relevant parameters is completed in advance. In this way, after determining the current engine speed, the optimal compensation parameters can be directly determined, so that the subsequent adjustments required are smaller, so that the actual required cancellation signal can be determined more quickly, efficiently and accurately without wasting too much time on parameter iteration and optimization, which can achieve noise reduction faster and better, and can adapt to rapidly changing environments, thereby improving the noise reduction effect.
[0055] To facilitate better understanding of those skilled in the art Figure 3 The embodiments shown in the figure are described below. It should be emphasized that the following description should not constitute Figure 3 The illustrated embodiment is not limited thereto; in other embodiments, other methods may be used to achieve the same effect.
[0056] For step 301, the compensation parameter includes a parameter for compensating at least one of the following information: a reference signal, a filter coefficient, a speaker signal, and a microphone signal. It should be noted that the embodiment of the present invention does not limit the form of the compensation parameter. For example, the compensation parameter for compensating the filter coefficient can be directly the optimal filter coefficient, or other parameters that can affect the filter coefficient, such as the aforementioned leakage factor, etc., which will not be described one by one here.
[0057] In some examples, in the compensation parameter set, the correlation between the optimal compensation parameters and the orders corresponding to the reference signals of different orders has been constructed. Therefore, after the engine speed is obtained, the corresponding optimal compensation parameters can be matched by the order corresponding to the engine speed. In this way, the determination efficiency of the optimal compensation parameters is higher, thereby improving the efficiency of noise reduction.
[0058] For step 302, in some embodiments, Figure 4 As shown, it can be achieved through the following steps:
[0059] Step 3021: Compensate the reference signal and the microphone signal according to the compensation parameter.
[0060] Step 3022: Generate current filter coefficients according to the compensated reference signal, the compensated microphone signal and the estimated secondary path.
[0061] Step 3023: Compensate the generated filter coefficients according to the compensation parameters.
[0062] Step 3024: Generate an initial cancellation signal based on the reference signal and the compensated filter coefficients.
[0063] Step 3025: Compensate the initial cancellation signal according to the compensation parameter to obtain a cancellation signal.
[0064] Specifically, based on Figure 4 The noise reduction methods and combinations provided Figure 5It can be seen from the structure of the noise reduction system shown that when the noise reduction method provided by the embodiment of the present invention is applied to a vehicle, the compensation parameter set is first deployed to the compensation equalization subsystem. In this way, when the engine speed detection module detects the real-time engine speed, the reference signal generation module will generate an initial reference signal. On the one hand, the signal is processed by the secondary path estimated by the secondary path estimation module after the reference signal is compensated by the corresponding compensation parameters provided by the compensation equalization subsystem, and then sent to the filter coefficient update module to iterate the new filter coefficient together with the compensated microphone signal and the parameters provided by the compensation equalization subsystem. On the other hand, it is also sent to the cancellation signal generation module to work with the updated filter coefficient to generate an initial cancellation signal. Finally, the initial cancellation signal is compensated by the compensation parameters provided by the compensation equalization subsystem, and then sent to the speaker as the final cancellation signal to cancel the engine noise. Among them, the compensation equalization subsystem also needs to obtain the real-time engine speed to determine the optimal compensation parameters required for the output through the order corresponding to the real-time engine speed.
[0065] It is not difficult to find that Figure 5 The embodiment shown is a system embodiment corresponding to the method embodiment, and the system embodiment can be implemented in conjunction with the method embodiment. The relevant technical details mentioned in the method embodiment are still valid in the system embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in the system embodiment can also be applied in the method embodiment.
[0066] It is worth mentioning that all modules involved in the system embodiment are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, the system embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present invention, but this does not mean that other units do not exist in the system embodiment.
[0067] At the same time, in order to facilitate those skilled in the art to better understand how the compensation parameters in the compensation parameter set are determined, the following will be described. It should be emphasized that the following description should not constitute a limitation on the compensation parameter set. In other embodiments, other methods can also be used to achieve the same effect, such as directly obtaining the compensation parameter set through simulation experiments.
[0068] In some embodiments, Figure 6 As shown, the compensation parameters for compensating the amplitude of the reference signal can be determined by the following steps:
[0069] Step 601, obtaining the engine speed and microphone signal of the actual vehicle under different working conditions.
[0070] Step 602: Generate order slices corresponding to reference signals of different orders according to the engine speed and the microphone signal.
[0071] Step 603: Determine compensation parameters corresponding to the reference signals of different orders and used to compensate the amplitudes of the reference signals according to the order slices corresponding to the reference signals of different orders.
[0072] Among them, the engine speed is collected by a speed sensor deployed at the engine, and the microphone signal is the signal collected by the microphone deployed on the actual vehicle.
[0073] Assume that the relationship between the compensation parameters for compensating the amplitude of the reference signal and the order signal of the reference signal is maintained in a tabular form. In some examples, first, a speed sensor is arranged at the engine of the actual vehicle, and microphones are arranged near the left and right ears of the driver; then the actual vehicle collects acceleration information of different gears, engine speed information collected by the speed sensor, microphone signals, etc.; then, the order slices corresponding to the reference signal in the engine speed and microphone signal are extracted; then, the energy ratio in the order slices corresponding to each reference signal is normalized, so as to obtain a preliminary three-dimensional reference signal balance table: gear-(order index)-order frequency-reference signal gain value, that is, the compensation parameters for compensating the amplitude of the reference signal corresponding to reference signals of different orders are determined, wherein the order index is used to mark different order frequencies and has no other meanings. The order index information may be included in some reference signal balance tables, and the order index in subsequent tables has the same meaning, so it will not be repeated one by one.
[0074] In some embodiments, Figure 7 As shown, the compensation parameters of the reference signals of different orders used to compensate the amplitudes of the respective loudspeaker signals can be determined by the following steps:
[0075] Step 701: Obtain impulse responses between each loudspeaker and each microphone.
[0076] Step 702: Generate an amplitude response between each loudspeaker and each microphone according to the impulse response between each loudspeaker and each microphone.
[0077] Step 703: Determine compensation parameters corresponding to reference signals of different orders for compensating the amplitude of each speaker signal according to the amplitude response between each speaker and each microphone.
[0078] In some examples, compensation parameters for compensating the amplitude of each speaker signal are determined based on the amplitude response between each speaker and each microphone, which can be achieved in the following way: the amplitude response coefficients of the amplitude response between each speaker and each microphone in the interval outside the target frequency interval are set to 1 to obtain the effective amplitude response between each speaker and each microphone, and the target frequency interval is the operating frequency range of the engine; based on the effective amplitude response between each speaker and each microphone, compensation parameters for compensating the amplitude of each speaker signal corresponding to reference signals of different orders are determined. In this way, the influence of the non-engine working area can be eliminated, so that the compensation parameters determined for compensating the amplitude of each speaker signal are more accurate. In some cases, the target frequency interval can be [20Hz, 300Hz].
[0079] Assuming that the relationship between the compensation parameters for compensating the amplitude of each speaker signal and the order signal of the reference signal is maintained in a table, in some examples, first, the actual impulse response between multiple groups of speakers and microphones is obtained by a frequency sweep method or a white noise adaptive method, and then the corresponding amplitude response is obtained by the impulse response; then, the amplitude response is transformed into the dB domain and normalized to calculate the difference of the corresponding frequency response curve; then, the speaker 1 is connected to the microphone 1, the speaker 1 is connected to the microphone 2, ..., the speaker 1 is connected to the microphone K, and the speaker 2 is connected to the microphone 1, the speaker 2 is connected to the microphone 2, ..., the speaker 2 is connected to the microphone K, and the speaker N is connected to the microphone K, and the gain required by each is taken as the expected value, wherein, since the working range of the engine noise reduction is generally within the range of 20Hz-300Hz, the corresponding values in other frequency ranges can be set to 1, and the speaker signal compensation value in the linear domain can be obtained, wherein, in combination with all working conditions, orders, and speakers, the initial three-dimensional microphone compensation equalization table will be obtained: (order index)-order frequency-speaker index-speaker gain value. That is, the compensation parameters for compensating the amplitude of each speaker signal are determined.
[0080] In some embodiments, Figure 8 As shown, the compensation parameters for compensating the filter coefficients can be determined by the following steps:
[0081] Step 801, obtaining microphone signals of a real vehicle in different working states.
[0082] Step 802: Determine order slices corresponding to reference signals of different orders according to the microphone signal.
[0083] Step 803 , performing simulation according to order slices corresponding to reference signals of different orders, and obtaining optimal step size factors and optimal leakage factors corresponding to reference signals of different orders.
[0084] Among them, the optimal step size factor μ and the optimal leakage factor leak are compensation parameters used to compensate the filter coefficients. Of course, in some cases, the optimal step size factor μ or the optimal leakage factor leak etc. can be determined.
[0085] Assuming that the relationship between the compensation parameters used to compensate the filter coefficients and the order signal of the reference signal is maintained in a tabular form, in some examples, first, the real vehicle collects the engine speed and noise reduction microphone signals under acceleration and constant speed conditions; then extracts the values in the order slices of the real vehicle microphone at the corresponding frequency and speed; then, the offline application simulation model program automatically iterates to obtain the optimal step factor; then, according to the corresponding optimal step factor, the simulation model is applied under acceleration to adjust the leakage factor, and two two-dimensional tables can be obtained, namely, the step factor: (order index)-order frequency-optimal step factor μ corresponding to the gain value, and the leakage factor: order index-order frequency-optimal leakage factor leaky corresponding to the gain value. Therefore, the compensation parameters used to compensate the filter coefficients are determined.
[0086] In some embodiments, Fig. 9 As shown, the compensation parameters for compensating the amplitude of each microphone signal can be determined by the following steps:
[0087] Step 901, obtaining the noise reduction conditions of the actual vehicle.
[0088] Step 902 : Perform simulation according to the noise reduction condition to obtain compensation parameters corresponding to reference signals of different orders for compensating the amplitudes of the signals of the respective microphones.
[0089] The noise reduction conditions include at least one of the following conditions: the minimum noise reduction value for different seats and the minimum noise reduction value under different working conditions.
[0090] Assuming that the relationship between the compensation parameters for compensating the amplitude of each microphone signal and the order signal of the reference signal is maintained in a table, in some examples, first, the minimum noise reduction value of different seats in the vehicle is set, as well as the specific minimum noise reduction value under acceleration conditions, different speeds, and different working conditions; then, by loading the simulation program and the set goals, the noise reduction between different microphones is balanced. For example, the microphone at position 1 shows that the noise reduction under the current working condition is sufficient and redundant, but the noise reduction at the position of microphone 2 is insufficient. The weights of different microphones are automatically adjusted by calculation to balance the noise reduction at different points. In this way, the corresponding three-dimensional microphone balance table can be obtained: order index-order frequency-microphone index-microphone equalization factor value. That is, the compensation parameters for compensating the amplitude of each microphone signal are determined.
[0091] Of course, it can also be understood that the above process is mainly from the actual vehicle. Therefore, in order to further ensure the accuracy of the compensation parameter set, it is also possible to verify and adjust it by means of simulation experiments. That is to say, in some embodiments, after the noise reduction method determines at least one set of compensation parameters through one or more of the above embodiments or examples, it is also simulated according to the currently acquired compensation parameters and the preset noise reduction target to adjust the compensation parameters until the simulation stop condition is met. The simulation stop condition includes: reaching the noise reduction target, or reaching the preset number of adjustments. In this way, the accuracy and reliability of the obtained compensation parameter set are verified and guaranteed by both real vehicle testing and simulation experiments, thereby improving the noise reduction effect.
[0092] In some cases, the noise reduction target may be a specific target noise reduction value, position difference, stability, etc. In particular, in some examples, after simulation verification, real vehicle testing may be continued to fine-tune parameters to obtain the final version.
[0093] The step division of the various methods above is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of the present invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the protection scope of the invention.
[0094] Another aspect of the present invention is to provide an electronic device, such as Fig.10 As shown, it includes: at least one processor 1001; and a memory 1002 that is communicatively connected to the at least one processor 1001; wherein the memory 1002 stores instructions that can be executed by the at least one processor 1001, and the instructions are executed by the at least one processor 1001 so that the at least one processor 1001 can execute the noise reduction method described in any of the above method embodiments.
[0095] Among them, the memory 1002 and the processor 1001 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 1001 and the memory 1002 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are all well known in the art, and therefore, are not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 1001 is transmitted on a wireless medium through an antenna, and further, the antenna also receives data and transmits the data to the processor 1001.
[0096] The processor 1001 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 1002 can be used to store data used by the processor 1001 when performing operations.
[0097] Another aspect of the present invention provides a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0098] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0099] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A noise reduction method, characterized in that: include: Determining an optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the compensation parameter comprising a parameter for compensating for at least one of the following information: a reference signal, a filter coefficient, a speaker signal, and a microphone signal; A cancellation signal is generated according to the determined compensation parameter, and the cancellation signal is used to cancel the current engine noise.
2. The noise reduction method according to claim 1, characterized in that: Before determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the method further includes: Obtaining the engine speed and microphone signal of the actual vehicle under different working conditions, wherein the engine speed is collected by a speed sensor deployed at the engine, and the microphone signal is a signal collected by a microphone deployed on the actual vehicle; Generating order slices corresponding to the reference signals of different orders according to the engine speed and the microphone signal; The compensation parameters corresponding to the reference signals of different orders and used to compensate the amplitudes of the reference signals are determined according to the order slices corresponding to the reference signals of different orders.
3. The noise reduction method according to claim 1, characterized in that: Before determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the method further includes: Obtain impulse responses between each speaker and each microphone; Generating amplitude responses between each loudspeaker and each microphone according to the impulse responses between each loudspeaker and each microphone; The compensation parameters corresponding to the reference signals of different orders and used to compensate the amplitudes of the signals of the respective loudspeakers are determined according to the amplitude responses between the respective loudspeakers and the respective microphones.
4. The noise reduction method according to claim 3, characterized in that: The step of determining the compensation parameters of the amplitudes of the signals of the respective loudspeakers using the reference signals of different orders according to the amplitude responses between the respective loudspeakers and the respective microphones comprises: The amplitude response coefficients of the amplitude responses between the speakers and the microphones that are outside the target frequency range are set to 1 to obtain effective amplitude responses between the speakers and the microphones, wherein the target frequency range is the operating frequency range of the engine; The compensation parameters corresponding to the reference signals of different orders and used to compensate the amplitudes of the signals of the respective loudspeakers are determined according to the effective amplitude responses between the respective loudspeakers and the respective microphones.
5. The noise reduction method according to claim 1, characterized in that: Before determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the method further includes: Obtain microphone signals of the actual vehicle under different working conditions; Determining order slices corresponding to reference signals of different orders according to the microphone signal; Simulation is performed according to order slices corresponding to the reference signals of different orders to obtain optimal step factors and optimal leakage factors corresponding to the reference signals of different orders, and the optimal step factors and the optimal leakage factors are the compensation parameters for compensating filter coefficients.
6. The noise reduction method according to claim 1, characterized in that: Before determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the method further includes: Acquire the noise reduction conditions of the actual vehicle, wherein the noise reduction conditions include at least one of the following conditions: the minimum noise reduction value of different seats and the minimum noise reduction value under different working conditions; Simulation is performed according to the noise reduction condition to obtain compensation parameters corresponding to the reference signals of different orders for compensating the amplitudes of the respective microphone signals.
7. The noise reduction method according to any one of claims 2 to 6, characterized in that: Before determining the optimal compensation parameter from a preset compensation parameter set according to the current engine speed, the method further includes: The simulation is performed according to the currently acquired compensation parameter and the preset noise reduction target to adjust the compensation parameter until a simulation stop condition is met, wherein the simulation stop condition includes: reaching the noise reduction target, or reaching a preset adjustment number of times.
8. The noise reduction method according to any one of claims 1 to 6, characterized in that: Generating a cancellation signal according to the determined compensation parameter includes: Compensating the reference signal and the microphone signal according to the compensation parameter; generating current filter coefficients according to the compensated reference signal, the compensated microphone signal and the estimated secondary path; Compensating the generated filter coefficients according to the compensation parameters; generating an initial cancellation signal according to the reference signal and the compensated filter coefficients; The initial cancellation signal is compensated according to the compensation parameter to obtain the cancellation signal.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the noise reduction method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the noise reduction method according to any one of claims 1 to 8 is implemented.
