Noise reduction method and device and terminal equipment
The multi-microphone system determines the non-steady noise source and adjusts the signal, which solves the problem of poor noise reduction effect in the non-steady noise environment and improves the experience of using call and broadcast equipment.
Patent Information
- Application Number
- CN202410851721.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology has poor noise reduction effect when dealing with non-steady noise environments and is difficult to apply, resulting in greater interference and impact on calls and broadcasting equipment.
By using at least two microphones to collect environmental signals in different directions, it is determined that there is unsteady noise in the collection direction of the target microphone, and the signal output by the microphone is adjusted according to the adjustment strategy to generate a noise reference signal for noise reduction.
It improves the noise reduction effect and applicability in unsteady noise environments, reduces the interference of unsteady noise on call and broadcast equipment, and improves the quality of calls and broadcasts.
Smart Images

Figure CN118782006A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a noise reduction method, device and terminal equipment. Background Art
[0002] With the rapid development of communication technology, video calls, voice calls and other calling technologies are becoming more and more popular, and broadcasting equipment such as headphones and speakers are also becoming more and more popular. Since there is usually noise in the external environment, users are easily affected by noise when they are talking on the phone or using broadcasting equipment. There are problems such as the noise of the external environment and the user's voice being transmitted to the other party at the same time during the call, resulting in low call quality, and the sound played by the broadcasting equipment is difficult to hear clearly due to the loud noise.
[0003] Therefore, the noise reduction function can be used to eliminate the noise from the external environment, so as to reduce the interference and impact of the noise from the external environment on calls and broadcasting equipment, and improve the user experience. At present, the noise reduction function includes active noise reduction and passive noise reduction. Active noise reduction is to collect the noise from the external environment through the microphone and perform noise reduction based on the noise from the external environment.
[0004] However, if there is non-steady-state noise in a certain direction, such as wind noise, and the non-steady-state noise has the characteristics of irregular phase and signal energy, it will be difficult to perform noise reduction based on the non-steady-state noise, which will interfere with and affect calls or broadcasting equipment. The noise reduction effect is poor and it is difficult to apply in an environment with non-steady-state noise, and its applicability is low. Summary of the invention
[0005] The embodiments of the present application provide a noise reduction method, apparatus and terminal device, which are intended to solve the problem that the existing non-steady-state noise interferes with and affects calls or broadcasting equipment, and has a poor noise reduction effect.
[0006] In a first aspect, an embodiment of the present application provides a noise reduction method, which is applied to a target object, wherein the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions, and the method includes:
[0007] Acquire the environmental signal collected by each microphone;
[0008] Determine a target microphone according to the environmental signal, wherein there is non-steady-state noise in the collection direction of the target microphone;
[0009] Determining an adjustment strategy for the target microphone, and adjusting an ambient signal output by the target microphone based on the adjustment strategy;
[0010] Noise reduction is performed on the target object based on the adjusted target microphone.
[0011] In a possible implementation manner of the first aspect, determining the target microphone according to the environmental signal includes:
[0012] determining a noise type of each of said environmental signals;
[0013] A target microphone is determined from among all the microphones according to the noise type.
[0014] In a possible implementation manner of the first aspect, determining the noise type of each of the environmental signals includes:
[0015] Determining an interference signal in each of the environmental signals, and determining a signal strength of the interference signal;
[0016] Determining signal-to-noise ratio information of each of the environmental signals according to the signal strength;
[0017] The noise type of the environmental signal is determined according to the signal-to-noise ratio information.
[0018] In a possible implementation manner of the first aspect, before determining the noise type of the environmental signal according to the signal-to-noise ratio information, the method further includes:
[0019] determining a dynamic range of each of said ambient signals;
[0020] The determining the noise type of the environmental signal according to the signal-to-noise ratio information includes:
[0021] The noise type of each of the environmental signals is determined according to the dynamic range and the signal-to-noise ratio information.
[0022] In a possible implementation manner of the first aspect, the performing noise reduction on the target object based on the adjusted target microphone includes:
[0023] When the target object is a headset, generating a noise reference signal based on the adjusted target microphone;
[0024] A cancellation signal is generated according to the noise reference signal to reduce noise of the earphone based on the cancellation signal, wherein a phase of the cancellation signal is opposite to a phase of the noise reference signal.
[0025] In a possible implementation manner of the first aspect, the performing noise reduction on the target object based on the adjusted target microphone includes:
[0026] When the target object is a call device, generating a noise reference signal based on the adjusted target microphone;
[0027] The noise signal corresponding to the noise reference signal in the voice signal collected by the communication device is filtered out to obtain a target voice signal.
[0028] In a possible implementation manner of the first aspect, determining the adjustment strategy of the target microphone includes:
[0029] If the number of the target microphones is less than or equal to the number threshold, determining that the adjustment strategy of the target microphones is a first adjustment strategy, where the first adjustment strategy is used to close the signal channel of the target microphones;
[0030] If the number of the target microphones is greater than the number threshold, it is determined that the adjustment strategy of the target microphones is a second adjustment strategy, and the second adjustment strategy is used to adjust the signal gain of the target microphones.
[0031] In a possible implementation manner of the first aspect, generating a noise reference signal based on the adjusted target microphone includes:
[0032] If the adjustment strategy of the target microphone is the first adjustment strategy, non-target microphones other than the target microphone among all the microphones are determined, and environmental signals of the non-target microphones are combined to generate a noise reference signal;
[0033] If the adjustment strategy of the target microphone is the second adjustment strategy, non-target microphones other than the target microphone are determined among all the microphones, and the ambient signals of the non-target microphones and the first ambient signal of the target microphone are merged to generate a noise reference signal, where the first ambient signal is the ambient signal of the target microphone after the signal gain is adjusted.
[0034] In a second aspect, an embodiment of the present application provides a noise reduction device, the device is applied to a target object, the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions, and the device includes:
[0035] An acquisition module, used to acquire the environmental signal collected by each microphone;
[0036] A determination module, configured to determine a target microphone according to the environmental signal, wherein a non-steady-state noise exists in a collection direction of the target microphone;
[0037] an adjustment module, configured to determine an adjustment strategy for the target microphone, and adjust the ambient signal output by the target microphone based on the adjustment strategy;
[0038] The noise reduction module is used to reduce the noise of the target object based on the adjusted target microphone.
[0039] In a third aspect, an embodiment of the present application provides a terminal device, comprising an acquisition module, a sound emission module, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the acquisition module is used to acquire environmental signals and voice signals, the sound emission module is used to play a cancellation signal and a target voice signal, and when the processor executes the computer program, the noise reduction method provided in the first aspect above is implemented.
[0040] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0041] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0042] In an embodiment of the present application, by acquiring environmental signals collected by each microphone in different collection directions, and determining a target microphone from all microphones based on the environmental signals, and there is non-steady-state noise in the collection direction of the target microphone, it is possible to determine a target microphone with non-steady-state noise in a certain collection direction from all microphones, and then determine an adjustment strategy for the target microphone, and adjust the environmental signal output by the target microphone based on the adjustment strategy, so that noise reduction can be performed on the target object based on the adjusted target microphone, and the interference and influence of the non-steady-state noise in the target microphone on the sound originally to be played can be reduced, so that noise reduction can be performed on the target object in an environment with non-steady-state noise, thereby improving the noise reduction effect and applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flowchart of a noise reduction method provided by an embodiment of the present application;
[0044] Figure 2 is a schematic diagram of a microphone collection direction provided by an embodiment of the present application;
[0045] Figure 3 is a schematic diagram of a structure of a target object provided by an embodiment of the present application;
[0046] Figure 4 is a flowchart of another noise reduction method provided by an embodiment of the present application;
[0047] Figure 5 is a schematic diagram of a multi-channel signal processing provided by an embodiment of the present application;
[0048] Figure 6 is a structural schematic diagram of a noise reduction device provided in one embodiment of the present application;
[0049] Figure 7 It is a structural block diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] See also Figure 1 , Figure 1 A flowchart of a noise reduction method provided by an embodiment of the present application is shown. The method can be applied to a target object, which can be a device that needs to be noise-reduced. The target object can include a broadcasting device and a calling device. The broadcasting device can be a device that plays sound, such as headphones, speakers, etc. The calling device can be a device that transmits voice signals through electrical signals, such as mobile phones, headphones, etc. The target object can include at least two microphones, and specifically can include the following steps:
[0052] Step 101: Acquire the environmental signal collected by each microphone.
[0053] Among them, the microphone can be a device for collecting sound, the microphone can be used to convert sound signals into electrical signals, the environmental signal can be the sound signal collected by the microphone in the environment, the sound signal can be the sound of the microphone in different directions in the environment, different microphones can collect environmental signals in different collection directions, the collection direction can be the direction in which the microphone collects environmental signals, and the collection direction can correspond to the layout of the microphone on the target object. For example, when the microphone is set on the top of the target object, the collection direction of the microphone can be above the target object, and when the microphone is set on the side of the target object, the collection direction of the microphone can be in front of the target object, and so on.
[0054] See also Figure 2 , Figure 2 A schematic diagram of a microphone collection direction provided by an embodiment of the present application is shown. Figure 2 As shown, the target object may include microphone A, microphone B and microphone C, wherein microphone A is arranged on the top of the target object, and its collection direction may be above the target object, specifically, it may be collection direction a-a`; microphone B is arranged on the side of the target object, and its collection direction may be in front of the target object, specifically, it may be collection direction b-b`; microphone C is arranged on the top of the target object, and its collection direction may be the front of the target object, specifically, it may be collection direction
[0055] `
[0056] c—c.
[0057] When noise reduction is required for the target object, such as when sound needs to be played using headphones or a voice call needs to be made using a calling device, the microphone in the target object can be used to collect sound signals in each collection direction in the current environment, and then the sound signals collected by each microphone in different collection directions can be obtained.
[0058] In practical applications, the environment in which the target object is located may have different sounds in different directions, such as the sound of people talking, the sound of vehicles starting, etc., and the active noise reduction function of the target object needs to collect the noise in the environment to perform noise reduction. Therefore, it is necessary to collect sounds in different directions in the environment to improve the noise reduction effect.
[0059] See also Figure 3 , Figure 3 A schematic diagram of the structure of a target object provided by an embodiment of the present application is shown. Figure 3 As shown, the target object includes a shell 1, a collection module 2, a sound module 3, and a circuit board 4. The collection module 2 can be used to collect environmental signals and voice signals in the environment. The collection module 2 can include at least two groups of microphone arrays, and each microphone array includes at least one microphone. The shell 1 has a front wall 11 and a rear wall 12 that are relatively arranged. The sound module 3 is arranged between the front wall 11 and the rear wall 12. The front wall 11 and the rear wall 12 of the shell 1 are each provided with at least one sound pickup hole 13. The orientation of each sound pickup hole 13 is different. Each sound pickup hole 13 corresponds to at least one microphone array, and the collection direction of each microphone array is respectively toward the sound pickup hole 13 corresponding to the microphone array. The sound module 3 can play sound based on the sound signal, and the sound module 3 can be a speaker. The acquisition module 2 and the sound module 3 are both electrically connected to the circuit board 4. The circuit board 4 can be used to control the acquisition module 2 to collect sound signals in the environment, and to control the sound module 3 to play sounds based on the sound signals. The circuit board 4 can be provided with a signal amplifier, an analog-to-digital converter, a processor, a digital-to-analog converter, a memory, etc. The signal amplifier can be a programmable gain amplifier or an operational amplifier, and the processor can be a microprocessor or a digital signal processor.
[0060] In a specific implementation, different microphone arrays in the acquisition module 2 can be used to collect sound signals in the current environment, and different microphone arrays can collect sound signals in different directions through corresponding sound pickup holes, and then the sound signals collected by each microphone array can be input into the processor of the circuit board for data processing.
[0061] Step 102: determine the target microphone according to the environmental signal.
[0062] Among them, there is non-steady-state noise in the collection direction of the target microphone, that is, the target microphone can be the microphone that collects non-steady-state noise among all microphones. The non-steady noise can be pulse noise, irregular noise, etc. The noise can be sound in the current environment that interferes with the target object, such as sound in the environment that is inconsistent with the sound that the headset needs to play or sound in the environment that is inconsistent with the voice signal of the voice call.
[0063] After obtaining the ambient signal, the noise in the ambient signal collected by each microphone can be determined, and it can be judged whether the noise in the ambient signal collected by each microphone is non-steady-state noise. Then, when the noise is non-steady-state noise, the microphone that collects the non-steady-state noise can be determined as the target microphone.
[0064] In an embodiment of the present application, step 102 may include steps 1021 to 1022:
[0065] Step 1021, determining the noise type of each environmental signal.
[0066] The noise type may include a non-steady-state noise type and a steady-state noise type.
[0067] After obtaining the environmental signal collected by each microphone, the multi-channel environmental signal can be processed, that is, the spectrum analysis processing can be performed on the environmental signal collected by each microphone array, and then the noise signal in each environmental signal can be identified, and the noise type of the noise signal can be determined according to the waveform of the noise signal in each environmental signal.
[0068] In an embodiment of the present application, step 1021 may be performed in the following manner:
[0069] Determine the interference signal in each environmental signal, and determine the signal strength of the interference signal, determine the signal-to-noise ratio information of each environmental signal based on the signal strength, and determine the noise type of the environmental signal based on the signal-to-noise ratio information.
[0070] Among them, the interference signal can be the noise in the environment where the target object is located, the signal strength can be used to describe the energy of the interference signal, the signal-to-noise ratio information can be the ratio between the effective signal and the interference signal, and the effective signal can be the signal required by the target object, such as the audio signal that needs to be played by the broadcasting equipment and the voice signal that needs to be collected during voice calls. The signal-to-noise ratio information can be used to describe the degree of influence of the interference signal on the effective signal.
[0071] After obtaining the environmental signal collected by each microphone, the interference signal in the environmental signal can be identified through spectrum analysis.
[0072] It should be understood that since there are one or more types of noise in the environment where the target object is located, and the environmental signal collected by each microphone includes an interference signal of at least one noise, the interference signal corresponding to each noise in the environmental signal can be identified through spectrum analysis.
[0073] After determining the interference signal in the environmental signal, the signal strength of each interference signal can be determined respectively. Specifically, the signal strength of the interference signal can be determined by the following formula:
[0074]
[0075] Wherein, E represents the signal strength of the interference signal, x(n) may be the amplitude of the interference signal at the nth sampling point, and N may be the total number of sampling points.
[0076] After obtaining the signal strength of each interference signal, the effective signal can be determined, and the signal strength of the effective signal can be determined. Then, the signal-to-noise ratio information corresponding to each interference signal in the environmental signal can be determined based on the signal strength of the interference signal and the signal strength of the effective signal. The noise type of the environmental signal can be determined based on the signal-to-noise ratio information corresponding to each interference signal in the environmental signal.
[0077] Specifically, the signal-to-noise ratio information SNRdB can be determined by the following formula:
[0078] SNRdB=10*log 10 (Psignal / Pnoise)
[0079] Among them, Psignal may be the signal strength of the effective signal, and Pnoise may be the signal strength of the interference signal.
[0080] In practical applications, the signal-to-noise ratio information corresponding to each interference signal can be compared with the signal-to-noise ratio threshold, and then the interference signal whose signal-to-noise ratio information is less than the signal-to-noise ratio threshold can be determined to be non-steady-state noise, and the noise type of the environmental signal can be determined to be a non-steady-state noise type, and the interference signal whose signal-to-noise ratio information is greater than or equal to the signal-to-noise ratio threshold can be determined to be a steady-state noise, and when each interference signal of the environmental signal is a steady-state noise, the noise type of the environmental signal is determined to be a steady-state noise type.
[0081] Among them, the signal-to-noise ratio threshold can be determined based on the needs of the user, or it can be determined with the noise reduction level of the target object. For example, the user can set the noise reduction level of the target object and the noise reduction level can include a high level and a low level. When the noise reduction level of the target object is a high level, the corresponding signal-to-noise ratio threshold when the noise reduction level is a high level can be set to 90dB, and then it can be determined that the signal-to-noise ratio information of the interference signal is compared with 90dB. If the signal-to-noise ratio information is less than 90dB, the noise type of the interference signal is determined to be a non-steady-state noise type. When the user sets the noise reduction level of the target object to a low level, the corresponding signal-to-noise ratio threshold when the noise reduction level is a low level can be set to 60dB, and then the signal-to-noise ratio threshold corresponding to the low level can be determined to be 60dB. It should be understood that the signal-to-noise ratio thresholds corresponding to different levels can also be defined by the user.
[0082] Step 1022: determine a target microphone from all microphones according to the noise type.
[0083] After the noise type of each environmental signal is obtained, the microphone corresponding to the environmental signal whose noise type is a non-steady-state noise type can be determined from all microphones as the target microphone.
[0084] For example, when the noise type of the ambient signal in the acquisition direction b—b′ is a non-steady-state noise type, the microphone B used for acquiring the signal in the acquisition direction b—b′ may be determined as the target microphone.
[0085] In an embodiment of the present application, before step 1022, the following steps may also be included:
[0086] Determine the dynamic range of each ambient signal.
[0087] The dynamic range may be used to describe the difference between the maximum amplitude and the minimum amplitude of the interference signal, and the dynamic range may be the amplitude range between the maximum amplitude and the minimum amplitude of the interference signal.
[0088] After obtaining the signal-to-noise ratio information of each interference signal, the maximum amplitude and the minimum amplitude of each interference signal may also be determined, and further the dynamic range of each interference signal may be determined based on the maximum amplitude and the minimum amplitude of the interference signal.
[0089] Specifically, the dynamic range DRdB can be determined by the following formula:
[0090] DRdB=10*log 10 (Vmax 2 / Vmin 2 )
[0091] Among them, Vmax may be the maximum amplitude of the interference signal, and Vmin may be the minimum amplitude of the interference signal.
[0092] After the dynamic range of each environmental signal is obtained, step 1022 may also be performed in the following manner:
[0093] Based on the dynamic range and signal-to-noise ratio information, determine the noise type of each environmental signal.
[0094] After obtaining the dynamic range of each interference signal in the environmental signal, the signal-to-noise ratio information corresponding to each interference signal can be compared with the signal-to-noise ratio threshold, and the dynamic range corresponding to each interference signal can be compared with the dynamic range threshold, and then when the signal-to-noise ratio information is less than or equal to the signal-to-noise ratio threshold, or the dynamic range is greater than the dynamic range threshold, the noise type of the environmental signal can be determined to be a non-steady-state noise type. When the signal-to-noise ratio information corresponding to each interference signal is greater than the signal-to-noise ratio threshold, or the dynamic range is less than or equal to the dynamic range threshold, the noise type of the environmental signal is determined to be a steady-state noise type.
[0095] Specifically, the dynamic range threshold may correspond to the noise reduction level of the target object. For example, the noise reduction level of the target object may include a high level and a low level, wherein the dynamic range threshold corresponding to the high level may be 3dB, and the dynamic range threshold corresponding to the low level may be 4dB. The noise reduction level of the target object may be user-defined, and the dynamic range threshold corresponding to each noise reduction level may be greater than or equal to 3dB.
[0096] Step 103: determine an adjustment strategy for the target microphone, and adjust the ambient signal output by the target microphone based on the adjustment strategy.
[0097] The adjustment strategy may be a strategy for adjusting the ambient signal of the target microphone.
[0098] After the target microphone is determined, a strategy for adjusting the ambient signal of the target microphone may be determined, and the ambient signal output by the target microphone may be adjusted using the adjustment strategy.
[0099] Step 104: noise reduction is performed on the target object based on the adjusted target microphone.
[0100] After adjusting the target microphone, the target object may be subjected to noise reduction based on the environmental signal of the adjusted target microphone, that is, the influence and interference of the noise in the environment on the target object may be reduced or removed.
[0101] In an embodiment of the present application, by acquiring environmental signals collected by each microphone in different collection directions, and determining a target microphone from all microphones based on the environmental signals, and there is non-steady-state noise in the collection direction of the target microphone, it is possible to determine a target microphone with non-steady-state noise in a certain collection direction from all microphones, and then determine an adjustment strategy for the target microphone, and adjust the environmental signal output by the target microphone based on the adjustment strategy, so that noise reduction can be performed on the target object based on the adjusted target microphone, and the interference and influence of the non-steady-state noise in the target microphone on the sound originally to be played can be reduced, so that noise reduction can be performed on the target object in an environment with non-steady-state noise, thereby improving the noise reduction effect and applicability.
[0102] See also Figure 4 , Figure 4 A flowchart of another noise reduction method provided by an embodiment of the present application is shown. The method can be applied to a target object, wherein the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions. Specifically, the method may include the following steps:
[0103] Step 401: Acquire the environmental signal collected by each microphone.
[0104] Step 402: determine the target microphone according to the environmental signal.
[0105] For the related descriptions of step 401 to step 402, please refer to step 101 to step 102, which will not be repeated here.
[0106] Step 403: If the number of target microphones is less than or equal to the number threshold, determining that the adjustment strategy of the target microphones is the first adjustment strategy.
[0107] The quantity threshold may be user-defined, and is generally set to 2. The first adjustment strategy may be used to close the signal channel of the target microphone.
[0108] After determining the target microphone, the target microphones can be counted to determine the number of target microphones, and it can be determined whether the number of target microphones is less than or equal to the number threshold. If the number of target microphones is less than or equal to the number threshold, the adjustment strategy of the target microphone can be determined to be the first adjustment strategy.
[0109] Step 404: If the number of target microphones is greater than the number threshold, determine that the adjustment strategy of the target microphones is the second adjustment strategy.
[0110] After the number of target microphones is determined, if the number of target microphones is greater than a number threshold, the adjustment strategy of the target microphones may be determined to be the second adjustment strategy.
[0111] The second adjustment strategy may be used to adjust the signal gain of the target microphone.
[0112] In practical applications, when the number of target microphones is less than or equal to the number threshold, it can be said that the target microphones have a lower number weight among all microphones, and thus the influence of closing the signal channel of the target microphone on the subsequent noise reduction effect is lower. In this case, when the number of target microphones is less than or equal to the number threshold, the adjustment strategy of the target microphones can be determined to be the first adjustment strategy. When the number of target microphones is greater than the number threshold, it can be said that the target microphones have a higher number weight among all microphones. If the signals of all target microphones are closed, the noise reduction effect of the subsequent generated cancellation signal will be affected. In this case, when the number of target microphones is greater than the number threshold, the adjustment strategy of the target microphones can be determined to be the second adjustment strategy.
[0113] In a specific implementation, in order to improve the noise reduction effect when the number of target microphones is greater than a threshold number, the ambient signal collected by the target microphone can be processed by gain reduction, which can reduce the impact of the irregularity of non-steady-state noise on the generation of the cancellation signal, so that the cancellation signal can be generated based on the non-steady-state noise after gain reduction and the ambient signal collected by other microphones.
[0114] Step 405: adjust the ambient signal output by the target microphone based on the adjustment strategy.
[0115] After determining the adjustment strategy of the target microphone, if the adjustment strategy is the first adjustment strategy, the signal channel of the target microphone may be closed.
[0116] In practical applications, the ambient signal output by the target microphone may be zeroed, and the ambient signal of the target microphone may be reconstructed based on the zeroed signal after zeroing, or the signal channel of the target microphone may be disconnected.
[0117] If the adjustment strategy is the second adjustment strategy, the magnification of the signal amplifier in the signal channel of the target microphone can be reduced, so that the ambient signal collected by the target microphone is processed based on the signal amplifier with the adjusted magnification, thereby reducing the gain of the ambient signal collected by the target microphone.
[0118] Step 406: noise reduction is performed on the target object based on the adjusted target microphone.
[0119] In an embodiment of the present application, step 406 may include the following steps:
[0120] When the target object is a headset, a noise reference signal is generated based on the adjusted target microphone, a cancellation signal is generated according to the noise reference signal, and noise reduction is performed on the headset based on the cancellation signal.
[0121] The noise reference signal may be a signal obtained by merging multi-channel environmental signals, and may be used to describe all noise in each acquisition direction in the environment where the target object is located. The phase of the cancellation signal may be opposite to that of the noise reference signal.
[0122] After adjusting the target microphone, the adjusted target microphone may be combined with ambient signals of microphones other than the target microphone to generate a noise reference signal.
[0123] In an embodiment of the present application, the step of generating a noise reference signal may be performed in the following manner:
[0124] If the adjustment strategy of the target microphone is the first adjustment strategy, non-target microphones other than the target microphone among all microphones are determined, and environmental signals of the non-target microphones are combined to generate a noise reference signal.
[0125] The non-target microphone may be any microphone other than the target microphone among all the microphones.
[0126] If the adjustment strategy of the target microphone is the first adjustment strategy, the non-target microphones except the target microphone among all microphones can be determined, and the environmental signals of the non-target microphones can be determined. Then, the environmental signals of all non-target microphones can be aligned at time, and the amplitudes of all aligned environmental signals can be superimposed and merged to generate a noise reference signal.
[0127] If the adjustment strategy of the target microphone is the second adjustment strategy, non-target microphones other than the target microphone among all microphones are determined, and the environmental signals of the non-target microphones and the first environmental signal of the target microphone are combined to generate a noise reference signal.
[0128] The first environment signal may be an environment signal of the target microphone after the signal gain is adjusted.
[0129] If the adjustment strategy of the target microphone is the second adjustment strategy, the non-target microphones except the target microphone among all microphones can be determined, and the environmental signals of the non-target microphones can be determined. Then, the environmental signals of all non-target microphones and the first environmental signal can be aligned at the same time, and the amplitudes of all aligned environmental signals can be superimposed and merged to generate a noise reference signal.
[0130] After obtaining the noise reference signal, the phase of the noise reference signal can be determined, and then a cancellation signal with a phase opposite to the noise reference signal can be generated, and the cancellation signal can be input into the sound module of the earphone, and then the sound module can generate a cancellation sound wave based on the cancellation signal to cancel the noise in the environment where the earphone is located based on the cancellation sound wave, or reduce the impact of the noise in the environment where the earphone is located.
[0131] In an embodiment of the present application, step 406 may further include the following steps:
[0132] When the target object is a communication device, a noise reference signal is generated based on the adjusted target microphone, and the noise signal corresponding to the noise reference signal in the voice signal collected by the communication device is filtered out to obtain a target voice signal.
[0133] After adjusting the target microphone, the adjusted target microphone may be combined with ambient signals of microphones other than the target microphone to generate a noise reference signal.
[0134] Specifically, the noise reference signal may be generated with reference to the above embodiment.
[0135] After obtaining the noise reference signal, the noise reference signal and the speech signal can be aligned at time. After the time alignment, the amplitude of the speech signal at each time is subtracted from the amplitude of the noise reference signal at the corresponding time to obtain the target speech signal.
[0136] See also Figure 5 , Figure 5 FIG. 4 shows a schematic diagram of a multi-channel signal processing provided by an embodiment of the present application. Figure 5 As shown, the target object may include three microphone arrays, and each microphone array can collect environmental signals in three different collection directions, and input the environmental signals into the processor in the circuit board through different signal channels for data processing.
[0137] Among them, MIC1 may be a first microphone array, MIC2 may be a second microphone array, and MIC3 may be a third microphone array.
[0138] In a specific implementation, the ambient signal collected by each microphone array can be processed by a signal amplifier and an analog-to-digital converter, and the processed ambient signal can be input into a processor for data processing together with the ambient signals of other channels.
[0139] For example, MIC1 can be a microphone array including a target microphone, and when the adjustment strategy of the target microphone is the first adjustment strategy, the signal channel of MIC1 can be closed, that is, the environmental signal collected by MIC1 cannot be processed by the signal amplifier and the analog-to-digital converter, and then the processor cannot receive the environmental signal of MIC1, and performs data processing based on the environmental signals of MIC2 and MIC3 to obtain a noise reference signal. When the target object is a headset, a cancellation signal with a phase opposite to the noise reference signal can be generated, and the cancellation signal can be processed by the digital-to-analog converter and output by the sound module to cancel the sound wave. When the target object is a call device, the noise signal corresponding to the noise reference signal in the voice signal collected by the call device can be filtered out to obtain the target voice signal.
[0140] For another example, MIC1 may be a microphone array including a target microphone, and when the adjustment strategy of the target microphone is the second adjustment strategy, the power of the signal amplifier in the signal channel of MIC1 may be reduced, and then the processor may receive the environmental signal of MIC1 after the gain is reduced, and perform data processing based on the environmental signal of MIC1 after the gain is reduced and the environmental signals of MIC2 and MIC3 to obtain a noise reference signal. When the target object is a headset, a cancellation signal with a phase opposite to that of the noise reference signal may be generated, and the cancellation signal may be processed by a digital-to-analog converter and output a cancellation sound wave through a sound generation module. When the target object is a call device, the noise signal corresponding to the noise reference signal in the voice signal collected by the call device may be filtered out to obtain a target voice signal.
[0141] In actual applications, if an environmental signal including non-steady-state noise and other environmental signals not including non-steady-state noise are input into a processor for data processing together, the irregular characteristics of the phase and signal energy of the non-steady-state noise will make it impossible or difficult to generate a cancellation signal with a phase opposite to that of the environmental signal. By reducing the gain of the environmental signal in the target microphone or removing the environmental signal of the target microphone, the cancellation signal can be generated to reduce the noise of the earphone, or the non-steady-state noise cannot be accurately removed from the voice signal, which may result in the removal of part or all of the voice signal, making it impossible to accurately transmit the voice signal, making it difficult for the other party to hear what the user is saying or to hear the non-steady-state noise in the user's environment while hearing what the user is saying. By reducing the gain of the environmental signal in the target microphone or removing the environmental signal of the target microphone, the accuracy of removing the noise signal in the voice signal in an environment with non-steady-state noise can be improved, thereby improving call quality, noise reduction effect and applicability.
[0142] In an embodiment of the present application, by acquiring the environmental signals collected by each microphone in different collection directions, and determining the target microphone from all the microphones based on the environmental signals, and there is non-steady-state noise in the collection direction of the target microphone, it is possible to determine the target microphone with non-steady-state noise in a certain collection direction from all the microphones, and then determine the adjustment strategy of the target microphone. If the number of target microphones is less than or equal to the number threshold, the adjustment strategy of the target microphone is determined to be the first adjustment strategy. If the number of target microphones is greater than the number threshold, the adjustment strategy of the target microphone is determined to be the second adjustment strategy. The environmental signals output by the target microphones are adjusted based on the adjustment strategy, and the target object is denoised based on the adjusted target microphone. Thus, the target object can be denoised based on the environmental signals of the adjusted target microphone, and the interference and influence of the non-steady-state noise in the target microphone on the sound originally to be played by the broadcasting equipment and the interference and influence of the call equipment on the voice signal during the voice call can be reduced. Thus, noise reduction can be performed in an environment with non-steady-state noise, thereby improving the noise reduction effect and applicability.
[0143] See also Figure 6 , Figure 6 A schematic diagram of the structure of a noise reduction device provided by an embodiment of the present application is shown. The device is applied to a target object, and the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions, and specifically may include the following modules:
[0144] The acquisition module 601 is used to acquire the environmental signal collected by each microphone.
[0145] The determination module 602 is used to determine the target microphone according to the environmental signal, wherein there is non-steady-state noise in the collection direction of the target microphone.
[0146] The adjustment module 603 is used to determine an adjustment strategy for the target microphone and adjust the ambient signal output by the target microphone based on the adjustment strategy.
[0147] The noise reduction module 604 is configured to reduce noise on the target object based on the adjusted target microphone.
[0148] In one implementation, the determination module 602 may also be used to:
[0149] Determine the noise type of each environmental signal.
[0150] Based on the noise type, determine the target microphone from among all microphones.
[0151] In one implementation, the determination module 602 may also be used to:
[0152] An interfering signal is determined from each of the ambient signals, and a signal strength of the interfering signal is determined.
[0153] Based on the signal strength, the signal-to-noise ratio information of each environmental signal is determined.
[0154] The noise type of the ambient signal is determined based on the signal-to-noise ratio information.
[0155] In one implementation, the determination module 602 may also be used to:
[0156] Before determining the noise type of the environmental signals based on the signal-to-noise ratio information, the dynamic range of each environmental signal is determined.
[0157] In one implementation, the determination module 602 may also be used to:
[0158] Based on the dynamic range and signal-to-noise ratio information, determine the noise type of each environmental signal.
[0159] In one implementation, the noise reduction module 604 may also be used to:
[0160] When the target object is a headset, a noise reference signal is generated based on the adjusted target microphone.
[0161] A cancellation signal is generated according to the noise reference signal, and the phase of the cancellation signal is opposite to the phase of the noise reference signal.
[0162] In one implementation, the noise reduction module 604 may also be used to:
[0163] When the target object is a call device, a noise reference signal is generated based on the adjusted target microphone;
[0164] The noise signal corresponding to the noise reference signal in the voice signal collected by the communication device is filtered out to obtain the target voice signal.
[0165] In one implementation, the adjustment module 603 may also be used to:
[0166] If the number of target microphones is less than or equal to the number threshold, it is determined that the adjustment strategy of the target microphones is the first adjustment strategy, and the first adjustment strategy is used to close the signal channel of the target microphone.
[0167] If the number of target microphones is greater than the number threshold, it is determined that the adjustment strategy of the target microphones is the second adjustment strategy, and the second adjustment strategy is used to adjust the signal gain of the target microphones.
[0168] In one implementation, the noise reduction module 604 may also be used to:
[0169] If the adjustment strategy of the target microphone is the first adjustment strategy, non-target microphones other than the target microphone are determined among all microphones, and environmental signals of the non-target microphones are combined to generate a noise reference signal;
[0170] If the adjustment strategy of the target microphone is the second adjustment strategy, the non-target microphones other than the target microphone are determined among all microphones, and the ambient signals of the non-target microphones and the first ambient signal of the target microphone are merged to generate a noise reference signal, where the first ambient signal is the ambient signal of the target microphone after the signal gain is adjusted.
[0171] In an embodiment of the present application, by acquiring environmental signals collected by each microphone in different collection directions, and determining a target microphone from all microphones based on the environmental signals, and there is non-steady-state noise in the collection direction of the target microphone, it is possible to determine a target microphone with non-steady-state noise in a certain collection direction from all microphones, and then determine an adjustment strategy for the target microphone, and adjust the environmental signal output by the target microphone based on the adjustment strategy, so that noise reduction can be performed on the target object based on the adjusted target microphone, and the interference and influence of the non-steady-state noise in the target microphone on the sound originally to be played can be reduced, so that noise reduction can be performed on the target object in an environment with non-steady-state noise, thereby improving the noise reduction effect and applicability.
[0172] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0173] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0174] See also Figure 7 , Figure 7 A structural block diagram of a terminal device provided by an embodiment of the present application is shown as follows: Figure 7 As shown, this embodiment provides a terminal device 71, which includes: an acquisition module 711, a sound module 712, at least one processor 713, a memory 714, and a computer program 7141 stored in the memory 714 and executable on at least one processor 713. The acquisition module 711 can be used to acquire environmental signals and voice signals, the sound module can be used to play a cancellation signal and a target voice signal, and the processor 713 implements the steps in any of the above-mentioned method embodiments when executing the computer program 7141.
[0175] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments can be implemented.
[0176] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0177] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the camera device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium.
[0178] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A noise reduction method, characterized in that: The method is applied to a target object, the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions, and the method includes: Acquire the environmental signal collected by each microphone; Determine a target microphone according to the environmental signal, wherein there is non-steady-state noise in the collection direction of the target microphone; Determining an adjustment strategy for the target microphone, and adjusting an ambient signal output by the target microphone based on the adjustment strategy; Noise reduction is performed on the target object based on the adjusted target microphone.
2. The noise reduction method according to claim 1, characterized in that: The step of determining a target microphone according to the environmental signal includes: determining a noise type of each of said environmental signals; A target microphone is determined from among all the microphones according to the noise type.
3. The noise reduction method according to claim 2, characterized in that: Determining the noise type of each of the environmental signals comprises: Determining an interference signal in each of the environmental signals, and determining a signal strength of the interference signal; Determining signal-to-noise ratio information of each of the environmental signals according to the signal strength; The noise type of the environmental signal is determined according to the signal-to-noise ratio information.
4. The noise reduction method according to claim 3, characterized in that: Before determining the noise type of the environmental signal according to the signal-to-noise ratio information, the method further includes: determining a dynamic range of each of said ambient signals; The determining the noise type of the environmental signal according to the signal-to-noise ratio information includes: The noise type of each of the environmental signals is determined according to the dynamic range and the signal-to-noise ratio information.
5. The noise reduction method according to any one of claims 1 to 4, characterized in that: The performing noise reduction on the target object based on the adjusted target microphone includes: When the target object is a headset, generating a noise reference signal based on the adjusted target microphone; A cancellation signal is generated according to the noise reference signal to reduce noise of the earphone based on the cancellation signal, wherein a phase of the cancellation signal is opposite to a phase of the noise reference signal.
6. The noise reduction method according to any one of claims 1 to 4, characterized in that: The step of reducing noise on the target object based on the adjusted target microphone comprises: When the target object is a call device, generating a noise reference signal based on the adjusted target microphone; The noise signal corresponding to the noise reference signal in the voice signal collected by the communication device is filtered out to obtain a target voice signal.
7. The noise reduction method according to claim 1, characterized in that: The step of determining the adjustment strategy of the target microphone includes: If the number of the target microphones is less than or equal to the number threshold, determining that the adjustment strategy of the target microphones is a first adjustment strategy, where the first adjustment strategy is used to close the signal channel of the target microphones; If the number of the target microphones is greater than the number threshold, it is determined that the adjustment strategy of the target microphones is a second adjustment strategy, and the second adjustment strategy is used to adjust the signal gain of the target microphones.
8. The noise reduction method according to claim 7, characterized in that: The step of generating a noise reference signal based on the adjusted target microphone comprises: If the adjustment strategy of the target microphone is the first adjustment strategy, non-target microphones other than the target microphone among all the microphones are determined, and environmental signals of the non-target microphones are combined to generate a noise reference signal; If the adjustment strategy of the target microphone is the second adjustment strategy, non-target microphones other than the target microphone are determined among all the microphones, and the ambient signals of the non-target microphones and the first ambient signal of the target microphone are merged to generate a noise reference signal, where the first ambient signal is the ambient signal of the target microphone after the signal gain is adjusted.
9. A noise reduction device, characterized in that: The device is applied to a target object, the target object includes at least two microphones, wherein different microphones are used to collect environmental signals in different collection directions, and the device includes: An acquisition module, used to acquire the environmental signal collected by each microphone; A determination module, configured to determine a target microphone according to the environmental signal, wherein a non-steady-state noise exists in a collection direction of the target microphone; an adjustment module, configured to determine an adjustment strategy for the target microphone, and adjust the ambient signal output by the target microphone based on the adjustment strategy; The noise reduction module is used to reduce the noise of the target object based on the adjusted target microphone.
10. A terminal device, comprising a collection module, a sound module, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The acquisition module is used to acquire environmental signals and voice signals, the sound generation module is used to play cancellation signals and target voice signals, and the processor implements the method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Terminal voice noise reducing method and terminal
CN103325378A
Noise reduction method, device and system
CN108091344A
Wind noise prevention method, feedforward noise reduction system, earphone, and storage medium
CN109348322A
Non-blind area multi-microphone environmental noise suppression method
CN115361617A
Adaptive microphone system for a hearing device and associated operating method
US20100046776A1
