Noise reduction method and apparatus, terminal device, and storage medium
By obtaining the target estimation coefficient and generating the original filtered signal, it is transformed into a simple product operation, and the problem of large amount of operations in the existing technology is solved, and the operating speed and noise reduction effect of the active noise reduction system are improved.
Patent Information
- Application Number
- PCT/CN2024/095836
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-31
- Filing Date
- 2024-05-28
- Publication Date
- 2024-12-05
AI Technical Summary
Among the existing active noise reduction technology, the method based on the filter x minimum mean square algorithm has a large amount of computing power, resulting in high chip computing power requirements, reducing the operating speed of the active noise reduction system, thus making the noise reduction effect poor.
By obtaining the target estimation coefficients, including real and imaginary values, the original filtered signal is generated based on the target noise frequency, and using these coefficients to convert the convolution calculation of the reference signal and the secondary channel estimate into a simple product operation, reducing the calculation amount , improve the operating speed of the active noise reduction system.
It improves the operating speed and noise reduction effect of the active noise reduction system, and improves the user experience.
Smart Images

Figure CN2024095836_05122024_PF_FP_ABST
Abstract
Description
Noise reduction method, device, terminal device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 2023106412184, entitled “Noise Reduction Method, Apparatus, Terminal Device and Storage Medium,” filed with the Patent Office of China on May 31, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the technical field of active noise reduction, and in particular to a noise reduction method, apparatus, terminal device, and storage medium. Background Art
[0004] Active noise reduction technology can achieve noise reduction effects in a specified area by emitting a secondary sound source with equal amplitude and opposite phase to the primary noise source to offset and attenuate the noise.
[0005] Among the related technologies, the main implementation is based on the filtered-x least mean square (FxLMS) algorithm. This method requires the use of a longer secondary path estimate to participate in the signal convolution calculation and filter coefficient update. It has a large amount of calculation and requires high chip computing power, which reduces the operating speed of the active noise reduction system, resulting in poor noise reduction effect and affecting the user experience.
[0006] Summary of the Invention
[0007] The purpose of the present disclosure is to provide a noise reduction method, apparatus, terminal device, and storage medium, which obtains a target estimation coefficient, determines the target estimation coefficient and the original filtered signal according to the target noise frequency, and uses the original filtered signal and the target estimation coefficient including the real part value and the imaginary part value to obtain the target filtered signal, selects the real part value and the imaginary part value of the secondary path estimation frequency domain coefficient at the target noise frequency as the secondary path model coefficient, and participates in the modulation of the reference signal, that is, the original filtered signal. This method can convert the convolution calculation of the reference signal and the secondary channel estimation into a simple operation between the real part value and the imaginary part value of the target estimation coefficient corresponding to the reference signal and the target noise frequency, such as a product operation, thereby reducing the amount of calculation and increasing the operating speed of the active noise reduction system, thereby improving the noise reduction effect.
[0008] According to a first aspect of an embodiment of the present disclosure, a noise reduction method is provided, comprising:
[0009] Obtaining a target estimation coefficient, where the target estimation coefficient is obtained by a target noise frequency, where the target noise frequency is a frequency corresponding to the target noise, and the target estimation coefficient includes a real part value and an imaginary part value;
[0010] generating an original filtered signal having a frequency equal to the target noise frequency according to the target noise frequency;
[0011] A target filtered signal is obtained according to the original filtered signal and the real and imaginary values of the target estimation coefficients. The target filtered signal is used to control a loudspeaker to output a filtered sound signal to reduce the target noise.
[0012] Optionally, before obtaining the target estimation coefficient, the method further includes:
[0013] Obtaining an original estimation coefficient set, where the original estimation coefficient set is obtained through secondary path modeling, and the original estimation coefficient set includes estimation coefficients corresponding to a plurality of noise frequencies;
[0014] Performing data transformation on the estimation coefficient corresponding to each noise frequency in the original estimation coefficient set to obtain a target estimation coefficient set, where each estimation coefficient in the target estimation coefficient set includes a real part value and an imaginary part value;
[0015] The step of determining a target estimation coefficient according to the target noise frequency includes:
[0016] Obtain an estimation coefficient corresponding to the target noise frequency in the target estimation coefficient set to obtain the target estimation coefficient.
[0017] Optionally, the original filtered signal includes a sinusoidal reference signal and a phase-shifted signal;
[0018] Generating an original filtered signal having a frequency of the target noise frequency according to the target noise frequency includes:
[0019] generating the sinusoidal reference signal having a frequency equal to the target noise frequency according to the target noise frequency;
[0020] Phase transformation is performed on the sinusoidal reference signal to obtain the phase-shifted signal.
[0021] Obtaining a target filtered signal according to the original filtered signal and the real and imaginary values of the target estimated coefficients includes:
[0022] Obtaining a reference filtered signal according to the original filtered signal and the real and imaginary values of the target estimated coefficients;
[0023] Obtaining a target weight coefficient according to the reference filtered signal, the original error signal, and the original weight coefficient, wherein the original weight coefficient is a current weight coefficient of the first adaptive filtering model, and the original error signal is a residual noise signal corresponding to the current residual noise detected by the error microphone;
[0024] The target filtered signal is obtained according to the original filtered signal and the target weight coefficient.
[0025] Optionally, the original filtered signal includes a sinusoidal reference signal and a phase-shifted signal, and the reference filtered signal includes a first reference sub-signal and a second reference sub-signal;
[0026] The step of obtaining a reference filtered signal according to the original filtered signal and the real and imaginary values of the target estimated coefficients includes:
[0027] multiplying the real part value in the target estimation coefficient by the sinusoidal reference signal in the original filtered signal to obtain the first reference sub-signal;
[0028] The imaginary part value in the target estimation coefficient is multiplied by the phase shift signal in the original filtered signal to obtain the second reference sub-signal.
[0029] Optionally, the original weight coefficient includes a first original weight sub-coefficient, and the target weight coefficient includes a first target weight sub-coefficient;
[0030] Obtaining a target weight coefficient according to the reference filtered signal, the original error signal, and the original weight coefficient includes:
[0031] updating the first original weight sub-coefficient according to the first reference sub-signal and the original error signal to obtain the first target weight sub-coefficient;
[0032] The step of obtaining the target filtered signal according to the original filtered signal and the target weight coefficient includes:
[0033] Obtaining a first filtered signal according to the sinusoidal reference signal and the first target weight sub-coefficient;
[0034] The target filtered signal is obtained according to the first filtered signal.
[0035] Optionally, the original weight coefficient further includes a second original weight sub-coefficient, and the target weight coefficient further includes a second target weight sub-coefficient;
[0036] Obtaining a target weight coefficient according to the reference filtered signal, the original error signal, and the original weight coefficient includes:
[0037] updating the second original weight sub-coefficient according to the second reference sub-signal and the original error signal to obtain the second target weight sub-coefficient;
[0038] The step of obtaining the target filtered signal according to the original filtered signal and the target weight coefficient includes:
[0039] Obtaining a second filtered signal according to the phase-shifted signal and the second target weight sub-coefficient;
[0040] The target filtered signal is obtained according to the first filtered signal and the second filtered signal.
[0041] Optionally, the estimated coefficient corresponding to any noise frequency in the original estimated coefficient set is obtained by the following steps:
[0042] Obtaining a modeled noise signal corresponding to any noise frequency;
[0043] Inputting the modeled noise signal into a second adaptive filtering model to generate a modeled filtered signal;
[0044] synthesizing the modeling noise signal and the modeling filter signal to obtain a modeling error signal;
[0045] Optimizing the parameters of the second adaptive filtering model according to the modeling error signal, and returning to the step of inputting the modeling noise signal into the second adaptive filtering model to generate a modeling filtering signal until the modeling error signal satisfies a preset condition, thereby obtaining a target adaptive filtering model;
[0046] The current estimated coefficient of the target adaptive filtering model is determined as the estimated coefficient corresponding to any one noise frequency.
[0047] According to a second aspect of an embodiment of the present disclosure, there is provided a noise reduction device, comprising:
[0048] processor;
[0049] a memory for storing processor-executable instructions;
[0050] The processor is configured to execute the steps of the noise reduction method provided in the first aspect of the present disclosure.
[0051] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the noise reduction method provided in the first aspect of the present disclosure are implemented.
[0052] According to a fourth aspect of an embodiment of the present disclosure, a terminal device is provided, comprising a speaker, an error microphone, a host and the noise reduction device provided in the second aspect of the present disclosure, wherein the noise reduction device is communicatively connected to the speaker, error microphone and host respectively.
[0053] Through the above technical solution, the target estimation coefficient is obtained, which includes a real part value and an imaginary part value. Then, according to the target noise frequency, an original filtered signal with a frequency of the target noise frequency is generated, and according to the original filtered signal and the real part value and the imaginary part value in the target estimation coefficient, a target filtered signal is obtained. Finally, according to the target filtered signal, the target filtered signal is used to control the loudspeaker to output a filtered sound signal to reduce the target noise. The real part value and the imaginary part value of the secondary path estimation frequency domain coefficient at the target noise frequency are selected as the secondary path model coefficients to participate in the modulation of the reference signal, that is, the original filtered signal. This method can convert the convolution calculation of the reference signal and the secondary channel estimation into a simple operation between the real part value and the imaginary part value of the target estimation coefficient corresponding to the reference signal and the target noise frequency, such as a product operation, which reduces the amount of calculation and improves the operating speed of the active noise reduction system, thereby improving the noise reduction effect.
[0054] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0056] Fig. 1 is a schematic diagram showing a terminal device according to an exemplary embodiment.
[0057] Fig. 2 is a flow chart showing a noise reduction method according to an exemplary embodiment.
[0058] FIG3 is a schematic diagram showing multiple secondary paths according to an exemplary embodiment.
[0059] Fig. 4 is a schematic diagram showing target estimation coefficients corresponding to different frequencies according to an exemplary embodiment.
[0060] Fig. 5 is a flowchart showing a method for obtaining a target filtered signal according to an exemplary embodiment.
[0061] Fig. 6 is a flowchart showing a noise reduction method according to an exemplary embodiment.
[0062] Fig. 7 is a flowchart showing a method for determining an estimation coefficient corresponding to any noise frequency according to an exemplary embodiment.
[0063] Fig. 8 is a flowchart showing an overall process of a noise reduction method according to an exemplary embodiment.
[0064] Fig. 9 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] The following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
[0066] Before introducing a noise reduction method provided by an embodiment of the present disclosure, a terminal device provided by an embodiment of the present disclosure is first introduced. The terminal device may include a speaker, an error microphone, a host computer, and a noise reduction device, wherein the noise reduction device is communicatively connected to the speaker, error microphone, and host computer, respectively. Optionally, the terminal device may be a vehicle, an unmanned aerial vehicle, a ship, or other types of equipment. Optionally, FIG1 is a schematic diagram of a terminal device according to an exemplary embodiment. Taking the terminal device as an example, as shown in FIG1 , the noise reduction method can be applied to the vehicle to reduce the noise of the vehicle's engine 105 within the vehicle. The terminal device may include a vehicle's engine 105, a vehicle host computer 103, a speaker 101, an error microphone 102, and a noise reduction controller 104. The noise reduction controller 104 may be communicatively connected to the speaker 101, the error microphone 102, and the vehicle host computer 103, respectively. For example, the noise reduction controller 104 may be communicatively connected to the vehicle host computer 103 via a CAN (Controller Area Network) bus. When the engine 105 is operating, it generates noise, which affects the user experience within the vehicle. The vehicle host 103 can obtain the engine 105 speed and determine the target noise frequency of the target noise generated by the engine based on the engine 105 speed. The vehicle host 103 then sends the target noise frequency to the noise reduction controller 104, which can determine a target filter signal based on the obtained target noise frequency. The target filter signal is then sent to the speaker 101, so that the speaker 101 outputs a filtered sound signal based on the target filter signal, offsetting and attenuating the target noise to achieve a noise reduction effect. The error microphone 102 can also be used to obtain the residual noise after noise reduction and transmit the residual noise to the noise reduction controller 104 through the error microphone 102. When the noise reduction controller 104 generates the target filter signal next time, it can simultaneously generate a more accurate target filter signal based on the obtained new target noise frequency and the residual noise, thereby achieving a better noise reduction effect. Optionally, both the speaker and the error microphone can be multiple, so that multiple speakers can be used to reduce noise at the target locations where the multiple error microphones are located, thereby reducing the overall noise within the vehicle.
[0067] FIG2 is a flow chart of a noise reduction method according to an exemplary embodiment, FIG3 is a schematic diagram of multiple secondary paths according to an exemplary embodiment, and FIG4 is a schematic diagram of target estimation coefficients corresponding to different frequencies according to an exemplary embodiment. As shown in FIG2 to FIG4 , the method may be applied to a noise reduction device, which may be a noise reduction controller. The method may include the following steps:
[0068] In step S201, a target estimation coefficient is obtained. The target estimation coefficient is obtained through a target noise frequency. The target noise frequency is a frequency corresponding to the target noise. The target estimation coefficient includes a real part value and an imaginary part value.
[0069] In this embodiment, a target estimation coefficient corresponding to a target noise frequency can be obtained from a predetermined set of target estimation coefficients. This target estimation coefficient set is obtained by performing a data transformation on an original set of estimation coefficients previously obtained through secondary path modeling. The original set of estimation coefficients includes estimation coefficients corresponding to multiple noise frequencies, and each noise frequency may correspond to estimation coefficients for multiple secondary paths. The data transformation method may be a Fourier transform. After the transformation, each estimation coefficient in the original target estimation set is an imaginary number and includes a real part value and an imaginary part value. The resulting target estimation coefficient also includes a real part value and an imaginary part value, where the real part value corresponds to the value corresponding to the real part of the target estimation coefficient, and the imaginary part value corresponds to the value corresponding to the imaginary part of the target estimation coefficient. The target estimation coefficient is the estimation coefficient corresponding to the target secondary path. The target noise can be the noise emitted by a target noise source. For example, the target noise source can be an engine, and the target noise is the noise generated by the engine. For a vehicle engine, the target noise frequency corresponding to the target noise can be determined by obtaining the vehicle speed. Alternatively, the target noise can be directly measured and analyzed to obtain the corresponding target noise frequency.
[0070] In step S202 , an original filtered signal having a frequency equal to the target noise frequency is generated according to the target noise frequency.
[0071] In this embodiment, according to the target noise frequency, a sine wave generator may be used to generate an original filtered signal having the same frequency as the target noise frequency.
[0072] In step S203, a target filtering signal is obtained according to the original filtering signal and the real and imaginary values of the target estimation coefficients. The target filtering signal is used to control the loudspeaker to output a filtered sound signal to reduce the target noise.
[0073] In this embodiment, since the target estimation coefficient is the estimation coefficient corresponding to the target secondary path, and the target estimation coefficient is an imaginary number, including a real value and an imaginary value, the weight coefficient of the adaptive filtering model can be adjusted based on the product between the original filtered signal and the target estimation coefficient, thereby obtaining the target filtered signal, and the convolution calculation of the reference signal and the secondary channel estimation is converted into a simple operation between the real value and the imaginary value of the target estimation coefficient corresponding to the reference signal and the target noise frequency, such as a product operation, which reduces the amount of calculation and improves the generation rate of the target filtered signal.
[0074] Optionally, after obtaining the target filtered signal, the speaker can be controlled to output a filtered acoustic signal corresponding to the target filtered signal. The filtered acoustic signal can offset and attenuate the target noise, thereby reducing the target noise. For example, the target filtered signal can be sent to the speaker, so that the speaker outputs a filtered acoustic signal based on the target filtered signal.
[0075] As shown in Figure 3, when there are multiple speakers, the target speaker corresponding to the target secondary path can be controlled to output the filtered sound signal. The target secondary path is the secondary path between the target speaker and the target error microphone. The position of the target error microphone represents the target position where noise reduction is required. A secondary path can be established between a speaker and an error microphone. In the figure, there are a total of l×m secondary paths.
[0076] In one possible embodiment, before obtaining the target estimation coefficient, the method also includes: obtaining an original estimation coefficient set, which is obtained through secondary path modeling, and the original estimation coefficient set includes estimation coefficients corresponding to multiple noise frequencies; performing data transformation on the estimation coefficient corresponding to each noise frequency in the original estimation coefficient set to obtain a target estimation coefficient set, and each estimation coefficient in the target estimation coefficient set includes a real part value and an imaginary part value.
[0077] In this embodiment, an original set of estimated coefficients can be pre-established through secondary path modeling. This set includes estimated coefficients corresponding to multiple noise frequencies. For example, if the vehicle engine noise frequency ranges from 50 to 200 Hz, an estimated coefficient corresponding to each Hz within the range can be established. If there are multiple speakers and error microphones, multiple secondary paths can be established, with one secondary path established between each speaker and each error microphone. Each secondary path corresponds to an estimated coefficient. In this case, each noise frequency can correspond to multiple secondary paths, that is, each noise frequency can correspond to multiple estimated coefficients.
[0078] After obtaining the original estimated coefficient set, a Fourier transform can be performed on the estimated coefficient corresponding to each noise frequency in the original estimated coefficient set to obtain a target estimated coefficient set. Since the estimated coefficient becomes an imaginary number after the Fourier transform, each estimated coefficient in the target estimated coefficient set includes its corresponding real part value and imaginary part value.
[0079] After obtaining the target estimation coefficient set, the estimation coefficient corresponding to the noise frequency that is the same as the target noise frequency can be searched from the target estimation coefficient set according to the target noise frequency to obtain the target estimation coefficient. The target estimation coefficient can be the estimation coefficient corresponding to multiple secondary paths corresponding to the noise frequency.
[0080] Through the above method, after obtaining the original estimation coefficient set through secondary path modeling, each estimation coefficient in the original estimation coefficient set can be Fourier transformed so that each estimation coefficient after the transformation includes a real part value and an imaginary part value, so that the convolution calculation of the reference signal and the secondary channel estimation can be converted into a simple operation between the real part value and the imaginary part value of the target estimation coefficient corresponding to the reference signal and the target noise frequency, which can improve the calculation speed.
[0081] FIG5 is a flow chart of a method for obtaining a target filtered signal according to an exemplary embodiment, and FIG6 is a block diagram of a noise reduction method according to an exemplary embodiment. As shown in FIG5 and FIG6 , in one possible implementation, before obtaining the target filtered signal based on the original filtered signal and the real and imaginary values of the target estimated coefficients, original weight coefficients and an original error signal may also be obtained. The original weight coefficients are the current weight coefficients of the first adaptive filtering model, and the original error signal is the residual noise signal corresponding to the current residual noise detected by the error microphone. The target filtered signal can be obtained by combining the original weight coefficients and the original error signal.
[0082] Optionally, when there are multiple speakers and error microphones, that is, when there are multiple secondary paths, the target filter signal for each secondary path can be calculated separately to determine the target filter signal corresponding to each speaker. The original weight coefficients can be the current weight coefficients of the first adaptive filtering model in the target secondary path, and the original error signal can be the residual noise signal corresponding to the current residual noise detected by the error microphone in the target secondary path.
[0083] Obtaining a target filtered signal according to the original filtered signal and the real and imaginary values of the target estimated coefficients may include the following steps:
[0084] In step S501 , a reference filtered signal is obtained according to the original filtered signal and the real and imaginary values of the target estimated coefficients.
[0085] In this embodiment, the target noise frequency changes continuously in real time throughout the entire process, generating target noises of varying frequencies. The target noise frequency is continuously acquired, and a target filtered signal corresponding to each acquired target noise frequency is iteratively generated. This allows the generated target filtered signal to change with changes in the target noise, resulting in a more effective noise reduction effect. A reference filtered signal can be obtained by multiplying the original filtered signal by the real and imaginary values of the target estimated coefficients. The ordinal number of the acquired target noise frequency can be represented by n, which represents the number of iterations.
[0086] In a possible implementation, in order to more easily calculate and obtain the target filtered signal, the original filtered signal may include a sinusoidal reference signal and a phase-shifted signal.
[0087] Optionally, the method for generating the original filtered signal with the target noise frequency according to the target noise frequency may be: generating a sinusoidal reference signal with the target noise frequency according to the target noise frequency; performing phase transformation on the sinusoidal reference signal to obtain a phase-shifted signal.
[0088] In this embodiment, a sinusoidal reference signal having the same frequency as the target noise frequency may be generated by a sine wave generator based on the target noise frequency. Two sinusoidal reference signals may be generated, namely a first sinusoidal reference signal and a second sinusoidal reference signal. The first sinusoidal reference signal is retained, and a phase shift is performed on the second sinusoidal reference signal to obtain a phase-shifted signal. The second sinusoidal reference signal may be phase-shifted by 90° to obtain the phase-shifted signal.
[0089] The expression of the sinusoidal reference signal may be: x0(n)=A1 sin 2πft.
[0090] The expression of the phase shift signal can be: x1(n)=A2 cos 2πft.
[0091] Where x0(n) is the sinusoidal reference signal, x1(n) is the phase-shifted signal, A1 and A2 are empirical parameters that can be set according to actual conditions, f is the target noise frequency, and t is time.
[0092] In one possible implementation, the reference filtered signal includes a first reference sub-signal and a second reference sub-signal. Optionally, the real part of the target estimation coefficient may be multiplied by a sinusoidal reference signal in the original filtered signal to obtain the first reference sub-signal; and the imaginary part of the target estimation coefficient may be multiplied by a phase-shifted signal in the original filtered signal to obtain the second reference sub-signal.
[0093] In this embodiment, the reference filtered signal can be obtained according to the product between the original filtered signal and the target estimation coefficient, thereby reducing the amount of calculation.
[0094] For example, the calculation formula of the first reference sub-signal may be:
[0095] The calculation formula of the first reference sub-signal can be:
[0096] Among them, x 0f (n) is the first reference sub-signal, x 1f (n) is the second reference sub-signal, is the real part of the target estimated coefficient, is the imaginary part of the target estimated coefficient.
[0097] In step S502, target weight coefficients are obtained according to the reference filtered signal, the original error signal and the original weight coefficients.
[0098] In this embodiment, the original weight coefficient may include a first original weight sub-coefficient and a second original weight sub-coefficient, and the target weight coefficient may include a first target weight sub-coefficient and a second target weight sub-coefficient. Optionally, the first original weight sub-coefficient may be updated based on the first reference sub-signal and the original error signal to obtain a first target weight sub-coefficient; and the second original weight sub-coefficient may be updated based on the second reference sub-signal and the original error signal to obtain a first target weight sub-coefficient. In each round of iteration, the target filtered signal is obtained based on the weight coefficients of the previous round and combined with the original error signal. The first original weight sub-coefficient in the current round of iteration is the first target weight sub-coefficient corresponding to the first reference sub-signal obtained in the previous round of iteration, and the second original weight sub-coefficient is the second target weight sub-coefficient corresponding to the second reference sub-signal obtained in the previous round of iteration.
[0099] For example, the calculation formula of the first target weight sub-coefficient may be: w0(n+1)=w0(n)-μe(n)x 0f (n)
[0100] The calculation formula of the second target weight sub-coefficient can be: w1(n+1)=w1(n)-μe(n)x 1f (n)
[0101] Where w0(n) is the first original weight sub-coefficient, w0(n+1) is the first target weight sub-coefficient, μ is the step size, w(n) is the original error signal, and x 0f (n) is the first reference sub-signal, w1(n) is the first original weight sub-coefficient, w1(n+1) is the first target weight sub-coefficient, μ is the step size, e(n) is the original error signal, x 1f (n) is the first reference sub-signal, and n is the ordinal number of the acquired target noise frequency.
[0102] Optionally, when there are multiple secondary paths, each secondary path may have a corresponding weight coefficient, so that each secondary path may obtain a corresponding target weight coefficient through the above method. The original error signal is the residual noise signal detected by the corresponding error microphone in the secondary path.
[0103] In step S503, a target filtered signal is obtained according to the original filtered signal and the target weight coefficient.
[0104] In this embodiment, the original filtered signal may be adjusted based on the target weight coefficient to obtain a target filtered signal.
[0105] For example, the calculation formula of the target filtered signal can be: u(n)=w0(n)x0(n)+w1(n)x1(n)
[0106] Among them, u(n) is the target filtering signal.
[0107] Optionally, when there are multiple secondary paths, u(n) is the target filtered signal corresponding to one of the secondary paths. The target filtered signals corresponding to all secondary paths corresponding to each speaker can be determined using the above method, and the final target filtered signal corresponding to each speaker can be determined based on the target filtered signals corresponding to all secondary paths corresponding to each speaker. For any speaker, the final target filtered signal corresponding to that speaker can be any one of all the target filtered signals corresponding to that speaker, or the final target filtered signal corresponding to that speaker can be the average of all the target filtered signals corresponding to that speaker.
[0108] In a possible implementation, the original weight coefficient includes a first original weight sub-coefficient, and the target weight coefficient includes a first target weight sub-coefficient.
[0109] The method for obtaining the target weight coefficient according to the reference filtered signal, the original error signal and the original weight coefficient may be: updating the first original weight sub-coefficient according to the first reference sub-signal and the original error signal to obtain the first target weight sub-coefficient.
[0110] Furthermore, a method for obtaining a target filtered signal based on the original filtered signal and the target weight coefficient may be: obtaining a first filtered signal based on a sinusoidal reference signal and a first target weight sub-coefficient, and obtaining a target filtered signal based on the first filtered signal.
[0111] FIG7 is a flowchart illustrating a method for determining an estimated coefficient corresponding to any noise frequency according to an exemplary embodiment. As shown in FIG7 , in one possible implementation, the estimated coefficient corresponding to any noise frequency in the original estimated coefficient set may be obtained in advance by means of secondary path modeling, and the method may include the following steps:
[0112] In step S701 , a modeled noise signal corresponding to any noise frequency is obtained.
[0113] In this embodiment, a corresponding estimation coefficient can be established for each noise frequency. If there are multiple speakers and error microphones, multiple secondary paths can be established, and a corresponding estimation coefficient can be established for each secondary path at each noise frequency. A white noise generator can be used to generate a white noise signal at any noise frequency to drive the speaker as the modeling noise, thereby obtaining a modeling noise signal corresponding to the noise frequency.
[0114] In step S702 , the modeled noise signal is input into the second adaptive filtering model to generate a modeled filtered signal.
[0115] In step S703 , the modeled noise signal and the modeled filtered signal are synthesized to obtain a modeled error signal.
[0116] In this embodiment, the modeling filter signal is used to reduce the modeling noise signal. By synthesizing the modeling noise signal and the modeling filter signal, a synthesized modeling error signal can be obtained. The modeling error signal is the sum of the modeling filter signal and the modeling noise signal.
[0117] In step S704, the parameters of the second adaptive filtering model are optimized according to the modeling error signal, and the process returns to the step of inputting the modeling noise signal into the second adaptive filtering model to generate a modeling filtering signal until the modeling error signal meets the preset conditions to obtain the target adaptive filtering model.
[0118] In this embodiment, the parameters of the second adaptive filtering model can be optimized using the modeling error signal, and the process returns to step S702 to re-input the modeling noise signal into the optimized second adaptive filtering model to obtain a new modeling filter signal, so that the modeling filter signal output by the second adaptive filtering model can be closer to the modeling noise signal, until the modeling error signal satisfies a preset condition. For example, the value of the error signal can be determined, which can be a value between 0 and 1, and whether a target adaptive filtering model is obtained can be determined based on the relationship between the value of the error signal and a preset distance. For example, when the value of the error signal is less than or equal to the preset distance, the target adaptive filtering model is determined to be obtained. The preset distance can be 0 or 0.1. The target adaptive filtering model is obtained by training the second adaptive filtering model with a modeling noise signal corresponding to any noise frequency. For example, by training the second adaptive filtering model with the target noise signal, the target adaptive filtering model corresponding to the target noise signal, i.e., the first adaptive filtering model, can be obtained. By training the second adaptive filtering model separately with modeled noise signals of different noise frequencies, target adaptive filtering models corresponding to the noise signals of different noise frequencies can be obtained. Estimation coefficients corresponding to multiple noise frequencies can then be obtained based on the target adaptive filtering model corresponding to the noise signals of different noise frequencies, thereby obtaining an original set of estimation coefficients. For example, the target estimation coefficients can be obtained using the target adaptive filtering model corresponding to the target noise signal of the target noise frequency.
[0119] In step S705 , the current estimated coefficient of the target adaptive filtering model is determined as the estimated coefficient corresponding to any noise frequency.
[0120] In this embodiment, the current estimated coefficients of the target adaptive filtering model are used to obtain a corresponding modeled filtered signal that meets preset conditions. When multiple secondary paths exist, the method of this embodiment obtains the estimated coefficients corresponding to a single secondary path at any given noise frequency. The same method can be used to obtain the estimated coefficients corresponding to secondary paths at other frequencies, ultimately yielding the original set of estimated coefficients.
[0121] FIG8 is a flowchart of an overall noise reduction method according to an exemplary embodiment. As shown in FIG8 , the noise reduction method may optionally include the following steps:
[0122] In step S801 , a loudspeaker is driven to emit modeled noise according to a modeled noise signal of any frequency.
[0123] In step S802 , the error microphone collects the modeled noise signal played by the loudspeaker.
[0124] In step S803, a modeled filtering signal is generated using the second adaptive filtering model.
[0125] In step S804 , the modeled noise signal and the modeled filtered signal are synthesized to obtain a modeled error signal.
[0126] In step S805 , it is determined whether the modeling error signal meets a preset condition. If the modeling error signal does not meet the preset condition, step S806 is executed. If the modeling error signal meets the preset condition, step S807 is executed.
[0127] In step S806, the original weight coefficients are updated to obtain target weight coefficients.
[0128] In step S807, the current estimated coefficients of the target adaptive filtering model are determined as the estimated coefficients corresponding to any noise frequency, and Fourier transform is performed on them.
[0129] In step S808 , the engine is started and the noise reduction system is turned on.
[0130] In step S809 , the host obtains the engine speed information, obtains the target noise frequency, and sends it to the sine wave generator.
[0131] In step S810 , a sine wave generator generates a sinusoidal reference signal and a phase-shifted signal.
[0132] In step S811, the sinusoidal reference signal and the phase-shifted signal are multiplied by the real part value and the imaginary part value of the target estimation coefficient respectively to obtain a reference filtered signal.
[0133] In step S812, the reference filtered signal and the original error signal are input into a first adaptive filtering model to obtain a target filtered signal.
[0134] In step S813 , the speaker outputs a filtered sound signal according to the target filtered signal, where the filtered sound signal is used to reduce the target noise.
[0135] In step S814 , an error signal is collected through the error microphone, and the process returns to step S812 .
[0136] Figure 9 is a block diagram of an electronic device according to an exemplary embodiment. For example, electronic device 900 can be provided as a noise reduction device, which can be a noise reduction controller. Referring to Figure 9, electronic device 900 includes a processor 922, which can be one or more, and a memory 932 for storing a computer program executable by processor 922. The computer program stored in memory 932 can include one or more modules, each corresponding to a set of instructions. In addition, processor 922 can be configured to execute the computer program to perform the above-mentioned noise reduction method.
[0137] Preferably, the electronic device 900 may further include a power supply component 926 and a communication component 950. The power supply component 926 may be configured to perform power management for the electronic device 900, and the communication component 950 may be configured to implement communication, such as wired or wireless communication, for the electronic device 900. Preferably, the electronic device 900 may further include an input / output interface 958. The electronic device 900 may operate based on an operating system stored in the memory 932.
[0138] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, the program instructions implement the steps of the noise reduction method described above. For example, the computer-readable storage medium may be the memory 932 including the program instructions described above. The program instructions may be executed by the processor 922 of the electronic device 900 to perform the noise reduction method described above.
[0139] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and has a code portion for performing the above-mentioned noise reduction method when executed by the programmable device.
[0140] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.
[0141] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0142] In addition, the various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A noise reduction method, characterized in that: include: Obtaining a target estimation coefficient, wherein the target estimation coefficient is obtained by a target noise frequency, wherein the target noise frequency is a frequency corresponding to the target noise, and the target estimation coefficient includes a real part value and an imaginary part value (S202); According to the target noise frequency, generating an original filtered signal having a frequency equal to the target noise frequency (S203); A target filtering signal is obtained according to the original filtering signal and the real and imaginary values in the target estimation coefficients. The target filtering signal is used to control the loudspeaker to output a filtered sound signal to reduce the target noise (S204).
2. The noise reduction method according to claim 1, characterized in that: Before obtaining the target estimation coefficient, the method further includes: Obtaining an original estimation coefficient set, wherein the original estimation coefficient set is obtained through secondary path modeling, and the original estimation coefficient set includes estimation coefficients corresponding to multiple noise frequencies; Performing data transformation on the estimation coefficient corresponding to each noise frequency in the original estimation coefficient set to obtain a target estimation coefficient set, wherein each estimation coefficient in the target estimation coefficient set includes a real part value and an imaginary part value; The step of determining a target estimation coefficient according to the target noise frequency includes: Obtain the estimation coefficient corresponding to the target noise frequency in the target estimation coefficient set to obtain the target estimation coefficient.
3. The noise reduction method according to any one of claims 1 to 2, characterized in that: The original filtered signal includes a sinusoidal reference signal and a phase shift signal; The step of generating an original filtered signal having a frequency equal to the target noise frequency according to the target noise frequency includes: According to the target noise frequency, generating the sinusoidal reference signal having a frequency equal to the target noise frequency; The sinusoidal reference signal is phase-shifted to obtain the phase-shifted signal.
4. The noise reduction method according to any one of claims 1 to 3, characterized in that: The step of obtaining a target filtered signal according to the original filtered signal and the real value and the imaginary value in the target estimated coefficient comprises: Obtaining a reference filtered signal according to the original filtered signal and the real and imaginary values in the target estimated coefficients (S501); Obtaining a target weight coefficient according to the reference filter signal, the original error signal and the original weight coefficient, wherein the original weight coefficient is the current weight coefficient of the first adaptive filter model, and the original error signal is the residual noise signal corresponding to the current residual noise detected by the error microphone (S502); The target filtered signal is obtained according to the original filtered signal and the target weight coefficient (S503).
5. The noise reduction method according to claim 4, characterized in that: The original filtered signal includes a sinusoidal reference signal and a phase shift signal, and the reference filtered signal includes a first reference sub-signal and a second reference sub-signal; The step of obtaining a reference filtered signal according to the original filtered signal and the real value and the imaginary value in the target estimated coefficient comprises: Multiplying the real part value in the target estimation coefficient by the sinusoidal reference signal in the original filtered signal to obtain the first reference sub-signal; The imaginary part value in the target estimation coefficient is multiplied by the phase shift signal in the original filtered signal to obtain the second reference sub-signal.
6. The noise reduction method according to claim 5, characterized in that: The original weight coefficient includes a first original weight sub-coefficient, and the target weight coefficient includes a first target weight sub-coefficient; The step of obtaining a target weight coefficient according to the reference filtered signal, the original error signal and the original weight coefficient comprises: updating the first original weight sub-coefficient according to the first reference sub-signal and the original error signal to obtain the first target weight sub-coefficient; The step of obtaining the target filtered signal according to the original filtered signal and the target weight coefficient comprises: Obtaining a first filtered signal according to the sinusoidal reference signal and the first target weight sub-coefficient; The target filtered signal is obtained according to the first filtered signal.
7. The noise reduction method according to claim 6, characterized in that: The original weight coefficient also includes a second original weight sub-coefficient, and the target weight coefficient also includes a second target weight sub-coefficient; The step of obtaining a target weight coefficient according to the reference filtered signal, the original error signal and the original weight coefficient comprises: updating the second original weight sub-coefficient according to the second reference sub-signal and the original error signal to obtain the second target weight sub-coefficient; The step of obtaining the target filtered signal according to the original filtered signal and the target weight coefficient comprises: Obtaining a second filtered signal according to the phase shift signal and the second target weight sub-coefficient; The target filtered signal is obtained according to the first filtered signal and the second filtered signal.
8. The noise reduction method according to any one of claims 2 to 4, characterized in that: The estimated coefficient corresponding to any noise frequency in the original estimated coefficient set is obtained by the following steps: Obtaining a modeled noise signal corresponding to any noise frequency (S701); Inputting the modeled noise signal into a second adaptive filtering model to generate a modeled filtering signal (S702); The modeling noise signal and the modeling filter signal are synthesized to obtain a modeling error signal (S703); Optimizing the parameters of the second adaptive filtering model according to the modeling error signal, and returning to the step of inputting the modeling noise signal into the second adaptive filtering model to generate a modeling filtering signal until the modeling error signal meets a preset condition, thereby obtaining a target adaptive filtering model (S704); The current estimation coefficient of the target adaptive filtering model is determined as the estimation coefficient corresponding to any one of the noise frequencies (S705).
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the noise reduction method described in any one of claims 1 to 8 are implemented.
10. A noise reduction device, characterized in that: include: a memory (932) having a computer program stored thereon; A processor (922) is used to execute the computer program in the memory (932) to implement the steps of the noise reduction method in any one of claims 1-8.
11. A terminal device, characterized in that: It comprises a loudspeaker (101), an error microphone (102), a host and the noise reduction device according to claim 10, wherein the noise reduction device is communicatively connected to the loudspeaker (101), the error microphone (102) and the host respectively.
12. The terminal device according to claim 11, characterized in that: The terminal device is a vehicle, the terminal device also includes an engine (105) of the vehicle, the host is a vehicle host (103), the noise reduction device is a noise reduction controller (104), the noise reduction controller (104) is respectively connected to the speaker (101), the error microphone (102) and the vehicle host (103), and the vehicle host (103) is connected to the engine (105).
Citation Information
Patent Citations
Active noise reduction filter design method, noise reduction method, system and electronic equipment
CN112562624A
Active noise control device
CN113470608A
Narrowband active noise reduction method, device and system, electronic equipment and storage medium
CN115394278A
Noise cancellation apparatus and noise cancellation method
JP2012058360A
Virtual location noise signal estimation for engine order cancellation
US11183166B1
Cited By
Active noise reduction method and device for narrowband noise, storage medium and terminal
CN120823822A
