Dual-microphone noise reduction and sound mixing method based on differential adaptive weight adjustment
The dual-microphone noise reduction mixing method with differential adaptive weight adjustment solves the noise amplification and distortion problems in the mixing process of multi-microphone systems, and achieves clear and easy-to-understand sound output and adaptive noise reduction effect. It is suitable for small microphone systems and microphone arrays.
Patent Information
- Application Number
- CN202411097050.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing multi-microphone systems suffer from problems such as peak clipping, noise amplification, and distortion during the mixing process, which affect the intelligibility and listening experience of the sound.
A dual-microphone noise reduction mixing method with differential adaptive weight adjustment is adopted. By calculating differential data, weak alignment coefficient and adaptive attenuation coefficient, output data is generated and the adaptive attenuation coefficient is updated to control the dynamic range, thereby realizing the conversion from multi-channel to single-channel.
It effectively reduces background noise, improves sound clarity and listening experience, reduces the pressure on subsequent speech processing algorithms, and adapts to the needs of voice interaction in different environments.
Smart Images

Figure CN118824271A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio signal processing, and in particular to a dual-microphone noise reduction mixing method based on differential adaptive weight adjustment, which is suitable for small dual / multi-microphone systems or arrays, such as sound pickup headphones, sound pickup microphone arrays and other devices that require multiple inputs and a single output. Background Art
[0002] With the emergence of multi-microphone systems and microphone arrays, multiple microphones simultaneously pick up sounds from the environment, greatly enhancing the microphone's ability to pick up sounds. However, this also amplifies the impact of background noise, affects the intelligibility of sound, and may even cause hearing damage.
[0003] In the prior art, commonly used mixing algorithms include additive clamping algorithm, adaptive weight adjustment algorithm, and weight adjustment method based on strong alignment, weak alignment, and self-alignment. However, these methods all have certain limitations:
[0004] 1) The additive clamping algorithm will cause artificial peak clipping of the sound waveform, destroying the characteristics of the speech signal and promoting the generation of noise;
[0005] 2) The simple adaptive weight adjustment algorithm makes sounds of different strengths all amplified to the same degree, affecting the hearing of the sound itself;
[0006] 3) The weight adjustment methods based on strong alignment, weak alignment, and self-alignment have problems of "popping sound" and large distortion in actual use.
[0007] Therefore, how to obtain clear and understandable sound while effectively reducing the impact of background noise and forming a multi-input single-output system is a hot topic of research today. Summary of the invention
[0008] The purpose of the present invention is to provide a dual-microphone noise reduction mixing method based on differential adaptive weight adjustment to solve the above-mentioned problems existing in the prior art.
[0009] To achieve the above object, the present invention adopts the following technical solution:
[0010] A dual-microphone noise reduction mixing method based on differential adaptive weight adjustment comprises the following steps:
[0011] Get the audio data of two channels of the dual-microphone system;
[0012] Based on the audio data of the two channels, differential data is obtained;
[0013] Get the weak alignment coefficient;
[0014] Obtain output data based on the adaptive attenuation coefficient, the weak alignment coefficient, and the differential data;
[0015] Update the adaptive attenuation coefficient according to the output data.
[0016] Preferably, the step of obtaining the differential data includes: for each frame of data, calculate diff(i) = mic1(i) - mic2(i), where i = 0, 1, …, N - 1, N is the frame length, and mic1(i) and mic2(i) are the audio data of the first channel and the second channel respectively.
[0017] Preferably, the step of obtaining the weak alignment coefficient includes:
[0018] Calculate κ = DiffMin / TotalMin,
[0019] where DiffMin = min(min(mic1), min(mic2)), TotalMin = min(diff), mic1 and mic2 are the audio data of the first channel and the second channel respectively, and diff is the differential data.
[0020] Preferably, the step of obtaining the output data includes: for each sample in a frame, calculate output(i) = κ·μ·diff(i), where κ is the weak alignment coefficient, μ is the adaptive attenuation coefficient, and diff(i) is the differential data.
[0021] Preferably, it further includes: when output(i) > MAX, calculate μ ′ to satisfy output(i)·μ ′ < MAX, and update μ = μ ′ , output(i) = MAX;
[0022] When output(i) < MIN, calculate μ ′ to satisfy output(i)·μ ′ > MIN, and update μ = μ ′ , output(i) = MIN; where MAX and MIN are the maximum value and the minimum value of the storage type respectively.
[0023] Preferably, the step of updating the adaptive attenuation coefficient includes: when the updated μ < 1, make μ = μ + step, where step is the change step of the adaptive attenuation coefficient.
[0024] Preferably, step = (1 - μ) / v, v is a preset parameter, and its value range includes 8, 16, 32, and 64.
[0025] Preferably, it further includes:
[0026] The output data is used as input of a subsequent audio processing algorithm to achieve conversion from multi-channel to single-channel.
[0027] Preferably, the method is applied to a small dual-microphone system or a microphone array, including a sound pickup earphone and a sound pickup microphone array.
[0028] Preferably, the method is used for sound pickup or recording in indoor or outdoor environments.
[0029] The beneficial effects of the present invention include:
[0030] 1. Mixing noise reduction: While mixing the picked up sound, the influence of the background noise is reduced, resulting in a clearer and more understandable sound. In a noisy environment with an input signal-to-noise ratio of 5 decibels, the output signal-to-noise ratio can reach more than 13 decibels.
[0031] 2. Adaptive control: Adaptive attenuation coefficient and weak alignment coefficient are introduced to control the mixing process, which effectively prevents data overflow and ensures the strength relationship of the voice signal, making the output signal more vivid and rhythmic.
[0032] 3. Reduce pressure: It can reduce the pressure on subsequent voice processing algorithms, so that the voice data picked up by multi-channel microphones can be processed using mature single-channel voice signal processing methods after mixing, which indirectly reduces the pressure on system processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a flow chart of the method of the present invention;
[0034] Figure 2 This is a flow chart of the updating steps of the adaptive attenuation coefficient in the present invention.
[0035] Figure 3 This is a diagram showing the effect of the proposed algorithm when the signal-to-noise ratio is 5 dB under pink noise. DETAILED DESCRIPTION
[0036] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0037] In today's era of smart devices, high-quality voice interaction experience has become a rigid demand of users. However, in a noisy environment, how to accurately capture the user's voice and reduce background noise has always been a challenge. The dual-microphone noise reduction mixing method based on differential adaptive weight adjustment proposed in the present invention is designed to solve this problem.
[0038] Please refer to Figure 1-3, let’s take a smart headset as an example to explore the specific implementation of the present invention. This headset is equipped with a dual microphone system, one microphone facing the user’s mouth (primary microphone) and the other facing the external environment (auxiliary microphone). This configuration allows the headset to capture both the user’s voice and the ambient noise at the same time, providing an ideal input for our noise reduction algorithm.
[0039] Step 1: Get the audio data of two channels of the dual-microphone system.
[0040] In this step, we first need to obtain audio data from the dual microphone system of the headset. Assuming that our system sampling rate is 48kHz, each audio frame contains 256 samples, which is equivalent to about 5.3 milliseconds of audio. We record the data of the main microphone as mic1 and the data of the auxiliary microphone as mic2. Both sets of data are one-dimensional arrays, and each element represents the amplitude value of an audio sample.
[0041] Step 2: Based on the audio data of the two channels, differential data is obtained.
[0042] Next, we calculate the differential data between the two microphone channels. The core idea of this step is to use the spatial difference between the two microphones to enhance the target sound (user voice) and suppress environmental noise. The calculation formula is as follows:
[0043] diff(i)=mic1(i)-mic2(i), where i=0,1,…,N-1
[0044] Here, N is the frame length, which is 256 in our case. diff(i) represents the difference value of the i-th sample. This operation is actually performing spatial filtering because the phase difference of the user's voice in the two microphones is usually more significant than the ambient noise.
[0045] Step 3: Get the weak alignment coefficient.
[0046] The weak alignment coefficient κ is introduced to avoid signal distortion caused by differential operation while maintaining the dynamic range of the original audio. We calculate κ in the following way:
[0047]
[0048] in,
[0049] DiffMin=min(min(mic1),min(mic2))
[0050] TotalMin=min(diff)
[0051] DiffMin represents the minimum amplitude value in two microphone channels, and TotalMin is the minimum value in the differential data. This ratio can help us better maintain the dynamic characteristics of the audio in subsequent processing.
[0052] Step 4: Based on the adaptive attenuation coefficient, weak alignment coefficient, and differential data, obtain the output data.
[0053] This step is the core of this algorithm. We combine the adaptive attenuation coefficient μ, weak alignment coefficient κ, and differential data diff to generate the output data output. The calculation formula is as follows:
[0054] output(i) = κ · μ · diff(i)
[0055] Among them, the initial value of μ is set to 1, κ is the weak alignment coefficient we calculated in Step 3, and diff(i) is the differential data. The beauty of this formula lies in that it not only retains the useful information in the differential data but also realizes the control of the dynamic range and adaptive noise reduction through the adjustment of κ and μ.
[0056] Step 5: Update the adaptive attenuation coefficient according to the output data.
[0057] To prevent the output data from exceeding the range that our system can handle (such as -32768 to 32767 in a 16-bit audio system), we need to dynamically adjust the adaptive attenuation coefficient μ. Specifically:
[0058] When output(i) > MAX, we calculate μ ′ such that output(i) · μ ′ < MAX, then update μ = μ ′ , and limit output(i) to MAX.
[0059] When output(i) < MIN, we calculate μ ′ such that output(i) · μ ′ > MIN, then update μ = μ ′ , and limit output(i) to MIN. Here, MAX and MIN are the maximum and minimum amplitude values that the system can handle respectively.
[0060] In addition, to enable the system to adapt to different sound environments, we also need to update μ after each frame of processing:
[0061] If the updated μ < 1, then μ = μ + step
[0062] Among them,
[0063]
[0064] v is a preset parameter that can be selected as 8, 16, 32, or 64 depending on the actual application scenario. This update mechanism allows the system to gradually increase the gain as the noise decreases to maintain the stability of the output volume. In our smart headphone application, we may choose v = 32, which provides a good balance point that can quickly respond to sudden volume changes without causing drastic fluctuations in the output.
[0065] Step 6: Use the output data as input for subsequent audio processing algorithms to achieve multi-channel to single-channel conversion
[0066] After the above processing, we have converted the dual microphone input into a single-channel noise reduction output. This output can be directly used for applications such as speech recognition and call transmission, or as input for further processing (such as echo cancellation, speech enhancement, etc.).
[0067] In our smart headset scenario, this output can be transmitted directly to the user's smartphone for voice command recognition, or to the other party during a call, providing clear voice quality.
[0068] It is worth noting that one of the great advantages of this method is its adaptability and robustness. Whether the user is using headphones in a quiet indoor environment or on a noisy street, the algorithm can automatically adjust the parameters to provide the best noise reduction effect. For example, in a quiet environment, the μ value will approach 1, preserving more original audio details; while in a noisy environment, the μ value will decrease, strengthening the noise reduction effect.
[0069] In addition, the computational complexity of this method is relatively low, mainly involving simple addition, subtraction, multiplication and division operations, which makes it very suitable for real-time operation on portable devices with limited computing resources (such as our smart headphones). Even at high sampling rates (such as 48kHz), the algorithm can maintain low latency, ensuring that the user's voice interaction experience has no noticeable delay.
[0070] In general, this dual-microphone noise reduction mixing method based on differential adaptive weight adjustment provides a powerful and efficient noise reduction solution for small audio devices such as smart headphones. It can not only effectively improve the user's voice clarity in various environments, but also maintain the long battery life of the device, which is crucial for portable devices used in daily life.
[0071] Next, let's further explore some details and possible extensions of this method in practical applications:
[0072] Step 7: Parameter tuning and performance optimization.
[0073] Although we mentioned some recommended values for parameters earlier, in actual applications, these parameters may need to be fine-tuned according to specific usage scenarios. For example, for headphones mainly used in office environments, we may choose a larger V value (such as 64) to obtain smoother volume changes; while for sports headphones, we may choose a smaller V value (such as 16) to quickly adapt to drastic environmental changes.
[0074] In addition, we can also consider introducing an adaptive frame length N. In a quiet environment, we can use a longer frame (such as 512 samples) to obtain better frequency resolution; while in a rapidly changing environment, we can switch to a shorter frame (such as 128 samples) to improve the temporal resolution. This dynamic frame length adjustment can be achieved by monitoring the stability of the ambient noise.
[0075] Step 8: Integration of frequency domain processing.
[0076] Although our method mainly processes in the time domain, we can consider combining it with frequency domain processing methods to further improve performance. For example, we can perform fast Fourier transform (FFT) on the signals of the two channels before calculating the differential data, and then perform differential operations in the frequency domain. This can more accurately process noise in different frequency bands, especially for those noise sources with obvious spectral characteristics (such as wind noise, machine noise, etc.).
[0077] Specifically, we can modify step 2 as follows:
[0078] Perform FFT on mic1 and mic2 respectively to obtain Mic1(f) and Mic2(f);
[0079] Calculate the frequency domain difference: Diff(f) = Mic1(f) - Mic2(f);
[0080] Perform an inverse FFT on Diff(f) to obtain the time domain difference signal diff(i). Although this method increases some computational complexity, it can provide more precise noise control, especially when dealing with noise in a specific frequency band.
[0081] Although this method increases some computational complexity, it can provide finer noise control, especially when dealing with noise in specific frequency bands.
[0082] Step 9: Multi-scenario adaptation.
[0083] In order to make our smart headset adapt to more usage scenarios, we can consider implementing scene detection and automatic mode switching functions.
[0084] 1) Talk mode: In this mode, we may pay more attention to the clarity of the far-end voice and can appropriately increase the κ value to retain more original signal features.
[0085] 2) Music Appreciation Mode: In this mode, we may pay more attention to the suppression of ambient sound and can reduce the κ value to enhance the noise reduction effect.
[0086] 3) Motion mode: In this mode, we need to pay special attention to processing the noise generated by movement (such as footsteps, breathing, etc.). This can be achieved by adjusting the calculation method of diff(i), such as introducing a time delay to eliminate these regular noises.
[0087] This multi-scenario adaptation can be automatically detected by analyzing the characteristics of the audio signal (such as energy distribution, periodicity, etc.), or it can be manually selected through linkage with a smartphone app.
[0088] Step 10: User personalization.
[0089] Considering that each user has different voice characteristics and usage habits, we can introduce user personalization functions. For example:
[0090] 1) Voice feature learning: By collecting user voice samples in a quiet environment, we can build a user voice model to more accurately distinguish between the user voice and environmental noise.
[0091] 2) Adaptation to usage habits: Record the μ and κ value ranges commonly used by users, and automatically adjust to the user's preferred settings in different scenarios.
[0092] 3) Customized noise reduction intensity: Allows users to adjust the intensity of noise reduction through the mobile app, which is actually adjusting the value range of μ and κ.
[0093] This personalized function can not only enhance the user experience, but also serve as a product differentiation feature to improve market competitiveness.
[0094] Through the above detailed steps and extended discussion, we can see that this dual-microphone noise reduction mixing method based on differential adaptive weight adjustment not only has a solid foundation in theory, but also has broad prospects in practical applications. It provides a flexible, efficient and scalable noise reduction solution for small audio devices, especially smart headphones.
[0095] The core advantage of this method lies in its adaptability and low computational complexity, which enables it to provide excellent noise reduction effects in various environments while maintaining the long battery life of the device. Through further optimization and expansion, such as the integration of frequency domain processing, multi-scenario adaptation and user personalization, this method can meet the needs of different users in various scenarios and bring a better user experience to smart audio devices.
[0096] In future developments, we can expect this method to be combined with artificial intelligence technology, such as using machine learning algorithms to optimize parameter selection, or using deep learning models to achieve more accurate noise identification and suppression. This will further improve the performance and adaptability of this method, providing users with a more intelligent and personalized audio experience.
[0097] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A dual-microphone noise reduction mixing method based on differential adaptive weight adjustment, characterized in that: The following steps are involved: Get the audio data of two channels of the dual-microphone system; Based on the audio data of the two channels, differential data is obtained; Get the weak alignment coefficient; Obtaining output data based on the adaptive attenuation coefficient, the weak alignment coefficient and the differential data; The adaptive attenuation coefficient is updated according to the output data.
2. The method according to claim 1, characterized in that The step of obtaining differential data includes: for each frame of data, calculating diff(i)=mic1(i)-mic2(i), where i=0, 1, ..., N-1, N is the frame length, and mic1(i) and mic2(i) are the audio data of the first channel and the second channel respectively.
3. The method according to claim 1, characterized in that The step of obtaining the weak alignment coefficient comprises: Calculate κ = DiffMin / TotalMin, Wherein DiffMin=min(min(mic1), min(mic2)), TotalMin=min(diff), mic1 and mic2 are the audio data of the first channel and the second channel respectively, and diff is the differential data.
4. The method according to claim 1, characterized in that: The step of obtaining the output data includes: for each sample in each frame, calculating output(i)=κ·μ·diff(i), where κ is a weak alignment coefficient, μ is an adaptive attenuation coefficient, and diff(i) is differential data.
5. The method according to claim 4, characterized in that Further including: When output(i) > MAX, calculate μ ′ Satisfy output(i)·μ ′ < MAX, and update μ = μ ′ , output(i) = MAX; When output(i) < MIN, calculate μ ′ Satisfy output(i)·μ ′ > MIN, and update μ = μ ′ , output(i) = MIN; where MAX and MIN are the maximum and minimum values of the storage type respectively.
6. The method according to claim 1, characterized in that The step of updating the adaptive attenuation coefficient includes: when the updated μ<1, making μ=μ+step, wherein step is the change step length of the adaptive attenuation coefficient.
7. The method according to claim 6, characterized in that The step=(1-μ) / v, where v is a preset parameter and its value range includes 8, 16, 32 and 64.
8. The method according to any one of claims 1 to 7, characterized in that Further including: The output data is used as input of a subsequent audio processing algorithm to achieve conversion from multi-channel to single-channel.
9. The method according to any one of claims 1 to 8, characterized in that The method is applied to a small dual-microphone system or a microphone array, including a sound pickup earphone and a sound pickup microphone array.
10. The method according to any one of claims 1 to 9, characterized in that The method is used for picking up or recording sound in indoor or outdoor environments.
Citation Information
Patent Citations
Scene recognition method and system applied to conference with multiple microphones
CN110648678A
Distributed microphone pickup system and method in complex scene
CN111161751A
Double-microphone speech enhancement method
CN112951260A
Sound source processing method and related device
CN117079661A
Controlling audio focus for spatial audio processing
WO2020016484A1
