Integrated MEMS loudspeaker and microphone mixed signal processing method and system
By integrating the mixed signal processing method of MEMS speakers and microphones, the problems of acoustic feedback, echo suppression and noise suppression are solved, the dynamic balance and noise suppression of the speaker and microphone signals are achieved, and high-quality voice communication and sound pressure level control are ensured. Adapt to the needs of complex environments.
Patent Information
- Application Number
- CN202410614599.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-17
AI Technical Summary
Existing technologies that integrate MEMS speakers and microphones face problems such as acoustic feedback, echo suppression, environmental noise suppression, and sound pressure level control, making it difficult to maintain high-quality audio playback and sound pickup functions in complex environments.
A mixed signal processing method that integrates MEMS speakers and microphones is used to calculate the mixing coefficient in real time through signal acquisition, preprocessing, mixing calculation, feedback control, and error analysis and adjustment steps to achieve dynamic balance of speaker and microphone signals and perform noise suppression. and sound pressure level control to form a closed-loop feedback system.
Effectively suppresses acoustic feedback and echo, significantly improves the signal-to-noise ratio, ensures the clarity of voice communication in noisy environments, and achieves precise control of sound pressure levels to adapt to the sound pressure requirements of different application scenarios, ensuring user comfort and equipment safety.
Smart Images

Figure CN118660262A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of MEMS loudspeakers, and in particular relates to a mixed signal processing method and system integrating a MEMS loudspeaker and a microphone. Background Art
[0002] With the rapid development of micro-electromechanical system (MEMS) technology, audio devices integrating MEMS speakers and microphones are becoming increasingly popular and widely used in smart speakers, mobile communication devices, voice recognition systems and other fields. Such devices usually require high-quality audio playback and sound pickup functions, and can maintain stable acoustic performance in complex environments. However, the existing technology faces the following technical problems when processing mixed signals of MEMS speakers and microphones:
[0003] Acoustic feedback and echo suppression: Since the MEMS speaker and microphone are in the same package, the audio signal played by the speaker is easily picked up by the microphone, forming an acoustic feedback loop, resulting in howling, distortion and other problems. At the same time, in scenarios such as duplex communication or remote conferencing, the device needs to effectively suppress the echo of the speaker playback signal at the microphone end to ensure clear voice communication.
[0004] Environmental noise suppression: When collecting environmental sound signals, MEMS microphones are often interfered by background noise, mechanical vibration, etc., which affects the accuracy and clarity of speech recognition and voice communication. How to effectively suppress noise and improve the signal-to-noise ratio through software algorithms under hardware limitations is a technical problem that needs to be solved urgently.
[0005] Sound pressure level control: In response to different application scenarios and user needs, devices integrating MEMS speakers and microphones need to have flexible sound pressure level control capabilities to ensure sufficient volume output while avoiding excessive sound pressure that causes user discomfort or equipment damage. In addition, sound pressure level control should have the ability to respond quickly and adjust accurately to cope with changes in ambient sound pressure. Summary of the invention
[0006] The object of the present invention is to provide a mixed signal processing method and system integrating a MEMS speaker and a microphone, so as to solve the problems in the prior art mentioned in the above background technology.
[0007] To achieve the above object, the present invention adopts the following technical solution: a mixed signal processing method integrating a MEMS speaker and a microphone, comprising the following steps:
[0008] Signal acquisition: The MEMS speaker and MEMS microphone integrated in the same package are used to receive and output audio signals and collect ambient sound signals respectively;
[0009] Preprocessing: Perform power adjustment, frequency equalization, and distortion correction preprocessing operations on the audio signals from the MEMS speakers, and perform noise suppression, gain control, and automatic level adjustment preprocessing operations on the ambient sound signals from the MEMS microphones;
[0010] Mixing calculation: The mixing coefficient is calculated using the following formula (1) to achieve real-time mixing of the speaker output signal and the microphone acquisition signal:
[0011]
[0012] Among them, P target is the target total sound pressure level, P mic is the ambient sound pressure level collected by the current microphone, P spk The sound pressure level of the current speaker output;
[0013] Signal mixing: Using the calculated mixing coefficient k, the preprocessed speaker output signal S is mixed according to formula (2) out and microphone to collect signal M in To perform a linear blend:
[0014] S mix =(1-k)·S out +k·M in
[0015] Feedback control: The mixed signal S mix The signal is sent back to the MEMS speaker for playback and collected again by the MEMS microphone, forming a closed-loop feedback system.
[0016] Error analysis and adjustment: Calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds the preset threshold, adjust the speaker output power according to formula (3):
[0017] P spk,new =P spk,old +α·(P target +P curent )
[0018] Among them, P spk,new is the output power of the speaker after adjustment, P spk,old To adjust the front speaker output power, α is the power adjustment coefficient, P curent is the current ambient sound pressure level;
[0019] Loop iteration: Repeat the mixing calculation, signal mixing, feedback control, and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than the preset threshold, completing the mixed signal processing.
[0020] Preferably, the power adjustment in the preprocessing step comprises the following steps:
[0021] Signal framing: Divide the audio signal from the MEMS speaker into continuous time frames and perform instantaneous amplitude calculation, including calculating the instantaneous amplitude value of each frame signal;
[0022] Threshold determination: Determine the upper threshold value T of dynamic range compression based on the preset compression ratio and inflection point upper And the lower threshold value T lower , where the compression ratio formula is:
[0023]
[0024] in, and They are the upper and lower threshold values corresponding to the uncompressed state respectively;
[0025] Compression processing: For each frame signal, if the instantaneous amplitude value is less than the lower threshold value T lower , it remains unchanged; if it is located at T lower With T upper Between, nonlinear compression is performed according to formula (4):
[0026]
[0027] Among them, A in is the original instantaneous amplitude value, A comp is the instantaneous amplitude value after compression;
[0028] Reconstruct the signal: Reconstruct the audio signal frame according to the compressed instantaneous amplitude value, and splice all frames to restore the complete audio signal to complete the power adjustment.
[0029] Preferably, the noise suppression in the preprocessing step comprises the following steps:
[0030] Noise reference signal acquisition: Use MEMS microphones to collect ambient noise during non-speech activities as noise reference signals;
[0031] Noise spectrum estimation: Perform fast Fourier transform on the noise reference signal and calculate its frequency domain power spectrum as the noise spectrum estimation;
[0032] Filter initialization: construct an adaptive filter whose initial parameters are set based on the noise spectrum estimate;
[0033] Voice activity detection: During real-time processing, a voice activity detection algorithm is used to determine whether the current period is voice active.
[0034] Noise cancellation update: During non-speech activity periods, the noise reference signal is used to update the adaptive filter parameters so that the filter output signal is consistent with the noise reference signal to achieve noise tracking;
[0035] Noise cancellation processing: During speech activity, an adaptive filter is applied to the real-time collected ambient sound signal to filter out the parts similar to the noise spectrum estimate and generate a noise-canceled signal;
[0036] Inverse superposition: The noise-canceled signal is inversely superimposed on the original ambient sound signal to eliminate residual noise and complete noise suppression.
[0037] Preferably, the automatic level adjustment in the preprocessing step is based on the signal-to-noise ratio monitored in real time, and the microphone gain is adjusted according to a preset signal-to-noise ratio target value.
[0038] Preferably, the target total sound pressure level P in the mixed calculation step is target It can be set according to the actual application scenario.
[0039] Preferably, in the feedback control step, the signal collected by the MEMS microphone is processed with delay compensation before being used for closed-loop feedback.
[0040] Preferably, in the step of error analysis and adjustment, the power adjustment coefficient α can be dynamically adjusted according to the actual application scenario.
[0041] Preferably, during the iterative cycle, when the difference between the ambient sound pressure level and the target sound pressure level is still higher than a preset threshold after several consecutive iterations, the target sound pressure level is automatically lowered.
[0042] Preferably, the method further includes: performing digital sound effect processing on the mixed signal.
[0043] On the other hand, the present invention provides a hybrid signal processing system integrating a MEMS speaker and a microphone, comprising:
[0044] A signal acquisition module, used to receive and output audio signals and collect environmental sound signals respectively through a MEMS speaker and a MEMS microphone integrated in the same package;
[0045] A preprocessing module, used to perform power adjustment, frequency equalization and distortion correction preprocessing operations on the audio signal from the MEMS speaker, and to perform noise suppression, gain control and automatic level adjustment preprocessing operations on the ambient sound signal from the MEMS microphone;
[0046] A mixing calculation module is used to calculate the mixing coefficient to achieve real-time mixing of the loudspeaker output signal and the microphone acquisition signal;
[0047] The feedback control module is used to send the mixed signal back to the MEMS speaker for playback and collect it again through the MEMS microphone to form a closed-loop feedback system;
[0048] The error analysis and adjustment module is used to calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds the preset threshold, the speaker output power is adjusted:
[0049] The loop iteration module is used to repeatedly perform the mixed calculation, signal mixing, feedback control and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than a preset threshold, thereby completing the mixed signal processing.
[0050] Technical effects and advantages of the present invention: Compared with the prior art, the present invention provides a mixed signal processing method and system integrating a MEMS speaker and a microphone, which has the following advantages:
[0051] 1. The present invention achieves effective suppression of acoustic feedback and echo through preprocessing, hybrid calculation, signal mixing, feedback control, error analysis and adjustment. By calculating the mixing coefficient in real time, the speaker output signal and the microphone acquisition signal are linearly mixed to achieve a dynamic balance between the speaker and the microphone, greatly reducing the risk of acoustic feedback. At the same time, the closed-loop feedback system can capture the echo signal in time, effectively suppress the echo by accurately adjusting the speaker output power, and ensure the clarity of voice communication.
[0052] 2. Perform pre-processing operations such as noise suppression, gain control and automatic level adjustment on the ambient sound signals collected by the microphone. Use advanced noise suppression algorithms to significantly reduce the impact of background noise on voice signals and significantly improve the signal-to-noise ratio, ensuring high-quality voice interaction in noisy environments.
[0053] 3. According to the set target total sound pressure level, the current ambient sound pressure level is monitored in real time, and the speaker output power is adjusted iteratively to achieve precise control of the sound pressure level. It can not only adapt to the sound pressure requirements of various application scenarios, but also quickly respond to changes in ambient sound pressure, avoiding problems caused by excessively high or low sound pressure, and ensuring user comfort and equipment safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A flow chart of a mixed signal processing method integrating a MEMS speaker and a microphone according to the present invention;
[0055] Figure 2 It is a block diagram of a mixed signal processing system integrating a MEMS speaker and a microphone according to the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0057] The present invention provides a hybrid signal processing method integrating a MEMS speaker and a microphone, aiming to solve key problems existing in the prior art such as acoustic feedback, echo suppression, ambient noise suppression, and sound pressure level control, and significantly improve the acoustic performance and user experience of audio equipment. The details are as follows.
[0058] like Figure 1 As shown, Figure 1 The figure is a flow chart of a mixed signal processing method integrating a MEMS speaker and a microphone according to the present invention.
[0059] In this embodiment, the mixed signal processing method integrating a MEMS speaker and a microphone comprises the following steps:
[0060] Step 1: Signal acquisition: The MEMS speaker and MEMS microphone integrated in the same package are used to receive and output audio signals and collect ambient sound signals respectively; the specific implementation is as follows:
[0061] Hardware selection and principle
[0062] MEMS speakers, models: Currently, the MEMS speaker models include Knowles' IS2010 / IS2011 series, TDK's NPM0100 series, USound's uSpeaker series, etc. These products are based on piezoelectric or electrostatic drive principles to achieve miniaturized, low-power audio output.
[0063] Principle: Take Knowles IS2010 as an example. It uses piezoelectric film technology. When an electrical signal is applied to the piezoelectric film, the film produces mechanical vibrations, which in turn drives the air to produce sound waves. The speaker has built-in diaphragms, piezoelectric films, back chambers and other key components. Through precise structural design and material selection, it ensures wide-frequency response, high sound pressure level and low distortion in a very small volume.
[0064] MEMS microphones, models: The mainstream MEMS microphone models on the market include Knowles SiSonic series, Bosch Sensortec BM series, InvenSense ICS series, etc. These products are mainly capacitive MEMS microphones, which have the characteristics of high sensitivity, low noise, and excellent signal-to-noise ratio.
[0065] Principle: Taking the Knowles SiSonic series as an example, it uses a capacitor structure formed by the back plate electrode and the diaphragm. When the sound wave causes the diaphragm to vibrate, the capacitor spacing changes, thereby changing the capacitance value. The built-in ASIC (Application Specific Integrated Circuit) converts the capacitance change into an electrical signal output. This type of microphone has extremely high stability and consistency, and can maintain good audio acquisition performance in various environments.
[0066] 2. Signal acquisition and environmental sound collection process
[0067] Audio signal output, drive circuit: MEMS speakers need to be equipped with a suitable drive circuit to provide appropriate voltage and current drive. Common drive circuits include Class D (digital switching amplifier), Class AB (linear amplifier), etc. For example, TPA2012D1 is a high-efficiency Class D audio amplifier suitable for MEMS speakers. It converts digital audio signals into high-efficiency speaker drive signals through PWM (pulse width modulation) technology.
[0068] Signal transmission: Audio signals are usually generated or decoded by the main control chip (such as DSP, MCU) or audio codec (CODEC), and then transmitted to the speaker drive circuit through interfaces such as I2S and PDM (pulse density modulation). For example, Cirrus Logic CS42L52 is an audio CODEC with an integrated I2S interface, which supports stereo line input, microphone input and speaker output, and is very suitable for use with MEMS speakers.
[0069] Environmental sound collection, front-end amplification: The output signal of MEMS microphones is usually weak and needs to be adjusted by a preamplifier (PGA, Programmable Gain Amplifier). For example, MaximMAX98600 is a low-noise, high-gain PGA designed specifically for MEMS microphones. It has a built-in anti-aliasing filter that helps improve the quality of microphone signals.
[0070] Analog-to-digital conversion: The amplified analog microphone signal needs to be converted into a digital signal through an ADC (Analog-to-Digital Converter). For example, Texas Instruments TLV320ADC3101 is a high-performance, low-power audio ADC with a sampling rate of up to 96kHz, which meets the needs of high-quality audio acquisition.
[0071] Signal processing: The digitized microphone signal is usually sent to the main control chip or DSP for further processing, such as noise suppression, echo cancellation, automatic gain control (AGC), etc., to optimize the audio quality. For example, the Qualcomm QCC512x series Bluetooth audio SoC integrates a high-performance audio DSP to achieve the above-mentioned multiple audio processing functions.
[0072] 3. Packaging Design and System Integration
[0073] The packaging design of integrated MEMS speakers and microphones aims to minimize the space occupied while ensuring acoustic isolation between the two to avoid mutual interference. Common packaging forms include the following:
[0074] Coplanar packaging: The speaker and microphone are located in the same plane, and the acoustic coupling is reduced through precise acoustic isolation materials and structural design, such as acoustic foam, silicone insulation, etc. For example, Knowles' SiSonic MEMS microphone and IS2010 MEMS speaker can be coplanar packaged to achieve high integration.
[0075] Stacked packaging: The speaker and microphone are stacked vertically, and acoustic isolation is achieved by using physical distance and intermediate media (such as PCB, acoustic isolation materials). For example, TDK's NPM0100 MEMS speaker and InvenSense ICS-40730 MEMS microphone can be stacked to achieve an ultra-thin audio module.
[0076] Integrated package: Integrate the speaker, microphone, and some drive, amplifier, and ADC circuits into one package to achieve a true single-chip solution. This type of package is usually developed by chip manufacturers and packaging factories, such as Bosch's integrated package BNO080 for the BMA400 accelerometer and BMM150 magnetometer.
[0077] Step 2: Preprocessing: Perform power adjustment, frequency equalization, and distortion correction preprocessing operations on the audio signal from the MEMS speaker, and perform noise suppression, gain control, and automatic level adjustment preprocessing operations on the ambient sound signal from the MEMS microphone;
[0078] Exemplarily, the power adjustment in the preprocessing step includes the following steps:
[0079] Signal framing: Divide the audio signal from the MEMS speaker into continuous time frames and perform instantaneous amplitude calculation, including calculating the instantaneous amplitude value of each frame signal;
[0080] Threshold determination: Determine the upper threshold value T of dynamic range compression based on the preset compression ratio and inflection point upper and the lower threshold value Tlower , where the compression ratio formula is:
[0081]
[0082] in, and They are the upper and lower threshold values corresponding to the uncompressed state respectively;
[0083] Compression processing: For each frame signal, if the instantaneous amplitude value is less than the lower threshold value T lower , it remains unchanged; if it is located at T lower With T upper Between, nonlinear compression is performed according to formula (4):
[0084]
[0085] Among them, A in is the original instantaneous amplitude value, A comp is the instantaneous amplitude value after compression;
[0086] Reconstruct the signal: Reconstruct the audio signal frame according to the compressed instantaneous amplitude value, and splice all frames to restore the complete audio signal to complete the power adjustment.
[0087] Specifically, the signal is framed, and the continuous audio signal from the MEMS speaker is framed according to a fixed length (such as 20 milliseconds) to form a series of audio signal frames that are continuous in time but do not overlap. The framing operation helps to calculate and compress the instantaneous amplitude of each frame signal independently, ensuring the real-time performance and processing efficiency of the algorithm. For each frame signal, the effective value (RMS) or peak detection method is used to calculate its instantaneous amplitude value. For example, the RMS value of a discrete audio signal frame can be calculated.
[0088] The dynamic range compression of the audio signal of the MEMS speaker based on DSP is realized. The process includes steps such as signal framing, instantaneous amplitude calculation, threshold determination, compression processing and signal reconstruction, which effectively adjusts the power of the audio signal, prevents distortion or equipment damage caused by excessive signals, maintains the overall dynamic range of the audio signal, and improves the listening experience.
[0089] In addition, noise suppression includes key steps such as noise reference signal acquisition, noise spectrum estimation, filter initialization, voice activity detection, noise cancellation update and noise cancellation processing, and anti-phase superposition, aiming to significantly reduce the interference of environmental noise on voice signals and improve the performance of voice communication or voice recognition systems. The following are the specific implementation details:
[0090] 1. Noise reference signal acquisition
[0091] Purpose: To collect environmental noise samples and provide a basis for subsequent noise spectrum estimation and adaptive filter initialization.
[0092] Implementation: Use the MEMS microphone integrated in the system to continuously collect environmental noise during periods without obvious voice activity (such as silent periods or non-voice periods confirmed by the user). The collection time should be long enough to obtain representative noise samples, usually set to a few seconds to tens of seconds, depending on the specific application scenario and noise characteristics.
[0093] Note: Ensure that there is no obvious speech interference during the noise reference signal acquisition process to avoid mistakenly incorporating speech components into the noise model. A dual-microphone array or multi-microphone system can be used for spatial filtering to further eliminate mixed near-field speech signals.
[0094] 2. Noise spectrum estimation
[0095] Purpose: To convert the collected noise reference signal into frequency domain representation for subsequent filter design and noise cancellation processing.
[0096] Implementation: Perform a fast Fourier transform (FFT) on the noise reference signal to convert it from the time domain to the frequency domain. Next, calculate the square of the complex amplitude at each frequency point to obtain the power spectrum of the noise reference signal. In order to improve computational efficiency and reduce storage requirements, a short time window (such as a Hamming window or a Hann window) can be used to perform a segmented FFT after windowing to obtain a noise power spectrum estimate of the time-frequency distribution.
[0097] 3. Filter initialization
[0098] Purpose: Construct and initialize an adaptive filter for subsequent noise cancellation processing.
[0099] Implementation: Select an adaptive filter structure suitable for noise suppression, such as minimum mean square error (MMSE) filter, recursive least squares (RLS) filter or Kalman filter. Set the initial parameters of the filter, such as filter coefficients, step size, etc., according to the results of noise spectrum estimation. The initial filter should simulate the spectral characteristics of the noise reference signal as much as possible to lay the foundation for subsequent noise tracking and cancellation.
[0100] 4. Voice Activity Detection (VAD)
[0101] Purpose: To determine in real time whether there is voice activity in the current audio stream, so as to perform noise cancellation processing during voice activity periods and perform noise tracking updates during non-voice activity periods.
[0102] Implementation: Use one or more voice activity detection algorithms, such as energy threshold method, zero crossing rate detection, spectrum flatness analysis, VAD based on deep learning, etc. Combine the outputs of these algorithms and set appropriate decision logic (such as majority voting or weighted fusion) to determine whether the current audio frame contains speech. The VAD algorithm should have good robustness and adaptability to cope with different signal-to-noise ratios, speaking styles, and background noise conditions.
[0103] 5. Noise cancellation update
[0104] Purpose: During periods of non-speech activity, the noise reference signal is used to update the adaptive filter parameters so that it can accurately track changes in ambient noise.
[0105] Implementation: When VAD determines that the current period is non-speech activity, the real-time collected ambient sound signal is used as the error signal, and the filter coefficient is adjusted through the update rule of the adaptive filter (such as the update step of the LMS algorithm, NLMS algorithm or RLS algorithm) to make the filter output signal consistent with the noise reference signal. This process continues until speech activity is detected.
[0106] 6. Noise cancellation processing
[0107] Purpose: During speech activity, an adaptive filter is used to process the real-time collected ambient sound signal, filter out the part similar to the noise spectrum estimation, and generate a noise-canceled signal.
[0108] Implementation: When VAD determines that the current period is speech activity, the real-time collected ambient sound signal is used as the input of the adaptive filter, and the filter output is the speech signal after preliminary noise reduction. At this time, the filter parameters remain unchanged, and the optimal filter state obtained in the previous noise tracking stage is used for noise suppression.
[0109] 7. Anti-phase superposition
[0110] Purpose: To further eliminate the residual noise components after noise cancellation processing and improve the signal-to-noise ratio of the speech signal.
[0111] Implementation: The noise-canceled signal is inverted and superimposed with the original ambient sound signal. Specifically, the difference between the original signal and the noise-reduced signal is calculated. Since the noise components are roughly the same in the two signals, the noise components cancel each other out after subtraction, while the speech components will not be completely canceled out due to random differences, thereby achieving a further noise reduction effect. This step is optional and depends on the specific application's requirements for noise reduction and system resource limitations.
[0112] Through the above specific implementation, a noise suppression system based on MEMS microphone is constructed. The system achieves effective suppression of environmental noise through steps such as noise reference signal acquisition, noise spectrum estimation, filter initialization, voice activity detection, noise cancellation update and processing, and anti-phase superposition, and significantly improves the performance of voice communication or voice recognition systems. In practical applications, each step can be optimized and adjusted according to specific scenarios and device characteristics to ensure a balance between noise suppression effect and system real-time performance and resource consumption.
[0113] In addition, the automatic level adjustment in the pre-processing step is based on the real-time monitored signal-to-noise ratio, and the microphone gain is adjusted according to a preset signal-to-noise ratio target value. The specific embodiments are as follows:
[0114] 1. Real-time signal-to-noise ratio (SNR) monitoring
[0115] Purpose: To evaluate the signal-to-noise ratio of the current speech signal in real time and provide a basis for automatic level adjustment.
[0116] Implementation: In the preprocessing stage of the speech signal, a signal-to-noise ratio estimation algorithm is used to calculate the signal-to-noise ratio of the audio signal collected by the microphone in real time. Commonly used signal-to-noise ratio estimation algorithms include but are not limited to:
[0117] Based on short-time energy ratio: Calculate the ratio of the short-time energy of the speech frame to the short-time energy of the noise frame, which is approximately the signal-to-noise ratio. The noise frame is usually taken from the signal during the period determined by VAD as non-speech activity.
[0118] Based on spectral entropy: Analyze the spectral distribution of the speech frame, calculate its entropy value, and compare it with the noise entropy value to reflect the signal-to-noise ratio level.
[0119] Based on deep learning: Train a specialized neural network model to directly predict the signal-to-noise ratio of the input audio clip.
[0120] Note: The signal-to-noise ratio estimation algorithm should be real-time and able to respond quickly to noise changes without affecting the overall system latency.
[0121] 2. Preset SNR target value setting
[0122] Purpose: Defines the desired speech signal-to-noise ratio target to guide automatic level adjustment.
[0123] Implementation: Preset one or more SNR target values based on the performance requirements, application scenarios, and user preferences of the voice communication system or voice recognition system. For example, for high-definition calls, the SNR target value is set to above 20dB; while for voice interaction in noisy environments, the requirement is appropriately lowered, such as setting it to 15dB. The target value should have a certain dynamic adjustment mechanism to adapt to different working modes or environmental changes.
[0124] 3. Microphone gain control
[0125] Purpose: To dynamically adjust the microphone gain based on the real-time monitored SNR and the preset SNR target value to optimize the voice signal quality.
[0126] Implementation: a) Real-time comparison: Compare the signal-to-noise ratio calculated in real time with the preset SNR target value. b) Gain adjustment decision: If the real-time signal-to-noise ratio is lower than the preset target value, increase the microphone gain to increase the signal strength and relatively improve the signal-to-noise ratio; conversely, if the real-time signal-to-noise ratio is higher than the preset target value and close to saturation (to prevent overload), appropriately reduce the microphone gain to maintain it within an appropriate signal-to-noise ratio range. c) Gain adjustment amplitude: The amplitude of gain adjustment should follow the principle of smoothness to avoid sudden large-scale changes that cause signal distortion or auditory discomfort. Control theory methods such as proportional integral controller (PID) and adaptive controller can be used to design a reasonable gain adjustment strategy. d) Gain upper and lower limits: Set the upper and lower limits of the microphone gain to prevent excessive amplification from introducing too much noise or excessive attenuation from causing loss of voice signals. The specific setting of the gain range should take into account hardware characteristics, application scenarios and user comfort.
[0127] 4. Feedback and Adaptive Adjustment
[0128] Purpose: To continuously optimize the gain adjustment strategy based on the speech signal quality after automatic level adjustment and system feedback.
[0129] Implementation: Evaluate the effect of automatic level adjustment periodically or when the system status changes (such as changes in environmental noise characteristics, changes in user location, etc.), such as through voice quality evaluation indicators (PESQ, MOS, etc.), false recognition rate, user satisfaction surveys, etc. Based on the evaluation results, dynamically adjust the preset SNR target value or gain adjustment strategy to adapt to the new conditions and ensure the best voice signal quality.
[0130] In summary, automatic level adjustment is achieved by dynamically adjusting the microphone gain to optimize the voice signal quality in the mixed signal processing method integrating MEMS speakers and microphones.
[0131] Step 3: Mixing calculation: The mixing coefficient is calculated using the following formula (1) to achieve real-time mixing of the speaker output signal and the microphone acquisition signal:
[0132]
[0133] Among them, P target is the target total sound pressure level, P mic is the ambient sound pressure level collected by the current microphone, P spkis the sound pressure level output by the current speaker; further, the target total sound pressure level P target It can be set according to the actual application scenario. It aims to provide users with flexible and intuitive operation methods to adapt to the sound pressure level requirements of different application scenarios. The specific implementation methods are as follows:
[0134] 1. User Interface Design
[0135] Purpose: To design a simple and easy-to-use user interface for users to set the target total sound pressure level.
[0136] Implementation: a) Sound pressure level adjustment control: Add a sound pressure level adjustment control, such as a slider, numeric input box, knob, etc., to the device's settings menu or dedicated audio adjustment interface. The default value of the control can be set to the recommended commonly used sound pressure level, and the range should cover the available sound pressure level range of the device. b) Unit display: Clearly mark the unit (such as dBSPL) next to the sound pressure level adjustment control to help users understand the meaning of the setting value. c) Real-time feedback: When the user adjusts the sound pressure level, the current setting value should be displayed in real time on the interface to provide visual feedback. If supported by the device, audio examples corresponding to the set sound pressure level can also be played in real time to provide auditory feedback. d) Save and apply: Provide a "Save" or "Apply" button. After the user confirms the setting, the system will use the newly set target total sound pressure level for subsequent mixing calculations.
[0137] 2. User setup process
[0138] Purpose: To guide the user through the user interface to complete the setting of the target total sound pressure level.
[0139] Implementation: a) Access the settings interface: Users enter the sound pressure level settings interface through the device menu, shortcut keys, or voice commands. b) Adjust the sound pressure level: Users set the target total sound pressure level through the sound pressure level adjustment control according to the actual application scenario and personal preferences. For example, users may prefer a lower sound pressure level in a quiet environment to keep quiet, while in a noisy environment, they may need to increase the sound pressure level to ensure that the speaker output is clearly heard. c) Confirm and save: After the user confirms that the set sound pressure level is correct, click the "Save" or "Apply" button, and the system will save the newly set sound pressure level. target Save to device configuration and immediately use for subsequent hybrid calculations.
[0140] 3. Device response and hybrid computing updates
[0141] Purpose: After the device receives the target total sound pressure level set by the user, it updates the P in the mixing calculation process. target value.
[0142] Implementation: a) Receiving setting value: The device main control unit receives the new setting P from the user interface targetb) Update the mixing coefficient calculation: In the subsequent mixing calculation process, the newly set P target Replace the original value and calculate the mixing coefficient k according to formula (1) to achieve real-time mixing of the speaker output signal and the microphone acquisition signal. c) Real-time effect: The device immediately applies the updated mixing coefficient to mix the signals, and the user can immediately feel the change in the sound pressure level.
[0143] Through user interface design, user setting process, device response and hybrid calculation update, user-defined setting of the target total sound pressure level in the hybrid signal processing method of integrated MEMS speakers and microphones is realized, giving users the ability to flexibly adjust the sound pressure level according to actual application scenarios, thereby improving the personalized experience and adaptability of the device.
[0144] Step 4: Signal mixing: Using the calculated mixing coefficient k, the pre-processed speaker output signal S is mixed according to formula (2). out and microphone to collect signal M in To perform a linear blend:
[0145] S mix =(1-k)·S out +k·M in ;
[0146] The aim is to achieve effective integration of speaker output and microphone acquisition signals to meet the needs of different application scenarios. The details are as follows:
[0147] 1. Mixing coefficient calculation
[0148] Purpose: Calculate the mixing coefficient k according to formula (1). According to the set target total sound pressure level P target , the ambient sound pressure level P collected by the current microphone mic And the sound pressure level P output by the current speaker spk , use formula (1) to calculate the mixing coefficient k:
[0149] 2. Signal preprocessing, output signal S to the speaker out and microphone to collect signal M in Perform necessary preprocessing, such as power adjustment, frequency equalization, noise suppression, gain control, etc.
[0150] Implementation: Based on the specific algorithm and parameters in the preprocessing step, out and M in Perform corresponding processing to ensure that the quality of the preprocessed signal meets the requirements of hybrid computing.
[0151] 3. Linear mixing, using the calculated mixing coefficient k and the preprocessed speaker output signal S out , microphone collects signal Min , perform linear mixing according to formula (2) to generate a mixed signal S mix .
[0152] Implementation: a) Calculate the mixed signal: According to formula (2), the mixing coefficient k, the preprocessed loudspeaker output signal S out and microphone to collect signal M in Combined, the mixed signal S is calculated mix :
[0153] b) Data format conversion: Ensure that the signal S involved in the mixing out and M in The data formats (such as sampling rate, number of quantization bits, data type, etc.) must be consistent to facilitate mathematical operations.
[0154] c) Floating-point and fixed-point operations: According to the hardware characteristics of the device, select the appropriate floating-point or fixed-point operation method for mixed calculation. If fixed-point operation is used, the impact of quantization error on the mixed result must be considered to ensure the quality of the mixed signal.
[0155] d) Overflow processing: During the hybrid calculation process, monitor whether the data exceeds the device data representation range. If there is overflow, adopt strategies such as saturation truncation, rounding or wraparound to prevent signal distortion.
[0156] 4. Mixed signal output
[0157] Purpose: To convert the mixed signal S mix Output to subsequent processing links or speakers for playback.
[0158] Implementation: Mix the signal S mix The mixed signal is sent to the device main control unit or audio processor for further post-processing (such as digital sound effect processing, echo cancellation, etc.) or directly sent to the speaker for playback. Ensure that there is no data loss or serious delay during the transmission of the mixed signal, and maintain the continuity and real-time nature of the sound quality.
[0159] Step 5: Feedback control: The mixed signal S mix The signal is sent back to the MEMS speaker for playback and collected again by the MEMS microphone to form a closed-loop feedback system. Furthermore, the signal collected by the MEMS microphone is processed with delay compensation and then used for closed-loop feedback.
[0160] Step 6: Error analysis and adjustment: Calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds the preset threshold, adjust the speaker output power according to formula (3):
[0161] P spk,new =P spk,old +α·(P target+P curent )
[0162] Among them, P spk,new is the output power of the speaker after adjustment, P spk,old To adjust the front speaker output power, α is the power adjustment coefficient, P curent is the current ambient sound pressure level; further, the power adjustment coefficient α can be dynamically adjusted according to the actual application scenario.
[0163] Step 7, loop iteration: Repeat the mixed calculation, signal mixing, feedback control, and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than the preset threshold, completing the mixed signal processing. Furthermore, when the difference between the ambient sound pressure level and the target sound pressure level is still higher than the preset threshold after several consecutive iterations, the target sound pressure level is automatically lowered.
[0164] In some other embodiments, the above-mentioned method for processing mixed signals integrating a MEMS speaker and a microphone further includes: performing digital sound effect processing on the mixed signal. The specific implementation is as follows:
[0165] 1. Digital sound processor module integration: integrating a digital sound processor (Digital Signal Processor, DSP) or a hardware unit with similar functions at the hardware level to perform real-time digital sound processing on the mixed signal.
[0166] Implementation: a) Add a dedicated digital audio processor chip to the existing hardware design or select a mixed signal processor with built-in audio processing capabilities (such as an MCU with a DSP core). b) Ensure that there is a high-speed, low-latency data channel between the processor and the speaker output interface, microphone input interface and mixed signal processing module, such as I 2 S, PDM and other digital audio interfaces. c) Configure necessary power management and clock signal distribution to ensure stable operation of DSP.
[0167] 2. Audio effect algorithm selection and implementation: determine the required digital audio effect type, write or select the corresponding digital signal processing algorithm, and deploy it in the digital audio effect processor.
[0168] Implementation: a) According to the application scenario requirements, select the appropriate sound effect type, such as equalizer (EQ), dynamic range compression (DRC), noise suppression (NS), acoustic echo cancellation (AEC), reverb (Reverb), voice changer (VoiceChanger), etc. b) Obtain or develop corresponding digital signal processing algorithms, which can be based on filter design (such as FIR / IIR filter), frequency domain transformation (such as FFT / IFFT), adaptive algorithm (such as LMS / RLS), etc. c) Compile the algorithm into code suitable for the target DSP architecture, such as assembly instructions, C / C++ code, etc., and optimize performance to meet real-time processing requirements.
[0169] 3. Expand the mixed signal processing flow by adding digital sound processing to the original mixed signal processing flow.
[0170] Implementation: Step 1: Mixing calculation and signal mixing, keep the original process unchanged, and generate a preliminary mixed signal. Step 2: Digital sound effect processing, a) send the preliminary mixed signal to the digital sound effect processor. b) The digital sound effect processor processes the sound effect according to the preset sound effect parameters and algorithms to generate a sound effect processed signal. Step 3: Feedback control, error analysis and adjustment (keep the original process unchanged); perform feedback control, error analysis and adjustment on the sound effect processed signal to determine whether the preset threshold of the difference between the ambient sound pressure level and the target sound pressure level is reached, and perform corresponding iterations or target sound pressure level adjustments. Step 4: Output processing, output the final adjusted signal (i.e., the signal that has been processed by sound effects and sound pressure level control) to the speaker for playback.
[0171] Sound effect parameter configuration and real-time control, providing a user interface or API interface to flexibly adjust sound effect parameters or dynamically update sound effect settings according to environmental changes.
[0172] Implementation: a) Develop a user interface (e.g., graphical software panel, mobile app) that allows users to select sound effect type and adjust parameters (e.g., gain, cutoff frequency, reverberation time, etc.). b) For automated or intelligent applications, design a sensor data fusion mechanism that dynamically adjusts sound effect parameters based on factors such as ambient noise level and spatial characteristics to improve sound quality or adaptability. c) Implement a communication interface with a digital sound effect processor to ensure that parameter changes can be transmitted to the processor in real time and take effect.
[0173] By performing digital sound processing on the mixed signal, the functional diversity and sound quality of the mixed signal processing system integrating MEMS speakers and microphones are enhanced. Through hardware integration, algorithm implementation, process expansion, and sound parameter configuration and real-time control, a seamless conversion from mixed signals to output signals with rich sound effects is achieved, improving the user experience or the ability to adapt to complex application scenarios.
[0174] In addition, this embodiment also proposes a hybrid signal processing system integrating a MEMS speaker and a microphone, such as Figure 2 As shown, it includes: a signal acquisition module, a preprocessing module, a hybrid calculation module, a feedback control module, an error analysis and adjustment module, and a loop iteration module.
[0175] Specifically, the signal acquisition module is used to receive and output audio signals and collect environmental sound signals respectively through a MEMS speaker and a MEMS microphone integrated in the same package;
[0176] Specifically, the preprocessing module is used to perform power adjustment, frequency equalization and distortion correction preprocessing operations on the audio signal from the MEMS speaker, and to perform noise suppression, gain control and automatic level adjustment preprocessing operations on the ambient sound signal from the MEMS microphone;
[0177] Specifically, the mixing calculation module is used to calculate the mixing coefficient to achieve real-time mixing of the loudspeaker output signal and the microphone collection signal;
[0178] Specifically, the feedback control module is used to send the mixed signal back to the MEMS speaker for playback, and collect it again through the MEMS microphone to form a closed-loop feedback system;
[0179] Specifically, the error analysis and adjustment module is used to calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds a preset threshold, the speaker output power is adjusted:
[0180] Specifically, the loop iteration module is used to repeatedly perform the mixing calculation, signal mixing, feedback control and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than a preset threshold, thereby completing the mixed signal processing.
[0181] In addition, the above-mentioned signal acquisition module, preprocessing module, hybrid calculation module, feedback control module, error analysis and adjustment module, and loop iteration module are also used to implement other steps of the above-mentioned hybrid signal processing method integrating MEMS speakers and microphones when executed, which are not described one by one here.
[0182] In summary, the present invention achieves effective suppression of acoustic feedback and echo through preprocessing, hybrid calculation, signal mixing, feedback control, error analysis and adjustment, etc.: by calculating the mixing coefficient in real time, linearly mixing the loudspeaker output signal and the microphone acquisition signal, a dynamic balance between the loudspeaker and the microphone is achieved, and the risk of acoustic feedback is greatly reduced. At the same time, the closed-loop feedback system can capture the echo signal in time, and effectively suppress the echo by accurately adjusting the loudspeaker output power, thereby ensuring the clarity of voice communication.
[0183] The ambient sound signals collected by the microphone are pre-processed by noise suppression, gain control, automatic level adjustment and other operations. Advanced noise suppression algorithms are used to significantly reduce the impact of background noise on voice signals and significantly improve the signal-to-noise ratio, ensuring high-quality voice interaction in noisy environments.
[0184] According to the set target total sound pressure level, the current ambient sound pressure level is monitored in real time, and the speaker output power is iteratively adjusted to achieve precise control of the sound pressure level. It can not only adapt to the sound pressure requirements of various application scenarios, but also quickly respond to changes in ambient sound pressure, avoiding problems caused by excessively high or low sound pressure, and ensuring user comfort and equipment safety.
[0185] In addition, the present invention also provides a terminal device. The mixed signal processing method of the integrated MEMS speaker and microphone involved in this embodiment is mainly used in the terminal device, which can be a PC, a portable computer, a mobile terminal, or other device with display and processing functions.
[0186] Specifically, the terminal device may include a processor (such as a CPU), a communication bus, a user interface, a network interface, and a memory. The communication bus is used to realize the connection and communication between these components; the user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface); the memory may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory, and the memory may optionally be a storage device independent of the aforementioned processor.
[0187] Among them, the memory stores a readable storage medium, and the readable storage medium stores a mixed signal processing program. The processor can call the mixed signal processing program stored in the memory and execute the mixed signal processing method of integrating a MEMS speaker and a microphone provided in an embodiment of the present invention.
[0188] It is understood that a readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used here is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0189] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0190] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0191] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A mixed signal processing method integrating a MEMS speaker and a microphone, characterized in that: The steps include: Signal acquisition: The MEMS speaker and MEMS microphone integrated in the same package are used to receive and output audio signals and collect ambient sound signals respectively; Preprocessing: Perform power adjustment, frequency equalization, and distortion correction preprocessing operations on the audio signals from the MEMS speakers, and perform noise suppression, gain control, and automatic level adjustment preprocessing operations on the ambient sound signals from the MEMS microphones; Mixing calculation: The mixing coefficient is calculated using the following formula (1) to achieve real-time mixing of the speaker output signal and the microphone acquisition signal: Among them, P target is the target total sound pressure level, P mic is the ambient sound pressure level collected by the current microphone, P spk The sound pressure level of the current speaker output; Signal mixing: Using the calculated mixing coefficient k, the preprocessed speaker output signal S is mixed according to formula (2) out and microphone to collect signal M in To perform a linear blend: S mix =(1-k)·S out +k·M in ; Feedback control: The mixed signal S mix The signal is sent back to the MEMS speaker for playback and collected again by the MEMS microphone, forming a closed-loop feedback system. Error analysis and adjustment: Calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds the preset threshold, adjust the speaker output power according to formula (3): P spk,new =P spk,old +α·(P target +P curent ) Among them, P spk,new is the output power of the speaker after adjustment, P spk,old To adjust the front speaker output power, α is the power adjustment coefficient, P curent is the current ambient sound pressure level; Loop iteration: Repeat the mixing calculation, signal mixing, feedback control, and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than the preset threshold, completing the mixed signal processing.
2. The mixed signal processing method of an integrated MEMS speaker and a microphone according to claim 1, characterized in that: The power adjustment in the preprocessing step includes the following steps: Signal framing: Divide the audio signal from the MEMS speaker into continuous time frames and perform instantaneous amplitude calculation, including calculating the instantaneous amplitude value of each frame signal; Threshold determination: Determine the upper threshold value T of dynamic range compression based on the preset compression ratio and inflection point upper and the lower threshold value T lower , where the compression ratio formula is: in, and They are the upper and lower threshold values corresponding to the uncompressed state respectively; Compression processing: For each frame signal, if the instantaneous amplitude value is less than the lower threshold value T lower , it remains unchanged; if it is located at T lower With T upper Between, nonlinear compression is performed according to formula (4): Among them, A in is the original instantaneous amplitude value, A comp is the instantaneous amplitude value after compression; Reconstruct the signal: Reconstruct the audio signal frame according to the compressed instantaneous amplitude value, and splice all frames to restore the complete audio signal to complete the power adjustment.
3. The mixed signal processing method of an integrated MEMS speaker and a microphone according to claim 1, characterized in that: The noise suppression in the preprocessing step comprises the following steps: Noise reference signal acquisition: Use MEMS microphones to collect ambient noise during non-speech activities as noise reference signals; Noise spectrum estimation: Perform fast Fourier transform on the noise reference signal and calculate its frequency domain power spectrum as the noise spectrum estimation; Filter initialization: construct an adaptive filter whose initial parameters are set based on the noise spectrum estimate; Voice activity detection: During real-time processing, a voice activity detection algorithm is used to determine whether the current period is voice active. Noise cancellation update: During periods of non-speech activity, the noise reference signal is used to update the adaptive filter parameters so that the filter output signal is consistent with the noise reference signal; Noise cancellation processing: During speech activity, an adaptive filter is applied to the real-time collected ambient sound signal to filter out the parts similar to the noise spectrum estimate and generate a noise-canceled signal; Inverse superposition: The noise-canceled signal is inversely superimposed on the original ambient sound signal to eliminate residual noise and complete noise suppression.
4. The mixed signal processing method of an integrated MEMS speaker and a microphone according to claim 1, characterized in that: The automatic level adjustment in the preprocessing step is based on the real-time monitored signal-to-noise ratio, and adjusts the microphone gain according to a preset signal-to-noise ratio target value.
5. The mixed signal processing method of integrating a MEMS speaker and a microphone according to claim 1, characterized in that: The target total sound pressure level P in the mixing calculation step target It can be set according to the actual application scenario.
6. The mixed signal processing method of integrated MEMS speaker and microphone according to claim 1, characterized in that: In the step of feedback control, the signal collected by the MEMS microphone is processed by delay compensation and then used for closed-loop feedback.
7. The mixed signal processing method of integrated MEMS speaker and microphone according to claim 1, characterized in that: In the error analysis and adjustment steps, the power adjustment coefficient α can be dynamically adjusted according to the actual application scenario.
8. The mixed signal processing method of integrated MEMS speaker and microphone according to claim 1, characterized in that: In the iterative process, when the difference between the ambient sound pressure level and the target sound pressure level is still higher than a preset threshold after several consecutive iterations, the target sound pressure level is automatically lowered.
9. The mixed signal processing method of integrated MEMS speaker and microphone according to claim 1, characterized in that: Also includes: Perform digital sound processing on the mixed signal.
10. A mixed signal processing system integrating a MEMS speaker and a microphone, characterized in that: include: A signal acquisition module, used to receive and output audio signals and collect environmental sound signals respectively through a MEMS speaker and a MEMS microphone integrated in the same package; A preprocessing module, used for performing power adjustment, frequency equalization and distortion correction preprocessing operations on the audio signal from the MEMS speaker, and performing noise suppression, gain control and automatic level adjustment preprocessing operations on the ambient sound signal from the MEMS microphone; A mixing calculation module is used to calculate the mixing coefficient to achieve real-time mixing of the loudspeaker output signal and the microphone acquisition signal; The feedback control module is used to send the mixed signal back to the MEMS speaker for playback and collect it again through the MEMS microphone to form a closed-loop feedback system; The error analysis and adjustment module is used to calculate the error between the currently collected ambient sound pressure level and the target sound pressure level. If the error exceeds the preset threshold, the speaker output power is adjusted: The loop iteration module is used to repeatedly perform the mixed calculation, signal mixing, feedback control and error analysis and adjustment process until the difference between the ambient sound pressure level and the target sound pressure level is lower than a preset threshold, thereby completing the mixed signal processing.
Citation Information
Patent Citations
A method, apparatus, and noise-canceling communication headset for enhancing voice.
CN102300140A
Feedback multichannel active control system and method before mixing of in-vehicle road noise
CN116189649A
Adaptive feedback control for earbuds, headphones, and handsets
US20160300562A1
Cited By
Audio output control method and device, equipment and storage medium
CN119485118A
An audio output control method, apparatus, device, and storage medium
CN119485118B
Off-line conference recording box and voice recognition system thereof
CN119559950A
Sound equipment noise reduction system for noise reduction processing of closed space and sound equipment
CN119865736A
Echo cancellation processing method and device in scene with large loudspeaker loudness
CN119943076A
