A speech processing method, device, electronic device and readable medium

By calculating the glottal and excitation gain of the speech frame for gain control, and using the neural network to predict the gain, it solves the problems of high data completeness and poor processing of uncovered noise types in the existing technology, and improves the denoising effect of the speech signal.

CN114333891BActive Publication Date: 2024-08-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111237541.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-08-30
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Existing speech processing technology has poor noise reduction effect when faced with noise types not covered in the training data, and has high requirements on data completeness, which affects the denoising effect.

Method used

By obtaining the audio feature vector of the speech frame, calculating the glottal gain and excitation gain, performing gain control to remove noise, and using the neural network to predict the gain, it reduces the dependence on the noise type and improves the noise reduction effect.

Benefits of technology

Effectively handle uncovered noise types, reduce the impact of data completeness on noise reduction results, improve the quality of speech signals, and reduce the need for various types of noise training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114333891B
    Figure CN114333891B
Patent Text Reader

Abstract

The present application relates to a speech processing method, device, electronic device and readable medium. The method comprises: obtaining an audio feature vector of a speech frame to be processed; calculating a glottal gain according to the audio feature vector to obtain a first gain, the first gain corresponding to the glottal feature of the speech frame to be processed; calculating an excitation gain according to the audio feature vector to obtain a second gain, the second gain corresponding to the excitation signal of the speech frame to be processed; performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame. The method can reduce the impact of data completeness on the noise reduction results, and can effectively process the noise caused by the noise types and noise environment not covered in the training data, thereby improving the noise reduction effect.
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 speech processing method, device, electronic device and readable medium. Background Art

[0002] With the development of computer technology, various voice communication or voice control technologies have emerged. Such technologies allow users to communicate over long distances or improve the efficiency of human-computer interaction. In real environments, microphones and other devices will collect various environmental noises when users are in their surroundings, which will affect the quality of voice communication to varying degrees. Therefore, voice enhancement has become an important topic.

[0003] In related technologies, deep learning methods are used to learn signal features of noisy speech audio, thereby predicting the proportion of speech components and noise components, and then enhancing the noisy speech based on the predicted results to achieve the effect of noise reduction.

[0004] However, in the above scheme, it is necessary to collect training data for various types of noise to train the model, so that the trained model can handle the noise types covered in the training data. Therefore, the processing effect of the model is affected by the completeness of the training data. When faced with situations that are not in the training data, the noise reduction effect is poor. Summary of the invention

[0005] Based on the above technical problems, the present application provides a speech processing method, device, electronic device and readable medium to reduce the impact of data completeness on noise reduction results, and can effectively process noise types not covered in the training data and noise caused by the noise environment, thereby improving the noise reduction effect.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of an embodiment of the present application, there is provided a speech processing method, comprising:

[0008] Obtaining an audio feature vector of a speech frame to be processed;

[0009] Calculate the glottal gain according to the audio feature vector to obtain a first gain, where the first gain corresponds to the glottal feature of the speech frame to be processed;

[0010] Calculate an excitation gain according to the audio feature vector to obtain a second gain, where the second gain corresponds to an excitation signal of the speech frame to be processed;

[0011] The to-be-processed speech frame is gain-controlled according to the first gain and the second gain to obtain a target speech frame.

[0012] According to one aspect of an embodiment of the present application, there is provided a speech processing device, including:

[0013] A vector acquisition module, used to acquire the audio feature vector of the speech frame to be processed;

[0014] A glottal gain module, configured to calculate a glottal gain according to the audio feature vector to obtain a first gain, wherein the first gain is determined according to the glottal feature of the speech frame to be processed;

[0015] An excitation gain module, used for calculating an excitation gain according to the audio feature vector to obtain a second gain, wherein the second gain is determined according to an excitation signal of the speech frame to be processed;

[0016] The gain control module is used to perform gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame.

[0017] In some embodiments of the present application, based on the above technical solution, the glottal gain module includes:

[0018] A first neural network submodule, used for inputting the audio feature vector into a first neural network, wherein the first neural network is trained according to glottal features corresponding to a noisy speech frame and glottal features corresponding to a denoised speech frame corresponding to the noisy speech frame;

[0019] The glottal gain prediction submodule is used to perform gain prediction according to the audio feature vector through the first neural network to obtain the first gain.

[0020] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule includes:

[0021] a gain calculation unit, configured to perform gain calculation on the audio feature vector through the first neural network to obtain a first glottal gain corresponding to each subband in the speech frame to be processed, wherein the subband corresponds to at least one frequency band in the speech frame to be processed;

[0022] The gain generating unit is configured to combine the first glottal gains corresponding to the respective sub-bands as the first gain.

[0023] In some embodiments of the present application, based on the above technical solution, the speech processing device includes:

[0024] A gain analysis unit, configured to predict and analyze the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to determine a second glottal gain corresponding to a long-term correlation feature of the audio feature vector;

[0025] The gain generation unit includes:

[0026] The gain combining subunit is configured to combine the first glottal gain and the second glottal gain corresponding to each of the sub-bands as the first gain.

[0027] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule includes:

[0028] a first parameter prediction unit, configured to perform parameter prediction according to the audio feature vector through the first neural network to obtain a first glottal parameter, wherein the first glottal parameter is used to represent a short-time correlation feature of the audio feature vector;

[0029] A first gain prediction unit, configured to perform gain prediction according to the first glottal parameter through the first neural network to obtain the first prediction result;

[0030] A gain determination unit is used to determine the first gain according to the first prediction result.

[0031] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule further includes:

[0032] A second parameter prediction unit is used to perform parameter prediction according to the audio feature vector and the pitch period of the speech frame to be processed through the first neural network to obtain a second glottal parameter, wherein the second glottal parameter is used to represent the long-term correlation feature of the audio feature vector;

[0033] A second gain prediction unit, configured to perform gain prediction according to the second glottal parameter by using the first neural network to obtain a second prediction result;

[0034] The gain determination unit comprises:

[0035] The prediction result merging subunit is used to merge the first prediction result and the second prediction result to determine the first gain.

[0036] In some embodiments of the present application, based on the above technical solution, the excitation gain module includes:

[0037] A second neural network submodule, used for inputting the audio feature vector into a second neural network, wherein the second neural network is trained according to an excitation signal of a noisy speech frame and an excitation signal of a denoised speech frame corresponding to the noisy speech frame;

[0038] The excitation gain prediction submodule is used to perform gain prediction according to the excitation signal corresponding to the audio feature vector through the second neural network to obtain the second gain.

[0039] In some embodiments of the present application, based on the above technical solution, the vector acquisition module includes:

[0040] A spectrum coefficient acquisition submodule, used to acquire the spectrum coefficients of the speech frame to be processed;

[0041] The feature calculation submodule is used to input the spectral coefficients of the speech frame to be processed into a preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed. The preprocessing neural network is trained based on the spectral coefficients of the noisy speech frame and the spectral coefficients of the denoised speech frame corresponding to the noisy speech frame.

[0042] In some embodiments of the present application, based on the above technical solution, the speech processing device further includes:

[0043] A historical spectrum coefficient acquisition module, used to acquire the spectrum coefficients of the historical speech frames of the speech frame to be processed;

[0044] The feature calculation submodule includes:

[0045] The feature vector calculation unit is used to input the spectrum coefficients of the speech frame to be processed and the spectrum coefficients of the historical speech frame into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed.

[0046] In some embodiments of the present application, based on the above technical solution, the gain control module includes:

[0047] A first enhancement submodule, configured to enhance the speech frame to be processed according to the second gain to obtain a first enhancement result;

[0048] A second gain submodule, configured to perform a gain operation on each subband in the first enhancement result according to the first gain to obtain a second enhancement result;

[0049] The inverse time-frequency conversion submodule is used to perform inverse time-frequency conversion according to the second enhancement result to obtain an enhanced speech frame as a target speech frame.

[0050] In some embodiments of the present application, based on the above technical solution, the speech processing device further includes:

[0051] An amplitude spectrum calculation module, used for calculating the amplitude spectrum and phase spectrum corresponding to the speech frame to be processed according to the speech frame to be processed;

[0052] The gain control module includes:

[0053] an amplitude spectrum gain submodule, configured to perform gain control on the amplitude spectrum corresponding to the speech frame to be processed according to the first gain and the second gain, so as to obtain an enhanced amplitude spectrum;

[0054] The amplitude spectrum inverse time-frequency conversion submodule is used to perform inverse time-frequency conversion according to the enhanced amplitude spectrum and the phase spectrum corresponding to the speech frame to be processed to obtain a target speech frame.

[0055] In some embodiments of the present application, based on the above technical solution, the amplitude spectrum gain submodule includes:

[0056] an amplitude spectrum enhancement unit, configured to enhance the amplitude spectrum of the speech frame to be processed according to the second gain to obtain a first amplitude spectrum enhancement result;

[0057] The amplitude spectrum gain unit is used to perform gain operation on each sub-band in the first amplitude spectrum enhancement result according to the first gain to obtain an enhanced amplitude spectrum.

[0058] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a speech processing method as in the above technical solution by executing the executable instructions.

[0059] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the speech processing method in the above technical solution is implemented.

[0060] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the speech processing method provided in the above-mentioned various optional implementations.

[0061] In an embodiment of the present application, a first gain and a second gain are calculated for the glottal feature and the excitation signal of the noisy speech signal, respectively, and then the gain control is performed according to the first gain and the second gain, so as to denoise the noisy speech signal. Performing noise reduction processing according to the gain corresponding to the glottal feature and the excitation signal can specifically reduce the noise of the part other than the human voice part in the speech signal, so that it is no longer necessary to train for various types of noise during the noise reduction process, thereby reducing the impact of data completeness on the noise reduction result, and can effectively process the noise caused by the noise type and noise environment not covered in the training data, thereby improving the noise reduction effect.

[0062] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0064] Figure 1 A schematic diagram of an exemplary system architecture of the technical solution of this application in an application scenario;

[0065] Figure 2 A schematic diagram of a digital model of speech signal generation is shown;

[0066] Figure 3 A schematic diagram of an example implementation of a glottal filter in an embodiment of the present application;

[0067] Figure 4 A schematic diagram of another exemplary implementation of a glottal filter in an embodiment of the present application;

[0068] Figure 5 A schematic diagram showing the frequency response of the excitation signal and the glottal filter decomposed from the original speech signal under different signal-to-noise ratios is shown;

[0069] Figure 6 A flowchart of a speech processing method according to an embodiment of the present application is shown;

[0070] Figure 7 is a schematic diagram of the structure of a first neural network according to a specific embodiment;

[0071] Figure 8 is a schematic diagram of the structure of a second neural network according to a specific embodiment;

[0072] Fig. 9 is a schematic diagram of the structure of a second neural network according to a specific embodiment;

[0073] Fig.10 A schematic diagram of the overall process in the embodiment of the present application;

[0074] Fig.11 It is a schematic diagram of another overall process in an embodiment of the present application;

[0075] Fig.12 The following schematically shows a block diagram of the composition of the speech processing device in an embodiment of the present application;

[0076] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0077] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0078] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0079] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0080] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0081] Noise in speech signals can greatly reduce speech quality and affect the user's auditory experience. Therefore, in order to improve the quality of speech signals, it is necessary to enhance the speech signals to remove noise as much as possible and retain the original speech information in the speech signals, that is, to obtain a pure signal after denoising.

[0082] The solution of the present application can be applied to voice call scenarios, such as voice calls through instant messaging software, multi-person calls in game applications, etc., and can also be applied to various cloud-based services, such as cloud games, cloud conferences, cloud calls, and cloud education, etc. Among them, voice enhancement can be performed according to the solution at the voice sending end, the voice receiving end, or the server that provides voice communication services.

[0083] Cloud conferencing is an important part of online office work. In a cloud conference, after the sound collection device of the participants of the cloud conference collects the voice signal of the speaker, it needs to send the collected voice signal to other conference participants. This process involves the transmission and playback of voice signals between multiple participants. If the noise signal mixed in the voice signal is not processed, it will greatly affect the auditory experience of the conference participants. In this scenario, the solution of this application can be used to enhance the voice signal in the cloud conference, so that the voice signal heard by the conference participants is the enhanced voice signal, thereby improving the quality of the voice signal.

[0084] Cloud conferencing is an efficient, convenient and low-cost conferencing format based on cloud computing technology. Users only need to use the Internet interface and perform simple and easy-to-use operations to quickly and efficiently share voice, data files and videos with teams and customers around the world. The cloud conferencing service provider helps users operate complex technologies such as data transmission and processing during the meeting.

[0085] At present, domestic cloud conferences are mainly concentrated in the service content based on the SaaS (Software as a Service) model, including telephone, network, video and other service forms. Video conferences based on cloud computing are called cloud conferences. In the era of cloud conferences, data transmission, processing and storage are all handled by the computer resources of the video conference provider. Users no longer need to purchase expensive hardware and install cumbersome software. They only need to open the client and enter the corresponding interface to conduct efficient remote conferences.

[0086] The cloud conference system supports dynamic cluster deployment of multiple servers and provides multiple high-performance servers, which greatly improves the stability, security and availability of conferences. In recent years, video conferencing has been welcomed by many users because it can greatly improve communication efficiency, continuously reduce communication costs, and bring about internal management upgrades. It has been widely used in various fields such as government affairs, transportation, finance, operators, education, and enterprises.

[0087] Next, the application scenario of the embodiment of the present application is introduced by taking Voice over Internet Protocol (VoIP) as an example. Figure 1 , Figure 1 This is a schematic diagram of an exemplary system architecture of the technical solution of the present application in an application scenario.

[0088] like Figure 1 As shown, the system architecture includes a sending end 110 and a receiving end 120. The sending end 110 and the receiving end 120 are connected to a network, and the sending end 110 and the receiving end 120 can perform voice communication through the network connection.

[0089] like Figure 1 As shown, the transmitting end 110 includes an acquisition module 111, a pre-enhancement processing module 112 and a coding module 113, wherein the acquisition module 111 is used to acquire voice signals, which can convert the acquired acoustic signals into digital signals; the pre-enhancement processing module 112 is used to enhance the acquired voice signals to remove noise in the acquired voice signals and improve the quality of the voice signals. The coding module 113 is used to encode the enhanced voice signals to improve the anti-interference of the voice signals during transmission. The pre-enhancement processing module 112 can perform voice enhancement according to the method of the present application, and after the voice is enhanced, it is encoded, compressed and transmitted, so as to ensure that the signal received by the receiving end is no longer affected by noise.

[0090] The receiving end 120 includes a decoding module 121, a post-enhancement module 122 and a playing module 123. The decoding module 121 is used to decode the received encoded speech to obtain a decoded signal; the post-enhancement module 122 is used to enhance the decoded speech signal; and the playing module 123 is used to play the enhanced speech signal. The post-enhancement module 122 can also perform speech enhancement according to the method of the present application. In some embodiments, the receiving end 120 can also include a sound effect adjustment module, which is used to adjust the sound effect of the enhanced speech signal.

[0091] In a specific embodiment, speech enhancement may be performed only at the receiving end 120 or only at the transmitting end 110 according to the method of the present application. Of course, speech enhancement may also be performed at both the transmitting end 110 and the receiving end 120 according to the method of the present application.

[0092] In some application scenarios, the terminal equipment in the VoIP system can not only support VoIP communication, but also support other third-party protocols, such as traditional PSTN (Public Switched Telephone Network) circuit domain telephone. However, traditional PSTN services cannot perform voice enhancement. In this scenario, voice enhancement can be performed in the terminal serving as the receiving end according to the method of the present application.

[0093] Before describing this scheme in detail, the speech generation method based on the excitation signal is first introduced. The human vocalization method is that the airflow passing through the vocal cords drives the vocal cords to vibrate and produce sound. The sound generation process of the speech generation method based on the excitation signal includes: generating a noise-like impact signal of a certain energy at the trachea, that is, the excitation signal, which is equivalent to the airflow; the impact signal impacts the glottal filter (equivalent to the human vocal cords), producing a quasi-periodic opening and closing, thereby producing sound. It can be seen that this process simulates the human vocalization process.

[0094] Figure 2 FIG. 1 shows a schematic diagram of a digital model for speech signal generation, through which the generation process of speech signals can be described. Figure 2 As shown, the excitation signal impacts the glottal filter to output a speech signal, wherein the glottal filter is usually configured according to the glottal parameters. The glottal filter can adopt filters in various schemes that use source-filter models to generate speech. For details, please refer to Figure 3 , Figure 3 The glottal filter in the embodiment of the present application is a schematic diagram of an example implementation. Considering the short-term correlation of the speech signal, the glottal filter can be implemented by a Linear Predictive Coding (LPC) filter, and the excitation signal impacts the LPC filter to generate a speech signal.

[0095] On the other hand, according to the classical speech signal processing theory, the LPC filter only reflects the short-term correlation in the utterance, but for voiced sounds (such as vowels), it has long-term correlation (Long-Term Prediction, LTP) (or quasi-periodicity); the glottal filter can also be implemented using multiple filters. For details, please refer to Figure 4 , Figure 4 FIG. 2 is a schematic diagram of another exemplary implementation of the glottal filter in an embodiment of the present application. Figure 4 As shown in FIG. 1 , the glottal filter consists of two parts: the LPC filter and the LTP filter. The LTP filter also receives the pitch period as input. The gene period indicates that when calculating the nth sample, the npth sample point is required, where p is the gene period.

[0096] Figure 5 The figure shows a schematic diagram of decomposing the excitation signal and the frequency response of the glottal filter according to the original speech signal under different signal-to-noise ratios. Figure 5 a shows the frequency response diagram of the original speech signal. Figure 5 b shows a schematic diagram of the frequency response of the glottal filter decomposed from the original speech signal, Figure 5 c is a schematic diagram showing the frequency response of the excitation signal decomposed from the original speech signal. Figure 5 Two original speech signals and the corresponding decomposition results are shown in the figure, which are represented by solid lines and dotted lines respectively. One of the original signals is a 30db signal, and the other is a 0db signal. The undulating part of the frequency response diagram of the original speech signal corresponds to the peak position in the frequency response diagram of the glottal filter. The excitation signal is equivalent to the residual signal (i.e., the excitation signal) after the linear prediction analysis of the original speech signal, so its corresponding frequency response is relatively flat. Figure 5In a, although there are some differences between the two original speech signals of 30db and 0db, the differences are relatively insignificant, and there are many overlapping parts. After decomposition, Figure 5 In the frequency response of the glottal filter in b, the difference between the two is relatively obvious, and the overlap is significantly reduced. Figure 5 In the excitation signal in c, the difference between the two signals is significantly amplified, and the two excitation signals can be clearly distinguished. It can be seen that signal decomposition can more fully reflect the difference between the original speech signals, and gain control based on the decomposition result can also make the gain result accurate.

[0097] It can be seen from the above that an excitation signal and a glottal filter can be decomposed from an original speech signal (i.e., a speech signal that does not contain noise), and the decomposed excitation signal and glottal filter can be used to express the original speech signal, wherein the glottal filter can be expressed by glottal parameters. Conversely, if an excitation signal corresponding to an original speech signal and the glottal parameters used to determine the glottal filter are known, the original speech signal can be reconstructed according to the corresponding excitation signal and glottal filter.

[0098] The solution of the present application is based on this principle, and the gain corresponding to the glottal filter and the gain corresponding to the excitation signal are calculated respectively to perform gain control on the original speech signal, thereby achieving speech enhancement.

[0099] The following is a detailed description of the implementation details of the technical solution of the embodiment of the present application. Figure 6 , Figure 6 FIG. 1 is a flowchart of a speech processing method according to an embodiment of the present application. The method can be executed by a computer device with processing capabilities, such as a terminal, a server, etc., which is not specifically limited here. Figure 6 As shown, the method at least includes the following steps S610 to S640:

[0100] Step S610, obtaining the audio feature vector of the speech frame to be processed.

[0101] The speech signal changes over time rather than steadily and randomly, but the characteristics of the speech signal are strongly correlated in a short time, that is, the speech signal has short-term correlation. Therefore, in the solution of the present application, speech processing is performed in units of speech frames. The speech frame to be processed is the speech frame to be processed currently, which is any frame in the original noisy audio to be processed.

[0102] When obtaining the audio feature vector of the speech frame to be processed, the time domain signal of the speech frame to be processed can be firstly obtained by time-frequency transformation, such as short-term Fourier transform (STFT). Based on the frequency domain representation of the speech frame to be processed obtained by STFT transformation, audio feature extraction can be performed to obtain an audio feature vector. The feature extraction method can be performed according to a preset algorithm or by a trained neural network. The dimension of the audio feature vector usually depends on the number of sample points of the speech frame to be processed and the ratio of windowing overlap adopted during STFT transformation. For example, for the frequency domain representation of 257 sample points, the audio feature vector can be 128-dimensional.

[0103] Step S620, calculating the glottal gain according to the audio feature vector to obtain a first gain, where the first gain corresponds to the glottal feature of the speech frame to be processed.

[0104] Glottal gain calculation is the process of calculating the gain of the glottal filter part corresponding to the speech frame to be processed. The calculated first gain is associated with the glottal feature of the speech frame to be processed. Depending on the glottal model adopted for the speech frame to be processed, the first gain specifically includes multiple sub-gains. For example, for the glottal model of LPC+LTP, the first gain can include a sub-gain corresponding to LPC and a self-gain corresponding to LTP.

[0105] The glottal gain calculation can be performed in a neural network manner. The trained neural network is used to directly output the corresponding first gain according to the audio feature vector. The neural network is trained in a supervised manner, and the training data includes noisy speech and the data annotation corresponding to each speech frame calculated for the noisy speech, that is, the denoised speech. The neural network is trained according to the noisy speech and the denoised speech to output the first gain.

[0106] The glottal gain calculation may also be performed in other ways. For example, the speech frame to be processed is first decomposed according to the glottal model to obtain the glottal parameters of the corresponding glottal filter. Then the glottal parameters and the audio feature vector are input into the neural network for processing, and the neural network simulates the denoised speech according to the glottal parameters and the audio feature vector, and then determines the first gain through the simulated denoised speech and the noisy speech.

[0107] Step S630, calculating an excitation gain according to the audio feature vector to obtain a second gain, where the second gain corresponds to an excitation signal of the speech frame to be processed.

[0108] The excitation gain calculation is a process of calculating the gain of the excitation signal portion corresponding to the speech frame to be processed. The calculated second gain is associated with the excitation signal of the speech frame to be processed. Specifically, the dimension of the second gain usually corresponds to the spectral coefficient of the speech frame to be processed.

[0109] The excitation gain calculation can be performed in a neural network manner. The trained neural network is used to directly output the corresponding second gain according to the audio feature vector. The neural network is trained in a supervised manner, and the training data includes noisy speech and the excitation signal obtained by voice decomposition of the noisy speech corresponding to the denoised speech. The neural network is trained according to the excitation signals of the noisy speech and the denoised speech to output the second gain.

[0110] The excitation gain calculation may also be performed in other ways. For example, the speech frame to be processed is first decomposed according to the glottal model to obtain the corresponding excitation signal. Then the excitation signal and the audio feature vector are both used as inputs to the neural network for processing. The neural network uses the glottal parameters obtained when the speech frame to be processed is decomposed to simulate the denoised speech according to the excitation signal and the audio feature vector, and then determines the second gain through the simulated denoised speech and noisy speech.

[0111] Step S640: Perform gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame.

[0112] Specifically, the frequency domain representation of the speech frame to be processed can be enhanced according to the second gain, and then the result can be enhanced according to the first gain to obtain the enhanced frequency domain representation. Then, an inverse STFT transform is performed according to the enhanced frequency domain representation to obtain the enhanced speech frame to be processed.

[0113] In an embodiment of the present application, a first gain and a second gain are calculated for the glottal feature and the excitation signal of the noisy speech signal, respectively, and then the gain control is performed according to the first gain and the second gain, so as to denoise the noisy speech signal. Performing noise reduction processing according to the gain corresponding to the glottal feature and the excitation signal can specifically reduce the noise of the part other than the human voice part in the speech signal, so that it is no longer necessary to train for various types of noise during the noise reduction process, thereby reducing the impact of data completeness on the noise reduction result, and can effectively process the noise caused by the noise type and noise environment not covered in the training data, thereby improving the noise reduction effect.

[0114] In some embodiments of the present application, based on the above technical solution, the above step S620, performing glottal gain calculation according to the audio feature vector to obtain the first gain, may include the following steps:

[0115] Inputting the audio feature vector into a first neural network, the first neural network is trained based on glottal features corresponding to the noisy speech frame and glottal features corresponding to the denoised speech frame corresponding to the noisy speech frame;

[0116] The first neural network performs gain prediction according to the audio feature vector to obtain a first gain.

[0117] The first neural network may be a model constructed by a long short-term memory neural network, a convolutional neural network, a recurrent neural network, a fully connected neural network, etc., which is not specifically limited here.

[0118] In the process of training, the speech frames containing noise in the training data are first decomposed to obtain the frequency response corresponding to the glottal filter in the glottal model, and then the training is carried out according to the audio feature vector of the speech frame containing noise and the frequency response corresponding to the decomposed glottal filter, and the model parameters of the first neural network are adjusted until the first gain output by the first neural network can make the difference between the glottal features of the noisy speech frame and the glottal features of the denoised speech frame meet the preset requirements. The preset requirements can be calculated by the mean square error method. Through training, the output first gain makes the mean square error between the glottal features of the noisy speech frame and the glottal features of the denoised speech frame meet the set mean square error threshold, so as to judge that the model obtained by training can achieve the expected purpose. Through this training process, the first gain predicted by the first neural network can make the glottal filter of the speech frame to be processed under the glottal model (i.e., glottal filter + excitation signal) and the glottal filter of the pure speech under the glottal model sufficiently similar, so as to have the noise reduction capability.

[0119] The first neural network performs gain prediction according to the audio feature vector to obtain a first gain. Figure 7 is a schematic diagram of the structure of a first neural network according to a specific embodiment. Figure 7 As shown, the first neural network includes three fully connected (FC) layers. The input F(n) is a 128-dimensional audio feature vector. The output of the first FC layer is a 256-dimensional vector, the output of the second FC layer is a 128-dimensional vector, and the output of the third FC layer is a 32-dimensional vector, i.e., the first gain g1(n). Of course, Figure 7 This is merely an illustrative example of the structure of the first neural network and should not be considered as limiting the scope of use of the present application.

[0120] In an embodiment of the present application, a first gain for the glottal feature is obtained through a neural network, and the relationship between the glottal feature and the first gain is learned through the neural network, so that a model can be obtained based on limited training data to handle various situations in actual scenarios, thereby improving the flexibility of the solution.

[0121] In one embodiment of the present application, based on the above technical solution, the above step of performing gain prediction according to the audio feature vector by the first neural network to obtain the first gain may include the following steps:

[0122] Performing gain calculation on subbands in the audio feature vector by using a first neural network to obtain first glottal gains corresponding to each subband, wherein the subband corresponds to at least one frequency band in the speech frame to be processed;

[0123] The first glottal gains corresponding to the sub-bands are combined as the first gain.

[0124] Specifically, the spectral response associated with the glottal filter is a low-pass-like smoothing effect. Therefore, although the dimension of the frequency domain representation of the speech frame to be processed is 257 dimensions, it is not necessary to reach a resolution of 257 when calculating the first gain. Therefore, in the process of calculating the first gain, several adjacent coefficients can be merged to share a first gain, and each subband includes features in at least two adjacent dimensions in the audio feature vector.

[0125] According to the frequency domain representation of the speech frame to be processed, the frequency domain representation is divided along the frequency, and multiple sub-bands in the frequency domain representation can be obtained. The frequency domain representation can be divided into uniform bands (that is, the frequency width corresponding to each sub-band is the same) or non-uniform bands, which are not specifically limited here. It can be understood that each sub-band corresponds to a frequency range, which includes multiple frequency points.

[0126] The non-uniform band division can be Bark band division. Bark band division is performed according to the Bark frequency scale. The Bark frequency scale maps the frequency to multiple critical frequency bands of psychoacoustics. The number of bands can be set according to the sampling rate and actual needs. For example, the number of frequency points is set to 24. Bark band division conforms to the characteristics of the auditory system. Generally speaking, the lower the frequency, the fewer the number of coefficients contained in the sub-band, or even a single coefficient. The higher the frequency, the more the number of coefficients contained in the sub-band.

[0127] In one embodiment, for 257 coefficients, 8 adjacent coefficients are combined into one subband (the first element of the FFT coefficient is a DC component, which can be ignored). Therefore, the dimension of the first gain g1(n) finally output is 32 dimensions. Through the first neural network, the first glottal gain corresponding to each subband can be output. The first glottal gain of each subband is combined to obtain the first gain. That is, 32 subbands correspond to 32 dimensions of the first gain.

[0128] In an embodiment of the present application, the first gain is calculated according to the audio feature vector by means of sub-band merging, so that the dimension of the calculation process can be reduced, thereby reducing the overall calculation amount of the solution and improving the calculation efficiency.

[0129] In one embodiment of the present application, based on the above technical solution, the speech processing method may further include the following steps:

[0130] Predicting and analyzing the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to determine a second glottal gain, where the second glottal gain corresponds to the long-term correlation feature of the audio feature vector;

[0131] The first glottal gains corresponding to the sub-bands are combined as the first gain, including:

[0132] The first glottal gain and the second glottal gain corresponding to each sub-band are combined as the first gain.

[0133] In this embodiment, the first gain includes two parts, a first glottal feature corresponding to the short-time correlation feature of the speech frame and a second glottal feature corresponding to the long-time correlation feature of the speech frame. The pitch period of the speech frame to be processed can be obtained by performing speech decomposition and analysis on the speech frame to be processed in advance. The first neural network directly outputs the second glottal gain according to the audio feature vector and the pitch period. The second glottal gain corresponds to the glottal parameter of the LTP filter in the glottal filter. Therefore, during the training process, the model is trained based on the glottal parameters corresponding to the LTP filter obtained by decomposing the noisy speech and the denoised speech, and the model parameters are adjusted so that the mean square error similarity between the first gain finally output and the first gain corresponding to the denoising result reaches the mean square error threshold, thereby completing the training. The first neural network can output the first glottal gain and the second glottal gain together. In one embodiment, the first neural network can be composed of two subnetworks, which are used to output the first glottal feature and the second glottal feature respectively.

[0134] In an embodiment of the present application, the long-term correlation of the speech frame is further taken into account in the calculation process of the first gain, so that the scheme can recognize the speech part in the speech frame more precisely, thereby avoiding the influence of the gain on the original speech and improving the accuracy of the scheme.

[0135] In one embodiment of the present application, based on the above technical solution, the above step of performing gain prediction according to the audio feature vector by the first neural network to obtain the first gain may include the following steps:

[0136] Predicting parameters according to the audio feature vector using a first neural network to obtain a first glottal parameter, where the first glottal parameter is used to represent a short-time correlation feature of the audio feature vector;

[0137] Performing gain prediction according to the first glottal parameter by using a first neural network to obtain a first prediction result;

[0138] A first gain is determined according to the first prediction result.

[0139] In this embodiment, the first neural network predicts the first glottal parameter corresponding to the speech frame to be processed based on the audio feature vector. The first glottal parameter is used to represent the short-time correlation characteristics of the audio feature vector. Specifically, the first glottal parameter corresponds to the LPC filter. During the training process of the first neural network, the configuration parameters of the LPC filter of the denoised speech can be determined by decomposing the denoised speech corresponding to the noisy speech in the pre-training data. According to the audio feature vector of the noisy speech and the configuration parameters of the LPC filter of the denoised speech, the first neural network can be trained so that the mean square error between the first glottal parameter predicted by the first neural network and the configuration parameters of the LPC filter of the denoised speech meets the set accuracy requirements. Then, based on the first glottal parameter obtained, the first neural network can predict the spectrum of the denoised speech, and determine the first prediction result based on the predicted spectrum and the spectrum of the speech frame to be processed. The first prediction result is the first gain.

[0140] In this embodiment, the first glottal parameter corresponding to the speech frame to be processed is predicted by a first neural network, and then the first gain is predicted based on the first glottal parameter. The glottal parameter prediction target corresponding to the glottal filter is simplified compared to the labeling result of labeling each speech frame of the speech to be processed, thereby improving the calculation efficiency.

[0141] In one embodiment of the present application, based on the above technical solution, the speech processing method further includes:

[0142] Predicting parameters according to the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to obtain a second glottal parameter, where the second glottal parameter is used to represent the long-term correlation feature of the audio feature vector;

[0143] Performing gain prediction according to the second glottal parameter by the first neural network to obtain a second prediction result;

[0144] Determining a first gain according to the first prediction result includes:

[0145] The first prediction result and the second prediction result are combined to determine a first gain.

[0146] Specifically, the first neural network predicts the second glottal parameter based on the audio feature vector and the pitch period of the speech frame to be processed. The first glottal parameter is used to represent the long-term correlation feature of the audio feature vector. Specifically, the second glottal parameter corresponds to the LTP filter. In this embodiment, the glottal model of the speech frame also includes an LTP filter. The speech signal generated by the LPC filter configured according to the first glottal parameter is further processed by the LTP filter configured according to the second glottal parameter to simulate the speech in the speech frame to be processed. In the training process, the configuration parameters of the LTP filter of the denoised speech can be determined by decomposing the denoised speech corresponding to the noisy speech in the pre-training data. According to the audio feature vector of the noisy speech and the configuration parameters of the LTP filter of the denoised speech, the first neural network can be trained so that the mean square error between the second glottal parameter predicted by the first neural network and the configuration parameters of the LTP filter of the denoised speech meets the set accuracy requirements. Then, according to the second glottal parameter obtained, the first neural network can predict the spectrum of the denoised speech in combination with the first prediction result, thereby obtaining the second prediction result. The second prediction result is also part of the first gain, which makes the long-term correlation feature in the denoising result obtained based on the second prediction result similar to the long-term correlation feature in the denoised speech. The first prediction result and the second prediction result are combined to obtain the first gain. In the subsequent application process, the speech frame to be processed is enhanced in turn according to the first prediction result and the second prediction result, so as to achieve the effect of noise reduction.

[0147] In an embodiment of the present application, by predicting the second glottal parameter, the long-term correlation of the speech frame is further considered in the prediction process of the first gain, so that the scheme can more accurately predict the voiced part in the speech frame, thereby improving the accuracy of the scheme.

[0148] In one embodiment of the present application, based on the above technical solution, the above step S630, performing excitation gain calculation according to the audio feature vector to obtain the second gain, includes:

[0149] Inputting the audio feature vector into a second neural network, the second neural network is trained according to an excitation signal of a noisy speech frame and an excitation signal of a denoised speech frame corresponding to the noisy speech frame;

[0150] The second neural network performs gain prediction according to the excitation signal corresponding to the audio feature vector to obtain a second gain.

[0151] The second neural network refers to a neural network model used to predict the second gain corresponding to the excitation signal. The second neural network can be a model constructed by a long short-term memory neural network, a convolutional neural network, a recurrent neural network, a fully connected neural network, etc., which is not specifically limited here.

[0152] In the training process, the speech frames containing noise in the training data are first decomposed to obtain the frequency response corresponding to the excitation signal in the glottal model, and then the training is carried out according to the audio feature vector of the speech frame containing noise and the frequency response corresponding to the decomposed excitation signal, and the model parameters of the second neural network are adjusted until the second gain output by the second neural network can make the difference between the excitation signal of the noisy speech frame and the excitation signal of the denoised speech frame meet the preset requirements. Among them, the preset requirements can be calculated by the mean square error method. Through training, the output first gain makes the mean square error between the excitation signal of the noisy speech frame and the excitation signal of the denoised speech frame meet the set mean square error threshold, so as to judge that the trained model can achieve the expected purpose. Through this training process, the second gain predicted by the second neural network can make the excitation signal of the speech frame to be processed under the glottal model similar enough to the excitation signal of the pure speech under the glottal model, so as to have the noise reduction capability.

[0153] The gain is predicted by the second neural network according to the audio feature vector to obtain a second gain. Figure 8 is a schematic diagram of the structure of a second neural network according to a specific embodiment. Figure 8 As shown, the first neural network includes three fully connected (FC) layers. The input F(n) is a 128-dimensional audio feature vector. The output of the first FC layer is a 1024-dimensional vector, the output of the second FC layer is a 512-dimensional vector, and the output of the third FC layer is a 257-dimensional vector, i.e., the second gain g2(n). Of course, Figure 8 This is merely an illustrative example of the structure of the second neural network and should not be considered as limiting the scope of use of the present application.

[0154] In an embodiment of the present application, a second gain for an excitation signal is obtained through a neural network, and the relationship between the excitation signal and the second gain is learned through the neural network, so that noisy speech can be denoised according to a glottal model without the need for speech decomposition of the noisy speech, thereby saving computing resources.

[0155] In one embodiment of the present application, based on the above technical solution, the above step S610, obtaining the audio feature vector of the speech frame to be processed, may include the following steps:

[0156] Obtaining frequency spectrum coefficients of a speech frame to be processed;

[0157] The spectral coefficients of the speech frame to be processed are input into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed. The preprocessing neural network is trained based on the spectral coefficients of the noisy speech frame and the spectral coefficients of the denoised speech frame corresponding to the noisy speech frame.

[0158] Specifically, by performing STFT transformation on the speech frame to be processed, the frequency domain representation of the speech frame to be processed can be obtained, and by decomposing the frequency domain representation into a real part and an imaginary part, the frequency spectrum coefficient of the speech frame to be processed can be obtained.

[0159] The preprocessing neural network refers to a neural network model used to convert the spectral coefficients of the speech frame to be processed into an audio feature vector. The second neural network can be a model constructed by a long short-term memory neural network, a convolutional neural network, a recurrent neural network, a fully connected neural network, etc., which is not specifically limited here.

[0160] The input of the preprocessing neural network is the spectral coefficient of the speech frame to be processed, and the output is the audio feature vector corresponding to the speech frame to be processed. The training process of the preprocessing neural network is usually carried out together with the process of the first neural network and the second neural network. Therefore, during the training process, the adjustment of the network parameters of the neural network is carried out together with the adjustment process of the first neural network and the second neural network. During training, the spectral coefficients of the noisy speech frame in the training data and the spectral coefficients of the denoised speech frame corresponding to the noisy speech frame are input into the preprocessing neural network for prediction, and then the first neural network and the second neural network are trained according to the predicted audio feature vector, and the model parameters of the three models are adjusted according to the output results of the first neural network and the second neural network. By adjusting the model parameters of the preprocessing neural network in coordination with the model parameters of the first neural network and the second neural network, the first gain and the second gain can make the enhanced denoising result meet the difference between the denoised speech and the denoised speech.

[0161] The audio feature vector of the speech frame to be processed is obtained by performing feature calculation based on the audio feature vector through the preprocessing neural network. Fig. 9 is a schematic diagram of the structure of a second neural network according to a specific embodiment. Fig. 9 As shown in Figure 1, the preprocessing neural network includes 6 convolutional layers and a long short-term memory (LSTM) layer. The input S(n) is represented by spectral coefficients, so it is a [2,257]-dimensional spectral coefficient. Fig. 9 Each convolutional layer and LSTM layer in the file is labeled with the dimension of the variable output by the layer. The first convolutional layer outputs a variable of [16,257] dimensions, the second convolutional layer outputs a variable of [32,54] dimensions, the third convolutional layer outputs a variable of [64,29] dimensions, the fourth convolutional layer outputs a variable of [128,13] dimensions, the fifth convolutional layer outputs a variable of [128,5] dimensions, the sixth convolutional layer outputs a variable of [128,1] dimensions, and the LSTM layer outputs a variable of [128,1] dimensions. The variable output by the LSTM layer is the audio feature vector F(n). It should be understood that Fig. 9This is merely an illustrative example of the structure of a preprocessing neural network and should not be considered as limiting the scope of use of this application.

[0162] In an embodiment of the present application, a neural network is used to extract features from speech frames to be processed, thereby reducing the impact of noise on audio feature vectors during the feature extraction process, so that the audio feature vectors can better reflect the speech features in the speech frames to be processed, thereby improving the accuracy of the solution.

[0163] In one embodiment of the present application, based on the above technical solution, the speech processing method further includes:

[0164] Obtaining frequency spectrum coefficients of historical speech frames of the speech frame to be processed;

[0165] The frequency spectrum coefficients of the speech frame to be processed are input into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed, including:

[0166] The spectral coefficients of the speech frame to be processed and the spectral coefficients of the historical speech frames are input into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed.

[0167] Specifically, in this embodiment, when extracting the features of the audio feature vector, the historical speech frames of the speech frame to be processed can also be used as input. Specifically, first, the spectral coefficients of the historical speech frames of the speech frame to be processed are obtained. The historical speech frames are other speech frames in the audio where the speech frame to be processed is located. For example, for the nth frame, the historical speech frames can be the n-1th frame, the n-2th frame, etc. When performing feature calculation, the spectral coefficients of the speech frame to be processed and the spectral coefficients of the historical speech frames are input into the preprocessing neural network for feature calculation. In this embodiment, the structure of the preprocessing neural network is the same as that of the previous reference. Fig. 9 The structure described is similar, and also uses 6 convolutional layers and one LSTM layer. The difference is that the dimension of the input variable increases depending on the number of historical speech frames input, for example, if m historical speech frames are input, the dimension of the input variable is [2,257*m].

[0168] Correspondingly, in the training process of the preprocessing neural network, the spectral coefficients of the historical speech frames of the noisy speech frames, the spectral coefficients of the noisy speech frames, and the spectral coefficients of the denoised speech frames are also used as input for training. The specific training principle is the same as the training principle in the above embodiment and will not be repeated here.

[0169] In an embodiment of the present application, historical speech frames are taken as input and processed together with speech frames to be processed, so that the connection between adjacent speech frames can be more fully considered during the feature extraction process, thereby improving the accuracy of feature extraction.

[0170] In one embodiment of the present application, based on the above technical solution, the above step S640, performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain the target speech frame, may include the following steps:

[0171] The speech frame to be processed is enhanced according to the second gain to obtain a first enhancement result;

[0172] Performing a gain operation on each subband in the first enhancement result according to the first gain to obtain a second enhancement result;

[0173] An inverse time-frequency conversion is performed according to the second enhancement result to obtain an enhanced speech frame as a target speech frame.

[0174] Specifically, for the frequency domain representation of the speech frame to be processed, first perform multiplication operation according to the corresponding parameters in the second gain according to each sample point, and obtain the first enhancement result. As described above, the dimension of the second gain corresponds to the frequency domain representation of the speech frame to be processed, that is, if the frequency domain representation of the speech frame to be processed is 257 dimensions, the second gain is also 257 dimensions. Therefore, when enhancing according to the second gain, multiplication operation can be directly performed according to the corresponding relationship of the dimensions to obtain the first enhancement result. Based on the first enhancement result, gain operation is performed according to the first gain. Specifically, when calculating the first gain, the first gain is merged according to the division of the subband. Therefore, when calculating according to the first gain, multiplication is also performed according to the corresponding relationship of the subband merging. For example, in the first gain result, every 8 dimensions correspond to one subband, and the first gain is a 32-dimensional variable. Then, when calculating according to the first gain, every 8 dimensions in the first gain result correspond to one dimension in the first gain for calculation, thereby obtaining the second gain result. An inverse STFT transform is performed according to the second gain result, that is, the frequency domain representation can be transformed into a time domain signal, thereby obtaining an enhanced speech frame, that is, a target speech frame.

[0175] In the embodiments of the present application, a specific method for performing gain control is provided, which improves the feasibility of the solution.

[0176] The following is an introduction to the overall process of the speech processing method of this application. Fig.10 , Fig.10 Schematic diagram of the overall process in the embodiment of this application. Fig.10As shown, the input of the scheme is the speech frame s(n) to be processed. The STFT time-frequency transform is used for the speech frame s(n) to obtain the spectrum coefficient S(n). Based on the spectrum coefficient S(n), the preprocessing neural network is called to obtain the audio feature vector F(n). The preprocessing neural network can also receive the spectrum coefficient S_pre(n) of the historical speech frame of s(n) as input. Based on the audio feature vector F(n), the first neural network is called to obtain the first gain g1(n), and the second neural network is called to obtain the second gain g2(n). The first gain g1(n) and the second gain g2(n) are jointly used to control the gain of the spectrum coefficient S(n), thereby outputting the enhanced spectrum S_e(n). Finally, an inverse time-frequency transform is performed according to the enhanced spectrum S_e(n) to obtain the enhanced signal s_e(n) corresponding to the speech frame.

[0177] In one embodiment of the present application, based on the above technical solution, the speech processing method further includes the following steps:

[0178] Calculate the amplitude spectrum and phase spectrum corresponding to the speech frame to be processed according to the speech frame to be processed;

[0179] The above step S640, performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain the target speech frame, may include the following steps:

[0180] According to the first gain and the second gain, the amplitude spectrum corresponding to the processed speech frame is gain controlled to obtain an enhanced amplitude spectrum;

[0181] An inverse time-frequency conversion is performed based on the enhanced amplitude spectrum and the phase spectrum corresponding to the speech frame to be processed to obtain the target speech frame.

[0182] In this embodiment, the gain control process is performed based on the amplitude spectrum of the speech frame to be processed. Specifically, in addition to obtaining the frequency spectrum coefficients of the speech frame to be processed, the device executing this method also calculates the amplitude spectrum and phase spectrum of the speech frame to be processed. And after obtaining the first gain and the second gain, the amplitude spectrum corresponding to the speech frame to be processed is gain controlled according to the first gain and the second gain to obtain an enhanced amplitude spectrum. Then, the phase spectrum of the speech frame to be processed is reused and calculated together with the enhanced amplitude spectrum to obtain the enhanced frequency domain representation corresponding to the speech frame to be processed. Based on the enhanced frequency domain representation, an inverse time-frequency transform is performed to obtain the enhanced target speech frame.

[0183] In one embodiment, the above step of performing gain control on the amplitude spectrum corresponding to the speech frame to be processed according to the first gain and the second gain to obtain an enhanced amplitude spectrum includes the following steps:

[0184] The amplitude spectrum of the speech frame to be processed is enhanced according to the second gain to obtain a first amplitude spectrum enhancement result;

[0185] A gain operation is performed on each subband in the first amplitude spectrum enhancement result according to the first gain to obtain an enhanced amplitude spectrum.

[0186] Specifically, for the amplitude spectrum of the speech frame to be processed, first perform multiplication operation according to the corresponding parameters in the second gain according to each sample point, and obtain the first amplitude spectrum enhancement result. The dimension of the second gain is in a corresponding relationship with the dimension of the amplitude spectrum, that is, the number of dimensions of the two is the same and corresponding. Therefore, when enhancing according to the second gain, the value of the corresponding dimension can be directly multiplied according to the corresponding relationship of the dimensions. Perform gain operation on each subband in the first amplitude spectrum enhancement result according to the first gain to obtain the enhanced amplitude spectrum. The subband division corresponding to each frequency band in the amplitude spectrum is consistent with the frequency band division of the spectral coefficients of the speech frame to be processed when calculating the first gain, so each dimension in the first gain corresponds to the dimension of the corresponding subband in the first amplitude spectrum enhancement result. For example, the first amplitude spectrum enhancement result is 257 dimensions, while the first gain is 32 dimensions, and the subband is evenly divided, then it can be known that ignoring the DC component in the first amplitude spectrum enhancement result, every 8 dimensions in the remaining 256 dimensions correspond to a subband, that is, corresponding to one dimension in the first gain. Therefore, according to the corresponding relationship of the sub-bands, each element of the first gain is multiplied by the corresponding element in the first amplitude spectrum enhancement result, so as to obtain the enhanced amplitude spectrum.

[0187] Combine the following Fig.11 The overall process of this embodiment is described in detail. Fig.11 FIG. 1 is a schematic diagram of another overall process in an embodiment of the present application. Fig.11 As shown, the input of the scheme is the speech frame s(n) to be processed. The STFT time-frequency transform is used for the speech frame s(n) to obtain the spectrum coefficient S(n). Based on the spectrum coefficient S(n), the preprocessing neural network is called to obtain the audio feature vector F(n), and the preprocessing neural network can also receive the spectrum coefficient S_pre(n) of the historical speech frame of s(n) as input. When calculating S(n), the amplitude spectrum M(n) and phase spectrum Ph(n) of the speech frame s(n) to be processed are also calculated. Based on the audio feature vector F(n), the first neural network is called to obtain the first gain g1(n), and the second neural network is called to obtain the second gain g2(n). When performing gain control, the first gain g1(n) and the second gain g2(n) are jointly used to perform gain control on the amplitude spectrum M(n), thereby outputting the enhanced amplitude spectrum M_e(n). Finally, an inverse time-frequency transform is performed according to the enhanced spectrum M_e(n) and the phase spectrum Ph(n) of the speech frame to be processed to obtain the enhanced signal s_e(n) corresponding to the speech frame.

[0188] In an embodiment of the present application, the enhancement control process is performed based on the amplitude spectrum of the speech frame to be processed, which provides a specific implementation scheme for the gain control process. Gain control based on the amplitude spectrum can reduce the amount of data involved in the calculation process, thereby improving calculation efficiency.

[0189] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0190] The following introduces the device implementation of the present application, which can be used to execute the speech processing method in the above embodiments of the present application. Fig.12 The block diagram of the speech processing device in the embodiment of the present application is schematically shown. Fig.12 As shown, the speech processing device 1200 may mainly include:

[0191] A vector acquisition module 1210 is used to acquire an audio feature vector of a speech frame to be processed;

[0192] A glottal gain module 1220, configured to calculate a glottal gain according to the audio feature vector to obtain a first gain, wherein the first gain is determined according to the glottal feature of the speech frame to be processed;

[0193] An excitation gain module 1230, configured to calculate an excitation gain according to the audio feature vector to obtain a second gain, wherein the second gain is determined according to an excitation signal of the speech frame to be processed;

[0194] The gain control module 1240 is used to perform gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame.

[0195] In some embodiments of the present application, based on the above technical solution, the glottal gain module 1210 includes:

[0196] A first neural network submodule, used for inputting the audio feature vector into a first neural network, wherein the first neural network is trained according to glottal features corresponding to a noisy speech frame and glottal features corresponding to a denoised speech frame corresponding to the noisy speech frame;

[0197] The glottal gain prediction submodule is used to perform gain prediction according to the audio feature vector through the first neural network to obtain the first gain.

[0198] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule includes:

[0199] a gain calculation unit, configured to perform gain calculation on the audio feature vector by using the first neural network to obtain a first glottal gain corresponding to each subband in the speech frame to be processed, wherein the subband corresponds to at least one frequency band in the processed speech frame;

[0200] The gain generating unit is configured to combine the first glottal gains corresponding to the respective sub-bands as the first gain.

[0201] In some embodiments of the present application, based on the above technical solution, the speech processing device 1200 includes:

[0202] A gain analysis unit, configured to predict and analyze the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to determine a second glottal gain corresponding to a long-term correlation feature of the audio feature vector;

[0203] The gain generation unit includes:

[0204] The gain combining subunit is configured to combine the first glottal gain and the second glottal gain corresponding to each of the sub-bands as the first gain.

[0205] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule includes:

[0206] a first parameter prediction unit, configured to perform parameter prediction according to the audio feature vector through the first neural network to obtain a first glottal parameter, wherein the first glottal parameter is used to represent a short-time correlation feature of the audio feature vector;

[0207] A first gain prediction unit, configured to perform gain prediction according to the first glottal parameter through the first neural network to obtain the first prediction result;

[0208] A gain determination unit is used to determine the first gain according to the first prediction result.

[0209] In some embodiments of the present application, based on the above technical solution, the glottal gain prediction submodule further includes:

[0210] A second parameter prediction unit is used to perform parameter prediction according to the audio feature vector and the pitch period of the speech frame to be processed through the first neural network to obtain a second glottal parameter, wherein the second glottal parameter is used to represent the long-term correlation feature of the audio feature vector;

[0211] A second gain prediction unit, configured to perform gain prediction according to the second glottal parameter by using the first neural network to obtain a second prediction result;

[0212] The gain determination unit comprises:

[0213] The prediction result merging subunit is used to merge the first prediction result and the second prediction result to determine the first gain.

[0214] In some embodiments of the present application, based on the above technical solution, the excitation gain module 1230 includes:

[0215] A second neural network submodule, used for inputting the audio feature vector into a second neural network, wherein the second neural network is trained according to an excitation signal of a noisy speech frame and an excitation signal of a denoised speech frame corresponding to the noisy speech frame;

[0216] The excitation gain prediction submodule is used to perform gain prediction according to the excitation signal corresponding to the audio feature vector through the second neural network to obtain the second gain.

[0217] In some embodiments of the present application, based on the above technical solution, the vector acquisition module includes:

[0218] A spectrum coefficient acquisition submodule, used to acquire the spectrum coefficients of the speech frame to be processed;

[0219] The feature calculation submodule is used to input the spectral coefficients of the speech frame to be processed into a preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed. The preprocessing neural network is trained based on the spectral coefficients of the noisy speech frame and the spectral coefficients of the denoised speech frame corresponding to the noisy speech frame.

[0220] In some embodiments of the present application, based on the above technical solution, the speech processing device further includes:

[0221] A historical spectrum coefficient acquisition module, used to acquire the spectrum coefficients of the historical speech frames of the speech frame to be processed;

[0222] The feature calculation submodule includes:

[0223] The feature vector calculation unit is used to input the spectrum coefficients of the speech frame to be processed and the spectrum coefficients of the historical speech frame into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed.

[0224] In some embodiments of the present application, based on the above technical solution, the gain control module 1240 includes:

[0225] A first enhancement submodule, configured to enhance the speech frame to be processed according to the second gain to obtain a first enhancement result;

[0226] A second gain submodule, configured to perform a gain operation on each subband in the first enhancement result according to the first gain to obtain a second enhancement result;

[0227] The inverse time-frequency conversion submodule is used to perform inverse time-frequency conversion according to the second enhancement result to obtain an enhanced speech frame as a target speech frame.

[0228] In some embodiments of the present application, based on the above technical solution, the speech processing device further includes:

[0229] An amplitude spectrum calculation module, used for calculating the amplitude spectrum and phase spectrum corresponding to the speech frame to be processed according to the speech frame to be processed;

[0230] The gain control module 1240 includes:

[0231] an amplitude spectrum gain submodule, configured to perform gain control on the amplitude spectrum corresponding to the speech frame to be processed according to the first gain and the second gain, so as to obtain an enhanced amplitude spectrum;

[0232] The amplitude spectrum inverse time-frequency conversion submodule is used to perform inverse time-frequency conversion according to the enhanced amplitude spectrum and the phase spectrum corresponding to the speech frame to be processed to obtain a target speech frame.

[0233] In some embodiments of the present application, based on the above technical solution, the amplitude spectrum gain submodule includes:

[0234] an amplitude spectrum enhancement unit, configured to enhance the amplitude spectrum of the speech frame to be processed according to the second gain to obtain a first amplitude spectrum enhancement result;

[0235] The amplitude spectrum gain unit is used to perform gain operation on each sub-band in the first amplitude spectrum enhancement result according to the first gain to obtain an enhanced amplitude spectrum.

[0236] It should be noted that the apparatus provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0237] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0238] It should be noted that Fig.13 The computer system 1300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0239] like Fig.13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage part 1308 to the random access memory (RAM) 1303. Various programs and data required for system operation are also stored in the RAM 1303. The CPU 1301, ROM 1302 and RAM 1303 are connected to each other through a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0240] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed so that a computer program read therefrom is installed into the storage section 1308 as needed.

[0241] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1309, and / or installed from a removable medium 1311. When the computer program is executed by a central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.

[0242] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0243] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0244] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0245] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0246] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0247] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A speech processing method, characterized in that: include: Obtaining an audio feature vector of a speech frame to be processed; Inputting the audio feature vector into a first neural network, wherein the first neural network is trained based on glottal features corresponding to a noisy speech frame and glottal features corresponding to a denoised speech frame corresponding to the noisy speech frame; Performing gain prediction according to the audio feature vector by the first neural network to obtain a first gain; Calculate an excitation gain according to the audio feature vector to obtain a second gain, where the second gain corresponds to an excitation signal of the speech frame to be processed; Performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame; The step of performing gain prediction according to the audio feature vector by the first neural network to obtain a first gain includes: Performing gain calculation on the audio feature vector by using the first neural network to obtain a first glottal gain corresponding to each subband in the speech frame to be processed, wherein the subband corresponds to at least one frequency band in the speech frame to be processed; The first glottal gains corresponding to the sub-bands are combined as the first gain.

2. The method according to claim 1, characterized in that The method further comprises: Predicting and analyzing the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to determine a second glottal gain, wherein the second glottal gain corresponds to a long-term correlation feature of the audio feature vector; The combining the first glottal gains corresponding to the respective sub-bands as the first gain includes: The first glottal gains and the second glottal gains corresponding to the respective sub-bands are combined as the first gain.

3. The method according to claim 1, characterized in that The performing gain prediction according to the audio feature vector by the first neural network to obtain the first gain includes: Performing parameter prediction according to the audio feature vector by the first neural network to obtain a first glottal parameter, wherein the first glottal parameter is used to represent a short-time correlation feature of the audio feature vector; Performing gain prediction according to the first glottal parameter by the first neural network to obtain a first prediction result; The first gain is determined according to the first prediction result.

4. The method according to claim 3, characterized in that The method further comprises: Predicting parameters according to the audio feature vector and the pitch period of the speech frame to be processed by the first neural network to obtain a second glottal parameter, wherein the second glottal parameter is used to represent the long-term correlation feature of the audio feature vector; Performing gain prediction according to the second glottal parameter by the first neural network to obtain a second prediction result; The determining the first gain according to the first prediction result includes: The first prediction result and the second prediction result are combined to determine the first gain.

5. The method according to claim 1, characterized in that The step of calculating the excitation gain according to the audio feature vector to obtain a second gain includes: Inputting the audio feature vector into a second neural network, wherein the second neural network is trained according to an excitation signal of a noisy speech frame and an excitation signal of a denoised speech frame corresponding to the noisy speech frame; The second gain is obtained by performing gain prediction according to the excitation signal corresponding to the audio feature vector through the second neural network.

6. The method according to claim 1, characterized in that The step of obtaining the audio feature vector of the speech frame to be processed includes: Acquire frequency spectrum coefficients of the speech frame to be processed; The spectral coefficients of the speech frame to be processed are input into a preprocessing neural network for feature calculation to obtain an audio feature vector of the speech frame to be processed. The preprocessing neural network is trained based on the spectral coefficients of the noisy speech frame and the spectral coefficients of the denoised speech frame corresponding to the noisy speech frame.

7. The method according to claim 6, characterized in that The method further comprises: Acquire frequency spectrum coefficients of historical speech frames of the speech frame to be processed; The step of inputting the frequency spectrum coefficient of the speech frame to be processed into a preprocessing neural network for feature calculation to obtain an audio feature vector of the speech frame to be processed includes: The frequency spectrum coefficients of the speech frame to be processed and the frequency spectrum coefficients of the historical speech frame are input into the preprocessing neural network for feature calculation to obtain the audio feature vector of the speech frame to be processed.

8. The method according to claim 1, characterized in that The step of performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame includes: Enhance the speech frame to be processed according to the second gain to obtain a first enhancement result; Performing a gain operation on each subband in the first enhancement result according to the first gain to obtain a second enhancement result; An inverse time-frequency conversion is performed according to the second enhancement result to obtain an enhanced speech frame as a target speech frame.

9. The method according to claim 1, characterized in that: The method further comprises: Calculate the amplitude spectrum and phase spectrum corresponding to the speech frame to be processed according to the speech frame to be processed; The step of performing gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame includes: Performing gain control on the amplitude spectrum corresponding to the speech frame to be processed according to the first gain and the second gain to obtain an enhanced amplitude spectrum; An inverse time-frequency conversion is performed according to the enhanced amplitude spectrum and the phase spectrum corresponding to the speech frame to be processed to obtain a target speech frame.

10. The method according to claim 9, characterized in that The step of performing gain control on the amplitude spectrum corresponding to the speech frame to be processed according to the first gain and the second gain to obtain an enhanced amplitude spectrum includes: The amplitude spectrum of the speech frame to be processed is enhanced according to the second gain to obtain a first amplitude spectrum enhancement result; A gain operation is performed on each subband in the first amplitude spectrum enhancement result according to the first gain to obtain an enhanced amplitude spectrum.

11. A speech processing device, characterized in that: include: A vector acquisition module, used to acquire the audio feature vector of the speech frame to be processed; A first input subunit is used to input the spectrum coefficient of the speech frame to be processed into a first neural network, wherein the first neural network is trained according to the glottal features corresponding to the noisy speech frame and the glottal features corresponding to the denoised speech frame corresponding to the noisy speech frame; A gain prediction submodule, configured to perform gain prediction according to the frequency spectrum coefficients of the speech frame to be processed by the first neural network to obtain a first gain; An excitation gain module, used for calculating an excitation gain according to the audio feature vector to obtain a second gain, wherein the second gain is determined according to an excitation signal of the speech frame to be processed; A gain control module, configured to perform gain control on the speech frame to be processed according to the first gain and the second gain to obtain a target speech frame; The step of performing gain prediction according to the audio feature vector by the first neural network to obtain a first gain includes: Performing gain calculation on the audio feature vector by using the first neural network to obtain a first glottal gain corresponding to each subband in the speech frame to be processed, wherein the subband corresponds to at least one frequency band in the speech frame to be processed; The first glottal gains corresponding to the sub-bands are combined as the first gain.

12. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method for speech processing according to any one of claims 1 to 10 by executing the executable instructions.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the speech processing method according to any one of claims 1 to 10 is implemented.

14. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the speech processing method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Voice processing method, device and equipment and storage medium

    CN111554322A