CN109756818A - Dual microphone noise-reduction method, device, storage medium and electronic equipment - Google Patents
Dual microphone noise-reduction method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN109756818A CN109756818A CN201811641569.0A CN201811641569A CN109756818A CN 109756818 A CN109756818 A CN 109756818A CN 201811641569 A CN201811641569 A CN 201811641569A CN 109756818 A CN109756818 A CN 109756818A
- Authority
- CN
- China
- Prior art keywords
- signal
- processing
- dual microphone
- module
- carried out
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the present application discloses a kind of dual microphone noise-reduction method, device, storage medium and electronic equipment, wherein method includes: the first signal and the second signal for obtaining dual microphone and being respectively received, first default processing is carried out to the first signal and the second signal, to obtain the first processing signal and second processing signal, the amplitude difference and phase difference of the first processing signal and second processing signal are calculated according to second processing signal, frequency point classification is carried out to the first processing signal using amplitude difference and phase difference, to obtain classification frequency spectrum, second default processing is carried out to obtain filtering signal to classification frequency spectrum, output signal is generated according to filtering signal and first signal.By being calibrated to dual microphone consistency, spectrum estimation is carried out to the voice and noise of signal according to time difference and amplitude difference, is smoothed and is filtered, to signal de-noising, improve the quality of voice communication.
Description
Technical field
This application involves technical field of acoustics, and in particular to a kind of dual microphone noise-reduction method, device, storage medium and electricity
Sub- equipment.
Background technique
With the rapid development of mobile terminals, mobile phone develops into from most basic voice communication equipment with more
The intelligent mobile terminal of kind function, and voice is increasingly becoming the important of human-computer interaction as human interaction means the most natural
Approach has greatly pushed vocal print wake-up, the development of the technologies such as speech recognition.However, the complexity of voice communication scene, especially
Noise, such as ambient noise, voice noise, automobile noise etc., will affect voice communication quality or speech recognition it is accurate
Rate.
Traditional noise-reduction method is mainly single Mike's voice de-noising, mainly for stable white noise, and for voice, sound
This kind of nonstationary noise of happy automobile, then noise reduction effect is poor.
Summary of the invention
The embodiment of the present application provides a kind of dual microphone noise-reduction method, device, storage medium and electronic equipment.It can be to defeated
The acoustical signal entered carries out noise reduction process, improves the quality of voice communication.
In a first aspect, the embodiment of the present application provides a kind of dual microphone noise-reduction method, comprising:
Obtain the first signal and the second signal that are respectively received of dual microphone, to the first signal and the second signal into
The default processing of row first, to obtain the first processing signal and second processing signal;
The amplitude difference and phase of the first processing signal and second processing signal are calculated according to the second processing signal
Difference;
Frequency point classification is carried out to the first processing signal using the amplitude difference and phase difference, to obtain classification frequency spectrum;
Second default processing is carried out to obtain filtering signal to the classification frequency spectrum;
Output signal is generated according to the filtering signal and first signal.
Second aspect, the embodiment of the present application provide a kind of dual microphone denoising device, comprising: obtain module, the first meter
Calculate module, categorization module, first processing module and signal generation module;
The acquisition module, the first signal and the second signal being respectively received for obtaining dual microphone, to described
One signal and second signal carry out the first default processing, to obtain the first processing signal and second processing signal;
First computing module, for being calculated at the first processing signal and second according to the second processing signal
Manage the amplitude difference and phase difference of signal;
The categorization module, for carrying out frequency point point to the first processing signal using the amplitude difference and phase difference
Class, to obtain classification frequency spectrum;
The first processing module, for carrying out the second default processing to the classification frequency spectrum to obtain filtering signal;
The third aspect, the embodiment of the present application provide a kind of storage medium, are stored thereon with computer program, the calculating
Machine program realizes the step of above-mentioned dual microphone noise-reduction method when being executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, including memory, processor and are stored in storage
On device and the computer program that can run on a processor, the processor realize above-mentioned dual microphone drop when executing described program
The step of method for de-noising.
By obtaining gain function using calibration signal in the embodiment of the present application, obtain that dual microphone is respectively received the
One signal and second signal carry out the first default processing to the first signal and the second signal, obtain the first processing signal and second
Signal is handled, obtains the amplitude difference and phase difference of the first signal and the second signal further according to gain function and second processing signal,
Frequency point classification is carried out to the first processing signal according to amplitude difference and phase difference, obtains classification frequency spectrum, then classification frequency spectrum is carried out flat
Sliding processing and filtering processing, obtain filtering signal, generate output signal according to filtering signal and the first signal.The embodiment of the present application
By the acoustical signal noise reduction to input, the quality of voice communication is improved.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the first pass schematic diagram of dual microphone noise-reduction method provided by the embodiments of the present application.
Fig. 2 is the second procedure schematic diagram of dual microphone noise-reduction method provided by the embodiments of the present application.
Fig. 3 is the signal processing schematic diagram of dual microphone noise-reduction method provided by the embodiments of the present application.
Fig. 4 is the first structure diagram of dual microphone denoising device provided by the embodiments of the present application.
Fig. 5 is the second structural schematic diagram of dual microphone denoising device provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described
Embodiment be merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, ability
Field technique personnel every other embodiment obtained without creative efforts belongs to the application protection
Range.
In the following description, the specific embodiment of the application will refer to the step as performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute
The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable
Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data
For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text
Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below
Also it may be implemented in hardware.
Term " first ", " second " and " third " in the application etc. are for distinguishing different objects, rather than for retouching
State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include.
Such as contain series of steps or module process, method, system, product or equipment be not limited to listed step or
Module, but some embodiments further include the steps that not listing or module or some embodiments further include for these processes,
Method, product or equipment intrinsic other steps or module.
The embodiment of the present application provides a kind of dual microphone noise-reduction method, device, storage medium and electronic equipment.It will divide below
It is not described in detail.
Referring to Fig. 1, Fig. 1 is the flow diagram of dual microphone noise-reduction method provided by the embodiments of the present application.Wherein, should
Method is applied to electronic equipments, this method steps such as mobile phone, tablet computer, intelligent wearable device
In step s 110, the signal that dual microphone receives is obtained, the first default processing is carried out to signal, obtains first
Handle signal and second processing signal.
With keeping updating for electronic equipment, the microphone on electronic equipment upgrades to dual microphone by one, double
Microphone one can stablize the clear call of holding, another microphone physics actively eliminates noise, or in a microphone
In the case where being plugged, another microphone can receive sound.In the present embodiment, it is respectively received by two microphones
The first signal and the second signal carry out the first default processing, obtain the first processing signal and second processing signal.Wherein
One default processing can be the modes such as Fourier transformation, Fourier space.
It should be noted that the voice signal that dual microphone receives can be pure voice, it is also possible to comprising people
The noises such as sound and vehicle whistle voice music, wherein dual microphone is further divided into main microphon and secondary microphone, main Mike
Wind is used to pick up the voice of call, and secondary microphone is for picking up background sound.In the present embodiment, sound dual microphone picked up
Signal is not construed as limiting, and is not construed as limiting to the major and minor of microphone.
In the step s 120, according to second processing signal calculate first processing signal and second processing signal amplitude difference and
Phase difference.
In second signal after Fourier transformation, second processing signal is obtained, second processing signal is according to gain letter
What several and second signal obtained, wherein gain function is used to carry out signal equalization processing to second signal, obtains third processing letter
Number, signal is handled using third, obtains amplitude difference formula and phase difference formula, recycles amplitude difference formula and phase difference formula pair
The amplitude difference and phase difference of each frame of the signal of two microphone inputs are calculated.
In step s 130, frequency point classification is carried out to the first processing signal according to amplitude difference and phase difference, obtains classification frequency
Spectrum.
It can use amplitude difference in the present embodiment and a frequency spectrum classification formula be arranged in phase difference, pass through and a threshold is set
Value, is input to formula for phase difference corresponding to each frame and amplitude difference numerical value, judges whether the result obtained is greater than or equal to
Threshold value, if the result obtained is greater than or equal to preset threshold value, corresponding signal is the signal for needing to handle output, such as
The result that fruit obtains is less than preset threshold value, then signal corresponding to this frequency point can be understood as noise signal, after being not necessarily to
Continuous processing output.
In step S140, the second default processing is carried out to classification frequency spectrum and obtains filtering signal.
It is understood that classification frequency spectrum is obtained, to the place of classification frequency spectrum after carrying out frequency point classification to the first processing signal
Reason can use Hamming window (hanmming) to be smoothed to classification frequency spectrum, carry out noise reduction to data.Actual signal
In treatment process, using rectangular window, but signal is truncated suddenly in edge for rectangular window, and time-domain information all disappears outside window, leads
It causes the phenomenon that frequency domain increases frequency component, i.e. spectrum leakage.The best approach for avoiding leakage is to meet integer-period sampled item
Part, but can not accomplish in practice.In the case of non-integer-period sampled, it is necessary to consider how reduce adding window when caused by
Leakage errors, main measure is to be passivated the acute angle of signal cutout using reasonable windowed function, to make the diffusion of frequency spectrum
It is minimized.
Classification frequency spectrum is obtaining fourth process signal after smoothing processing, can use the mode of Wiener filtering to the 4th
Processing signal is filtered, and obtains filtering signal.It can also be using other filtering modes to fourth process signal in the present embodiment
It is filtered, such as Kalman filtering.
It should be noted that can also be handled in the embodiment of the present application using other window functions data, at this
During moving window the data of partial loss can embodied Hamming window used in the examples again.Second is default
Processing includes the smoothing processing and filtering processing to classification frequency spectrum, also may include other processing modes.
In step S150, output signal is generated according to filtering signal and the first signal.
After obtaining filtering signal, the first signal that filtering signal and dual microphone receive is synthesized to obtain defeated
Signal out, wherein the mode of synthesis can be for filtering signal and the first signal progress convolution algorithm.
In conclusion the signal received in the embodiment of the present application by obtaining dual microphone, it is pre- to carry out first to signal
If processing, obtains the first processing signal and second processing signal, the first processing signal and second is calculated according to second processing signal
The amplitude difference and phase difference for handling signal carry out frequency point classification to the first processing signal according to amplitude difference and phase difference, are divided
Class frequency spectrum carries out the second default processing to classification frequency spectrum and obtains filtering signal, generates output according to filtering signal and the first signal
Signal.Noise reduction process is carried out by the signal received to dual microphone in the embodiment of the present application, improves the matter of voice communication
The accuracy rate of amount and speech recognition.
Referring to Fig. 2, Fig. 2 is the second procedure schematic diagram of dual microphone noise-reduction method provided by the embodiments of the present application.
In step S210, calibration signal is obtained under noiseless environment, the first default processing is carried out to calibration signal,
Obtain gain function.
In the environment of no noise jamming, for example, the places such as anechoic room, basement, recording studio, dual microphone receives school
Calibration signal d1(n) and d2(n), wherein the calibration signal d of input1(n) and d2(n) it can be understood as the voice signal of input, so
Afterwards to calibration signal d1(n) Fourier transformation is carried out to obtainTo calibration signal d2(n) Fourier transformation is carried out to obtainWherein t represents the frame number of the calibration signal of input, and k is natural number, after representing calibration signal progress Fourier transformation
It obtainsWithIn corresponding frequency point one by one.
Gain function, loss function are obtained according to loss function are as follows:
Wherein, α (k) is gain function, and T is totalframes, available according to loss function if penalty values is made to reach minimum
Optimum gain function:
It should be noted that wherein * representative takes conjugate.In the embodiment of the present application, optimum gain function can be used
As the subsequent phase difference and amplitude difference for obtaining the every frame of two channel signals, can also be determined using non-optimal gain function,
The determination of middle gain function is mainly to be determined according to penalty values.
In step S220, the signal of dual microphone is obtained, the first default processing is carried out to signal, obtains the first processing letter
Number and second processing signal.
The dual microphone of electronic equipment is respectively received the first signal x1(n) and second signal x2(n), to the first signal x1
(n) and second signal carries out x2(n) the first default processing is carried out, wherein the first default processing can be Fourier transformation, obtain
First processing signalWith second processing signalWherein, the frame number for the calibration signal that wherein t representative inputs,
K is natural number, represents after calibration signal carries out Fourier transformation and obtainsWithIn it is corresponding one by one frequency
Point, n represent the points in the fast algorithm (FFT) of discrete fourier transform.
In step S230, signal equalization processing is carried out to obtain third processing to second processing signal using gain function
Signal.
It is understood that digital signal is in actual channel when transmitting, since channel transfer characteristic is undesirable and letter
Mistake inevitably occurs for the influence of road noise, the signal that receiving end receives.In order to restore the data information sent, receive
End needs to estimate the characteristic of channel, and is corrected to the data received.
In the present embodiment, to second processing signalChannel equalization is carried out, third processing signal is obtainedWherein specific formula are as follows:
In step S240, the amplitude difference and phase difference that signal calculates the first signal and the second signal are handled according to third.
The amplitude difference and phase difference of each frame of the first signal and the second signal received to dual microphone calculate,
In, it needs to handle signal using thirdThe calculation formula of amplitude difference are as follows:
The calculation formula of phase difference are as follows:
In step s 250, frequency point classification is carried out to the first processing signal using amplitude difference and phase difference, to be classified
Frequency spectrum.
Classify to each frequency point in the frequency spectrum of the first processing signal, for estimating noise, wherein can be by setting
A fixed threshold value r, is input to formula for phase difference corresponding to each frame and amplitude difference numerical value, judges whether the result obtained is big
In or equal to threshold value r, if the result obtained is greater than or equal to preset threshold value r, corresponding signal is defeated to need to handle
Signal out, if the result obtained is less than preset threshold value r, signal corresponding to this frequency point can be understood as noise
Signal is exported without subsequent processing.
The specific formula of its intermediate-frequeney point classification are as follows:
All frequency points from 1 to n that can be understood as the first processing signal are classified, can more than or equal to threshold value
To think that the signal is the signal for needing to export, i.e. X in formula1It (k), less than threshold value is then noise, i.e. 0 in formula.According to
Classification to frequency point, available classification frequency spectrum X1, n(k)。
In step S260, data smoothing processing is carried out to classification frequency spectrum, to obtain fourth process signal.
It can use in the present embodiment and utilize Hamming window Hham(k) to classification frequency spectrum X1, n(k) carry out it is smooth, to data into
Row noise reduction obtains fourth process data, specific formula is as follows:
In step S270, fourth process signal is filtered, filtering signal is obtained.
Classification frequency spectrum is obtaining fourth process signal after smoothing processing, can use the mode of Wiener filtering to the 4th
Processing signal is filtered, and obtains filtering signal.It can also be using other filtering modes to fourth process signal in the present embodiment
It is filtered, such as Kalman filtering.Filtering signal (n) is obtained after being filtered to fourth signal.
It is as follows to the formula of fourth process signal Wiener filtering in the present embodiment:
In step S280, convolution algorithm is carried out to filtering signal and the first signal and obtains output signal.
By the first signal x1(n) it carries out convolution algorithm with filtering signal (n) and obtains final output signal.
In conclusion in the embodiment of the present application, by obtaining gain letter using calibration signal under noiseless environment
Number, handles the first signal and the second signal that dual microphone receives, and obtains the first processing signal and second processing letter
Number, it recycles gain function to carry out channel equalization to second processing signal and obtains third processing signal, recycle at third
Reason signal obtains the amplitude difference and phase difference of the first signal and the second signal, according to phase difference and amplitude difference to the first processing signal
Frequency point classification is carried out, noise estimation is carried out, to obtain classification frequency spectrum, classification frequency spectrum is smoothed to obtain fourth process letter
Number, then fourth process signal is filtered, filtering signal is obtained, is finally generated according to filtering signal and the first signal defeated
Signal out.The embodiment of the present application carries out noise reduction process by the signal received to dual microphone, improves the matter of voice communication
The accuracy rate of amount and speech recognition.
Referring to Fig. 3, Fig. 3 is the signal processing schematic diagram of dual microphone noise-reduction method provided by the embodiments of the present application.
Dual microphone is respectively received the first signal and the second signal, by carrying out in Fu to the first signal and the second signal
Leaf transformation obtains the first processing signal and second processing signal.Utilize the increasing under noiseless environment, obtained according to calibration signal
Beneficial function carries out channel equalization to second processing signal, obtains third processing signal.
Signal and the first processing signal are handled using third to obtain the amplitude difference of each frame of the first signal and the second signal
And phase difference, one frequency point classification formula is set using amplitude difference and phase difference, is obtained by setting threshold value and frequency point classification formula
To result compare, frequency point classification is carried out to the first processing signal, when according to frequency point classify the obtained value of formula be greater than or
When equal to threshold value, then signal corresponding to the frequency point is judged to need to handle the signal exported, if according to frequency point classification formula
When obtained value is less than threshold value, it can be determined that signal corresponding to the frequency point is noise, is exported without subsequent processing.
Classified according to the frequency point to the first processing signal, obtain classification frequency spectrum, classification frequency spectrum is smoothed, is obtained
Fourth process signal, then by carrying out Wiener filtering to fourth process signal, filtering signal is obtained, finally by filtering signal and the
One signal carries out signal synthesis, obtains final output signal.
In the present embodiment, noise reduction process is carried out by the signal received to dual microphone, improves voice communication
The accuracy rate of quality and speech recognition.
Referring to Fig. 4, Fig. 4 is the first structure diagram of dual microphone denoising device provided by the embodiments of the present application.
Wherein, dual microphone denoising device 400 includes: that function obtains module 410, obtains module 420, the first computing module
430, categorization module 440, first processing module 450 and signal generation module 460.
Wherein, function obtains module 410, the first signal and the second signal is being received, to the first signal and the second signal point
Before other places reason is to obtain the first processing costs and second processing value, for obtaining calibration signal under noiseless environment, to calibration
Signal carries out the first default processing, and signal calculates gain function according to treated.
Specifically, in the environment of no noise jamming, for example, the places such as anechoic room, basement, recording studio, diamylose gram
Wind receives calibration signal, wherein the calibration signal of input can be understood as the voice signal of input, then carry out to calibration signal
Fourier transformation obtains transformation signal, obtains gain function according to transformation signal.
Obtain module 420, the first signal and the second signal being respectively received for obtaining dual microphone, to the first signal
The first default processing is carried out with second signal, to obtain the first processing signal and second processing signal.
Microphone on electronic equipment upgrades to dual microphone by one, and dual microphone one can stablize holding and clearly lead to
Words, another microphone physics actively eliminates noise, or in the case where a microphone is plugged, another microphone can
To receive sound.In the present embodiment, is carried out by the first signal and the second signal that two microphones are respectively received
One default processing, obtains the first processing signal and second processing signal.Wherein the first default processing can be Fourier transformation, Fu
In the modes such as leaf series.
First computing module 430, for calculating the first processing signal and second processing signal according to second processing signal
Amplitude difference and phase difference.
Specifically, in second signal after Fourier transformation, second processing signal is obtained, second processing signal is basis
What gain function and second signal obtained, wherein gain function is used to carry out signal equalization processing to second signal, obtains third
Signal is handled, signal is handled using third, obtains amplitude difference formula and phase difference formula, recycle amplitude difference formula and phase difference
Formula calculates the amplitude difference and phase difference of each frame of the signal of two microphone inputs.
First computing module 430 further include: Second processing module 431 and the second computing module 432, referring specifically to Fig. 5,
Fig. 5 is the second structural schematic diagram of dual microphone denoising device provided by the embodiments of the present application.
Second processing module 431, for carrying out signal equalization processing to second processing signal using gain function to obtain
Third handles signal.
Specifically, digital signal in actual channel when transmitting, since channel transfer characteristic is undesirable and interchannel noise
Influence, mistake inevitably occurs for the signal that receiving end receives.In order to restore the data information sent, receiving end needs
The characteristic of channel is estimated, and the data received are corrected.In the present embodiment, channel is carried out to second processing signal
Equilibrium treatment obtains third processing signal.
Second computing module 432, for according to third handle signal calculate the first signal and the second signal amplitude difference and
Phase difference.
Specifically, in second signal after Fourier transformation, second processing signal is obtained, second processing signal is basis
What gain function and second signal obtained, wherein gain function is used to carry out signal equalization processing to second signal, obtains third
Signal is handled, by the second computing module 432, signal is handled using third, obtains amplitude difference formula and phase difference formula, then benefit
The amplitude difference and phase difference of each frame of the signal of two microphone inputs are calculated with amplitude difference formula and phase difference formula.
Categorization module 440, for carrying out frequency point classification to the first processing signal using amplitude difference and phase difference, to be divided
Class frequency spectrum.
Specifically, it can use amplitude difference in the present embodiment and a frequency spectrum classification formula be arranged in phase difference, by setting
A threshold value is set, phase difference corresponding to each frame and amplitude difference numerical value are input to formula, judges whether the result obtained is big
In or equal to threshold value, if the result obtained is greater than or equal to preset threshold value, corresponding signal is to need processing output
Signal, if the result obtained is less than preset threshold value, signal corresponding to this frequency point can be understood as noise letter
Number, it is exported without subsequent processing.
First processing module 450, for carrying out the second default processing to classification frequency spectrum to obtain filtering signal.
First processing module 450 further include: third processing module 451 and filter module 452.Referring specifically to Fig. 5.
Third processing module 451, for carrying out data smoothing processing to classification frequency spectrum, to obtain fourth process signal.
Can using Hamming window to classification frequency spectrum be smoothed, or using other modes to classification frequency spectrum carry out it is flat
Sliding processing, to reduce data noise.
Filter module 452 obtains filtering signal for fourth process signal to be filtered.
Fourth signal can be handled using Wiener filtering, to obtain filtering signal.
Signal generation module 460, for generating output signal according to filtering signal and the first signal.
Specifically, convolution algorithm can be carried out to filtering signal and the first signal and obtains output signal.
In conclusion in the embodiment of the present application, by obtaining gain letter using calibration signal under noiseless environment
Number, handles the first signal and the second signal that dual microphone receives, and obtains the first processing signal and second processing letter
Number, it recycles gain function to carry out channel equalization to second processing signal and obtains third processing signal, recycle at third
Reason signal obtains the amplitude difference and phase difference of the first signal and the second signal, according to phase difference and amplitude difference to the first processing signal
Frequency point classification is carried out, noise estimation is carried out, to obtain classification frequency spectrum, classification frequency spectrum is smoothed to obtain fourth process letter
Number, then fourth process signal is filtered, filtering signal is obtained, is finally generated according to filtering signal and the first signal defeated
Signal out.The embodiment of the present application carries out noise reduction process by the signal received to dual microphone, improves the matter of voice communication
The accuracy rate of amount and speech recognition.
Correspondingly, the embodiment of the present invention also provides a kind of electronic equipment, as shown in fig. 6, Fig. 6 is that the embodiment of the present application provides
Electronic equipment structural schematic diagram.
The electronic equipment may include that input unit 601, memory 603, includes one or one at display unit 602
Processor 604, power supply 605, Wireless Fidelity (WiFi, Wireless Fidelity) module 606 and the sound of a above processing core
The components such as frequency circuit 607.It will be understood by those skilled in the art that electronic devices structure shown in Fig. 6 not structure paired electrons
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.Wherein:
Input unit 601 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 601 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or
Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula
It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 604, and can reception processing
Order that device 604 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 601 can also include other input equipments.Specifically, other are defeated
Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One of mark, operating stick etc. are a variety of.
Memory 603 can be used for storing software program and module, and processor 604 is stored in memory 603 by operation
Software program and module, thereby executing various function application and data processing.Memory 603 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to electronic equipment
According to (such as audio data, phone directory etc.) etc..In addition, memory 603 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Display unit 602 can be used for showing information input by user or the information and electronic equipment that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Display unit 602 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal
Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface
Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby,
Processor 604 is sent to determine the type of touch event, is followed by subsequent processing device 604 according to the type of touch event in display panel
It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 6
Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated
Function out.
Voicefrequency circuit 607, loudspeaker, microphone can provide the audio interface between user and electronic equipment.Voicefrequency circuit
Electric signal after the audio data received conversion can be transferred to loudspeaker, it is defeated to be converted to voice signal by loudspeaker by 607
Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 607
Data, then by after the processing of audio data output processor 604, such as another electronic equipment is sent to through RF circuit, or will
Audio data exports to memory 603 to be further processed.Voicefrequency circuit 607 can also include dual microphone, for improving
Call voice quality.
WiFi belongs to short range wireless transmission technology, and electronic equipment can help user to receive and dispatch electricity by WiFi module 606
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 shows
Go out WiFi module 606, but it is understood that, and it is not belonging to must be configured into for electronic equipment, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Processor 604 is the control centre of electronic equipment, utilizes each portion of various interfaces and connection whole mobile phone
Point, by running or execute the software program and/or module that are stored in memory 603, and calls and be stored in memory 603
Interior data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to mobile phone.Optionally, it handles
Device 604 may include one or more processing cores;Preferably, processor 604 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 604.
Electronic equipment further includes the power supply 605 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 604 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 605 can also include one or more direct current or AC power source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, electronic equipment can also include camera, bluetooth module etc., and details are not described herein.Specifically at this
In embodiment, processor 604 in electronic equipment can according to following instruction, by one or more application program into
The corresponding executable file of journey is loaded into memory 603, and is run by processor 604 and be stored in answering in memory 603
With program, to realize various functions:
Obtain the first signal and the second signal that are respectively received of dual microphone, to the first signal and the second signal into
The default processing of row first, to obtain the first processing signal and second processing signal;
The amplitude difference and phase of the first processing signal and second processing signal are calculated according to the second processing signal
Difference;
Frequency point classification is carried out to the first processing signal using the amplitude difference and phase difference, to obtain classification frequency spectrum;
Second default processing is carried out to obtain filtering signal to the classification frequency spectrum;
Output signal is generated according to the filtering signal and first signal.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with
It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one
In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed
Device is loaded, to execute the step in the transfer method of any virtual resource provided by the embodiment of the present invention.For example, should
Instruction can execute following steps:
Obtain the first signal and the second signal that are respectively received of dual microphone, to the first signal and the second signal into
The default processing of row first, to obtain the first processing signal and second processing signal;
The amplitude difference and phase of the first processing signal and second processing signal are calculated according to the second processing signal
Difference;
Frequency point classification is carried out to the first processing signal using the amplitude difference and phase difference, to obtain classification frequency spectrum;
Second default processing is carried out to obtain filtering signal to the classification frequency spectrum;
Output signal is generated according to the filtering signal and first signal.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory
Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any diamylose gram provided by the embodiment of the present invention can be executed
Step in wind noise-reduction method, it is thereby achieved that any dual microphone noise-reduction method institute provided by the embodiment of the present invention
The beneficial effect being able to achieve is detailed in the embodiment of front, and details are not described herein.
A kind of dual microphone noise-reduction method, device, storage medium and electronics is provided for the embodiments of the invention above to set
Standby to be described in detail, used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art
Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation
Book content should not be construed as limiting the invention.
Claims (11)
1. a kind of dual microphone noise-reduction method, which is characterized in that the described method includes:
The first signal and the second signal that are respectively received of dual microphone are obtained, the is carried out to the first signal and the second signal
One default processing, to obtain the first processing signal and second processing signal;
The amplitude difference and phase difference of the first processing signal and second processing signal are calculated according to the second processing signal;
Frequency point classification is carried out to the first processing signal using the amplitude difference and phase difference, to obtain classification frequency spectrum;
Second default processing is carried out to obtain filtering signal to the classification frequency spectrum;
Output signal is generated according to the filtering signal and first signal.
2. dual microphone noise-reduction method according to claim 1, which is characterized in that described according to the second processing signal
Calculate the amplitude difference and phase difference of the first processing signal and second processing signal, comprising:
Signal equalization processing is carried out to the second processing signal using gain function to obtain third processing signal;
The amplitude difference and phase difference that signal calculates the first signal and the second signal are handled according to the third.
3. dual microphone noise-reduction method according to claim 2, which is characterized in that receiving the first signal and the second letter
Number, before being handled respectively the first signal and the second signal to obtain the first processing costs and second processing value, the method
Further include:
Calibration signal is obtained under noiseless environment;
First default processing is carried out to the calibration signal, and signal calculates the gain function according to treated.
4. dual microphone noise-reduction method according to claim 1, which is characterized in that described to carry out the to the classification frequency spectrum
Two default processing are to obtain filtering signal, comprising:
Data smoothing processing is carried out to the classification frequency spectrum, to obtain fourth process signal;
The fourth process signal is filtered, filtering signal is obtained.
5. dual microphone noise-reduction method according to any one of claims 1 to 4, which is characterized in that described according to the filter
Wave signal and first signal generate output signal, comprising:
Convolution algorithm is carried out to the filtering signal and first signal and obtains output signal.
6. a kind of dual microphone denoising device, which is characterized in that described device includes: to obtain module, the first computing module, classification
Module, first processing module and signal generation module;
The acquisition module, the first signal and the second signal being respectively received for obtaining dual microphone, to first letter
Number and second signal carry out the first default processing, to obtain the first processing signal and second processing signal;
First computing module, for calculating the first processing signal and second processing letter according to the second processing signal
Number amplitude difference and phase difference;
The categorization module, for carrying out frequency point classification to the first processing signal using the amplitude difference and phase difference, with
Obtain classification frequency spectrum;
The first processing module, for carrying out the second default processing to the classification frequency spectrum to obtain filtering signal;
The signal generation module, for generating output signal according to the filtering signal and first signal.
7. dual microphone denoising device according to claim 6, which is characterized in that first computing module includes:
Second processing module, for carrying out signal equalization processing to the second processing signal using gain function to obtain third
Handle signal;
Second computing module, for according to the third handle signal calculate the first signal and the second signal amplitude difference and
Phase difference.
8. dual microphone denoising device according to claim 7, which is characterized in that described device further include:
Function obtains module, for receiving the first signal and the second signal, locates respectively to the first signal and the second signal
Before reason is to obtain the first processing costs and second processing value, calibration signal is obtained under noiseless environment, to the calibration signal
The first default processing is carried out, and signal calculates the gain function according to treated.
9. dual microphone denoising device according to claim 6, which is characterized in that the first processing module includes:
Third processing module, for carrying out data smoothing processing to the classification frequency spectrum, to obtain fourth process signal;
Filter module obtains filtering signal for the fourth process signal to be filtered.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is held by processor
It is realized when row as described in any one of claim 1 to 5 the step of dual microphone noise-reduction method.
11. a kind of electronic equipment characterized by comprising
The memory for being stored with executable program code, the processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes as claim 1 to 5 is any
Dual microphone noise-reduction method described in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811641569.0A CN109756818B (en) | 2018-12-29 | 2018-12-29 | Dual-microphone noise reduction method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811641569.0A CN109756818B (en) | 2018-12-29 | 2018-12-29 | Dual-microphone noise reduction method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109756818A true CN109756818A (en) | 2019-05-14 |
CN109756818B CN109756818B (en) | 2021-04-06 |
Family
ID=66404464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811641569.0A Active CN109756818B (en) | 2018-12-29 | 2018-12-29 | Dual-microphone noise reduction method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109756818B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503975A (en) * | 2019-08-02 | 2019-11-26 | 广州长嘉电子有限公司 | Smart television speech enhan-cement control method and system based on multi-microphone noise reduction |
CN111554321A (en) * | 2020-04-20 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Noise reduction model training method and device, electronic equipment and storage medium |
CN112133310A (en) * | 2020-11-24 | 2020-12-25 | 深圳市维度数据科技股份有限公司 | Questionnaire survey method, device, storage medium and equipment based on voice recognition |
CN113689875A (en) * | 2021-08-25 | 2021-11-23 | 湖南芯海聆半导体有限公司 | Double-microphone voice enhancement method and device for digital hearing aid |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101185370A (en) * | 2005-04-29 | 2008-05-21 | 哈曼贝克自动系统股份有限公司 | Detection and surpression of wind noise in microphone signals |
CN101330769A (en) * | 2007-06-21 | 2008-12-24 | 株式会社船井电机新应用技术研究所 | Voice input-output device and communication device |
CN102037738A (en) * | 2008-05-20 | 2011-04-27 | 株式会社船井电机新应用技术研究所 | Audio input device, method for manufacturing the same, and information processing system |
CN105788607A (en) * | 2016-05-20 | 2016-07-20 | 中国科学技术大学 | Speech enhancement method applied to dual-microphone array |
CN106210986A (en) * | 2010-02-25 | 2016-12-07 | 哈曼贝克自动系统股份有限公司 | Active noise reduction system |
CN106575499A (en) * | 2014-08-01 | 2017-04-19 | 伯斯有限公司 | System and method of microphone placement for noise attenuation |
CN206336183U (en) * | 2016-12-30 | 2017-07-18 | 龙岩市海德馨汽车有限公司 | Supply vehicle active noise reducing device |
CN107040843A (en) * | 2017-03-06 | 2017-08-11 | 联想(北京)有限公司 | The method and collecting device of same source of sound are obtained by two microphones |
US20170301337A1 (en) * | 2014-12-29 | 2017-10-19 | Silent Partner Ltd. | Wearable noise cancellation device |
CN107734429A (en) * | 2017-10-30 | 2018-02-23 | 深圳市浩博高科技有限公司 | A kind of double miaow noise reductions disappear echo circuit |
CN107749295A (en) * | 2017-10-17 | 2018-03-02 | 张博强 | Wind power generating set Noise Active noise control method and active noise control system |
-
2018
- 2018-12-29 CN CN201811641569.0A patent/CN109756818B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101185370A (en) * | 2005-04-29 | 2008-05-21 | 哈曼贝克自动系统股份有限公司 | Detection and surpression of wind noise in microphone signals |
CN101330769A (en) * | 2007-06-21 | 2008-12-24 | 株式会社船井电机新应用技术研究所 | Voice input-output device and communication device |
CN102037738A (en) * | 2008-05-20 | 2011-04-27 | 株式会社船井电机新应用技术研究所 | Audio input device, method for manufacturing the same, and information processing system |
CN106210986A (en) * | 2010-02-25 | 2016-12-07 | 哈曼贝克自动系统股份有限公司 | Active noise reduction system |
CN106575499A (en) * | 2014-08-01 | 2017-04-19 | 伯斯有限公司 | System and method of microphone placement for noise attenuation |
US20170301337A1 (en) * | 2014-12-29 | 2017-10-19 | Silent Partner Ltd. | Wearable noise cancellation device |
CN105788607A (en) * | 2016-05-20 | 2016-07-20 | 中国科学技术大学 | Speech enhancement method applied to dual-microphone array |
CN206336183U (en) * | 2016-12-30 | 2017-07-18 | 龙岩市海德馨汽车有限公司 | Supply vehicle active noise reducing device |
CN107040843A (en) * | 2017-03-06 | 2017-08-11 | 联想(北京)有限公司 | The method and collecting device of same source of sound are obtained by two microphones |
CN107749295A (en) * | 2017-10-17 | 2018-03-02 | 张博强 | Wind power generating set Noise Active noise control method and active noise control system |
CN107734429A (en) * | 2017-10-30 | 2018-02-23 | 深圳市浩博高科技有限公司 | A kind of double miaow noise reductions disappear echo circuit |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503975A (en) * | 2019-08-02 | 2019-11-26 | 广州长嘉电子有限公司 | Smart television speech enhan-cement control method and system based on multi-microphone noise reduction |
CN110503975B (en) * | 2019-08-02 | 2022-02-01 | 广州长嘉电子有限公司 | Smart television voice enhancement control method and system based on multi-microphone noise reduction |
CN111554321A (en) * | 2020-04-20 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Noise reduction model training method and device, electronic equipment and storage medium |
CN111554321B (en) * | 2020-04-20 | 2023-12-05 | 北京达佳互联信息技术有限公司 | Noise reduction model training method and device, electronic equipment and storage medium |
CN112133310A (en) * | 2020-11-24 | 2020-12-25 | 深圳市维度数据科技股份有限公司 | Questionnaire survey method, device, storage medium and equipment based on voice recognition |
CN113689875A (en) * | 2021-08-25 | 2021-11-23 | 湖南芯海聆半导体有限公司 | Double-microphone voice enhancement method and device for digital hearing aid |
CN113689875B (en) * | 2021-08-25 | 2024-02-06 | 湖南芯海聆半导体有限公司 | Digital hearing aid-oriented double-microphone voice enhancement method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109756818B (en) | 2021-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110288978B (en) | Speech recognition model training method and device | |
CN109756818A (en) | Dual microphone noise-reduction method, device, storage medium and electronic equipment | |
CN106024005B (en) | A kind of processing method and processing device of audio data | |
CN111210021B (en) | Audio signal processing method, model training method and related device | |
CN107705778B (en) | Audio processing method, device, storage medium and terminal | |
CN111883091B (en) | Audio noise reduction method and training method of audio noise reduction model | |
CN109903773B (en) | Audio processing method, device and storage medium | |
CN109241859B (en) | Fingerprint identification method and related product | |
JP7218391B2 (en) | NOISE REDUCTION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM FOR IN-VEHICLE ENVIRONMENT | |
CN108470571B (en) | Audio detection method and device and storage medium | |
CN111554321B (en) | Noise reduction model training method and device, electronic equipment and storage medium | |
CN109994127B (en) | Audio detection method and device, electronic equipment and storage medium | |
CN108538311A (en) | Audio frequency classification method, device and computer readable storage medium | |
CN109616135B (en) | Audio processing method, device and storage medium | |
CN107993672B (en) | Frequency band expanding method and device | |
CN111477243B (en) | Audio signal processing method and electronic equipment | |
CN110970050B (en) | Voice noise reduction method, device, equipment and medium | |
CN109754823A (en) | A kind of voice activity detection method, mobile terminal | |
KR20200087660A (en) | End-to-end multi-task denoising for joint signal distortion ratio (sdr) and perceptual evaluation of speech quality (pesq) optimization | |
CN110097895B (en) | Pure music detection method, pure music detection device and storage medium | |
CN112233689B (en) | Audio noise reduction method, device, equipment and medium | |
CN111613246A (en) | Audio classification prompting method and related equipment | |
CN109375889A (en) | Display control method and Related product | |
CN106297818B (en) | It is a kind of to obtain the method and apparatus for removing noisy speech signal | |
CN112233688B (en) | Audio noise reduction method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |