Voice signal generation method, device, computer equipment and storage medium

By extracting speech signal features and real spectrum, combined with estimation and reverberation elimination networks, the problem of noise and reverberation removal in speech signals is solved, and the quality of speech signals is significantly improved.

CN114220448BActive Publication Date: 2024-10-29YOUME TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111540647.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-10-29
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively remove noise and reverberation in speech signals, resulting in poor speech signal quality.

Method used

By obtaining the original speech signal and its real spectrum, the speech signal features are extracted, the estimation network is used to process the features to obtain the masking value, the real spectrum is combined with the real spectrum to determine the denoising real spectrum, and the reverberation is removed through the reverberation elimination network, and finally the denoised speech is generated Signal.

Benefits of technology

It effectively removes the noise and reverberation in the speech signal and significantly improves the quality of the speech signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114220448B_ABST
    Figure CN114220448B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment, storage medium and computer program product for generating a speech signal. The method comprises: obtaining an original speech signal and an original real number spectrum corresponding to the original speech signal; extracting speech signal features corresponding to the original speech signal; processing the speech signal features through an estimation network to obtain a first masking value; determining a denoised real number spectrum based on the first masking value and the original real number spectrum; denoising the denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum; and generating an enhanced speech signal according to the enhanced real number spectrum. The use of this method can improve the quality of speech signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device, storage medium and computer program product for generating a speech signal. Background Art

[0002] With the development of computer technology, voice signals have become an important information carrier. However, the voice signals collected by voice acquisition equipment are usually mixed with noise and reverberation, which seriously affects the quality of the collected voice signals. How to remove noise and reverberation from the collected voice signals and obtain enhanced voice signals has become an urgent problem to be solved. In traditional technologies, noise and reverberation are removed separately by signal processing methods, and the quality of the obtained voice signals is poor. Summary of the invention

[0003] Based on this, it is necessary to provide a speech signal generation method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the quality of speech signals in response to the above technical problems.

[0004] In a first aspect, the present application provides a method for generating a speech signal. The method comprises:

[0005] Acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0006] Extracting speech signal features corresponding to the original speech signal;

[0007] Processing the speech signal feature through an estimation network to obtain a first masking value;

[0008] Determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0009] Performing dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0010] An enhanced speech signal is generated according to the enhanced real spectrum.

[0011] In a second aspect, the present application also provides a speech signal generating device. The device comprises:

[0012] An acquisition module, used to acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0013] An extraction module, used to extract speech signal features corresponding to the original speech signal;

[0014] A processing module, configured to process the speech signal feature through an estimation network to obtain a first masking value;

[0015] A determination module, configured to determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0016] The processing module is further used to perform dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0017] A generating module is used to generate an enhanced speech signal according to the enhanced real number spectrum.

[0018] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0019] Acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0020] Extracting speech signal features corresponding to the original speech signal;

[0021] Processing the speech signal feature through an estimation network to obtain a first masking value;

[0022] Determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0023] Performing dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0024] An enhanced speech signal is generated according to the enhanced real spectrum.

[0025] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0026] Acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0027] Extracting speech signal features corresponding to the original speech signal;

[0028] Processing the speech signal feature through an estimation network to obtain a first masking value;

[0029] Determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0030] Performing dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0031] An enhanced speech signal is generated according to the enhanced real spectrum.

[0032] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0033] Acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0034] Extracting speech signal features corresponding to the original speech signal;

[0035] Processing the speech signal feature through an estimation network to obtain a first masking value;

[0036] Determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0037] Performing dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0038] An enhanced speech signal is generated according to the enhanced real spectrum.

[0039] The above-mentioned speech signal generation method, device, computer equipment, storage medium and computer program product obtain the original speech signal and the original real number spectrum corresponding to the original speech signal and extract the speech signal features corresponding to the original speech signal. The speech signal features are processed by the estimation network to obtain the first masking value, and the noise reduction real number spectrum is determined based on the first masking value and the original real number spectrum. The noise reduction real number spectrum obtained eliminates the influence of noise, thereby achieving the purpose of removing noise. The noise reduction real number spectrum is dedeverberated by the reverberation elimination network, and the influence of reverberation is eliminated in the enhanced real number spectrum obtained. Finally, an enhanced speech signal is generated according to the enhanced real number spectrum, thereby removing the noise and reverberation in the original speech signal and improving the quality of the speech signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A diagram showing an application environment of a method for generating a speech signal in an embodiment;

[0041] Figure 2 A flowchart of a method for generating a speech signal in one embodiment;

[0042] Figure 3 A schematic diagram of a flow chart of a method for obtaining an original real number spectrum in one embodiment;

[0043] Figure 4 A schematic diagram of a flow chart of a method for obtaining an estimation network and a reverberation elimination network in one embodiment;

[0044] Figure 5 A schematic flow chart of a method for generating an enhanced speech signal in one embodiment;

[0045] Figure 6 is a schematic diagram of a speech enhancement system in one embodiment;

[0046] Figure 7 is a flow chart of a method for generating a speech signal in another embodiment;

[0047] Figure 8 is a structural block diagram of a speech signal generating device in one embodiment;

[0048] Fig. 9 is a structural block diagram of a speech signal generating device in another embodiment;

[0049] Fig.10 is an internal structure diagram of a computer device in one embodiment;

[0050] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The speech signal generation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the data storage system can store data that the computer device 102 needs to process. The data storage system can be integrated on the computer device 102, or it can be placed on the cloud or other network servers. The computer device 102 obtains the original speech signal, and the original real spectrum corresponding to the original speech signal; extracts the speech signal features corresponding to the original speech signal; processes the speech signal features through the estimation network to obtain a first masking value; determines the denoised real spectrum based on the first masking value and the original real spectrum; denoises the denoised real spectrum through the reverberation elimination network to obtain an enhanced real spectrum; generates an enhanced speech signal according to the enhanced real spectrum.

[0053] The computer device 102 may be a terminal or a server. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server may be implemented as an independent server or a server cluster consisting of multiple servers.

[0054] In one embodiment, Figure 2As shown, a method for generating a speech signal is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:

[0055] S202, obtaining an original speech signal and an original real number spectrum corresponding to the original speech signal.

[0056] The original speech signal may be a speech signal obtained by a sensor, including speech signals in various formats such as AIFF (Audio Interchange File Format), MPEG (Moving Picture Experts Group), MP3 (Moving Picture Experts Group Audio Layer III), and MIDI (Musical Instrument Digital Interface). The real spectrum is composed of the real part of the signal spectrum and is used to restore the spectrum of the speech signal in the time domain. The original real spectrum is the real spectrum corresponding to the original speech signal.

[0057] In one embodiment, S202 specifically includes: the computer device acquires the analog voice signal collected by the sensor, performs analog-to-digital conversion on the analog voice signal to obtain the original voice signal in digital signal format, performs Fourier transform on the original voice signal to obtain the spectrum of the original voice signal, and obtains the original real number spectrum according to the spectrum of the original voice signal.

[0058] S204: extracting speech signal features corresponding to the original speech signal.

[0059] Among them, the speech signal feature is a feature used to represent the sound characteristics of the original speech signal, which can be one or more features of AMS (Amplitude Modulation Spectrogram) feature, RASTA-PLP (Relative Spectral Transform-Perceptual Linear Prediction) feature, and MFCC (Mel-frequency cepstral coefficients) feature.

[0060] In one embodiment, the computer device divides the original speech signal into a plurality of speech signal frames, performs windowing processing on the speech signal frames according to a window function, and extracts speech signal features from the speech signal frames after the windowing processing.

[0061] S206, processing the speech signal feature through an estimation network to obtain a first masking value.

[0062] Among them, the estimation network is a neural network for predicting the first mask value, including a convolutional layer, an activation layer, a normalization layer, a pooling layer, etc., which can be CNN (Convolutional Neural Networks), ResNet (Residual Net), LSTM (Long Short-Term Memor), BLSTM (Bi-directional LSTM), etc.

[0063] In one embodiment, the estimation network is a bidirectional long short-term memory network. The bidirectional long short-term memory network is a time recursive neural network composed of two RNNs (Recurrent Neural Networks). The estimation network may include multiple convolutional layers, for example, the estimation network includes three convolutional layers.

[0064] S208: Determine a denoised real number spectrum based on the first masking value and the original real number spectrum.

[0065] The denoised real number spectrum is the real number spectrum corresponding to the original speech signal with noise removed. The original speech signal with noise interference removed can be restored according to the denoised real number spectrum. In one embodiment, the computer device can perform a mask operation on the original real number spectrum according to the first masking value to obtain the denoised real number spectrum. In another embodiment, the computer device can multiply the first masking value and the original real number spectrum to obtain the denoised real number spectrum.

[0066] S210, performing dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum.

[0067] The reverberation elimination network is a neural network used to eliminate reverberation, including a convolution layer, an activation layer, a normalization layer, and a pooling layer, etc. It can be a CNN network, a ResNet network, an LSTM network, or a BLSTM network, etc. The enhanced real spectrum is the real spectrum of the original speech signal with noise and reverberation interference eliminated, and is used to describe the enhanced speech signal from the frequency domain.

[0068] In one embodiment, the reverberation elimination network is a bidirectional long short-term memory network, including an input layer, a hidden layer and an output layer, and the hidden layer can be composed of multiple convolution layers. The computer device can perform multi-layer convolution operations on the denoised real spectrum through the convolution layer in the reverberation elimination network to obtain an enhanced real spectrum.

[0069] S212: Generate an enhanced speech signal according to the enhanced real spectrum.

[0070] The enhanced speech signal is a speech signal obtained by removing noise and reverberation interference from the original speech signal, and can be a speech signal in various formats such as AIFF, MPEG, MP3, MIDI, etc. Since the enhanced real spectrum describes the enhanced speech signal from the frequency domain, the enhanced speech signal can be obtained by converting the enhanced real spectrum to the time domain.

[0071] In one embodiment, the computer device may combine the enhanced real number spectrum and the phase spectrum, and perform inverse Fourier transform on the combined spectrum to obtain an enhanced speech signal. The phase spectrum may be the phase spectrum of the original speech signal, or may be the phase spectrum obtained by adjusting the phase spectrum of the original speech signal. The computer device may adjust the phase spectrum of the original speech signal according to the obtained enhanced real number spectrum.

[0072] In the above embodiment, the original speech signal and the original real number spectrum corresponding to the original speech signal are obtained, and the speech signal features corresponding to the original speech signal are extracted. The speech signal features are processed by the estimation network to obtain a first masking value, and the noise reduction real number spectrum is determined based on the first masking value and the original real number spectrum. The noise reduction real number spectrum obtained eliminates the influence of noise, thereby achieving the purpose of removing noise. The noise reduction real number spectrum is denoised by the reverberation elimination network, and the interference of noise and reverberation is eliminated in the obtained enhanced real number spectrum. Finally, an enhanced speech signal is generated according to the enhanced real number spectrum, thereby removing the noise and reverberation in the original speech signal and improving the quality of the speech signal.

[0073] In one embodiment, Figure 3 As shown, S202 specifically includes the following steps:

[0074] S302, acquiring an original speech signal and performing frame processing on the original speech signal to obtain at least two speech signal frames.

[0075] Among them, the framing process is the process of dividing the original voice signal into multiple voice signal frames. The voice signal frame is a voice signal of a preset length. For example, the original voice signal is an audio signal of 10 seconds in length. The computer device divides the original voice signal into 500 voice signal frames through the framing process, and the length of each voice signal frame is 20ms.

[0076] S304, filtering each speech signal frame by using a window function to obtain a filtered speech signal frame.

[0077] The window function is a function used to represent a time-domain finite-width signal, including a Hamming window, a Gaussian window, a triangular window, etc. In one embodiment, S304 specifically includes: the computer device multiplies the window function with the speech signal frame, and uses the product as the filtered speech signal frame. The computer device filters each speech signal frame through the window function, so that the filtered speech signal frame better meets the periodicity requirement of Fourier transform.

[0078] S306: Fill the filtered speech signal frame according to a preset frame length.

[0079] In order to make the filtered speech signal frame reach a preset frame length, the computer device can fill the speech signal frame, for example, fill the front of the speech signal frame with a sampling point with an amplitude of 0. After the computer device fills the speech signal frame, the speech signal frame becomes a causal signal, so that the real spectrum can be obtained by performing a short-time Fourier transform on the filled speech signal frame.

[0080] S308, performing short-time Fourier transform on the padded speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

[0081] In the above embodiment, the computer device obtains the original voice signal and performs frame processing on the original voice signal. Then, each voice signal frame is filtered by a window function to obtain a filtered voice signal frame. The filtered voice signal frame is filled according to a preset frame length. The filled voice signal frame is short-time Fourier transformed to obtain the original real number spectrum corresponding to the original voice signal. Thus, the original real number spectrum of the original voice signal in the frequency domain can be obtained, and the enhanced real number spectrum can be obtained by eliminating the noise and reverberation interference in the original real number spectrum, so that the enhanced voice signal with the noise and reverberation interference eliminated can be obtained according to the enhanced real number spectrum, thereby improving the quality of the voice signal.

[0082] In one embodiment, before S210, it also includes: normalizing the denoised real number spectrum to obtain the normalized denoised real number spectrum; S210 specifically includes: dereverberation processing the normalized denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum.

[0083] Among them, normalization processing is a process of scaling the data so that the data is limited to a preset interval, and the preset interval can be, for example, the interval [0,1]. Through normalization processing, the denoised real number spectrum can be normalized to a real number spectrum with a mean of zero and a variance of 1. Normalization processing algorithms include BN (Batch Normalization) algorithm, LN (Layer Normalization), IN (Instance Normalization), etc.

[0084] In the above embodiment, the computer device normalizes the denoised real number spectrum, and then dereverberates the normalized denoised real number spectrum through the reverberation eliminator network, which can prevent the reverberation eliminator network from experiencing gradient vanishing or gradient explosion during the back propagation process, thereby improving the accuracy of the reverberation eliminator network and thus improving the signal quality of the enhanced speech signal.

[0085] In one embodiment, before S210, it also includes: normalizing the denoised real number spectrum to obtain the normalized denoised real number spectrum; S210 specifically includes: performing dereverberation processing on the normalized denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum. S212 specifically includes: performing inverse normalization processing on the enhanced real number spectrum to obtain an inverse normalized enhanced real number spectrum; performing inverse Fourier transform on the inverse normalized enhanced real number spectrum to obtain an original function of the enhanced real number spectrum; and generating an enhanced speech signal based on the original function.

[0086] Among them, the denormalization is the inverse operation of the normalization process, which is used to restore the data normalized within the preset interval to the original data. The computer device performs normalization processing on the denoised real number spectrum before inputting the denoised real number spectrum into the reverberation elimination network, so that the reverberation elimination network performs dereverberation processing on the denoised real number spectrum after the normalization processing. After the reverberation interference in the denoised real number spectrum is removed by the reverberation elimination network, the computer device performs denormalization processing on the enhanced real number spectrum output from the reverberation elimination network.

[0087] The original function is a function used to describe the time domain signal corresponding to the enhanced real spectrum. For example, assuming that the enhanced real spectrum is X(w), the original function f(t)=IFFT(X(w)). The computer device generates an enhanced speech signal based on the original function.

[0088] In the above embodiment, the computer device normalizes the denoised real number spectrum and performs dereverberation processing on the normalized denoised real number spectrum through the reverberation elimination network to obtain an enhanced real number spectrum. Then, the enhanced real number spectrum is denormalized and the denormalized enhanced real number spectrum is inversely transformed by Fourier to obtain the original function of the enhanced real number spectrum, and an enhanced speech signal is generated based on the original function. Therefore, the enhanced speech signal can be restored by the enhanced real number spectrum that eliminates noise and reverberation interference, thereby improving the quality of the speech signal.

[0089] In one embodiment, Figure 4 As shown, before S206, the following steps are also included:

[0090] S402, obtaining original speech signal samples and original real spectrum samples corresponding to the original speech signal samples.

[0091] The original speech signal sample may be a speech signal sample obtained by a sensor, including various signal formats such as AIFF, MPEG, MP3 or MIDI, etc. The original real spectrum sample is a real spectrum corresponding to the original speech signal sample, and the original speech signal can be restored according to the original real spectrum sample.

[0092] In one embodiment, a computer device performs frame processing on an original speech signal sample to obtain at least two speech signal frame samples; filters each speech signal frame sample through a window function to obtain a filtered speech signal frame sample; fills the filtered speech signal frame sample according to a preset frame length; performs a short-time Fourier transform on the filled speech signal frame sample to obtain an original real spectrum sample corresponding to the original speech signal sample.

[0093] S404, extracting speech signal sample features corresponding to the original speech signal samples.

[0094] The speech signal sample feature is a feature used to represent the sound characteristics of the original speech signal sample, which can be one or more features of AMS features, RASTA-PLP features, and MFCC features. In one embodiment, the computer device divides the original speech signal sample into a plurality of speech signal frame samples, and then performs windowing processing on the speech signal frame samples according to a window function, and extracts the speech signal feature from the speech signal frame samples after the windowing processing.

[0095] S406: Process the speech signal sample features through the initial estimation network to obtain a second masking value.

[0096] The initial estimation network may be a CNN, ResNet, LSTM, or BLSTM network. In one embodiment, the computer device inputs the speech signal sample features into the input layer of the initial estimation network, then calculates the speech signal sample features through the hidden layer of the initial estimation network, and finally outputs the calculated second masking value through the output layer.

[0097] S408: Determine denoised real spectrum samples based on the second masking value and the original real spectrum samples.

[0098] The denoised real spectrum sample is a real spectrum corresponding to the original speech signal sample with noise removed. The original speech signal sample except for noise interference can be restored according to the denoised real spectrum sample. In one embodiment, the computer device can perform a mask operation on the original real spectrum sample according to the second masking value to obtain the denoised real spectrum sample. In another embodiment, the computer device can multiply the second masking value and the original real spectrum sample to obtain the denoised real spectrum sample.

[0099] S410, performing dereverberation processing on the denoised real spectrum samples through an initial dereverberation network to obtain enhanced real spectrum samples.

[0100] The initial reverberation elimination network may be a network such as CNN, ResNet, LSTM or BLSTM, including a convolution layer, an activation layer, a normalization layer and a pooling layer, etc. The enhanced real spectrum sample is the real spectrum of the original speech signal sample with noise and reverberation eliminated, and describes the enhanced speech signal sample from the frequency domain.

[0101] S412, generating enhanced speech signal samples according to the enhanced real spectrum samples.

[0102] The enhanced speech signal samples are original speech signal samples with noise and reverberation interference removed, and can be speech signals in various formats such as AIFF, MPEG, MP3, MIDI, etc. Since the enhanced real spectrum samples describe the enhanced speech signal samples from the frequency domain, the original speech signal samples with noise and reverberation interference removed can be obtained according to the enhanced real spectrum samples.

[0103] S414, determining a loss value based on the speech signal sample and the enhanced speech signal sample.

[0104] The loss value is a value used to measure the difference between the speech signal sample and the enhanced speech signal sample, and may be a cross entropy loss value or a mean square error loss value, etc. In one embodiment, the computer device calculates the mean square error between the speech signal sample and the enhanced speech signal sample, and uses the calculated mean square error as the loss value.

[0105] S416, adjusting network parameters according to the loss value; the network parameters include network parameters of the initial estimation network and network parameters of the initial reverberation elimination network.

[0106] The computer device may adjust network parameters of a network consisting of an initial estimation network and an initial reverberation elimination network according to the loss value so that the loss value is less than a preset threshold.

[0107] S418, obtaining an estimation network and a reverberation elimination network based on the adjusted network parameters.

[0108] When the adjustment is completed, an estimation network and a reverberation elimination network are obtained according to the adjusted network parameters, so that the loss value between the speech signal sample and the enhanced speech signal sample is less than a preset threshold value, thereby improving the accuracy of the estimation network and the reverberation elimination network, so that the noise and reverberation interference in the original speech signal can be better removed through the estimation network and the reverberation elimination network, thereby improving the signal quality of the enhanced speech signal.

[0109] In one embodiment, Figure 5As shown, the computer device obtains the original speech signal and extracts the speech signal features of the original speech signal. The extracted speech signal features are input into the estimation network, and the first masking value is predicted by the estimation network, and then the first masking value is multiplied by the original real number spectrum to obtain the denoised real number spectrum. The computer device normalizes the denoised real number spectrum, and inputs the normalized denoised real number spectrum into the reverberation elimination network, and obtains the enhanced real number spectrum through the reverberation elimination network. The computer device performs denormalization processing on the enhanced real number spectrum, and performs inverse Fourier transform on the denormalized enhanced real number spectrum to obtain an enhanced speech signal.

[0110] In one embodiment, Figure 6 As shown, the speech enhancement system includes a speech denoising unit, a reverberation elimination unit, a signal reconstruction unit and a parameter adjustment unit. The computer device inputs the original speech signal into the speech denoising unit, and the speech denoising unit extracts the speech signal features corresponding to the original speech signal, and calls the estimation network trained by the parameter adjustment unit to process the speech signal features to obtain a first masking value, and determines the denoised real number spectrum according to the first masking value and the original real number spectrum. The computer device inputs the denoised real number spectrum into the reverberation elimination unit, and the reverberation elimination unit calls the reverberation elimination network trained by the parameter adjustment unit to perform dereverberation processing on the denoised real number spectrum to obtain an enhanced real number spectrum. The computer device inputs the enhanced real number spectrum into the signal reconstruction unit, and generates an enhanced speech signal through the signal reconstruction unit.

[0111] In one embodiment, Figure 7 As shown, the speech signal generation method comprises the following steps:

[0112] S702, obtaining original speech signal samples and original real spectrum samples corresponding to the original speech signal samples, and extracting speech signal sample features corresponding to the original speech signal samples.

[0113] S704, processing the speech signal sample features through the initial estimation network, and determining the denoised real spectrum samples based on the processed second masking values ​​and the original real spectrum samples.

[0114] S706, performing dereverberation processing on the noise reduction real spectrum samples through the initial dereverberation network to obtain enhanced real spectrum samples and generate enhanced speech signal samples according to the enhanced real spectrum samples.

[0115] S708, determining a loss value based on the speech signal sample and the enhanced speech signal sample.

[0116] S710, adjusting network parameters according to the loss value; the network parameters include network parameters of an initial estimation network and network parameters of an initial reverberation elimination network, and obtaining an estimation network and a reverberation elimination network based on the adjusted network parameters.

[0117] S712, acquiring an original speech signal and performing frame processing on the original speech signal to obtain at least two speech signal frames.

[0118] S714, filtering each speech signal frame by using a window function to obtain a filtered speech signal frame.

[0119] S716, padding the filtered speech signal frame according to a preset frame length, and performing short-time Fourier transform on the padded speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

[0120] S718, extracting speech signal features corresponding to the original speech signal.

[0121] S720, processing the speech signal feature through the estimation network, and determining the denoised real spectrum based on the first masking value obtained by the processing and the original real spectrum.

[0122] S722, normalize the denoised real number spectrum to obtain a normalized denoised real number spectrum.

[0123] S724, performing dereverberation processing on the normalized denoised real number spectrum through a dereverberation network to obtain an enhanced real number spectrum.

[0124] S726, performing an inverse normalization process on the enhanced real number spectrum, and performing an inverse Fourier transform on the enhanced real number spectrum after the inverse normalization process to obtain an original function of the enhanced real number spectrum.

[0125] S728, generating an enhanced speech signal based on the original function.

[0126] For the specific contents of S702 to S728 above, reference may be made to the specific implementation process described above.

[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0128] Based on the same inventive concept, the embodiment of the present application also provides a speech signal generating device for implementing the speech signal generating method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more speech signal generating device embodiments provided below can refer to the limitations of the speech signal generating method above, and will not be repeated here.

[0129] In one embodiment, Figure 8 As shown, a speech signal generating device is provided, comprising: an acquisition module 802, an extraction module 804, a processing module 806, a determination module 808 and a generation module 810, wherein:

[0130] An acquisition module 802 is used to acquire an original speech signal and an original real number spectrum corresponding to the original speech signal;

[0131] An extraction module 804 is used to extract speech signal features corresponding to the original speech signal;

[0132] A processing module 806, configured to process the speech signal feature through an estimation network to obtain a first masking value;

[0133] A determination module 808, configured to determine a denoised real number spectrum based on the first masking value and the original real number spectrum;

[0134] The processing module 806 is further used to perform dereverberation processing on the noise reduction real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum;

[0135] The generating module 810 is configured to generate an enhanced speech signal according to the enhanced real number spectrum.

[0136] In the above embodiment, the original speech signal and the original real number spectrum corresponding to the original speech signal are obtained, and the speech signal features corresponding to the original speech signal are extracted. The speech signal features are processed by the estimation network to obtain a first masking value, and the noise reduction real number spectrum is determined based on the first masking value and the original real number spectrum. The noise reduction real number spectrum obtained eliminates the influence of noise, thereby achieving the purpose of removing noise. The noise reduction real number spectrum is dereverberated by the reverberation elimination network, and the influence of reverberation is eliminated in the enhanced real number spectrum obtained. Finally, an enhanced speech signal is generated according to the enhanced real number spectrum, thereby removing noise and reverberation in the original speech signal and improving the quality of the speech signal.

[0137] In one embodiment, the acquisition module 802 is further configured to:

[0138] Acquire an original speech signal and perform frame processing on the original speech signal to obtain at least two speech signal frames;

[0139] Filter each speech signal frame by using a window function to obtain a filtered speech signal frame;

[0140] Filling the filtered speech signal frame according to a preset frame length;

[0141] Perform short-time Fourier transform on the padded speech signal frame to obtain the original real number spectrum corresponding to the original speech signal.

[0142] In one embodiment, the processing module 806 is further configured to:

[0143] Normalizing the denoised real number spectrum to obtain a normalized denoised real number spectrum;

[0144] The normalized denoised real spectrum is denoised through a reverberation eliminator network to obtain an enhanced real spectrum.

[0145] In one embodiment, the generating module 810 is further configured to:

[0146] Performing a denormalization process on the enhanced real number spectrum to obtain a denormalized enhanced real number spectrum;

[0147] Perform inverse Fourier transform on the enhanced real spectrum after denormalization to obtain the original function of the enhanced real spectrum;

[0148] Generate an enhanced speech signal based on the original function.

[0149] In one embodiment, both the estimation network and the reverberation removal network are bidirectional long short-term memory networks.

[0150] In one embodiment, Fig. 9 As shown, the device also includes:

[0151] The acquisition module 802 is further used to acquire original speech signal samples and original real spectrum samples corresponding to the original speech signal samples;

[0152] The extraction module 804 is also used to extract the speech signal sample features corresponding to the original speech signal sample;

[0153] The processing module 806 is further used to process the speech signal sample feature through the initial estimation network to obtain a second masking value;

[0154] The determination module 808 is further configured to determine the denoised real spectrum samples based on the second masking value and the original real spectrum samples;

[0155] The processing module 806 is further used to perform dereverberation processing on the noise reduction real spectrum samples through the initial dereverberation network to obtain enhanced real spectrum samples;

[0156] The generating module 810 is further configured to generate an enhanced speech signal sample according to the enhanced real spectrum sample;

[0157] The determination module 808 is further configured to determine a loss value based on the speech signal sample and the enhanced speech signal sample;

[0158] The adjustment module 812 is used to adjust the network parameters according to the loss value; the network parameters include the network parameters of the initial estimation network and the network parameters of the initial reverberation elimination network; the estimation network and the reverberation elimination network are obtained based on the adjusted network parameters.

[0159] Each module in the above-mentioned speech signal generating device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0160] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store voice signal generation data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a voice signal generation method is implemented.

[0161] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for generating a voice signal is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0162] Those skilled in the art will understand that Fig.10 , 11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0163] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining an original speech signal and an original real number spectrum corresponding to the original speech signal; extracting speech signal features corresponding to the original speech signal; processing the speech signal features through an estimation network to obtain a first masking value; determining a denoised real number spectrum based on the first masking value and the original real number spectrum; denoising the denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum; and generating an enhanced speech signal based on the enhanced real number spectrum.

[0164] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining an original speech signal and performing frame processing on the original speech signal to obtain at least two speech signal frames; filtering each speech signal frame through a window function to obtain a filtered speech signal frame; filling the filtered speech signal frame according to a preset frame length; performing short-time Fourier transform on the filled speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

[0165] In one embodiment, when the processor executes the computer program, the following steps are also implemented: normalizing the denoised real number spectrum to obtain a normalized denoised real number spectrum; dereverberating the normalized denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum.

[0166] In one embodiment, when the processor executes the computer program, the following steps are also implemented: performing denormalization processing on the enhanced real number spectrum to obtain the denormalized enhanced real number spectrum; performing inverse Fourier transform on the denormalized enhanced real number spectrum to obtain the original function of the enhanced real number spectrum; and generating an enhanced speech signal based on the original function.

[0167] In one embodiment, both the estimation network and the reverberation removal network are bidirectional long short-term memory networks.

[0168] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining original speech signal samples and original real spectrum samples corresponding to the original speech signal samples; extracting speech signal sample features corresponding to the original speech signal samples; processing the speech signal sample features through an initial estimation network to obtain a second masking value; determining denoised real spectrum samples based on the second masking value and the original real spectrum samples; denoising the denoised real spectrum samples through an initial reverberation elimination network to obtain enhanced real spectrum samples; generating enhanced speech signal samples based on the enhanced real spectrum samples; determining a loss value based on the speech signal samples and the enhanced speech signal samples; adjusting network parameters based on the loss value; the network parameters include network parameters of the initial estimation network and network parameters of the initial reverberation elimination network; obtaining an estimation network and a reverberation elimination network based on the adjusted network parameters.

[0169] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining an original speech signal and an original real number spectrum corresponding to the original speech signal; extracting speech signal features corresponding to the original speech signal; processing the speech signal features through an estimation network to obtain a first masking value; determining a denoised real number spectrum based on the first masking value and the original real number spectrum; denoising the denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum; and generating an enhanced speech signal based on the enhanced real number spectrum.

[0170] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining an original speech signal and performing frame processing on the original speech signal to obtain at least two speech signal frames; filtering each speech signal frame through a window function to obtain a filtered speech signal frame; filling the filtered speech signal frame according to a preset frame length; performing short-time Fourier transform on the filled speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

[0171] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: normalizing the denoised real number spectrum to obtain a normalized denoised real number spectrum; dereverberating the normalized denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum.

[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: performing inverse normalization processing on the enhanced real number spectrum to obtain the enhanced real number spectrum after the inverse normalization processing; performing inverse Fourier transform on the enhanced real number spectrum after the inverse normalization processing to obtain the original function of the enhanced real number spectrum; and generating an enhanced speech signal based on the original function.

[0173] In one embodiment, both the estimation network and the reverberation removal network are bidirectional long short-term memory networks.

[0174] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining original speech signal samples and original real spectrum samples corresponding to the original speech signal samples; extracting speech signal sample features corresponding to the original speech signal samples; processing the speech signal sample features through an initial estimation network to obtain a second masking value; determining denoised real spectrum samples based on the second masking value and the original real spectrum samples; denoising the denoised real spectrum samples through an initial reverberation elimination network to obtain enhanced real spectrum samples; generating enhanced speech signal samples based on the enhanced real spectrum samples; determining a loss value based on the speech signal samples and the enhanced speech signal samples; adjusting network parameters based on the loss value; the network parameters include network parameters of the initial estimation network and network parameters of the initial reverberation elimination network; obtaining an estimation network and a reverberation elimination network based on the adjusted network parameters.

[0175] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps: obtaining an original speech signal and an original real number spectrum corresponding to the original speech signal; extracting speech signal features corresponding to the original speech signal; processing the speech signal features through an estimation network to obtain a first masking value; determining a denoised real number spectrum based on the first masking value and the original real number spectrum; denoising the denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum; and generating an enhanced speech signal based on the enhanced real number spectrum.

[0176] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining an original speech signal and performing frame processing on the original speech signal to obtain at least two speech signal frames; filtering each speech signal frame through a window function to obtain a filtered speech signal frame; filling the filtered speech signal frame according to a preset frame length; performing short-time Fourier transform on the filled speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

[0177] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: normalizing the denoised real number spectrum to obtain a normalized denoised real number spectrum; dereverberating the normalized denoised real number spectrum through a reverberation elimination network to obtain an enhanced real number spectrum.

[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: performing inverse normalization processing on the enhanced real number spectrum to obtain the enhanced real number spectrum after the inverse normalization processing; performing inverse Fourier transform on the enhanced real number spectrum after the inverse normalization processing to obtain the original function of the enhanced real number spectrum; and generating an enhanced speech signal based on the original function.

[0179] In one embodiment, both the estimation network and the reverberation removal network are bidirectional long short-term memory networks.

[0180] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining original speech signal samples and original real spectrum samples corresponding to the original speech signal samples; extracting speech signal sample features corresponding to the original speech signal samples; processing the speech signal sample features through an initial estimation network to obtain a second masking value; determining denoised real spectrum samples based on the second masking value and the original real spectrum samples; denoising the denoised real spectrum samples through an initial reverberation elimination network to obtain enhanced real spectrum samples; generating enhanced speech signal samples based on the enhanced real spectrum samples; determining a loss value based on the speech signal samples and the enhanced speech signal samples; adjusting network parameters based on the loss value; the network parameters include network parameters of the initial estimation network and network parameters of the initial reverberation elimination network; obtaining an estimation network and a reverberation elimination network based on the adjusted network parameters.

[0181] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0184] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for generating a speech signal, characterized in that: The method comprises: Acquire an original speech signal and an original real number spectrum corresponding to the original speech signal; Extracting speech signal features corresponding to the original speech signal; Processing the speech signal feature through an estimation network to obtain a first masking value; Determine a denoised real number spectrum based on the first masking value and the original real number spectrum; Normalizing the denoised real number spectrum to obtain the normalized denoised real number spectrum; Performing multi-layer convolution operations on the normalized denoised real number spectrum through multiple convolution layers in a bidirectional long short-term memory network to obtain an enhanced real number spectrum; Performing an anti-normalization process on the enhanced real number spectrum to obtain the enhanced real number spectrum after the anti-normalization process; Performing inverse Fourier transform on the enhanced real number spectrum after the inverse normalization process to obtain a function of the time domain signal corresponding to the enhanced real number spectrum; An enhanced speech signal is generated based on a function of the time domain signal corresponding to the enhanced real spectrum.

2. The method according to claim 1, characterized in that The obtaining of the original speech signal and the original real number spectrum corresponding to the original speech signal comprises: Acquire an original speech signal and perform frame processing on the original speech signal to obtain at least two speech signal frames; Filtering each of the speech signal frames by using a window function to obtain the filtered speech signal frames; Filling the filtered speech signal frame according to a preset frame length; Performing short-time Fourier transform on the padded speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

3. The method according to claim 1, characterized in that: The estimation network is a bidirectional long short-term memory network.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire an original speech signal sample and an original real number spectrum sample corresponding to the original speech signal sample; Extracting speech signal sample features corresponding to the original speech signal sample; Processing the speech signal sample feature through an initial estimation network to obtain a second masking value; Determine a denoised real spectrum sample based on the second masking value and the original real spectrum sample; Performing dereverberation processing on the noise reduction real spectrum samples through an initial dereverberation network to obtain enhanced real spectrum samples; Generating enhanced speech signal samples according to the enhanced real spectrum samples; determining a loss value based on the speech signal sample and the enhanced speech signal sample; Adjusting network parameters according to the loss value; the network parameters include network parameters of the initial estimation network and network parameters of the initial reverberation elimination network; The estimation network and the reverberation elimination network are obtained based on the adjusted network parameters.

5. The method according to claim 1, characterized in that The speech signal feature is a feature used to represent the sound characteristics of the original speech signal.

6. A speech signal generating device, characterized in that: The device comprises: An acquisition module, used to acquire an original speech signal and an original real number spectrum corresponding to the original speech signal; An extraction module, used to extract speech signal features corresponding to the original speech signal; A processing module, configured to process the speech signal feature through an estimation network to obtain a first masking value; A determination module, configured to determine a denoised real number spectrum based on the first masking value and the original real number spectrum; The processing module is further used to perform normalization processing on the denoised real number spectrum to obtain the denoised real number spectrum after normalization processing; Performing multi-layer convolution operations on the normalized denoised real number spectrum through multiple convolution layers in a bidirectional long short-term memory network to obtain an enhanced real number spectrum; A generating module, used for performing a denormalization process on the enhanced real number spectrum to obtain the enhanced real number spectrum after the denormalization process; Performing inverse Fourier transform on the enhanced real number spectrum after the inverse normalization process to obtain a function of the time domain signal corresponding to the enhanced real number spectrum; An enhanced speech signal is generated based on a function of the time domain signal corresponding to the enhanced real spectrum.

7. The device according to claim 6, characterized in that The acquisition module is used to acquire an original voice signal and perform frame processing on the original voice signal to obtain at least two voice signal frames; Filtering each of the speech signal frames by using a window function to obtain the filtered speech signal frames; Filling the filtered speech signal frame according to a preset frame length; Performing short-time Fourier transform on the padded speech signal frame to obtain an original real number spectrum corresponding to the original speech signal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Noise reduction method and device thereof

    CN111105809A

  • Single-channel voice simultaneous noise reduction and reverberation removal system

    CN112017682A