Speech enhancement method, electronic device, and computer-readable storage medium
By calculating the inverse covariance matrix and the target speech mask matrix of the speech signal, and using the recursive relationship for speech enhancement, the problem of poor speech enhancement in traditional technology is solved and more efficient speech signal processing is achieved.
Patent Information
- Application Number
- CN202110846654.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2041-07-26
AI Technical Summary
Traditional speech enhancement technology is difficult to accurately obtain the orientation information of the target speech, resulting in poor speech enhancement effects.
By obtaining the inverse matrix of the signal covariance matrix of the speech to be enhanced and the mask matrix of the target speech, the recursive relationship is used to calculate the covariance matrix of the target speech, and then speech enhancement is performed, which reduces the inverse of the signal covariance matrix of each frame. operation, reducing the computational complexity.
It improves the pertinence and effect of speech enhancement, reduces the amount of calculation and complexity, and improves the clarity of speech signals.
Smart Images

Figure CN113689869B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing, and in particular to a speech enhancement method, an electronic device and a computer-readable storage medium. Background Art
[0002] In fields such as telephone video conferencing and artificial intelligence, voice communication often plays an important role. However, in actual scenarios, the target voice signal is often interfered by various noises or background sounds. Therefore, the target voice signal needs to be enhanced to improve the semantic communication of the target voice.
[0003] Traditional speech enhancement is often performed through beamforming technology, but beamforming technology requires estimating the azimuth information of the target speech signal in advance, and then filtering out signals other than the azimuth of the target speech signal through a beamformer to achieve the purpose of speech enhancement.
[0004] However, it is difficult to accurately obtain the azimuth information of the target speech signal in practice, so the speech enhancement effect is not good. Summary of the invention
[0005] The present invention provides a speech enhancement method, an electronic device and a computer-readable storage medium, so as to improve the speech enhancement effect.
[0006] To solve the above technical problems, the present invention provides a speech enhancement method, comprising: acquiring the speech to be enhanced; determining the inverse matrix of the signal covariance matrix of the speech to be enhanced based on the speech to be enhanced; determining the target signal covariance matrix of the target speech using the mask matrix corresponding to the target speech in the speech to be enhanced; and performing speech enhancement on the speech to be enhanced using the inverse matrix of the signal covariance matrix and the target signal covariance matrix.
[0007] Among them, the step of determining the inverse matrix of the signal covariance matrix of the speech to be enhanced based on the speech to be enhanced includes: transforming the speech to be enhanced to obtain the matrix corresponding to the current frame of the speech to be enhanced; and obtaining the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced; using the matrix of the current frame and the conjugate transposed matrix of the matrix, and the inverse matrix of the signal covariance matrix of the initial frame to obtain the inverse matrix of the signal covariance matrix of the current frame of the speech to be enhanced based on the first recursive relationship; wherein the first recursive relationship represents the correspondence between the inverse matrix of the signal covariance matrix of the current frame and the inverse matrix of the signal covariance matrix of the previous frame.
[0008] The first recursive relational expression is obtained by constructing a first corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, and then performing an inverse operation on the first corresponding relationship.
[0009] Among them, the step of determining the target signal covariance matrix of the target speech using the mask matrix corresponding to the target speech in the speech to be enhanced includes: using the matrix corresponding to the speech to be enhanced to obtain the probability that the target speech exists in the current frame of the speech to be enhanced; obtaining the mask matrix of the initial frame; using the mask matrix of the initial frame and the probability to obtain the mask matrix of the current frame of the speech signal to be enhanced; using the mask matrix of the current frame, the matrix corresponding to the current frame and the conjugate transposed matrix to obtain the target signal covariance matrix of the current frame of the target speech.
[0010] Among them, the step of using the mask matrix and probability of the initial frame to obtain the mask matrix of the current frame of the speech signal to be enhanced includes: using the probability and the mask matrix of the initial frame to obtain the mask matrix of the current frame based on the second recursive relationship; wherein the second recursive relationship represents the correspondence between the mask matrix of the current frame and the mask matrix of the previous frame; the step of using the mask matrix of the current frame, the matrix corresponding to the current frame and the conjugate transposed matrix to obtain the target signal covariance matrix of the target speech includes: using the mask matrix of the current frame, the matrix corresponding to the current frame and the conjugate transposed matrix, and the target signal covariance matrix of the initial frame to obtain the target signal covariance matrix of the current frame using the third recursive relationship; wherein the third recursive relationship represents the correspondence between the target signal covariance matrix of the current frame and the target signal covariance matrix of the previous frame.
[0011] The third recursive relationship is obtained by transforming the second corresponding relationship after constructing the second corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, the target signal covariance matrix and the mask matrix of the current frame.
[0012] Among them, the step of obtaining the mask matrix of the initial frame includes: obtaining the unit matrix, the random matrix with a value range of 0-1, or the probability matrix obeying the normal distribution; determining the unit matrix, the random matrix with a value range of 0-1, or the probability matrix obeying the normal distribution as the mask matrix of the initial frame.
[0013] Among them, the step of performing speech enhancement on the speech to be enhanced by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix includes: calculating the beamformer coefficients of the current frame by using the inverse matrix of the signal covariance matrix of the current frame and the target signal covariance matrix of the current frame; multiplying the beamformer coefficients by the speech to be enhanced in the current frame to enhance the speech to be enhanced in the current frame.
[0014] The step of obtaining the speech to be enhanced includes: obtaining the initial speech in the time domain; sequentially performing windowing, framing and Fourier transformation on the initial speech to obtain the speech to be enhanced in the form of a time-frequency domain signal.
[0015] Among them, after the step of performing speech enhancement on the speech to be enhanced by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix, the method also includes: performing inverse Fourier transform on the speech enhanced speech to obtain a speech signal in time domain form after speech enhancement.
[0016] To solve the above technical problems, the present invention further provides an electronic device, which includes: a memory and a processor coupled to each other, and the processor is used to execute program instructions stored in the memory to implement any of the above speech enhancement methods.
[0017] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, which stores program data, and the program data can be executed to implement any of the above-mentioned speech enhancement methods.
[0018] The beneficial effect of the present invention is as follows: different from the prior art, the speech enhancement method of the present invention first determines the inverse matrix of the signal covariance matrix of the speech to be enhanced, then uses the mask matrix corresponding to the target speech in the speech to be enhanced to determine the target signal covariance matrix of the target speech, and finally performs speech enhancement on the speech to be enhanced through the inverse matrix of the signal covariance matrix and the target signal covariance matrix. The present invention can perform targeted enhancement on the target speech in the speech to be enhanced, thereby improving the effect of speech enhancement. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of an embodiment of a speech enhancement method provided by the present invention;
[0020] Figure 2 is a flow chart of another embodiment of the speech enhancement method provided by the present invention;
[0021] Figure 3 is a structural schematic diagram of an embodiment of an electronic device provided by the present invention;
[0022] Figure 4 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] See also Figure 1 , Figure 1 It is a flow chart of an embodiment of a speech enhancement method provided by the present invention.
[0025] Step S11: Acquire the speech to be enhanced.
[0026] The voice to be enhanced is obtained. The voice to be enhanced may be obtained through a voice receiver or played through a voice player. The voice receiver includes a wired microphone, a wireless microphone, a telephone receiver, and the like. The voice player includes a smart device player, a telephone player, and the like.
[0027] In a specific application scenario, multiple channels of speech to be enhanced may be acquired through multiple microphones. In another specific application scenario, a single channel of speech to be enhanced may also be acquired through a single telephone handset.
[0028] Step S12: determining the inverse matrix of the signal covariance matrix of the speech to be enhanced based on the speech to be enhanced.
[0029] The inverse matrix of the signal covariance matrix of the speech to be enhanced is determined based on the speech to be enhanced, wherein each element in the covariance matrix is the covariance between each vector element.
[0030] In a specific application scenario, a matrix of the speech to be enhanced can be obtained based on the speech to be enhanced, and then the matrix is transformed to obtain a signal covariance matrix of the speech to be enhanced, and the signal covariance matrix is inverted to obtain an inverse matrix of the signal covariance matrix of the speech to be enhanced.
[0031] In another specific application scenario, the adjoint matrix of the signal covariance matrix of the speech to be enhanced may be determined based on the speech to be enhanced, and then the inverse matrix may be solved based on the adjoint matrix to obtain the inverse matrix of the signal covariance matrix of the speech to be enhanced.
[0032] The specific method for calculating the inverse matrix of the signal covariance matrix of the speech to be enhanced is not limited here.
[0033] Step S13: Determine the target signal covariance matrix of the target speech using the mask matrix corresponding to the target speech in the speech to be enhanced.
[0034] The target signal covariance matrix of the target speech is determined by using the mask matrix corresponding to the target speech in the speech to be enhanced. The target speech refers to the speech to be enhanced in the speech to be enhanced. In a specific application scenario, when the speech to be enhanced is the speech received by the conference recording microphone, the target speech is the speech of the conference speaker, and all other sounds are background sounds.
[0035] The mask matrix is used to mask the speech to be enhanced to cover the background sound and highlight the target speech. In a specific application scenario, the probability of the target speech existing can be estimated by each element of the matrix of the speech to be enhanced. The greater the probability, the greater the probability of the target speech existing, thereby obtaining the mask matrix corresponding to the target speech in the speech to be enhanced. In other application scenarios, the matrix of the speech to be enhanced can also be filtered by a deep neural network to obtain the mask matrix corresponding to the target speech in the speech to be enhanced.
[0036] The target signal covariance matrix is the signal covariance matrix corresponding to the target speech. The target speech is highlighted by the mask matrix corresponding to the target speech, and then the target signal covariance matrix of the target speech is determined, which can improve the accuracy and reliability of the target signal covariance matrix.
[0037] Step S14: performing speech enhancement on the speech to be enhanced by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix.
[0038] The inverse matrix of the signal covariance matrix obtained through the above steps and the target signal covariance matrix are used to perform speech enhancement on the speech to be enhanced.
[0039] In a specific application scenario, the beamformer coefficients can be calculated by the inverse matrix of the signal covariance matrix and the target signal covariance matrix, and then the beamformer coefficients are used to perform speech enhancement on the speech to be enhanced. Among them, the beamformer coefficients are MVDR (Minimum Variance Distortionless Response) beamformer coefficients. By processing the speech to be enhanced with the MVDR beamformer coefficients, the background sound of the speech to be enhanced can be minimized based on the constraints of the MVDR algorithm. Among them, the constraint condition is to minimize the output variance while keeping the pure speech signal unchanged. Then the background sound signal can be minimized.
[0040] In another specific application scenario, the inverse matrix of the signal covariance matrix and the target signal covariance matrix can be directly combined with the matrix of the speech to be enhanced to perform speech enhancement on the speech to be enhanced.
[0041] In another specific application scenario, speech enhancement can also be performed on the speech to be enhanced based on the inverse matrix of the signal covariance matrix and the target signal covariance matrix through machine learning. The specific enhancement method is not limited here.
[0042] Through the above method, the speech enhancement method of this embodiment first determines the inverse matrix of the signal covariance matrix of the speech to be enhanced, and then uses the mask matrix corresponding to the target speech in the speech to be enhanced to determine the target signal covariance matrix of the target speech, and finally uses the inverse matrix of the signal covariance matrix and the target signal covariance matrix to perform speech enhancement on the speech to be enhanced. This embodiment can perform targeted enhancement on the target speech in the speech to be enhanced, thereby improving the effect of speech enhancement.
[0043] See also Figure 2 , Figure 2 It is a flow chart of another embodiment of the speech enhancement method provided by the present invention.
[0044] Step S21: The initial speech in the time domain is obtained, and windowing, framing and Fourier transform are performed on the initial speech in sequence to obtain the speech to be enhanced in the form of a time-frequency domain signal.
[0045] The initial speech in the time domain is obtained, and then the initial speech is windowed, framed, and Fourier transformed to obtain the speech to be enhanced in the form of a time-frequency domain signal. In a specific application scenario, the initial speech in the time domain of multiple channels can be obtained through multiple microphones, and then the initial speech is windowed, framed, and Fourier transformed (FFT) is performed in turn to obtain the speech to be enhanced in the form of a time-frequency domain signal. The speech to be enhanced in the form of a time-frequency domain signal includes multiple frames of speech to be enhanced.
[0046] In other embodiments, the speech to be enhanced in the form of a time-frequency domain signal may also be directly acquired, for example, the speech to be enhanced in the form of a time-frequency domain signal output by a processor or other processing device is acquired.
[0047] Step S22: transform the speech to be enhanced to obtain the matrix corresponding to the current frame of the speech to be enhanced, and obtain the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced, and use the matrix of the current frame and the conjugate transposed matrix of the matrix and the inverse matrix of the signal covariance matrix of the initial frame to obtain the inverse matrix of the signal covariance matrix of the current frame of the speech to be enhanced based on the first recursive relationship.
[0048] The speech to be enhanced in the form of a time-frequency domain signal is transformed to obtain a matrix corresponding to the current frame of the speech to be enhanced. In a specific application scenario, the speech enhancement of this embodiment can enhance the current speech of each frame in real time when the microphone acquires the speech, or can enhance the speech of each frame in turn after the microphone acquires the entire speech.
[0049] In this embodiment, the matrix corresponding to the current frame of the speech to be enhanced in the form of a time-frequency domain signal can be expressed as:
[0050] y(f,t)=[y1,f,t ,y 2,f,t ,...y J,f,t ] T
[0051] Among them, y(f,t) is the matrix corresponding to the current frame in the form of time-frequency domain signal. The y in the subsequent formulas is f,t The same as the matrix y(f,t) corresponding to the current frame, y(f,t) represents the J×1-dimensional observation vector at frequency f at time t or the tth frame. J is the number of microphones, that is, y 1,f,t ,y 2,f,t ,...y J,f,t are the speech signals corresponding to the J microphones. T is the transpose of the matrix. t is the current frame time, or any frame time. f is the current frequency or any frequency.
[0052] Then, the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced is obtained, that is, the initial frame is the speech frame at time t=0. Then, the inverse matrix of the signal covariance matrix of the current frame of the speech to be enhanced is obtained based on the first recursive relationship using the matrix of the current frame, the conjugate transposed matrix of the matrix, and the inverse matrix of the signal covariance matrix of the initial frame. Among them, the first recursive relationship represents the correspondence between the inverse matrix of the signal covariance matrix of the current frame and the inverse matrix of the signal covariance matrix of the previous frame.
[0053] Specifically, the first recursive relationship is as follows:
[0054]
[0055] in, is the inverse matrix of the signal covariance matrix of the tth frame of the speech to be enhanced, is the inverse matrix of the signal covariance matrix of the t-1th frame, y f,t is the matrix of the tth frame of the speech to be enhanced, is the conjugate transposed matrix of the t-th frame matrix of the speech to be enhanced. t is the current frame time. When there are s frames in the speech to be enhanced, t may include (0, 1, 2...s), which is specifically set based on the current speech frame.
[0056] The first recursive relation represents the inverse matrix of the signal covariance matrix of the current frame The inverse matrix of the signal covariance matrix of the previous frame The corresponding relationship is the corresponding relationship between the inverse matrices of the signal covariance matrices of each two adjacent frames. Therefore, when the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced is obtained, the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced is substituted into the first recursive relationship when t is 0, and the inverse matrix of the signal covariance matrix of the first frame is calculated, and then the inverse matrix of the signal covariance matrix of the first frame is substituted into the first recursive relationship when t is 1, and the inverse matrix of the signal covariance matrix of the second frame is calculated, and so on. Then, the inverse matrix of the signal covariance matrix of all frames of the speech to be enhanced can be obtained based on the first recursive relationship by using the matrices of each frame, the conjugate transposed matrix of the matrix of each frame, and the inverse matrix of the signal covariance matrix of the initial frame.
[0057] The method for obtaining the inverse matrix of the signal covariance matrix of all frames of the speech to be enhanced in this step only requires obtaining the matrix of each frame, the conjugate transposed matrix of each frame matrix, and the signal covariance matrix of the initial frame, and then calculating based on the first recursive relationship to obtain the inverse matrix. There is no need to perform inverse operations on the inverse matrix of the signal covariance matrix of each frame in the speech to be enhanced in turn. This step greatly reduces the amount of calculation and complexity in the speech enhancement process, and improves the efficiency of speech enhancement.
[0058] Among them, the first recursive relationship is obtained by constructing a first corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, and then performing an inverse operation on the first corresponding relationship. Specifically, the first corresponding relationship between the signal covariance matrix of the current frame and the signal covariance matrix of the previous frame can be constructed based on the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix. The first corresponding relationship is as follows:
[0059]
[0060] Among them, Y f,t is the signal covariance matrix of the tth frame of the speech to be enhanced, Y f,t-1 is the signal covariance matrix of the t-1th frame of the speech to be enhanced. The first corresponding relationship, that is, formula (2), is inverted to obtain the first recursive relationship, that is, formula (1).
[0061] The first corresponding relationship characterizes the iterative update method between the signal covariance matrices of adjacent frames of the speech to be enhanced. The first recursive relationship can be obtained by performing an inverse operation on the first corresponding relationship once, and then the inverse matrix of the signal covariance matrix of each frame of the speech to be enhanced is recursively obtained based on the first recursive relationship and the inverse matrix of the signal covariance matrix of the initial frame. This process greatly reduces the amount of calculation and complexity of obtaining the inverse matrix of the signal covariance matrix of each frame of the speech to be enhanced, and improves the speed and efficiency of obtaining the inverse matrix of the signal covariance matrix of each frame of the speech to be enhanced.
[0062] Among them, the inverse matrix of the signal covariance matrix of the initial frame can include simple matrices such as the unit matrix, a random matrix with a value range of 0-1, or a probability matrix that obeys the normal distribution. Therefore, after substituting the signal covariance matrix of the initial frame into the first recursive relationship, the computational amount of the recursive calculation can be further reduced and the computational efficiency can be improved.
[0063] Step S23: Use the matrix corresponding to the speech to be enhanced to obtain the probability that the target speech exists in the current frame of the speech to be enhanced, obtain the mask matrix of the initial frame, use the mask matrix of the initial frame and the probability to obtain the mask matrix of the current frame of the speech signal to be enhanced, and use the mask matrix of the current frame, the matrix corresponding to the current frame and the conjugate transposed matrix to obtain the target signal covariance matrix of the current frame of the target speech.
[0064] The matrix corresponding to the speech to be enhanced is used to obtain the probability that the target speech exists in the current frame of the speech to be enhanced, and then the mask matrix of the initial frame is obtained. The mask matrix of the initial frame and the probability are used to obtain the mask matrix of the current frame of the speech signal to be enhanced. Then, the mask matrix of the current frame, the matrix corresponding to the current frame, and the conjugate transposed matrix are used to obtain the target signal covariance matrix of the current frame of the target speech.
[0065] In a specific application scenario, the probability that the target speech exists in the current frame of the speech to be enhanced can be calculated by the following formula:
[0066]
[0067] Among them, p(y f,t ) is the probability that the target speech exists in the tth frame of the speech to be enhanced, e is a natural constant, and Where J is the number of microphones, tr() means finding the trace of the matrix, is the target matrix covariance matrix. The target matrix covariance matrix It can be obtained through the second corresponding relationship. For details about the second corresponding relationship, please refer to formula (5).
[0068] After obtaining the probability that the target speech exists in the current frame of the speech to be enhanced, the mask matrix of the current frame is obtained based on the second recursive relation using the probability and the mask matrix of the initial frame. The second recursive relation is as follows:
[0069]
[0070] in, is the mask matrix of the t-th frame, is the mask matrix of the t-1th frame. The hyperparameters α and β satisfy the relationship α+β=1.
[0071] Among them, the second recursive relationship represents the correspondence between the mask matrix of the current frame and the mask matrix of the previous frame; therefore, after obtaining the mask matrix of the initial frame, the mask matrix of the initial frame is substituted into the second recursive relationship to obtain the mask matrix of the first frame, and then the mask matrix of the first frame is substituted into the second recursive relationship again to obtain the mask matrix of the second frame, and so on, the mask matrices of all frames of the speech signal to be enhanced can be obtained.
[0072] Among them, the mask matrix of the initial frame It may include simple matrices with elements between 0 and 1, such as a unit matrix, a random matrix with a value range of 0-1, or a probability matrix that obeys a normal distribution. After substituting the mask matrix of the initial frame into the first recursive relationship, the amount of calculation of the recursive calculation can be further reduced, thereby improving the calculation efficiency.
[0073] After obtaining the mask matrices of all frames of the speech signal to be enhanced, the target signal covariance matrix of the target speech is obtained using the mask matrix of the current frame, the matrix corresponding to the current frame, and the conjugate transposed matrix. Specifically, the target signal covariance matrix of the current frame is obtained using the mask matrix of the current frame, the matrix corresponding to the current frame, the conjugate transposed matrix, and the target signal covariance matrix of the initial frame using the third recursive relation, and the third recursive relation is as follows:
[0074]
[0075] in, is the target signal covariance matrix of the t-th frame, is the covariance matrix of the target signal in the t-1th frame. is the mask matrix of the tth frame. From the above, it can be seen that the third recursive relation represents the corresponding relationship between the target signal covariance matrix of the current frame and the target signal covariance matrix of the previous frame. As long as the target signal covariance matrix of the initial frame is substituted into the third recursive relation, the target signal covariance matrix of all frames can be derived in sequence.
[0076] The third recursive relationship is obtained by constructing a second corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, the target signal covariance matrix and the mask matrix of the current frame, and then transforming the second corresponding relationship.
[0077] The second corresponding relationship is as follows:
[0078]
[0079] in, is the mask matrix of the t-th frame, The target signal covariance matrix of the entire target speech is obtained by masking the matrix of the speech to be enhanced in the tth frame and the conjugate transposed matrix of the speech to be enhanced in the tth frame through the mask matrix of the tth frame.
[0080] Get the target signal covariance matrix of the target speech After that, the target signal covariance matrix of the initial frame can be obtained by conversion based on formula (6), and then the target signal covariance matrix of the initial frame is substituted into formula (5) to complete the calculation of the target signal covariance matrix of all frames.
[0081] Step S24: The beamformer coefficients of the current frame are calculated by using the inverse matrix of the signal covariance matrix of the current frame and the target signal covariance matrix of the current frame, and the beamformer coefficients are multiplied by the speech to be enhanced in the current frame to enhance the speech to be enhanced in the current frame.
[0082] After obtaining the inverse matrix of the signal covariance matrix of all frames and the target signal covariance matrix of all frames, the beamformer coefficients of each frame are calculated by using the inverse matrix of the signal covariance matrix of each frame and the target signal covariance matrix of each frame.
[0083] In a specific application scenario, the specific calculation method of obtaining the beamformer coefficients of the current frame by calculating the inverse matrix of the signal covariance matrix of the current frame and the target signal covariance matrix of the current frame is as follows:
[0084]
[0085] Among them, w f,t is the beamformer coefficient of the tth frame, also called the MVDR filter coefficient, tr() represents the trace of the matrix, d is an M*1-dimensional 0-1 vector, which can be 1 or 0 in this embodiment.
[0086] The beamformer coefficients w of the tth frame are f,t Transform to obtain the matrix W of the entire beamformer coefficients f , and then the matrix W of the entire beamformer coefficients f Transform to obtain the conjugate transposed matrix of the entire beamformer coefficients
[0087] By multiplying the beamformer coefficients by the speech to be enhanced in each frame, the speech to be enhanced in each frame can be enhanced by the beamformer coefficients.
[0088] In a specific application scenario, taking the current frame as an example, the specific calculation process is as follows:
[0089]
[0090] in, is the speech y to be enhanced in the tth frame f,t The conjugate transposed matrix of the entire beamformer coefficients The enhanced speech to be enhanced of the tth frame. In this embodiment, the tth frame is the current frame.
[0091] By enhancing the speech to be enhanced in each frame using the above formula (7), speech enhancement of the entire speech to be enhanced can be achieved.
[0092] After the speech enhancement of the entire speech to be enhanced, the speech enhanced is subjected to inverse Fourier transform to obtain a speech signal in time domain form after the speech enhancement, so as to facilitate application of the speech signal in time domain form after the speech enhancement, such as matching the format of a sound player.
[0093] Through the above steps, the speech enhancement method of this embodiment first constructs the correspondence between the mask matrix of the current frame and the mask matrix of the previous frame, and the correspondence between the inverse matrix of the signal covariance matrix of the current frame and the inverse matrix of the signal covariance matrix of the previous frame, and then obtains the mask matrix of the initial frame and the inverse matrix of the signal covariance matrix, and then sequentially deduces the mask matrices and the inverse matrices of the signal covariance matrix of all frames through the above correspondence, and then calculates the beamformer coefficients based on the above matrices, and finally uses the beamformer coefficients to complete the speech enhancement of each frame of the speech to be enhanced. Strong, this embodiment can avoid the inversion operation of the signal covariance matrix of each frame, but directly obtain it recursively based on the signal covariance matrix of the initial frame, thereby greatly reducing the amount of calculation and complexity of calculating the inverse matrix of the signal covariance matrix, and can avoid calculating the mask matrix of each frame separately, but recursively obtain it based on the mask matrix of the initial frame, further reducing the amount of calculation and complexity of the mask matrix, and this embodiment also obtains the mask matrix of the initial frame with simple numerical values and the inverse matrix of the signal covariance matrix, thereby reducing the difficulty of recursive calculation and improving the calculation effect. Therefore, the speech enhancement method of this embodiment can greatly reduce the amount of calculation and complexity of calculation and improve the calculation efficiency. Reduce calculation errors and improve the speech enhancement effect.
[0094] Based on the same inventive concept, the present invention also proposes an electronic device, which can be executed to implement the speech enhancement method of any of the above embodiments. Figure 3 , Figure 3 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes a processor 31 and a memory 32 .
[0095] The processor 31 is used to execute the program instructions stored in the memory 32 to implement the steps of any of the above-mentioned speech enhancement method embodiments. In a specific implementation scenario, the electronic device may include but is not limited to: a microcomputer, a server, and in addition, the electronic device may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.
[0096] Specifically, the processor 31 is used to control itself and the memory 32 to implement the steps of any of the above-mentioned speech enhancement method embodiments. The processor 31 can also be called a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip with signal processing capabilities. The processor 31 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 31 can be implemented by an integrated circuit chip.
[0097] The above scheme can realize speech enhancement of the speech to be enhanced.
[0098] Based on the same inventive concept, the present invention also proposes a computer-readable storage medium, see Figure 4 , Figure 4 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer-readable storage medium 40 stores at least one program data 41, and the program data 41 is used to implement any of the above methods. In one embodiment, the computer-readable storage medium 40 includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0099] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] 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 technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
[0103] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A speech enhancement method, characterized in that: The speech enhancement method comprises: The speech to be enhanced is obtained; Determine an inverse matrix of a signal covariance matrix of the speech to be enhanced based on the speech to be enhanced; Determine a target signal covariance matrix of the target speech using a mask matrix corresponding to the target speech in the speech to be enhanced; The speech to be enhanced is subjected to speech enhancement by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix.
2. The speech enhancement method according to claim 1, characterized in that: The step of determining the inverse matrix of the signal covariance matrix of the speech to be enhanced based on the speech to be enhanced comprises: transforming the speech to be enhanced to obtain a matrix corresponding to a current frame of the speech to be enhanced; and Obtaining the inverse matrix of the signal covariance matrix of the initial frame of the speech to be enhanced; The inverse matrix of the signal covariance matrix of the current frame of the speech to be enhanced is obtained based on a first recursive relation using the matrix of the current frame, the conjugate transposed matrix of the matrix, and the inverse matrix of the signal covariance matrix of the initial frame; wherein the first recursive relation represents the correspondence between the inverse matrix of the signal covariance matrix of the current frame and the inverse matrix of the signal covariance matrix of the previous frame; Among them, the inverse matrix of the signal covariance matrix of all frames of the speech to be enhanced is obtained based on the first recursive relationship using the matrix of each frame, the conjugate transposed matrix of each frame matrix, and the inverse matrix of the signal covariance matrix of the initial frame to obtain the inverse matrix of the signal covariance matrix of the speech to be enhanced.
3. The speech enhancement method according to claim 2, characterized in that: The first recursive relationship is obtained by constructing a first corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, and then performing an inverse operation on the first corresponding relationship.
4. The speech enhancement method according to claim 1, characterized in that: The step of determining the target signal covariance matrix of the target speech by using the mask matrix corresponding to the target speech in the speech to be enhanced comprises: Using the matrix corresponding to the speech to be enhanced, obtaining the probability that the target speech exists in the current frame of the speech to be enhanced; Get the mask matrix of the initial frame; Obtaining a mask matrix of a current frame of the speech to be enhanced using the mask matrix of the initial frame and the probability; The target signal covariance matrix of the current frame is obtained by using the mask matrix of the current frame, the matrix corresponding to the current frame and the conjugate transposed matrix, and the target signal covariance matrix of the initial frame using the third recursive relation; wherein the third recursive relation represents the corresponding relationship between the target signal covariance matrix of the current frame and the target signal covariance matrix of the previous frame; The target signal covariance matrix of the initial frame is substituted into the third recursive relational formula, and the target signal covariance matrices of all frames are recursively derived in sequence to obtain the target signal covariance matrix of the target speech.
5. The speech enhancement method according to claim 4, characterized in that: The step of obtaining the mask matrix of the current frame of the speech to be enhanced by using the mask matrix of the initial frame and the probability comprises: The mask matrix of the current frame is obtained based on a second recursive relationship using the probability and the mask matrix of the initial frame; wherein the second recursive relationship represents the corresponding relationship between the mask matrix of the current frame and the mask matrix of the previous frame.
6. The speech enhancement method according to claim 5, characterized in that: The third recursive relationship is obtained by constructing a second corresponding relationship through the matrix of the current frame of the speech to be enhanced and the conjugate transposed matrix, the target signal covariance matrix and the mask matrix of the current frame, and then transforming the second corresponding relationship.
7. The speech enhancement method according to any one of claims 4 to 6, characterized in that: The step of obtaining the mask matrix of the initial frame comprises: Get the identity matrix, a random matrix with a value range of 0-1, or a probability matrix that follows a normal distribution; The identity matrix, a random matrix with a value range of 0-1, or a probability matrix obeying a normal distribution is determined as a mask matrix of the initial frame.
8. The speech enhancement method according to claim 1, characterized in that: The step of performing speech enhancement on the speech to be enhanced by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix comprises: Obtaining beamformer coefficients of the current frame by calculating the inverse matrix of the signal covariance matrix of the current frame and the target signal covariance matrix of the current frame; The beamformer coefficient is multiplied by the speech to be enhanced in the current frame to enhance the speech to be enhanced in the current frame.
9. The speech enhancement method according to claim 1, characterized in that: The step of acquiring the speech to be enhanced comprises: The initial speech in time domain form is obtained; The initial speech is sequentially windowed, framed, and Fourier transformed to obtain the speech to be enhanced in the form of a time-frequency domain signal.
10. The speech enhancement method according to claim 9, characterized in that: After the step of performing speech enhancement on the speech to be enhanced by using the inverse matrix of the signal covariance matrix and the target signal covariance matrix, the method further includes: Performing inverse Fourier transform on the speech after speech enhancement obtains the speech signal in the time domain form after speech enhancement.
11. An electronic device, characterized in that: The electronic device comprises: a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the speech enhancement method according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and the program data can be executed to implement the speech enhancement method according to any one of claims 1 to 10.
