Noise reduction processing method, device, equipment, storage medium and program
By using the target delay coefficient to determine the second filtering parameters in the active noise reduction headset, the high calculation amount and delay problems caused by adaptive modeling are solved, and a better noise reduction effect is achieved.
Patent Information
- Application Number
- CN202111205808.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-10-15
AI Technical Summary
In active noise reduction headphones, the secondary channel model coefficient order obtained through adaptive modeling is high, resulting in a large amount of calculation to determine the filter parameters of the adaptive filter, increasing the delay of the signal processing path, and unable to truly improve the noise reduction effect.
By obtaining the target delay coefficient corresponding to the second transmission path between the speaker and the second microphone, the second filtering parameter is determined, and the calculation amount is reduced and the delay of the signal processing path is reduced.
It effectively reduces the calculation amount of the process of determining the filter parameters, reduces the delay of the signal processing path, and enables the adaptive filter to truly improve the noise reduction effect.
Smart Images

Figure CN113923556B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a noise reduction processing method, device, equipment, storage medium and program. Background Art
[0002] With the progress of society and the improvement of people's living standards, headphones have become an indispensable daily necessity for people. Active noise reduction headphones have the function of active noise suppression. A noise reduction processing chip is added to the headphones to generate reverse sound waves equal to the external noise to neutralize and offset the external noise, thereby achieving the effect of active noise reduction.
[0003] In active noise reduction technology based on feedforward filtering, a fixed filter coefficient is usually set for the headphones to achieve the noise reduction function. However, during the mass production of headphones, since the electroacoustic devices of each headphone may be inconsistent, the use of a fixed filter coefficient results in poor noise reduction effects for some headphones. In some related technologies, based on the fixed filter coefficient, an adaptive filter can be cascaded to improve the noise reduction effect. For the cascaded adaptive filter, the model coefficient of the secondary channel is obtained through adaptive modeling, and then the filter parameters of the adaptive filter are adjusted according to the model coefficient of the secondary channel obtained by modeling.
[0004] However, the model coefficients of the secondary channel obtained through modeling are usually of relatively high order, which makes the calculation amount for determining the filter parameters of the adaptive filter large, increases the delay of the signal processing path, and causes the cascaded adaptive filter to be unable to truly improve the noise reduction effect. Summary of the invention
[0005] The present application provides a noise reduction processing method, device, equipment, storage medium and program for reducing the amount of calculation in the process of determining filtering parameters.
[0006] In a first aspect, the present application provides a noise reduction processing method, which is applied to a noise reduction headset, wherein a first microphone is arranged outside an auricle of the noise reduction headset, and a second microphone and a speaker are arranged inside the auricle of the noise reduction headset, and the method comprises:
[0007] Acquire a first audio signal collected by the first microphone;
[0008] Acquire a first filtering parameter corresponding to the first filter, where the first filtering parameter is a preset fixed filtering parameter;
[0009] Acquire a second filter parameter corresponding to a second filter, where the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, where the target delay coefficient is used to indicate the number of delayed audio sampling points;
[0010] The first audio signal is subjected to noise reduction processing according to the first filtering parameter and the second filtering parameter.
[0011] In a possible implementation, performing noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter includes:
[0012] Filtering the first audio signal according to the first filtering parameter to obtain a first filtered signal;
[0013] Filtering the first filtered signal according to the second filtering parameter to obtain a second filtered signal;
[0014] The first audio signal is subjected to noise reduction processing according to the second filtering signal.
[0015] In a possible implementation, performing noise reduction processing on the first audio signal according to the second filtered signal includes:
[0016] The speaker is controlled to play the second filtered signal to achieve noise reduction processing on the first audio signal.
[0017] In a possible implementation, performing noise reduction processing on the first audio signal according to the second filtered signal includes:
[0018] Acquire a second audio signal collected by the second microphone;
[0019] Filtering the second audio signal through a third filter to obtain a third filtered signal;
[0020] The first audio signal is subjected to noise reduction processing according to the second filtered signal and the third filtered signal.
[0021] In a possible implementation, performing noise reduction processing on the first audio signal according to the second filtered signal and the third filtered signal includes:
[0022] fusing the second filtered signal and the third filtered signal to obtain a fused filtered signal;
[0023] The speaker is controlled to play the fusion filter signal to achieve noise reduction processing on the first audio signal.
[0024] In a possible implementation manner, the second filtering parameter is determined in the following manner:
[0025] Determine a first phase-frequency response curve according to the second transmission path, wherein the first phase-frequency response curve includes a first phase change value corresponding to each preset frequency of a plurality of preset frequencies, and the first phase change value is a phase change value of the audio signal of the preset frequency before and after being transmitted through the second transmission path;
[0026] Determining the target delay coefficient according to the first phase-frequency response curve;
[0027] The second filtering parameter is determined according to the target delay coefficient.
[0028] In a possible implementation manner, determining the target delay coefficient according to the first phase-frequency response curve includes:
[0029] Determining a plurality of delay coefficients to be selected;
[0030] Determine respectively a second phase-frequency response curve corresponding to each delay coefficient to be selected, wherein the second phase-frequency response curve includes a second phase change value corresponding to each of the preset frequencies;
[0031] The target delay coefficient is determined among the multiple delay coefficients to be selected according to the second phase-frequency response curve corresponding to each candidate delay coefficient; wherein the difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the target delay coefficient and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within a preset range.
[0032] In a possible implementation manner, for any one of the multiple delay coefficients to be selected, determining a second phase-frequency response curve corresponding to the delay coefficient to be selected includes:
[0033] According to the delay coefficient to be selected, delay processing is performed on the test audio signal to obtain a test delay signal;
[0034] A second phase-frequency response curve corresponding to the delay coefficient to be selected is obtained according to the phase change value of the audio signal of each preset frequency in the test delay signal before and after being transmitted in the second transmission path.
[0035] In a second aspect, the present application provides a noise reduction processing device, which is applied to a noise reduction headset, wherein a first microphone is arranged outside the auricle of the noise reduction headset, and a second microphone and a speaker are arranged inside the auricle of the noise reduction headset, and the device comprises:
[0036] A first acquisition module, used to acquire a first audio signal collected by the first microphone;
[0037] A second acquisition module, used to acquire a first filtering parameter corresponding to the first filter, where the first filtering parameter is a preset fixed filtering parameter;
[0038] A third acquisition module is used to acquire a second filter parameter corresponding to the second filter, where the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, where the target delay coefficient is used to indicate the number of delayed audio sampling points;
[0039] A processing module is used to perform noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter.
[0040] In a possible implementation, the processing module is specifically used to:
[0041] Filtering the first audio signal according to the first filtering parameter to obtain a first filtered signal;
[0042] Filtering the first filtered signal according to the second filtering parameter to obtain a second filtered signal;
[0043] The first audio signal is subjected to noise reduction processing according to the second filtering signal.
[0044] In a possible implementation, the processing module is specifically used to:
[0045] The speaker is controlled to play the second filtered signal to achieve noise reduction processing on the first audio signal.
[0046] In a possible implementation, the processing module is specifically used to:
[0047] Acquire a second audio signal collected by the second microphone;
[0048] Filtering the second audio signal through a third filter to obtain a third filtered signal;
[0049] The first audio signal is subjected to noise reduction processing according to the second filtered signal and the third filtered signal.
[0050] In a possible implementation, the processing module is specifically used to:
[0051] fusing the second filtered signal and the third filtered signal to obtain a fused filtered signal;
[0052] The speaker is controlled to play the fusion filter signal to achieve noise reduction processing on the first audio signal.
[0053] In a possible implementation manner, the apparatus further includes a determining module, and the determining module is configured to:
[0054] Determine a first phase-frequency response curve according to the second transmission path, wherein the first phase-frequency response curve includes a first phase change value corresponding to each preset frequency of a plurality of preset frequencies, and the first phase change value is a phase change value of the audio signal of the preset frequency before and after being transmitted through the second transmission path;
[0055] Determining the target delay coefficient according to the first phase-frequency response curve;
[0056] The second filtering parameter is determined according to the target delay coefficient.
[0057] In a possible implementation, the determining module is specifically configured to:
[0058] Determining a plurality of delay coefficients to be selected;
[0059] Determine respectively a second phase-frequency response curve corresponding to each delay coefficient to be selected, wherein the second phase-frequency response curve includes a second phase change value corresponding to each of the preset frequencies;
[0060] The target delay coefficient is determined among the multiple delay coefficients to be selected according to the second phase-frequency response curve corresponding to each candidate delay coefficient; wherein the difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the target delay coefficient and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within a preset range.
[0061] In a possible implementation, the determining module is specifically configured to:
[0062] For any one of the multiple delay coefficients to be selected, delay processing is performed on the test audio signal according to the delay coefficient to obtain a test delay signal;
[0063] A second phase-frequency response curve corresponding to the delay coefficient to be selected is obtained according to the phase change value of the audio signal of each preset frequency in the test delay signal before and after being transmitted in the second transmission path.
[0064] In a third aspect, the present application provides a noise reduction processing device, comprising: a processor, and a memory communicatively connected to the processor;
[0065] The memory stores computer-executable instructions;
[0066] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.
[0067] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method as described in any one of the first aspects is implemented.
[0068] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements any method in the first aspect when executed by a processor.
[0069] The present application provides a noise reduction processing method, device, equipment, storage medium and program, the method comprising: obtaining a first audio signal collected by a first microphone, obtaining a first filter parameter corresponding to a first filter, the first filter parameter being a preset fixed filter parameter, obtaining a second filter parameter corresponding to a second filter, the second filter parameter being obtained according to a target delay coefficient corresponding to a second transmission path between a loudspeaker and a second microphone, the target delay coefficient being used to indicate the number of delayed audio sampling points, and performing noise reduction processing on the first audio signal according to the first filter parameter and the second filter parameter. In the above process, since the second filter parameter is determined according to the target delay coefficient, it can effectively reduce the amount of calculation and reduce the delay of the signal processing path. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0071] Figure 1 A schematic diagram of a noise reduction headset provided in an embodiment of the present application;
[0072] Figure 2 A noise reduction schematic diagram provided in an embodiment of the present application;
[0073] Figure 3 A flowchart of a noise reduction method provided in an embodiment of the present application;
[0074] Figure 4 A schematic diagram of a feedforward filtering system provided in an embodiment of the present application;
[0075] Figure 5 A schematic diagram of a hybrid filtering system provided in an embodiment of the present application;
[0076] Figure 6 A schematic diagram of a noise reduction process provided in an embodiment of the present application;
[0077] Figure 7 A schematic diagram of another noise reduction process provided in an embodiment of the present application;
[0078] Figure 8 A schematic diagram of a flow chart of a method for determining a second filtering parameter provided in an embodiment of the present application;
[0079] Fig. 9 A schematic diagram of a first phase frequency response curve provided in an embodiment of the present application;
[0080] Fig.10 A schematic diagram of a second phase frequency response curve provided in an embodiment of the present application;
[0081] Fig.11 for Fig.10 The second phase frequency response curve is Fig. 9 Schematic diagram of the phase difference between the first phase frequency response curves;
[0082] Fig.12 A schematic diagram of another feedforward filtering system provided in an embodiment of the present application;
[0083] Fig.13 A schematic diagram of the structure of a noise reduction processing device provided in an embodiment of the present application;
[0084] Fig.14 A schematic diagram of the structure of a noise reduction processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0086] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0087] The embodiments of the present application are described by taking noise reduction headphones as an example. It should be understood that the noise reduction processing method provided by the present application can also be applied to other active noise reduction products, such as active noise reduction systems of vehicles, etc., and the implementation principles are similar.
[0088] Figure 1 Schematic diagram of a noise reduction headset provided in an embodiment of the present application. Figure 1 As shown, a first microphone is arranged outside the auricle of the noise reduction headset, and a second microphone and a speaker are arranged inside the auricle. The first microphone can also be called a reference microphone, and the second microphone can also be called an error microphone.
[0089] The principle of feedforward active noise reduction is: the first microphone collects the noise signal in the environment, the noise signal is filtered through the feedforward filter, and the noise cancellation signal with the opposite phase to the noise signal is played through the speaker inside the headset. The noise signal and the noise cancellation signal are superimposed to achieve an auditory noise reduction effect.
[0090] Figure 2 A noise reduction schematic diagram provided in an embodiment of the present application. Figure 2 The figure illustrates a noise signal, a noise cancellation signal and a residual noise signal. The noise signal may be an ambient noise signal collected by the first microphone in the external environment of the headset. The noise cancellation signal may be a noise signal generated inside the headset with the same amplitude and opposite phase as the ambient noise signal. Playing the noise cancellation signal through the speaker in the headset can cancel the noise cancellation signal and the noise signal, leaving a residual noise signal. In this way, the user wearing the headset can basically not hear the noise, thereby achieving the purpose of noise reduction.
[0091] It is understandable that when complete noise reduction is achieved, the residual noise should be 0, but in the actual implementation process, due to the limitations of equipment and technology, the noise is often not completely eliminated, so there may be a certain residual noise signal. The smaller the residual noise signal, the better the noise reduction effect.
[0092] Since the embodiments of the present application involve a main channel and a secondary channel, the main channel and the secondary channel are described below. In the noise reduction headset, the main channel refers to the transmission path from the first microphone to the second microphone. The secondary channel refers to the transmission path from the speaker to the first microphone.
[0093] In practical applications, the true secondary channel is often not known clearly, so adaptive modeling is generally performed on the secondary channel to obtain estimated secondary channel model coefficients, and the secondary channel model coefficients are used to estimate the secondary channel.
[0094] In active noise reduction technology based on feedforward filtering, a fixed filter coefficient is usually set for the feedforward filter in the earphone to achieve the noise reduction function. However, during the mass production of earphones, since the electroacoustic devices of each earphone may be inconsistent, the use of a fixed filter coefficient results in poor noise reduction effects for some earphones.
[0095] In some related technologies, based on fixed filter coefficients, cascaded adaptive filters can be used to improve noise reduction effects. For cascaded adaptive filters, model coefficients of secondary channels are obtained through adaptive modeling, and then the filter parameters of the adaptive filters are adjusted according to the model coefficients of the secondary channels obtained by modeling.
[0096] However, no matter the adaptive filter is a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter, the model coefficients of the secondary channel obtained by modeling are usually of relatively high order, which makes the calculation amount for determining the filter parameters of the adaptive filter large, increases the delay of the signal processing path, makes it difficult to align with the delay of the acoustic path, and cannot ensure real-time performance, resulting in the inability of the cascaded adaptive filter to truly improve the noise reduction effect.
[0097] In order to solve the above technical problems, an embodiment of the present application provides a noise reduction processing method, which can determine the filtering parameters of the adaptive filter according to the target delay coefficient corresponding to the second transmission path between the speaker of the noise reduction headset and the second microphone, thereby reducing the amount of calculation and reducing the delay of the signal processing path, so that the adaptive filter can truly improve the noise reduction effect.
[0098] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0099] Figure 3 A flowchart of a noise reduction processing method provided in an embodiment of the present application. The method in the embodiment of the present application can be applied to noise reduction headphones. A first microphone is arranged outside the auricle of the noise reduction headphones, and a second microphone and a speaker are arranged inside the auricle of the noise reduction headphones. A processing chip, a processor or a microprocessor is also arranged in the noise reduction headphones to execute the noise reduction processing method provided in the embodiment of the present application.
[0100] like Figure 3 As shown, the method of this embodiment includes:
[0101] S301: Acquire a first audio signal collected by a first microphone.
[0102] In this embodiment, the first microphone can collect the first audio signal. Based on the above description, it can be determined that the first microphone is actually a reference microphone arranged outside the auricle, so the first audio signal collected by the first microphone is actually a noise signal in the environment. The first audio signal can also be called a reference noise signal.
[0103] S302: Obtain a first filtering parameter corresponding to a first filter, where the first filtering parameter is a preset fixed filtering parameter.
[0104] In this embodiment, the first filter is a filter based on feedforward filtering. The first filter uses fixed filtering parameters, that is, the first filtering parameters are fixed filtering parameters. The first filtering parameters are usually determined during the design phase of the noise reduction headphones. When the noise reduction headphones leave the factory, the first filtering parameters are written into the memory of the noise reduction headphones.
[0105] The first filtering parameter is determined during the design phase of the noise reduction headset according to a first transmission path between the first microphone and the second microphone and a second transmission path between the speaker and the second microphone. The first transmission path is a transmission path corresponding to the primary channel, and the second transmission path is a transmission path corresponding to the secondary channel.
[0106] Next, a method for determining the first filtering parameter is described by taking a feedforward filtering system and a hybrid filtering system as examples.
[0107] For the feedforward filter system, Figure 4 Schematic diagram of a feedforward filtering system provided in an embodiment of the present application. Figure 4 As shown, A(z) is the first filter, which can also be called a feedforward filter, P(z) is the transfer function corresponding to the first transmission path between the first microphone and the second microphone, that is, the main channel transfer function, and S(z) is the transfer function corresponding to the second transmission path between the speaker and the second microphone, that is, the secondary channel transfer function.
[0108] x(n) is the reference noise signal collected by the first microphone of the noise canceling headset, and the z-transform domain corresponding to x(n) is recorded as X(z). e(n) is the error noise signal collected by the second microphone of the noise canceling headset, and the z-transform domain corresponding to e(n) is recorded as E(z). d(n) is the residual noise signal after x(n) passes through the main channel P(z), and the z-transform domain corresponding to d(n) is recorded as D(z).
[0109] See also Figure 4 , after the reference noise signal x(n) is processed by the main channel transfer function P(z), the residual noise signal d(n) is obtained. The above process can be recorded in the z-transform domain as:
[0110] D(z)=X(z)P(z) Formula (1)
[0111] Continue to see Figure 4 , after the reference noise signal x(n) is processed by the first filter A(z) and the secondary channel transfer function S(z), it is offset with the residual noise signal d(n) to obtain the error noise signal e(n). The above process can be recorded in the z-transform domain as:
[0112] E(z)=D(z)-X(z)A(z)S(z) Formula (2)
[0113] By transforming the above formula (1), we can get
[0114]
[0115] By transforming the above formula (2), we can get:
[0116]
[0117] Substituting the above formula (3) into formula (4), we get:
[0118]
[0119] According to the above formula (5), when the error noise signal E(z) approaches zero, we get:
[0120]
[0121] That is, the ratio of the transfer function P(z) corresponding to the first transmission path to the transfer function S(z) corresponding to the second transmission path can be determined as the first filter parameter corresponding to the first filter.
[0122] For hybrid filtering systems, Figure 5 A schematic diagram of a hybrid filtering system provided in an embodiment of the present application. Figure 5 As shown, A(z) is the first filter, which can also be called a feedforward filter, P(z) is the transfer function corresponding to the first transmission path between the first microphone and the second microphone, that is, the main channel transfer function, S(z) is the transfer function corresponding to the second transmission path between the speaker and the second microphone, that is, the secondary channel transfer function. C(z) is a feedback filter.
[0123] x(n) is the reference noise signal collected by the first microphone of the noise canceling headset, and the z-transform domain corresponding to x(n) is recorded as X(z). e(n) is the error noise signal collected by the second microphone of the noise canceling headset, and the z-transform domain corresponding to e(n) is recorded as E(z). d(n) is the residual noise signal after x(n) passes through the main channel P(z), and the z-transform domain corresponding to d(n) is recorded as D(z).
[0124] See also Figure 5 , after the reference noise signal x(n) is processed by the main channel transfer function P(z), the residual noise signal d(n) is obtained. The above process can be recorded in the z-transform domain as:
[0125] D(z)=X(z)P(z) Formula (7)
[0126] Continue to see Figure 5 , the reference noise signal x(n) is processed by the first filter A(z) to obtain the first processing result X(z)A(z). The error noise signal e(n) is processed by the feedback filter C(z) to obtain the second processing result E(z)C(z). The first processing result and the second processing result are superimposed, and the superimposed result is processed by the secondary channel transfer function S(z) and then offset with the residual noise signal d(n) to obtain the error noise signal e(n). The above process can be recorded in the z transform domain as:
[0127] E(z)=D(z)-(X(z)A(z)+E(z)C(z))S(z) Formula (8)
[0128] By transforming the above formula (7) and formula (8), we can obtain:
[0129]
[0130] According to the above formula (9), when the error noise signal E(z) approaches 0, we get:
[0131]
[0132] That is, the ratio of the transfer function P(z) corresponding to the first transmission path to the transfer function S(z) corresponding to the second transmission path can be determined as the first filter parameter corresponding to the first filter.
[0133] By the above Figure 4 and Figure 5 It can be seen that for the feedforward filtering system and the hybrid filtering system, the design objectives of the first filtering parameters corresponding to the first filter are the same, and the ratio of the transfer function P(z) corresponding to the first transmission path to the transfer function S(z) corresponding to the second transmission path can be determined as the first filtering parameter corresponding to the first filter.
[0134] In some possible implementations, the first transmission path and the second transmission path of the noise reduction headset can be measured to obtain the amplitude-frequency response curve and the phase-frequency response curve of the first transmission path, and the amplitude-frequency response curve and the phase-frequency response curve of the second transmission path. Then, according to the above formula (5) or formula (10), the expected frequency response of the first filter is obtained. The expected frequency response is approximated and fitted using an IIR or FIR-based filtering method, and the best-fitting filtering parameters are determined as the first filtering parameters corresponding to the first filter.
[0135] S303: Obtain a second filter parameter corresponding to a second filter, where the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, and the target delay coefficient is used to indicate the number of delayed audio sampling points.
[0136] In the actual mass production process of noise-cancelling headphones, due to the inconsistency of electroacoustic devices, the transfer function P(z) corresponding to the first transmission path and / or the transfer function S(z) corresponding to the second transmission path of some headphones change, thereby causing the design objectives of the first filter to change accordingly. At this time, if the first filtering parameters determined based on the aforementioned design objectives are still used, the noise reduction performance will be reduced.
[0137] Therefore, in this embodiment, a second filter may be cascaded after the first filter. The second filter may also be called an adaptive filter, which is used to correct and compensate for the design objective of the first filter.
[0138] Different from the prior art, the second filtering parameter in the embodiment of the present application is obtained according to the target delay coefficient corresponding to the second transmission path (ie, the secondary channel). The target delay coefficient is used to indicate the number of delayed audio sampling points.
[0139] The concept of audio sampling points is introduced below. When collecting audio signals, signals are usually collected at a certain sampling rate. For example, the sampling rate can be 384k, and the unit is Hz, which means that the sampling frequency is 384k, that is, there are 384,000 sampling points in 1 second, and audio is collected once at each sampling point, so each sampling point corresponds to a sound signal.
[0140] It is understandable that the original sound signal is continuous, but digital processing is performed during the processing, so the continuous sound signal needs to be discretized. The discretization of the sound signal can be achieved according to the sampling point method introduced above, and then the sound signal of each sampling point after discretization is denoised separately, so as to achieve noise reduction processing.
[0141] Based on the concept of audio sampling points introduced above, the target delay coefficient in this embodiment specifically refers to the number of delayed audio sampling points. The target delay coefficient is used to determine the filtering parameters of the second filter. Specifically, in the related art, the filtering parameters of the second filter are determined based on the secondary channel model coefficients. However, the amount of calculation for processing based on the secondary channel model coefficients is large, and the purpose of processing the secondary channel model coefficients is to compensate for the delay effect of the secondary channel. In this implementation, the target delay coefficient is directly used to compensate for the delay effect of the secondary channel, thereby significantly reducing the amount of calculation while ensuring the noise reduction performance.
[0142] In some possible implementations, during the mass production of noise cancelling headphones, the target delay coefficient corresponding to the second transmission path of each noise cancelling headphone can be determined, and then, based on the target delay coefficient, the second filtering parameters corresponding to the second filter can be determined. After the second filtering parameters are determined, the second filtering parameters can be written into the memory of the noise cancelling headphones. In this way, the second filtering parameters can be obtained from the memory during the subsequent use of the noise cancelling headphones. From the perspective of the use stage of the noise cancelling headphones, the second filtering parameters corresponding to the second filter in this embodiment are actually fixed filtering parameters. Since the second filtering parameters are determined separately for the second transmission path of each noise cancelling headphone in the mass production stage, from this perspective, the second filtering parameters of this embodiment can also be called semi-adaptive filtering parameters.
[0143] It should be noted that this embodiment does not specifically limit the method for determining the target delay coefficient and the method for determining the second filtering parameter. Some possible implementation methods can be found in the detailed description of the subsequent embodiments.
[0144] S304: Perform noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter.
[0145] Next, a method of performing noise reduction processing on the first audio signal is described by taking a feedforward filtering system and a hybrid filtering system as examples.
[0146] For the feedforward filtering system, noise reduction can be performed in the following ways:
[0147] The first audio signal is filtered according to the first filtering parameter to obtain a first filtered signal; the first filtered signal is filtered according to the second filtering parameter to obtain a second filtered signal; and noise reduction is performed according to the second filtered signal.
[0148] Optionally, the speaker may be controlled to play the second filtered signal to achieve noise reduction processing on the first audio signal.
[0149] Combine the following Figure 6Give an example. Figure 6 A schematic diagram of a noise reduction process provided in an embodiment of the present application. Figure 6 As shown, the first microphone collects the first audio signal x(n), and after the first audio signal x(n) passes through the transfer function P(z) of the first transmission path (i.e., the main channel), a residual noise signal d(n) is obtained. At the same time, the first filter A(z) filters the first audio signal according to the first filtering parameter to obtain the first filtered signal y(n). The second filter W(z) filters the first filtered signal y(n) according to the second filtering parameter to obtain the second filtered signal z(n). The speaker is controlled to play the second filtered signal z(n) so that the second filtered signal z(n) and the residual noise signal d(n) are offset, thereby achieving the purpose of noise reduction.
[0150] For the hybrid filtering system, noise reduction can be performed in the following ways:
[0151] The first audio signal is filtered according to the first filtering parameters to obtain a first filtered signal; the first filtered signal is filtered according to the second filtering parameters to obtain a second filtered signal; the second audio signal collected by the second microphone is acquired, and the second audio signal is filtered through a third filter to obtain a third filtered signal; and the first audio signal is denoised according to the second filtered signal and the third filtered signal.
[0152] Optionally, the second filtered signal and the third filtered signal may be fused to obtain a fused filtered signal, and a speaker may be controlled to play the fused filtered signal to achieve noise reduction processing on the first audio signal.
[0153] The second microphone is an error microphone, and the second audio signal collected by the second microphone can also be called an error noise signal. The third filter is a feedback filter.
[0154] Combine the following Figure 7 Give an example. Figure 7 A schematic diagram of another noise reduction process provided in an embodiment of the present application. Figure 7As shown, the first microphone collects the first audio signal x(n), and after the first audio signal x(n) passes through the transfer function P(z) of the first transmission path (i.e., the main channel), a residual noise signal d(n) is obtained. At the same time, the first filter A(z) filters the first audio signal according to the first filtering parameter to obtain the first filtered signal y(n). The second filter W(z) filters the first filtered signal y(n) according to the second filtering parameter to obtain the second filtered signal z(m). The second microphone collects the second audio signal e(n), and the second audio signal e(n) is filtered by the third filter C(z) to obtain the third filtered signal f(n). The second filtered signal z(n) and the third filtered signal f(n) are fused to obtain a fused filtered signal g(n). The speaker is controlled to play the fused filtered signal g(n) so that the fused filtered signal g(n) and the residual noise signal d(n) are offset, thereby achieving the purpose of noise reduction.
[0155] The noise reduction processing method provided in this embodiment includes: obtaining a first audio signal collected by a first microphone, obtaining a first filter parameter corresponding to a first filter, the first filter parameter being a preset fixed filter parameter, obtaining a second filter parameter corresponding to a second filter, the second filter parameter being obtained according to a target delay coefficient corresponding to a second transmission path between a loudspeaker and a second microphone, the target delay coefficient being used to indicate the number of delayed audio sampling points, and performing noise reduction processing on the first audio signal according to the first filter parameter and the second filter parameter. In the above process, since the second filter parameter is obtained according to the target delay coefficient corresponding to the second transmission path, on the one hand, it can effectively compensate for the delay effect of the secondary channel and truly and effectively improve the noise reduction effect; on the other hand, only delay processing is required when determining the second filter parameter, which can effectively reduce the amount of calculation and reduce the delay of the signal processing path.
[0156] Based on the above embodiment, the method for determining the second filtering parameter in the above embodiment is described in detail below.
[0157] Figure 8 Schematic diagram of a flow chart of a method for determining a second filtering parameter provided in an embodiment of the present application. Figure 8 As shown, the method of this embodiment includes:
[0158] S801: Determine a first phase-frequency response curve according to a second transmission path, wherein the first phase-frequency response curve includes a first phase change value corresponding to each preset frequency in a plurality of preset frequencies, and the first phase change value is a phase change value of an audio signal of the preset frequency before and after transmission on the second transmission path.
[0159] It is understandable that the audio signal is a sinusoidal signal, so the phase of the audio signal will change after passing through the transmission path. The phase of the audio signal before passing through the second transmission path of the noise reduction headset may be different from the phase after passing through the second transmission path. In this embodiment, the phase change value of the audio signal before and after transmission on the second transmission path is referred to as the first phase change value.
[0160] In this embodiment, the first phase-frequency response curve is an ideal secondary channel phase-frequency response curve of the noise reduction headphone. Fig. 9 Schematic diagram of the first phase frequency response curve provided in the embodiment of the present application. Fig. 9 As shown, the horizontal axis is frequency and the vertical axis is phase, wherein the meaning of the response curve is the first phase change value corresponding to each preset frequency.
[0161] In some possible implementations, the first phase-frequency response curve may be obtained by measuring with an instrument or by modeling the second transmission path of the noise reduction headset.
[0162] S802: Determine a plurality of delay coefficients to be selected.
[0163] In this embodiment, multiple delay coefficients to be selected may be determined first, and then a target delay coefficient may be determined from the multiple delay coefficients to be selected. The target delay coefficient is one of the multiple delay coefficients to be selected. In the actual implementation process, the specific selection of the multiple delay coefficients to be selected may be determined according to actual needs, and this embodiment does not impose any particular restrictions on this.
[0164] S803: Determine a second phase-frequency response curve corresponding to each delay coefficient to be selected, wherein the second phase-frequency response curve includes a second phase change value corresponding to each of the preset frequencies.
[0165] The second phase change value is a phase change value of the audio signal of a preset frequency before and after being transmitted on the second transmission path.
[0166] In one possible implementation, for any one of a plurality of delay coefficients to be selected, a second phase-frequency response curve corresponding to the selected delay coefficient can be obtained in the following manner: according to the selected delay coefficient, a test audio signal is delayed to obtain a test delay signal; and according to the phase change value of the audio signal of each preset frequency in the test delay signal before and after transmission in the second transmission path, the second phase-frequency response curve corresponding to the selected delay coefficient is obtained.
[0167] For example, Fig.10 Schematic diagram of the second phase frequency response curve provided in the embodiment of the present application. Fig.10 As shown, the horizontal axis is frequency and the vertical axis is phase. The response curve illustrates the second phase change value corresponding to each preset frequency of the test delay signal.
[0168] It should be understood that the second phase-frequency response curves corresponding to different delay coefficients to be selected may be different. Fig.10 Only one second phase-frequency response curve corresponding to a candidate delay coefficient is illustrated.
[0169] S804: Determine the target delay coefficient from the multiple delay coefficients to be selected according to the second phase-frequency response curves corresponding to the respective delay coefficients to be selected.
[0170] The difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the target delay coefficient and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within a preset range.
[0171] Optionally, the preset range may be an interval of [-90°, 90°].
[0172] Exemplarily, for each delay coefficient to be selected, it is determined whether the second phase-frequency response curve corresponding to the delay coefficient to be selected satisfies a preset condition. If so, the delay coefficient to be selected can be determined as the target delay coefficient. The preset condition can be: the difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the delay coefficient to be selected and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within the interval [-90°, 90°].
[0173] Fig.11 for Fig.10 The second phase frequency response curve is Fig. 9 Schematic diagram of the phase difference between the first phase frequency response curves. Fig.11 As shown, the horizontal axis is frequency and the vertical axis is phase. This curve illustrates Fig.10 The second phase change value corresponding to each preset frequency in Fig. 9 The difference between the first phase change values corresponding to the preset frequency in Fig.11 It can be seen that the difference corresponding to each preset frequency is within the interval [-90°, 90°], so Fig.10 The delay coefficient to be selected corresponding to the second phase frequency response curve shown is determined as the target delay coefficient.
[0174] It is worth noting that in this embodiment, the reason for determining the candidate delay coefficient whose phase change value difference corresponding to each preset frequency is within a preset range as the target delay coefficient is that if the phase change value difference is within the preset range, then when the second filtering parameter is determined according to the candidate delay coefficient, the convergence of the filtering algorithm can be effectively guaranteed.
[0175] In some possible scenarios, when the target delay coefficient is determined in the above manner, it is possible that only one second phase-frequency response curve corresponding to the candidate delay coefficient meets the above preset conditions. In this case, the candidate delay coefficient that meets the preset conditions is directly determined as the target delay coefficient. If there are multiple second phase-frequency response curves corresponding to the candidate delay coefficients that meet the above preset conditions, further selection can be made from the multiple candidate delay coefficients that meet the preset conditions. For example, the candidate delay coefficient corresponding to the second phase-frequency response curve that has the smallest deviation from the first phase-frequency response curve is selected as the target delay coefficient.
[0176] It should be noted that the above S801 to S804 introduces an implementation method of determining the target delay coefficient based on the phase difference of the phase change value. In another optional implementation method, the target delay coefficient can also be determined based on the number of points corresponding to the peak value of the impulse response of the secondary channel. In the actual implementation process, the specific implementation of determining the target delay coefficient can be selected according to actual needs.
[0177] S805: Determine a second filtering parameter corresponding to a second filter according to the target delay coefficient.
[0178] In this embodiment, after the target delay coefficient is determined, the second filter parameter corresponding to the second filter can be determined according to the target delay coefficient. Fig.12 The method of determining the second filtering parameter is described.
[0179] Fig.12 Schematic diagram of another feedforward filtering system provided in an embodiment of the present application. Fig.12 As shown, A(z) is the first filter, which is a filter determined according to the design objectives during the design phase. The first filter uses fixed filter parameters. W(z) is the second filter, which is used to correct and compensate for the design objectives corresponding to the first filter. P(z) is the transfer function corresponding to the first transmission path between the first microphone and the second microphone, that is, the main channel transfer function, and S(z) is the transfer function corresponding to the second transmission path between the speaker and the second microphone, that is, the secondary channel transfer function. D(z) is a delay unit.
[0180] See also Fig.12 , x(n) is the signal collected by the first microphone of the noise reduction headset, and the signal x(n) is filtered by the first filter A(z) to obtain the signal y(n). The above process can be expressed as:
[0181] y(n)=x(n)A T (n) Formula (11)
[0182] After the signal y(n) is filtered by the second filter W(z), the signal z(n) is obtained. The above process can be expressed as:
[0183] z(n)=y(n)W T (n) Formula (12)
[0184] Continue to see Fig.12 , z′(n) is the signal of z(n) after passing through the secondary channel S(z), d(n) is the residual noise signal after passing through the main channel P(z), and e(n) is the signal collected by the second microphone of the noise reduction headset. The relationship between the above three is:
[0185] e(n)=d(n)+z′(n) Formula (13)
[0186] Continue to see Fig.12 , y′(n) is the signal of y(n) after passing through the delay unit D(z). Assuming that the target delay coefficient is k, that is, the number of delayed audio sampling points is k, the delay process can be expressed as:
[0187] y′(n)=y(nk) Formula (14)
[0188] Furthermore, according to the signal y′(n) and the signal e(n), the filtering parameters of the second filter can be updated using the following formula:
[0189] W(n+1)=W(n)+2μe(n)y′(n) Formula (15)
[0190] Through the above process, the process of updating the second filter parameter corresponding to the second filter based on the target delay coefficient is realized. The second filter parameter finally determined can be stored in the memory of the noise reduction headset for use in the noise reduction processing process of the noise reduction headset.
[0191] It should be noted that the above Fig.12 The feedforward filter system is used as an example for illustration. For the hybrid noise reduction system, the process of determining the second filter parameter is similar to the above process, except that in the process of determining the second filter parameter, the path of the feedback filter needs to be closed, so that the path of the feedback filter can be prevented from affecting the second filter parameter, thereby ensuring the accuracy of the second filter parameter.
[0192] The noise reduction processing method provided in the embodiment of the present application uses a method of delaying audio samples (that is, a target delay coefficient) to replace the modeling of the secondary channel transfer function when determining the second filter parameters corresponding to the second filter. This can significantly reduce the amount of calculation and the processing delay for determining the second filter parameters while ensuring the noise reduction performance, so that the second filter can truly correct and compensate for the design objectives of the first filter, thereby improving the noise reduction effect.
[0193] Fig.13 A schematic diagram of the structure of a noise reduction processing device provided in an embodiment of the present application. The device may be in software and / or hardware form. Exemplarily, the noise reduction processing device may be a noise reduction headset, or a chip, chip module, processor, microprocessor, module or unit disposed inside the noise reduction headset.
[0194] like Fig.13 As shown, the noise reduction processing device 1300 provided in this embodiment can be applied to a noise reduction headset, wherein a first microphone is arranged outside the auricle of the noise reduction headset, and a second microphone and a speaker are arranged inside the auricle of the noise reduction headset. The noise reduction processing device 1300 may include: a first acquisition module 1301, a second acquisition module 1302, a third acquisition module 1303 and a processing module 1304. Among them,
[0195] A first acquisition module 1301 is used to acquire a first audio signal collected by the first microphone;
[0196] A second acquisition module 1302 is used to acquire a first filtering parameter corresponding to the first filter, where the first filtering parameter is a preset fixed filtering parameter;
[0197] A third acquisition module 1303 is used to acquire a second filter parameter corresponding to the second filter, where the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, where the target delay coefficient is used to indicate the number of delayed audio sampling points;
[0198] The processing module 1304 is configured to perform noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter.
[0199] In a possible implementation, the processing module 1304 is specifically configured to:
[0200] Filtering the first audio signal according to the first filtering parameter to obtain a first filtered signal;
[0201] Filtering the first filtered signal according to the second filtering parameter to obtain a second filtered signal;
[0202] The first audio signal is subjected to noise reduction processing according to the second filtering signal.
[0203] In a possible implementation, the processing module 1304 is specifically configured to:
[0204] The speaker is controlled to play the second filtered signal to achieve noise reduction processing on the first audio signal.
[0205] In a possible implementation, the processing module 1304 is specifically configured to:
[0206] Acquire a second audio signal collected by the second microphone;
[0207] Filtering the second audio signal through a third filter to obtain a third filtered signal;
[0208] The first audio signal is subjected to noise reduction processing according to the second filtered signal and the third filtered signal.
[0209] In a possible implementation, the processing module 1304 is specifically configured to:
[0210] fusing the second filtered signal and the third filtered signal to obtain a fused filtered signal;
[0211] The speaker is controlled to play the fusion filter signal to achieve noise reduction processing on the first audio signal.
[0212] In a possible implementation manner, the noise reduction processing device provided in this embodiment further includes a determination module, and the determination module is used to:
[0213] Determine a first phase-frequency response curve according to the second transmission path, wherein the first phase-frequency response curve includes a first phase change value corresponding to each preset frequency of a plurality of preset frequencies, and the first phase change value is a phase change value of the audio signal of the preset frequency before and after being transmitted through the second transmission path;
[0214] Determining the target delay coefficient according to the first phase-frequency response curve;
[0215] The second filtering parameter is determined according to the target delay coefficient.
[0216] In a possible implementation, the determining module is specifically configured to:
[0217] Determining a plurality of delay coefficients to be selected;
[0218] Determine respectively a second phase-frequency response curve corresponding to each delay coefficient to be selected, wherein the second phase-frequency response curve includes a second phase change value corresponding to each of the preset frequencies;
[0219] The target delay coefficient is determined among the multiple delay coefficients to be selected according to the second phase-frequency response curve corresponding to each candidate delay coefficient; wherein the difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the target delay coefficient and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within a preset range.
[0220] In a possible implementation, the determining module is specifically configured to:
[0221] For any one of the multiple delay coefficients to be selected, delay processing is performed on the test audio signal according to the delay coefficient to obtain a test delay signal;
[0222] A second phase-frequency response curve corresponding to the delay coefficient to be selected is obtained according to the phase change value of the audio signal of each preset frequency in the test delay signal before and after being transmitted in the second transmission path.
[0223] The noise reduction processing device provided in this embodiment can be used to execute the technical solution provided by any of the above method embodiments. Its implementation principles and technical effects are similar and will not be described in detail here.
[0224] Fig.14 The structure diagram of a noise reduction processing device provided in an embodiment of the present application is shown in FIG. The noise reduction processing device may be a noise reduction headset, or may be other electronic devices with active noise reduction function. Fig.14 As shown, the noise reduction processing device 1400 provided in this embodiment includes: a processor 1401 and a memory 1402. Exemplarily, the processor 1401 and the memory 1402 may be connected via a bus 1403.
[0225] The memory 1402 is used to store computer executable instructions;
[0226] The processor 1401 is used to execute the computer-executable instructions stored in the memory, so that the noise reduction processing device 1400 executes the method shown in any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.
[0227] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the noise reduction processing method provided by any of the above method embodiments is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0228] An embodiment of the present application also provides a chip, including: a memory and a processor, wherein the memory stores computer execution instructions, and the processor runs the computer execution instructions to implement the noise reduction processing method provided by any of the above method embodiments, and its implementation principle and technical effect are similar, which will not be repeated here.
[0229] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a computer, it implements the noise reduction processing method provided by any of the above method embodiments. The implementation principle and technical effect are similar and will not be repeated here.
[0230] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0231] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0232] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0233] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.
[0234] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0235] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0236] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0237] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0238] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0239] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0240] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A noise reduction method, characterized in that: Applied to a noise-canceling headset, a first microphone is arranged outside the auricle of the noise-canceling headset, and a second microphone and a speaker are arranged inside the auricle of the noise-canceling headset. The method comprises: Acquire a first audio signal collected by the first microphone; Acquire a first filtering parameter corresponding to the first filter, where the first filtering parameter is a preset fixed filtering parameter; Obtaining a second filter parameter corresponding to a second filter, wherein the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, and the target delay coefficient is used to indicate the number of delayed audio sampling points; wherein the first filter is a filter based on feedforward filtering; and the second filter is an adaptive filter; Performing noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter; The method further comprises: performing noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter, comprising: Filtering the first audio signal according to the first filtering parameter to obtain a first filtered signal; Filtering the first filtered signal according to the second filtering parameter to obtain a second filtered signal; performing noise reduction processing on the first audio signal according to the second filtered signal; The method further comprises: performing noise reduction processing on the first audio signal according to the second filtering signal, comprising: Acquire a second audio signal collected by the second microphone; Filtering the second audio signal through a third filter to obtain a third filtered signal; fusing the second filtered signal and the third filtered signal to obtain a fused filtered signal; The speaker is controlled to play the fusion filter signal to achieve noise reduction processing on the first audio signal.
2. The method according to claim 1, characterized in that The method further comprises: performing noise reduction processing on the first audio signal according to the second filtering signal, comprising: The speaker is controlled to play the second filtered signal to achieve noise reduction processing on the first audio signal.
3. The method according to any one of claims 1 to 2, characterized in that: The second filtering parameter is determined by: Determine a first phase-frequency response curve according to the second transmission path, wherein the first phase-frequency response curve includes a first phase change value corresponding to each preset frequency of a plurality of preset frequencies, and the first phase change value is a phase change value of the audio signal of the preset frequency before and after being transmitted through the second transmission path; Determining the target delay coefficient according to the first phase-frequency response curve; The second filtering parameter is determined according to the target delay coefficient.
4. The method according to claim 3, characterized in that Determining the target delay coefficient according to the first phase-frequency response curve includes: Determining a plurality of delay coefficients to be selected; Determine respectively a second phase-frequency response curve corresponding to each delay coefficient to be selected, wherein the second phase-frequency response curve includes a second phase change value corresponding to each of the preset frequencies; The target delay coefficient is determined among the multiple delay coefficients to be selected according to the second phase-frequency response curve corresponding to each candidate delay coefficient; wherein the difference between the second phase change value corresponding to each preset frequency in the second phase-frequency response curve corresponding to the target delay coefficient and the first phase change value corresponding to the preset frequency in the first phase-frequency response curve is within a preset range.
5. The method according to claim 4, characterized in that For any one of the multiple delay coefficients to be selected, determining a second phase-frequency response curve corresponding to the delay coefficient to be selected includes: According to the delay coefficient to be selected, delay processing is performed on the test audio signal to obtain a test delay signal; A second phase-frequency response curve corresponding to the delay coefficient to be selected is obtained according to the phase change value of the audio signal of each preset frequency in the test delay signal before and after being transmitted in the second transmission path.
6. A noise reduction processing device, characterized in that: Applied to a noise-canceling headset, a first microphone is arranged outside the auricle of the noise-canceling headset, a second microphone and a speaker are arranged inside the auricle of the noise-canceling headset, and the device comprises: A first acquisition module, used to acquire a first audio signal collected by the first microphone; A second acquisition module, used to acquire a first filtering parameter corresponding to the first filter, where the first filtering parameter is a preset fixed filtering parameter; A third acquisition module is used to acquire a second filter parameter corresponding to the second filter, where the second filter parameter is obtained according to a target delay coefficient corresponding to a second transmission path between the speaker and the second microphone, where the target delay coefficient is used to indicate the number of delayed audio sampling points; a processing module, configured to perform noise reduction processing on the first audio signal according to the first filtering parameter and the second filtering parameter; Wherein, the first filter is a filter based on feedforward filtering; the second filter is an adaptive filter; The processing module is specifically configured to filter the first audio signal according to the first filtering parameter to obtain a first filtered signal; Filtering the first filtered signal according to the second filtering parameter to obtain a second filtered signal; performing noise reduction processing on the first audio signal according to the second filtered signal; The processing module is specifically used to obtain the second audio signal collected by the second microphone; Filtering the second audio signal through a third filter to obtain a third filtered signal; fusing the second filtered signal and the third filtered signal to obtain a fused filtered signal; The speaker is controlled to play the fusion filter signal to achieve noise reduction processing on the first audio signal.
7. A noise reduction processing device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
9. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when being executed by a processor.
Citation Information
Patent Citations
Design method of hybrid noise reduction filter, noise reduction method, system and electronic equipment
CN112562626A
Coefficient determination method and device thereof
CN113488016A