A method, device, equipment, medium and product for processing speech signals
Frequency domain processing of speech signals through a multi-level speech optimization network, combined with neural network and adaptive filtering technology, solves the problem of noise and echo suppression in speech communications and significantly improves the quality of speech signals.
Patent Information
- Application Number
- CN202411110746.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In voice communication systems, especially in real-time voice interaction scenarios, the suppression and elimination effects of noise and echo are insufficient, resulting in noise being mistakenly canceled or echoes not being completely eliminated, affecting the quality of voice calls.
A multi-level speech optimization network is used to process the speech signal in the frequency domain, and the target spectrum is obtained through time-frequency conversion, and multi-level optimization processing is performed, including echo cancellation and noise suppression, using a combination of neural network models and adaptive filtering technology to perform multiple Optimize processing to improve performance.
Significantly improves the effect of noise suppression and echo cancellation, ensuring the accuracy and quality of voice signals, and improving the real-time voice interaction experience.
Smart Images

Figure CN118645113B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a speech signal processing method, apparatus, device, medium and product, and specifically to a speech signal processing method, a speech signal processing apparatus, a computer device, a computer-readable storage medium and a computer program product. Background Art
[0002] In voice communication systems, such as cellular communications or Internet-based VoIP (Voice over Internet Protocol) communications and other real-time voice interaction scenarios, the quality of voice calls has also received increasing attention. In the process of one-to-one or one-to-many voice interaction, the noise and echo cancellation performance of double-ended speech has always been a difficult problem in the industry. On the one hand, when the far end is speaking, if the near end wants to interrupt (people talking at both ends at the same time is called double talk), it is easy to be mixed with the acoustic echo and be mistakenly treated as echo cancellation by the echo cancellation (AEC) algorithm. On the other hand, noise and speech may be confused by the algorithm, resulting in less noise cancellation or speech cancellation. Therefore, how to improve the effect of noise suppression and echo cancellation is an important issue that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a speech signal processing method, apparatus, device, medium and product, which can perform multi-level optimization processing on speech signals in the frequency domain to improve the effects of noise suppression and echo cancellation.
[0004] On the one hand, an embodiment of the present application provides a method for processing a speech signal, the method comprising:
[0005] Acquire a mixed voice signal generated during the voice interaction process, the mixed voice signal comprising: a first voice signal generated at the near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, the far end echo signal being generated based on a second voice signal generated at the far end;
[0006] Based on the mixed speech signal, a target spectrum to be processed is determined; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on the residual signal between the mixed speech signal and the linear echo signal of the second speech signal;
[0007] A multi-level speech optimization network is used to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing;
[0008] The optimized spectrum is subjected to time-frequency conversion processing to obtain an optimized speech signal corresponding to the mixed speech signal.
[0009] On the one hand, an embodiment of the present application provides a speech signal processing device, the device comprising:
[0010] an acquisition unit, configured to acquire a mixed voice signal generated during the voice interaction process, the mixed voice signal comprising: a first voice signal generated at a near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, wherein the far end echo signal is generated based on a second voice signal generated at a far end;
[0011] A processing unit is used to determine a target spectrum to be processed based on a mixed speech signal; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on a residual signal between the mixed speech signal and a linear echo signal of the second speech signal;
[0012] The processing unit is also used to perform multi-level optimization processing on the target spectrum using a multi-level speech optimization network to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing;
[0013] The processing unit is also used to perform time-frequency conversion processing on the optimized spectrum to obtain an optimized speech signal corresponding to the mixed speech signal.
[0014] In a possible implementation, the multi-level speech optimization network includes M speech optimization networks, where M is an integer greater than or equal to 2; any speech optimization network is used to: perform an optimization process on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum; the processing unit uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0015] Using the kth speech optimization network among the M speech optimization networks to perform optimization processing on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a candidate spectrum; k is a positive integer and 1≤k≤M;
[0016] The obtained M candidate spectrums are fused to obtain an optimized spectrum;
[0017] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0018] In a possible implementation, the multi-level speech optimization network includes: a first speech optimization network and a second speech optimization network; the processing unit uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0019] Based on the first signal spectrum, the second signal spectrum and the third signal spectrum, using a first speech optimization network to perform a primary optimization process on the first signal spectrum to obtain a first output spectrum;
[0020] Based on the first output spectrum and the third signal spectrum, using a second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum;
[0021] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum.
[0022] In a possible implementation, the structure of the first speech optimization network includes: an encoder, a dual-path conversion module, and a decoder; the processing unit uses the first speech optimization network to perform a first-level optimization process on the first signal spectrum based on the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a first output spectrum, which is used to perform the following operations:
[0023] Performing feature encoding processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum through an encoder to obtain encoded spectrum features;
[0024] Through the dual-path conversion module, the attention mechanism is used to extract the encoded spectrum features in the time dimension and frequency dimension to obtain the attention spectrum features;
[0025] The attention spectrum features are decoded by a decoder to obtain a complex gain parameter;
[0026] A first-level speech optimization process is performed on the first signal spectrum using a complex gain parameter to obtain a first output spectrum.
[0027] In a possible implementation, the dual-path conversion module includes a local conversion module and a global conversion module, the local conversion module is used to perform local information modeling of the speech signal, and the global conversion module is used to perform global information modeling of the speech signal; the dimension of the encoded spectrum feature is T×F, T refers to the time step, F refers to the spectrum vector corresponding to each time step, and T and F are both positive integers;
[0028] The processing unit uses the attention mechanism to extract the encoded spectrum features in the time dimension and frequency dimension through the dual-path conversion module to obtain the attention spectrum features, which are used to perform the following operations:
[0029] The coded spectrum features are segmented to obtain T sub-spectrum features;
[0030] A local conversion module is used to process the local features of the ith sub-spectral feature in the frequency dimension through the self-attention mechanism to obtain the local spectral feature corresponding to the ith sub-spectral feature, where i is a positive integer and 1≤i≤T.
[0031] A global transformation module is used to process T local spectral features into global features in the time dimension through a self-attention mechanism to obtain attention spectral features.
[0032] In a possible implementation, the structure of the first speech optimization network further includes a feature extraction module; and the processing unit is further configured to perform the following operations:
[0033] Performing spectrum compression processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum respectively to obtain a compressed first compressed spectrum, a second compressed spectrum, and a third compressed spectrum;
[0034] Performing feature splicing processing on the first compressed spectrum, the second compressed spectrum, and the third compressed spectrum to obtain a first spliced spectrum;
[0035] Performing feature extraction processing on the first spliced spectrum through a feature extraction module to obtain a fused feature spectrum, and performing feature encoding processing on the fused feature spectrum through an encoder to obtain encoded spectrum features;
[0036] The spectrum compression processing method includes: any one of Mel spectrum compression processing, filter bank compression processing, and linear prediction coefficient compression processing.
[0037] In a possible implementation, the structure of the second speech optimization network includes: a compression module, a gated recurrent unit network module, and a decompression module; the processing unit uses the second speech optimization network to perform secondary optimization processing on the third signal spectrum based on the first output spectrum and the third signal spectrum to obtain a second output spectrum, which is used to perform the following operations:
[0038] Performing convolution processing on the first output spectrum and the third signal spectrum through the compression module to obtain a convolution characteristic spectrum;
[0039] Through the gated recurrent unit network module, the convolution feature spectrum is processed according to the time dimension to obtain the processed feature optimized spectrum;
[0040] Decompressing the characteristic optimization spectrum through a decompression module to obtain a real gain parameter;
[0041] A second-level speech optimization process is performed on the third signal spectrum based on the real gain parameter to obtain a second output spectrum.
[0042] In a possible implementation, the real gain parameter includes a first real gain vector and a second real gain vector, the first real gain vector refers to a gain vector after optimizing the third signal spectrum, and the second real gain vector refers to a gain vector after optimizing the first output spectrum; the processing unit is further used to perform the following operations:
[0043] Performing a multiplication operation on the first real gain vector and the third signal spectrum to obtain a second output spectrum;
[0044] A multiplication operation is performed on the second real gain vector and the first output spectrum to obtain a third output spectrum.
[0045] In a possible implementation, the processing unit is further configured to perform the following operations:
[0046] Compressing and calculating the first output spectrum to obtain a first logarithmic power spectrum, and compressing and calculating the third signal spectrum to obtain a second logarithmic power spectrum;
[0047] Performing splicing processing on the first logarithmic power spectrum and the second logarithmic power spectrum to obtain a second spliced spectrum;
[0048] The second spliced spectrum is convolved by a compression module to obtain a convolution feature spectrum.
[0049] In a possible implementation, the processing unit performs a fusion process on the first output spectrum and the second output spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0050] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum; or,
[0051] Performing fusion processing on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum;
[0052] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0053] In a possible implementation, the voice interaction process is a process of voice interaction between the first object and the second object; the processing unit is further configured to perform the following operations:
[0054] Acquire a second voice signal generated by the second object during the voice interaction process;
[0055] Performing linear echo cancellation processing on the second voice signal using an adaptive filtering technique to obtain a linear echo signal corresponding to the second voice signal;
[0056] The adaptive filtering technology includes: any one of a minimum mean square error filter, a recursive least squares filter, and a Kalman filter.
[0057] In a possible implementation, the processing unit determines a target frequency spectrum to be processed based on the mixed speech signal, and performs the following operations:
[0058] Performing time-frequency conversion processing on the mixed speech signal using a frequency domain processing technique to obtain a first signal spectrum; and performing time-frequency conversion processing on the second speech signal using a frequency domain processing technique to obtain a second signal spectrum;
[0059] Performing a subtraction operation on the mixed speech signal and the linear echo signal to obtain a residual signal, and performing time-frequency conversion processing on the residual signal using a frequency domain processing technique to obtain a third signal spectrum;
[0060] The frequency domain processing technology includes: any one of Fourier transform technology, fast Fourier transform technology, wavelet transform technology, and Laplace transform technology.
[0061] In a possible implementation, the voice interaction process refers to an interaction process involved in a real-time communication scenario, and the real-time communication scenario includes: any one of a conference scenario, a live broadcast scenario, and a call scenario; the processing unit is further used to perform the following operations:
[0062] A real-time voice signal stream is obtained in a real-time communication scenario, and segments are intercepted in the time domain according to a preset frame length to obtain a voice segment signal set; the voice segment signal set includes N voice segments, where N is a positive integer;
[0063] The j-th speech segment of the N speech segments is used as a mixed speech signal to obtain an optimized segment of the j-th speech segment based on a multi-level speech optimization network, where j is a positive integer and 1≤j≤N;
[0064] The obtained N optimized segments are spliced to obtain an optimized speech signal corresponding to the real-time speech signal stream.
[0065] On the one hand, an embodiment of the present application provides a computer device, which includes a processor and a memory; a computer program is stored in the memory; when the computer program is executed by the processor, the above-mentioned speech signal processing method is executed.
[0066] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned speech signal processing method is executed.
[0067] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned speech signal processing method is performed.
[0068] In an embodiment of the present application, a mixed voice signal generated during a voice interaction process is obtained, the mixed voice signal comprising: a first voice signal generated at a near end during the voice interaction process, an ambient noise signal at the near end, and a far-end echo signal, the far-end echo signal being generated based on a second voice signal generated at a far end; based on the mixed voice signal, a target spectrum to be processed is obtained; the target spectrum comprises a first signal spectrum, a second signal spectrum, and a third signal spectrum, the first signal spectrum being obtained after time-frequency conversion processing is performed on the mixed voice signal, the second signal spectrum being obtained after time-frequency conversion processing is performed on the second voice signal, and the third signal spectrum being obtained after time-frequency conversion processing is performed on a residual signal between the mixed voice signal and a linear echo signal of the second voice signal; a multi-stage voice optimization network is used to perform multi-stage optimization processing on the target spectrum to obtain an optimized spectrum, wherein the optimization processing here comprises echo cancellation processing and noise suppression processing; the optimized spectrum is subjected to time-frequency conversion processing to obtain an optimized voice signal corresponding to the mixed voice signal. It can be seen that the present application can convert the mixed speech signal in the time domain into a multi-dimensional spectrum in the frequency domain (such as the first signal spectrum, the second signal spectrum, and the third signal spectrum), and perform multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effects of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized speech signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 It is a schematic diagram of the principle of a speech signal processing solution provided in an embodiment of the present application;
[0071] Figure 2a It is a flowchart of a voice interaction process provided by an embodiment of the present application;
[0072] Figure 2b It is a structural diagram of a multi-level voice optimization network provided in an embodiment of the present application;
[0073] Figure 3 It is a schematic diagram of the architecture of a speech signal processing system provided in an embodiment of the present application;
[0074] Figure 4 It is a flowchart of a method for processing a speech signal provided in an embodiment of the present application;
[0075] Figure 5 It is a processing flow diagram of a two-stage optimization network provided in an embodiment of the present application;
[0076] Figure 6 It is a flowchart of another speech signal processing method provided in an embodiment of the present application;
[0077] Figure 7 It is a structural diagram of a two-stage voice optimization network provided in an embodiment of the present application;
[0078] Figure 8 This is a schematic diagram of a scenario of voice optimization processing provided by an embodiment of the present application;
[0079] Fig. 9 is a structural schematic diagram of a speech signal processing device provided in an embodiment of the present application;
[0080] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0082] This application provides a voice signal processing solution, which is applicable to any type of real-time voice interaction scenarios such as conference scenarios, call scenarios, live broadcast scenarios, etc., and can perform multi-level optimization processing (such as two-level optimization processing) on the voice signal during the voice interaction process, that is, perform multiple echo cancellation processing and noise suppression processing on the voice signal, thereby improving the noise and echo suppression effect. For details, please refer to Figure 1 , Figure 1 Schematic diagram of the principle of a speech signal processing solution provided by the embodiment of the present application. Figure 1 The principle of the speech signal processing solution provided in this application is roughly explained:
[0083] (1) In real-time voice interaction scenarios such as conference scenarios and call scenarios, a near-end signal can be collected by a voice collection device (such as a microphone) to obtain a mixed voice signal (d), and a far-end signal can be received by a voice playback device (such as a speaker) to obtain a second voice signal (x). The mixed voice signal includes: a first voice signal generated at the near end during the voice interaction process, an environmental noise signal at the near end, and a far-end echo signal, which is a signal formed by the second voice signal (x) generated at the far end after passing through the echo path.
[0084] (2) The second speech signal x is subjected to linear echo cancellation processing by a linear filter (such as a FIR filter (Finite Impulse Response filter), an IIR filter (Infinite Impulse Response filter), etc.) to obtain a linear echo signal y; and the mixed speech signal d is subtracted from the linear echo signal y to obtain a residual signal e.
[0085] (3) Performing time-frequency conversion processing (such as Fourier transform) on the mixed speech signal d, the second speech signal x, and the residual signal e to obtain a target spectrum to be processed. The target spectrum includes: a first signal spectrum corresponding to the mixed speech signal, a second signal spectrum corresponding to the second speech signal, and a third signal spectrum corresponding to the residual signal.
[0086] (4) Inputting the first signal spectrum, the second signal spectrum, and the third signal spectrum (i.e., the d spectrum, the x spectrum, and the e spectrum) into a neural network (such as a multi-level speech optimization network) for multi-level optimization processing to obtain optimized spectra. The so-called multi-level optimization processing refers to multi-level or multiple optimization processing, and the optimization processing here includes echo cancellation processing and noise suppression processing.
[0087] (5) Perform time-frequency conversion on the optimized spectrum to obtain the optimized speech signal z.
[0088] As can be seen from the above, on the one hand, in the process of real-time voice interaction, the present application performs preliminary echo cancellation processing on the far-end signal x through a traditional linear filter, and then obtains multiple types of spectrum (first signal spectrum, second signal spectrum, third signal spectrum) based on the mixed voice signal, and optimizes various types of spectrum in the frequency domain through a neural network model. This method of combining signal processing algorithm and neural network model can provide the effectiveness of echo cancellation and noise suppression; on the other hand, the present application also performs multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effect of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized voice signal.
[0089] The key technical terms involved in this application are introduced below.
[0090] 1. Voice interaction process, near end and far end.
[0091] The voice interaction process refers to the process of data interaction between two or more objects through audio. Take the voice interaction process between two objects (such as the first object and the second object) as an example. Figure 2a , Figure 2a is a flow chart of a voice interaction process provided by an embodiment of the present application. Figure 2a As shown, the voice interaction process mainly involves the interaction between the near end and the far end. The so-called near end and far end are relative concepts. For example, for the first object, the device where the first object is located is the near end, and the device where the second object is located is the far end; for the second object, the device where the second object is located is the near end, and the device where the first object is located is the far end. In addition, regardless of the near end or the far end, the voice interaction process involves a voice playback device (such as a speaker) and a voice collection device (such as a microphone), and then any object (such as the first object) can perform real-time voice interaction with another object (such as the second object) through a speaker or a microphone. For the convenience of explanation, in the subsequent embodiments of this application, the device where the first object is located is the near end, and the device where the second object is located is the far end.
[0092] 2. Mixed speech signals.
[0093] A mixed voice signal refers to a signal collected by a near-end voice collection device (such as a microphone) during a voice interaction process. A mixed voice signal refers to a signal that is a mixture of multiple signals. For example, a mixed voice signal includes: a first voice signal generated at the near-end during a voice interaction process (i.e., a signal generated by a first object at the near-end), an environmental noise signal at the near-end, and a far-end echo signal. The far-end echo signal here refers to a signal formed when a second voice signal generated by a second object at the far-end enters the near-end microphone through an echo path (such as air propagation, etc.). Therefore, the mixed voice signal collected at the near-end contains both noise and far-end echoes. Therefore, the present application needs to optimize the processing of the mixed voice signal (such as echo elimination and noise suppression processing) to obtain as clean a voice signal as possible, so as to improve the experience during real-time voice interaction.
[0094] 3. Multi-level voice optimization network.
[0095] As the name implies, a multi-level speech optimization network refers to a neural network model that has the function of multi-level optimization processing of speech. The multi-level speech optimization network here can be understood as a neural network model generated by cascading multiple (two or more) speech optimization networks. Figure 2b , Figure 2b Schematic diagram of a multi-level voice optimization network provided by an embodiment of the present application. Figure 2b As shown, the multi-level speech optimization network in the present application may include M speech optimization networks (M is an integer greater than or equal to 2): speech optimization network 1, speech optimization network 2, speech optimization network 3...speech optimization network m. Among them, any one of the M speech optimization networks (such as the kth speech optimization network, k is a positive integer and 1≤k≤M) is used to perform an optimization process on the target spectrum (any one or more of the first signal spectrum, the second signal spectrum and the third signal spectrum). Therefore, the M speech optimization networks used in the present application can realize M optimization processes on the target spectrum to obtain an optimized spectrum.
[0096] It should be noted that, since the multi-level speech optimization network is composed of a plurality of speech optimization networks cascaded, any speech optimization network in the present application can be composed of a network structure with a relatively small number of parameters, so as to ensure that the model parameter amount of the multi-level speech optimization network formed after the cascade will not be too large, thereby reducing the computational cost of the model. Among them, the model structures of different speech optimization networks can be the same or different; in addition, there is a correlation between the input and output of different speech optimization networks, for example, the output Z1 of speech optimization network 1 can be used as the input of speech optimization network 2; for example, the output Z1 of speech optimization network 1 and the output Z2 of speech optimization network 2 can both be used as the input of speech optimization network 3; and so on, the input of speech optimization network m can include: the output Z1 of speech optimization network 1, the output Z2 of speech optimization network 2... the output Zm-1 of speech optimization network m-1. In this way, the next speech optimization network can be processed again in combination with the output results of one or more previous speech optimization networks, and can make full use of the data association between different networks while performing multi-level optimization processing, so as to further improve the speech optimization effect.
[0097] 4. Multi-level optimization processing.
[0098] Multi-level optimization processing refers to a multi-level (or multiple) optimization processing process performed by a multi-level voice optimization network. The multi-level optimization processing involved in this application is mainly a multiple optimization processing process performed on the target spectrum (first signal spectrum, second signal spectrum, third signal spectrum). Here, the optimization processing at any level may include: echo cancellation processing and noise suppression processing, as follows:
[0099] (1) Echo Cancellation: This is a technology used to eliminate echoes. When the sound played by a loudspeaker (i.e., speaker) is picked up again by a microphone and transmitted back to the other party, an echo is generated. Therefore, this application refers to the elimination of the echo signal formed by the second voice signal generated by the far-end object (such as the second object) entering the near-end, that is, the elimination of the far-end echo signal contained in the mixed voice signal, thereby preventing the second object from hearing its own echo during the voice interaction process.
[0100] (2) Noise Suppression: It is a technology used to reduce background noise or environmental noise, and is often used to improve the quality of voice communication. Noise suppression technology improves the clarity of the signal by detecting and suppressing background noise that is different from the mixed voice signal. In this application, noise suppression processing refers to the process of denoising or reducing the environmental noise signal in the mixed voice signal. The noise here includes any type of noise: background noise (such as the voice of other objects), environmental noise (such as car horns, wind, rain, etc.). Among them, in the noise suppression process, common methods include frequency domain noise reduction and time domain noise reduction. The so-called frequency domain noise reduction refers to the process of suppressing the noise within a specific frequency range after converting the signal to the frequency domain by Fourier transform, and then performing an inverse transform to restore it to the time domain. The so-called time domain noise reduction refers to the process of suppressing the noise signal directly in the time domain, such as using an adaptive filter to perform noise suppression processing.
[0101] The above-mentioned multi-level optimization processing can be processed in the time domain or in the frequency domain. In the present application, multi-level optimization processing of the voice signal can be performed by combining the time domain + frequency domain. For example, a preliminary echo cancellation processing is performed on the far-end voice signal through a linear filter in the time domain, and then the first signal spectrum, the second signal spectrum, and the third signal spectrum are further processed by a multi-level neural network model in the frequency domain to perform echo cancellation processing and noise suppression processing, thereby obtaining an optimized voice signal with higher accuracy.
[0102] It should be noted that the relevant data involved in the speech signal processing process of this application (such as the first voice signal, the second voice signal, the mixed voice signal, the target spectrum, etc.). When the above embodiments of this application are applied to specific products or technologies, the permission or consent of the object must be obtained, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the region, comply with the principles of legality, legitimacy and necessity, and do not involve the acquisition of data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application are obtained after the object has been authorized separately. In addition, when obtaining the separate authorization of the object, the purpose of the relevant data involved is indicated to the object.
[0103] The following is a detailed introduction to the speech signal processing system provided by this application.
[0104] See also Figure 3 , Figure 3 Schematic diagram of the architecture of a speech signal processing system provided in an embodiment of the present application. Figure 3 As shown, the architecture diagram of the voice signal processing system may include at least: a first terminal device 301, a second terminal device 302, and a server 303. The first terminal device 301 and the second terminal device 302 are both devices with voice interaction functions, and both are equipped with a voice collection device (such as a microphone) and a voice playback device (such as a speaker, a microphone or a loudspeaker) to realize the voice interaction function. The server 303 can be directly or indirectly connected to the first terminal device 301 or the second terminal device 302 through a network, and the first terminal device 301 can be directly or indirectly connected to the second terminal device 302 through a network; the above network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI (Wireless Fidelity, a standard wireless local area network), and other networks that realize wireless communication.
[0105] The first terminal device 301 or the second terminal device 302 may be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a vehicle-mounted device, an aircraft, a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), a virtual reality device (such as a VR (Virtual Reality) device, an AR (Augmented Reality) device), etc. It is understandable that the device types of the first terminal device 301 and the second terminal device 302 may be the same or different, for example: the first terminal device 301 may be a mobile phone, and the second terminal device 302 may be a phone watch; for another example: the first terminal device 301 and the second terminal device 302 may both be mobile phones, and the present application does not specifically limit the device types of the terminal devices.
[0106] The server 303 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 303 is used to provide background services (such as voice transmission services, voice signal processing services, etc.) for the first terminal device 301 or the second terminal device 302.
[0107] The following is a corresponding description of the voice interaction process between the first terminal device (such as the near-end device where the first object is located) and the second terminal device (such as the far-end device where the second object is located):
[0108] ① In a real-time communication scenario (such as a call scenario between a first object and a second object), the first object can speak at the near end to generate a voice signal, and then the mixed voice signal generated by the voice interaction process can be obtained through the voice collection device (such as a microphone) configured in the first terminal device 301. The mixed voice signal includes: a first voice signal generated at the near end, an environmental noise signal at the near end, and a far-end echo signal formed at the near end by the second voice signal generated by the second object.
[0109] ② The first terminal device 301 generates a target spectrum to be processed based on the mixed voice signal. The target spectrum here includes a first signal spectrum, a second signal spectrum and a third signal spectrum. The first signal spectrum is obtained after time-frequency conversion processing of the mixed voice signal, the second signal spectrum is obtained after time-frequency conversion processing of the second voice signal generated by the second object, and the third signal spectrum is obtained after time-frequency conversion processing of the residual signal between the mixed voice signal and the linear echo signal of the second voice signal (for example, the linear echo signal is obtained after echo elimination of the second voice signal by a linear filter). Among them, the time-frequency conversion processing can be performed by using technologies such as Fourier Transform (FT) and Fast Fourier Transform (FFT).
[0110] ③ The first terminal device 301 can send the target spectrum (ie, the first signal spectrum, the second signal spectrum, and the third signal spectrum) to the server 303.
[0111] ④ The server 303 uses a multi-level voice optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum. Optionally, the multi-level voice optimization network here can be a two-level voice optimization network, specifically including a first voice optimization network and a second voice optimization network, that is, the target spectrum can be optimized twice through a two-level network, and the optimization processing here includes: echo cancellation processing and noise suppression processing.
[0112] ⑤ The server 303 performs time-frequency conversion processing (such as inverse Fourier transform) on the optimized spectrum to obtain an optimized voice signal, and sends the optimized voice signal to the first terminal device 301. Subsequently, the first terminal device 301 can play the optimized voice signal based on the voice playback device (speaker), and transmit the optimized voice signal to the second terminal device 302, thereby suppressing noise and eliminating echoes of the mixed voice signal during the voice interaction between the first terminal device 301 and the second terminal device 302, and achieving voice enhancement.
[0113] It should be noted that the above voice interaction process is only used for example and does not limit the specific execution process of the first terminal device and the server. Optionally, the process of generating the target spectrum to be processed based on the mixed voice signal can also be executed by the server; or, the process of performing time-frequency conversion processing on the optimized spectrum to obtain the optimized spectrum can be executed by the first terminal device; or, the complete process of the above voice interaction can be executed separately by any terminal device or server in the voice signal processing system.
[0114] In a possible implementation, the voice signal processing system provided in the embodiment of the present application can be deployed in the node of the blockchain. For example, the first terminal device 301, the second terminal device 302, and the server 303 can all be regarded as the node devices of the blockchain to jointly constitute the blockchain network. Therefore, the voice signal processing process executed in the present application can be executed on the blockchain, which can not only ensure the fairness and justice of the voice signal processing process, but also make the above process traceable, and ensure the data security during the voice signal processing process, thereby improving the security and reliability of the entire voice signal processing process.
[0115] Based on the voice signal processing system provided by the present application, in the process of real-time voice interaction, the far-end signal is preliminarily echo-cancelled through a traditional linear filter, and then multiple types of spectra (first signal spectrum, second signal spectrum, third signal spectrum) are obtained based on the mixed voice signal, and various types of spectra are optimized in the frequency domain through a neural network model. This method of combining signal processing algorithms and neural network models can provide the effectiveness of echo cancellation and noise suppression. On the other hand, the present application also performs multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effect of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized voice signal.
[0116] It can be understood that the speech signal processing system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0117] The specific embodiments of the speech signal processing scheme of the present application are described in detail below with reference to the accompanying drawings.
[0118] See also Figure 4 , Figure 4 is a flow chart of a method for processing a speech signal provided in an embodiment of the present application. The method for processing a speech signal may be performed by a computer device (such as Figure 3 Any terminal device or server as shown. Figure 4 As shown, the speech signal processing method includes but is not limited to the following steps S401-S404:
[0119] S401: Acquire a mixed voice signal generated during a voice interaction process.
[0120] The mixed voice signal here includes: a first voice signal generated at the near end during the voice interaction, an ambient noise signal at the near end, and a far-end echo signal, which is generated based on a second voice signal generated at the far end. Figure 1 As shown, the far-end echo signal here refers to the acoustic echo formed when the second language signal enters the near end after passing through the echo path (such as air propagation).
[0121] The following is a detailed description of the acquisition process of the mixed speech signal.
[0122] Method 1: directly collect the near-end signal as a mixed voice signal in real time through a microphone. In a possible implementation method, a voice collection device (such as a microphone) is configured in the computer device, so that the signal collection and processing can be performed through the microphone during the voice interaction process to obtain a mixed voice signal. For example, in the voice interaction process between the first object and the second object, the mixed voice signal d collected by the microphone includes: the first voice signal s generated by the first object at the near end, the second voice signal x generated by the second object, the far-end echo signal y' formed at the near end through the echo path, and the environmental noise signal generated by the surrounding environment of the first object (for example, including background noise and environmental noise). This real-time collection method can collect voice signals in the real-time voice interaction process and can ensure the timeliness of real-time signal processing.
[0123] Method 2: Preprocess the collected microphone signal to obtain a mixed voice signal to be processed. In a possible implementation method, the microphone can be used to collect signals during voice interaction to obtain a microphone signal; and the microphone signal is preprocessed to obtain a mixed voice signal. The signal preprocessing here includes any one of: frame processing and noise detection processing. Specifically, ① the so-called frame processing refers to framing the collected microphone signal according to a preset frame length (such as 10ms or 20ms), and using the signal of the preset frame length as the mixed voice signal to be processed. This method can ensure the standardization of signal processing and unify the signal frame length to be processed, thereby improving processing efficiency; ② the so-called noise detection processing refers to the noise estimation of the microphone information to detect whether the mixed voice signal contains noise, so as to facilitate the subsequent noise suppression processing. For example, the microphone signal can be subjected to noise detection processing through voice activity detection (VAD). If the microphone signal does not contain noise, then there is no need to perform noise suppression processing; if the microphone signal contains noise, then the microphone signal is used as a mixed voice signal to facilitate the subsequent noise suppression processing. In this way, VAD detection can be performed in advance on the signal collected by the microphone to improve the efficiency of speech processing.
[0124] S402: Determine a target frequency spectrum to be processed based on the mixed speech signal.
[0125] Among them, the target spectrum includes: a first signal spectrum, a second signal spectrum and a third signal spectrum; the first signal spectrum is obtained after time-frequency conversion processing of the mixed speech signal, the second signal spectrum is obtained after time-frequency conversion processing of the second speech signal, and the third signal spectrum is obtained after time-frequency conversion processing of the residual signal between the mixed speech signal and the linear echo signal of the second speech signal.
[0126] In a possible implementation, the process of determining the target spectrum based on the mixed speech signal is as follows: (1) using frequency domain processing technology to perform time-frequency conversion processing on the mixed speech signal d to obtain a first signal spectrum; (2) obtaining a second speech signal generated by the remote end during the speech interaction, and using frequency domain processing technology to perform time-frequency conversion processing on the second speech signal x to obtain a second signal spectrum; (3) using adaptive filtering technology to perform linear echo cancellation processing on the second speech signal to obtain a linear echo signal y corresponding to the second speech signal; wherein the adaptive filtering technology includes: any one of the minimum mean square error (LMS) filter, the recursive least squares (RLS) filter, and the Kalman filter; performing a subtraction operation on the mixed speech signal d and the linear echo signal y to obtain a residual signal e, and using frequency domain processing technology to perform time-frequency conversion processing on the residual signal e to obtain a third signal spectrum. wherein the above-mentioned frequency domain processing technology includes: any one of the Fourier transform technology (FT), the fast Fourier transform technology (FFT), the wavelet transform technology, and the Laplace transform technology. In this way, the mixed speech signal d, the second speech signal x, and the residual signal e in the time domain can be converted into the frequency domain for signal processing, thereby providing more frequency information in the speech signal processing process.
[0127] S403: using a multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing.
[0128] Specifically, the multi-level speech optimization network is a multi-level neural network model with speech optimization functions (such as echo cancellation and noise suppression). The so-called multi-level neural network model refers to a model composed of two or more neural networks. For example, the neural network model here may include but is not limited to: LSTM (Long Short-Term Memory), CNN (Convolution Neural Network), RNN (Recurrent Neural Network), Transformer (encoder-decoder converter), GRU (Gate Recurrent Unit), etc. This application does not specifically limit the model structure of the multi-level speech optimization network.
[0129] In a possible implementation, the multi-level speech optimization network includes M speech optimization networks, where M is an integer greater than or equal to 2; any one of the optimization networks is used to perform an optimization process on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum. The computer device uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which may include the following steps: using the kth speech optimization network among the M speech optimization networks to perform optimization processing on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a candidate spectrum, where k is a positive integer and 1≤k≤M; performing fusion processing on the obtained M candidate spectra to obtain an optimized spectrum; wherein the fusion processing includes: any one of a summation operation, a weighted operation, and an average operation. It can be understood that the number of multi-level voice optimization networks can be two or more. The number of multi-level voice optimization networks is not specifically limited in this application. The specific number of networks included can be determined based on the specific scenario requirements. For example, the multi-level voice optimization network can include a first voice optimization network and a second voice optimization network; or, the multi-level voice optimization network can also include: a first voice optimization network, a second voice optimization network, a third voice optimization network, etc. In this implementation, any optimization network can perform an optimization process on one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum. Then, the M voice optimization networks included in the multi-level voice optimization network can perform M optimization processes on the target spectrum (the first signal spectrum, the second signal spectrum, and the third signal spectrum), thereby obtaining a candidate spectrum after M optimizations. Since one optimization process can obtain an optimized candidate spectrum, the present application can realize multi-level optimization processing of the target spectrum and improve the optimization effect; further, the M optimized spectra are fused (such as addition or weighted operation) to obtain the final optimized spectrum. This method can fuse the output results of the M voice optimization networks and further improve the accuracy and comprehensiveness of the optimization process.
[0130] The following is an example in which a multi-stage speech optimization network includes two optimization networks.
[0131] In a possible implementation, the multi-level speech optimization network includes a first speech optimization network and a second speech optimization network. Specifically, the multi-level speech optimization network is used to perform multi-level optimization processing on the target spectrum, and the process of obtaining the optimized spectrum includes the following two methods: (1) the first signal spectrum, the second signal spectrum and the third signal spectrum are optimized by the first speech optimization network to obtain the first optimized spectrum; the first signal spectrum, the second signal spectrum and the third signal spectrum are optimized by the second speech optimization network to obtain the second optimized spectrum; and the second optimized spectrum is used as the optimized spectrum output by the multi-level speech optimization network. (2) the target spectrum is optimized by the first speech optimization network to obtain the first optimized spectrum, and the target spectrum is optimized by the second speech optimization network to obtain the second optimized spectrum; the first optimized spectrum and the second optimized spectrum are fused (such as adding) to obtain the optimized spectrum. Among them, the first optimization processing and the second optimization processing both include: echo cancellation processing and noise suppression processing; in addition, the structures of the first speech optimization network and the second speech optimization network can be the same or different, for example, the first speech optimization network can be a Transformer network, and the second speech optimization network can be a GRU network.
[0132] In another possible implementation, the multi-level speech optimization network includes a first speech optimization network and a second speech optimization network. Specifically, the process of using the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain the optimized spectrum may also include the following: based on the first signal spectrum, the second signal spectrum and the third signal spectrum, using the first speech optimization network to perform primary optimization processing on the first signal spectrum to obtain a first output spectrum; based on the first output spectrum and the third signal spectrum, using the second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum; fusing the first output spectrum and the second output spectrum (for example, any one of addition, averaging, or weighted operations) to obtain an optimized spectrum. See Figure 5 , Figure 5 Schematic diagram of a two-stage optimization network processing flow provided by an embodiment of the present application. Figure 5 As shown, first, the d spectrum (first signal spectrum), the x spectrum (second signal spectrum), and the e spectrum (third signal spectrum) are input into the first speech optimization network for optimization processing to output the first output spectrum Z1; then the first output spectrum Z1 is input into the second speech optimization network for further optimization processing to output the second output spectrum Z2; finally, the first output spectrum Z1 and the second output spectrum Z2 are fused (such as adding) to obtain the final output optimized spectrum Z.
[0133] Specifically, the optimization processing includes: echo cancellation processing and noise suppression processing. Among them, echo cancellation processing refers to eliminating the echo in the mixed voice signal. The present application can use a first voice optimization network (such as a Transformer network) to perform a first-level echo cancellation processing based on the first signal spectrum, the second signal spectrum, and the third signal spectrum, and use a second voice optimization network (such as a GRU network) to perform a second-level echo cancellation processing based on the first output spectrum and the third signal spectrum; noise suppression processing refers to removing or suppressing the noise in the mixed voice signal. The present application can use a first voice optimization network (such as a Transformer network) to perform a first-level noise suppression processing based on the first signal spectrum, the second signal spectrum, and the third signal spectrum, and use a second voice optimization network (such as a GRU network) to perform a second-level noise suppression processing based on the first output spectrum and the third signal spectrum. Finally, the results of the first voice optimization network and the second voice optimization network are integrated to obtain the optimized spectrum after multi-level optimization processing.
[0134] Based on this, in this application, a multi-level speech optimization network is adopted to realize multi-level optimization processing of the target spectrum (first signal spectrum, second signal spectrum and third signal spectrum), so as to maximize the effect of speech optimization, that is, to improve the noise suppression effect and echo cancellation effect; in addition, by cascading or fusing the optimization results of different optimization networks, it can play the effect of a residual network (Residue connection), so as to improve the optimization capability of the multi-level speech optimization network as a whole.
[0135] S404: Perform time-frequency conversion processing on the optimized spectrum to obtain an optimized speech signal corresponding to the mixed speech signal.
[0136] In a possible implementation, the present application can perform time domain conversion processing (i.e., conversion from frequency domain to time domain) on the optimized spectrum through time-frequency conversion technology to obtain an optimized speech signal corresponding to the mixed speech signal. It should be noted that the time-frequency conversion technology used in the time domain conversion processing here corresponds to the time-frequency conversion technology used in the frequency domain conversion processing in the aforementioned step S402. For example, if Fourier transform technology is used to perform frequency domain conversion processing (i.e., converting the time domain signal into a spectrum), then the inverse transform technology of Fourier transform can be used here to perform time domain conversion processing (i.e., converting the spectrum into a time domain signal).
[0137] Optionally, if the voice interaction process involves an interaction process between a first object (a near-end object) and a second object (a far-end object), an optimized voice signal can be sent to the far-end (i.e., the terminal device where the second object is located) during the voice interaction process, thereby realizing a voice interaction process.
[0138] In an embodiment of the present application, a mixed voice signal generated during a voice interaction process is obtained, the mixed voice signal comprising: a first voice signal generated at a near end during the voice interaction process, an ambient noise signal at the near end, and a far-end echo signal, the far-end echo signal being generated based on a second voice signal generated at a far end; based on the mixed voice signal, a target spectrum to be processed is obtained; the target spectrum comprises a first signal spectrum, a second signal spectrum, and a third signal spectrum, the first signal spectrum being obtained after time-frequency conversion processing is performed on the mixed voice signal, the second signal spectrum being obtained after time-frequency conversion processing is performed on the second voice signal, and the third signal spectrum being obtained after time-frequency conversion processing is performed on a residual signal between the mixed voice signal and a linear echo signal of the second voice signal; a multi-stage voice optimization network is used to perform multi-stage optimization processing on the target spectrum to obtain an optimized spectrum, wherein the optimization processing here comprises echo cancellation processing and noise suppression processing; the optimized spectrum is subjected to time-frequency conversion processing to obtain an optimized voice signal corresponding to the mixed voice signal. It can be seen that the present application can convert the mixed speech signal in the time domain into a multi-dimensional spectrum in the frequency domain (such as the first signal spectrum, the second signal spectrum, and the third signal spectrum), and perform multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effects of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized speech signal.
[0139] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of another method for processing speech signals provided in an embodiment of the present application. Figure 6 As shown, the speech signal processing method can be performed by a computer device (such as Figure 3 Any terminal device or server as shown. Figure 6 As shown, the speech signal processing method may include but is not limited to the following steps S601-S606:
[0140] S601: Acquire a mixed voice signal generated during a voice interaction process.
[0141] The mixed voice signal here includes: a first voice signal generated at the near end during the voice interaction, an ambient noise signal at the near end, and a far-end echo signal, which is generated based on a second voice signal generated at the far end. Figure 1 As shown, the far-end echo signal here refers to the acoustic echo formed when the second language signal enters the near end after passing through the echo path (such as air propagation).
[0142] S602: Determine a target frequency spectrum to be processed based on the mixed speech signal.
[0143] Among them, the target spectrum includes: a first signal spectrum, a second signal spectrum and a third signal spectrum; the first signal spectrum is obtained after time-frequency conversion processing of the mixed speech signal, the second signal spectrum is obtained after time-frequency conversion processing of the second speech signal, and the third signal spectrum is obtained after time-frequency conversion processing of the residual signal between the mixed speech signal and the linear echo signal of the second speech signal.
[0144] It should be noted that the specific implementation process shown in steps S601-S602 of this application can be found in detail in Figure 4 The relevant processes in steps S401-S402 in the embodiment will not be repeated here in the embodiment of the present application.
[0145] S603: Based on the first signal spectrum, the second signal spectrum and the third signal spectrum, a first speech optimization network is used to perform primary optimization processing on the first signal spectrum to obtain a first output spectrum.
[0146] Specifically, the first speech optimization network refers to a neural network model with speech optimization functions (such as echo cancellation function and noise suppression function). The first speech optimization network here can be, for example, a Transformer network (specifically, a Dual-Path Transformer network). The speech optimization processing process performed by the first speech optimization network is described in detail below.
[0147] In a possible implementation, the structure of the first speech optimization network includes: an encoder, a dual-path conversion module, and a decoder. The computer device uses the first speech optimization network to perform a primary optimization process on the first signal spectrum based on the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a first output spectrum, including the following steps (1)-(4):
[0148] (1) Performing feature encoding processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum through an encoder to obtain encoded spectrum features. The encoder (Encoder) here can be any type of network structure with encoding function, for example, the encoder can be a Dense encoder composed of multiple convolutional layers; the first signal spectrum (d spectrum), the second signal spectrum (x spectrum), and the third signal spectrum (e spectrum) are compressed and encoded by the Dense encoder, so that key signal features can be extracted from the three spectra of d spectrum, x spectrum, and e spectrum, thereby reducing the dimension of the input data while retaining the key information.
[0149] Optionally, the structure of the first speech optimization network also includes a feature extraction module (such as a two-dimensional convolutional network). Then, the computer device can perform spectrum compression processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum respectively to obtain the compressed first compressed spectrum, the second compressed spectrum, and the third compressed spectrum; perform feature splicing processing on the first compressed spectrum, the second compressed spectrum, and the third compressed spectrum to obtain a first spliced spectrum; perform feature extraction processing on the first spliced spectrum through the feature extraction module to obtain a fused feature spectrum, and perform feature encoding processing on the fused feature spectrum through the encoder to obtain encoded spectrum features. Among them, the spectrum compression processing method includes: any one of Mel spectrum compression processing, filter bank compression processing, and linear prediction coefficient compression processing. In this implementation, the present application can compress the d spectrum, x spectrum, and e spectrum of the input network into compressed spectrums with smaller dimensions or parameters, such as: Mel spectrum, Fbank spectrum, Linear Prediction Coefficient (LPC, linear prediction coefficient spectrum), etc., thereby reducing the spectrum dimension and greatly reducing the network calculation amount; and then the compressed spectra corresponding to each of the three signals (such as Mel spectrum) can be spliced and the encoded spectrum features can be extracted through a feature extraction module (such as a two-dimensional convolutional network).
[0150] (2) Through the dual-path transformation module, the attention mechanism is used to extract the encoded spectrum features in the time dimension and the frequency dimension to obtain the attention spectrum features. Among them, the so-called dual-path transformation module (DPT): by dividing the input time series into multiple small chunks, and processing them separately in the time dimension and the frequency dimension, it can better capture the long-term dependencies and short-term dynamic changes in the time series; and the DPT module introduces the self-attention mechanism of the Transformer network, so that the model can adaptively focus on important time and frequency information in a global range, improving the modeling ability and effect in speech processing tasks. Therefore, the present application uses the attention mechanism to model the features of the signal in both the time direction and the frequency direction through the dual-path transformation (DPT) module, so it has better modeling prediction capabilities, thereby obtaining attention spectrum features with better modeling effects.
[0151] Specifically, the dual-path transformation module (DPT module) includes a local transformation module (intra-transformer) and a global transformation module (inter-transformer). The local transformation module is used to perform local information modeling of speech signals, and the global transformation module is used to perform global information modeling of speech signals. The following is a detailed description of the specific working process of the DPT module for feature extraction of coded spectrum features:
[0152] ① Segment the coded spectrum feature to obtain T sub-spectrum features. The dimension of the coded spectrum feature is T×F, where T refers to the time step, and F refers to the spectrum vector corresponding to each time step. Both T and F are positive integers. Then the coded spectrum feature (T×F) can be segmented according to the time dimension to obtain T sub-spectrum features.
[0153] ②Use the local transformation module to process the local features of the ith sub-spectral feature in the T sub-spectral features in the frequency dimension through the self-attention mechanism to obtain the local spectral feature corresponding to the ith sub-spectral feature, where i is a positive integer and 1≤i≤T. The working process of the local transformation module (intra-transformer) is shown in the following formula 1:
[0154] Formula 1
[0155] In the above formula 1, Represents the mapping function defined by transformer, b=1, 2, …, B; =D, [:,:,i]∈ Represents the sequence defined by all T time steps of the i-th sub-spectrum feature.
[0156] ③Use the global transformation module to process the global features of T local spectrum features in the time dimension through the self-attention mechanism to obtain the attention spectrum features. Among them, the global transformation module (inter-transformer) is used to aggregate the information of each sub-spectral feature to capture the global information and act on the last dimension of D. Its working process is shown in the following formula 2:
[0157] Formula 2
[0158] In the above formula 2, [:,j,i]∈ represents the sequence defined by the F sub-spectral features corresponding to the jth time step. After the above global modeling process, Each time step in contains all the information of the corresponding sub-spectral features, thereby modeling the global information of the speech signal.
[0159] (3) The attention spectrum features are decoded by a decoder to obtain a complex gain parameter. Among them, the output result of the DPT module can be predicted by a decoder (for example, the decoder can be a deconvolution layer or a linear layer, etc.) to obtain the gain in the complex domain: Complex Ideal Ratio Mask (cIRM, complex gain parameter). The so-called cIRM is a masking method for processing speech signals in the frequency domain, which aims to restore or enhance the target speech signal by adjusting the amplitude and phase of the signal.
[0160] (4) Performing a first-level speech optimization process on the first signal spectrum using a complex gain parameter to obtain a first output spectrum. In the frequency domain, speech signals are usually represented as complex numbers in the form of , where |X| is the amplitude of the signal, is the phase of the signal. The task in speech enhancement and separation is usually to separate the target speech signal (i.e., clean speech) from the noise in the mixed speech signal in the complex domain with noise. The following is a detailed description of the process of speech optimization processing of the complex gain parameter cIRM:
[0161] ①cIRM is defined as a complex mask ,in and are the real part and the imaginary part, respectively, which are used to adjust the real part and the imaginary part of the input signal, expressed as the following formula 3:
[0162] Formula 3
[0163] In the above formula 3, is the complex representation of the target speech signal, is the complex representation of the input mixed speech signal.
[0164] ② Since the complex gain parameter cIRM specifically includes: a real gain parameter and an imaginary gain parameter, and the first signal spectrum includes a real data spectrum and an imaginary data spectrum; then, in the embodiment of the present application, the real gain parameter can be multiplied by the real data spectrum, and the imaginary gain parameter can be multiplied by the imaginary data matrix to obtain the first output spectrum Z1.
[0165] Based on this, in the process of speech optimization processing using the complex gain parameter cIRM, the present application can, on the one hand, simultaneously scale the real and imaginary parts of the input signal through cIRM, thereby better suppressing noise while enhancing the target speech; on the other hand, it can retain and restore phase information while adjusting the signal strength, which plays an important role in the naturalness and quality of the speech; on the other hand, cIRM can provide better performance than a simple amplitude mask, especially in the presence of complex noise, thereby improving the optimization effect.
[0166] Based on the above steps (1)-(4), the present application introduces a DPT module in the first-level speech optimization network, which can use the attention mechanism to model the features of the signal in both the time direction and the frequency direction, thereby having better modeling and prediction capabilities, and can then realize noise suppression and echo cancellation functions in the first-level speech optimization process based on the d / x / e spectrum.
[0167] S604: Based on the first output spectrum and the third signal spectrum, use a second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum.
[0168] It should be noted that, since the Mel spectrum is a rougher representation of the spectrum (the Mel spectrum is the spectrum after dimension compression), it may be slightly less effective in predicting the fine structure of the spectrum. At the same time, in order to reduce the amount of network calculation, the network parameters selected by the Encoder, DPT and Decoder modules in the first speech optimization network will be as small as possible, which will inevitably lead to the loss of the model effect of the first speech optimization network. Therefore, there may still be some echoes or noise in the first output spectrum Z1 that have not been eliminated, or the quality of near-end speech retention is poor. Based on this, in order to further improve the quality of model prediction, the first output spectrum and the e spectrum can be input into the second speech optimization network for secondary optimization processing. Specifically, the second speech optimization network refers to a neural network model with speech optimization functions (such as echo elimination and noise suppression functions). The speech optimization processing performed by the second speech optimization network is described in detail below.
[0169] In a possible implementation, the structure of the second speech optimization network includes: a compression module, a gated recurrent unit network module, and a decompression module. The computer device uses the second speech optimization network to perform secondary optimization processing on the third signal spectrum based on the first output spectrum and the third signal spectrum to obtain the second output spectrum, which specifically includes the following steps (1)-(4):
[0170] (1) The first output spectrum and the third signal spectrum are convolved by the compression module to obtain a convolution feature spectrum. The compression module here has a convolution function (for example, the compression module can be a one-dimensional convolution or a linear layer). The convolution process performed by the compression module on the output result of the first optimization network (i.e., the first output spectrum Z1) and the third signal spectrum (e spectrum) can extract important spectrum information, thereby improving the effectiveness and accuracy of the spectrum processing process.
[0171] Optionally, the computer device can compress and calculate the first output spectrum to obtain a first logarithmic power spectrum, and compress and calculate the third signal spectrum to obtain a second logarithmic power spectrum; and splice the first logarithmic power spectrum and the second logarithmic power spectrum to obtain a second spliced spectrum; and convolve the second spliced spectrum through a compression module to obtain a convolution feature spectrum. Among them, compressing the first output spectrum and the second output spectrum into a logarithmic power spectrum can reduce the span range of the spectrum values, thereby improving the model effect.
[0172] (2) Through the gated recurrent unit network module, the convolution feature spectrum is processed according to the time dimension to obtain the processed feature optimized spectrum. Among them, the gated recurrent unit network (Gated Recurrent Unit, GRU) is a variant of the recurrent neural network (RNN). The design purpose is to effectively capture the dependencies in time series data through the gating mechanism, while alleviating the gradient vanishing problem in traditional RNN. The main role and application of GRU in speech signal processing are explained in detail below.
[0173] 1. Capturing time dependencies:
[0174] Speech signals are typical time series data with strong temporal dependencies. GRU can effectively capture and model these temporal dependencies through its internal loop structure, thus performing well in tasks such as speech enhancement and speech recognition. Therefore, this application can further achieve echo cancellation and noise suppression through the GRU network, thereby improving the speech optimization effect.
[0175] 2. Effective context information processing:
[0176] The update gate and reset gate mechanism in GRU allows the network to selectively retain or discard past input information, thereby better processing long-term dependencies and contextual information. This is especially important for continuous speech or long speech segments in speech signal processing.
[0177] 3. Reduce computational complexity:
[0178] Compared with the LSTM (Long Short-Term Memory) network, the GRU network structure is simpler, with only two gates (update gate and reset gate) and no separate memory unit. This allows the GRU to maintain similar performance while having lower computational complexity, making it suitable for real-time voice processing tasks, such as conference scenarios, call scenarios, and other real-time voice interaction scenarios.
[0179] In addition, GRU has the following applications: ① Speech enhancement: GRU can be used to model noisy speech signals and enhance the clarity and quality of speech by learning denoising strategies. ② Speech recognition: In speech recognition tasks, GRU networks can be used to process continuous and real-time speech signal streams, extract features and perform classification or decoding. ③ Speech separation: In speech separation tasks, GRU helps separate the speech of different speakers by modeling the temporal dynamic characteristics of mixed speech signals.
[0180] Optionally, the gated recurrent unit network (GRU) may also include an activation function, which is used to add nonlinear factors to the model and mine the hidden logical relationships in the data. The activation functions here include: sigmoid function, hyperbolic tangent (tanh) function, linear rectifier (Rectified Linear Unit, ReLU) function, Gaussian Error (Gaussian Error Linerar Units, GELU) function, etc. In addition, the number of GRU networks included in the second optimization network can be one or more (for example, two or three), and the number can be flexibly changed according to specific needs.
[0181] Based on this, the embodiment of the present application introduces the GRU network to perform secondary speech optimization processing. Since it has efficient time-dependent modeling capabilities and low computational complexity in the speech signal processing process, it can improve speech processing efficiency while improving accuracy during the speech optimization processing process.
[0182] (3) Decompress the feature optimization spectrum through the decompression module to obtain a real gain parameter. The decompression module has a dimension expansion function. For example, if the compression module is a one-dimensional convolution, the decompression module here can be a one-dimensional deconvolution. Then, after the feature optimization spectrum is dimensionally expanded through the decompression module (such as a one-dimensional deconvolution), the Ideal Ratio Mask (IRM, real gain parameter) is predicted. The so-called IRM is an idealized ratio mask, which is defined as the ratio of the amplitude of the target signal to the total amplitude. It is usually used to adjust the amplitude in the frequency domain to retain the target signal and suppress noise.
[0183] (4) Perform secondary speech optimization processing on the third signal spectrum based on the real gain parameter to obtain a second output spectrum. Specifically, the real gain parameter IRM can be multiplied by the third signal spectrum to obtain the second output spectrum, wherein the value of the real gain parameter IRM is usually a value between [0, 1]. If the IRM parameter value of a certain signal spectrum s1 is closer to 1, it means that the current signal spectrum s1 contains less noise signals; conversely, if the IRM parameter value of another signal spectrum s2 is closer to 0, it means that the current signal spectrum s1 contains more noise signals. Based on this, by multiplying the IRM with the corresponding signal spectrum, noise suppression can be achieved while retaining the human voice signal in the speech.
[0184] Optionally, the real gain parameter IRM includes a first real gain vector IRM1 and a second real gain vector IRM2, the first real gain vector IRM1 refers to the gain vector after the third signal spectrum (e spectrum) is optimized, and the second real gain vector IRM2 refers to the gain vector after the first output spectrum (Z) is optimized. Specifically, the computer device can multiply the first real gain vector and the third signal spectrum to obtain the second output spectrum; and multiply the second real gain vector and the first output spectrum to obtain the third output spectrum. In other words, the two-level speech optimization network designed in the present application can predict two groups of real gain vectors (IRM1 and IRM2), one group of real gain vectors (such as IRM1) acts on the e spectrum to obtain the second output spectrum, and the other group of real gain vectors (such as IRM2) acts on the first output spectrum Z to obtain the third output spectrum.
[0185] It should be noted that in the embodiment of the present application, the specific number and type of IRMs predicted by the secondary speech optimization network can be determined based on the specific scenario requirements. If the predicted real gain parameters only include IRM2, the first output spectrum (Z) can be subjected to secondary speech optimization processing based on IRM2 to obtain a third output spectrum; if the predicted real gain parameters only include IRM1, the third signal spectrum (e) can be subjected to secondary speech optimization processing based on IRM1 to obtain a second output spectrum; if the predicted real gain parameters include both IRM1 and IRM2, IRM1 can be multiplied by the e spectrum to obtain a second output spectrum, and IRM2 can be multiplied by the Z spectrum to obtain a third output spectrum. In this implementation, the present application performs secondary speech optimization processing based on one or two groups of real gain parameters, which can further improve the noise suppression effect and echo cancellation effect, so as to improve the optimization capability of the model as a whole.
[0186] Based on the above steps (1)-(4), in the speech optimization process of the secondary optimization network, the e-spectrum can be optimized in the secondary optimization process in combination with the output result (first output spectrum) of the primary speech optimization network. Since the output of the primary speech optimization network can play an effect similar to embedding, it can improve the prediction ability of the secondary speech optimization network, thereby improving the secondary speech optimization effect.
[0187] S605: Fusing the first output spectrum and the second output spectrum to obtain an optimized spectrum.
[0188] In a possible implementation, the fusion processing here specifically includes the following two methods: Method 1, the first output spectrum and the second output spectrum are fused to obtain an optimized spectrum; Method 2, the first output spectrum, the second output spectrum, and the third output spectrum are fused to obtain an optimized spectrum; wherein the fusion processing here specifically includes: any one of summation operation, weighted operation, and average operation. For example, taking the fusion process of three spectra (the first output spectrum, the second output spectrum, and the third output spectrum) as an example, it specifically includes: (1) directly adding the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum; or, (2) performing a weighted operation on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum, wherein the weighting factor corresponding to each spectrum can be pre-set according to an empirical value, for example, the weighting factor of the first output spectrum is 0.3, the weighting factor of the second output spectrum is 0.4, and the weighting factor of the third output spectrum is 0.3; (3) performing an average operation on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum. In this implementation, by fusing the output results of the first speech optimization network and the second speech optimization network, the model processing effect can be further improved, thereby improving the speech optimization processing capability.
[0189] Based on the description of steps S603-S605 above, the complete workflow of the secondary voice optimization network is described again in conjunction with the accompanying drawings. Figure 7 , Figure 7 Schematic diagram of a two-stage voice optimization network provided in an embodiment of the present application. Figure 7 As shown, the workflow of the two-stage speech optimization network is as follows:
[0190] 1) Compressing the d spectrum, x spectrum, and e spectrum into Mel spectrum respectively, and splicing the Mel spectra corresponding to the three to obtain a first spliced spectrum, and inputting the first spliced spectrum into a feature extraction module (such as a two-dimensional convolutional network) for feature extraction to obtain a fused feature spectrum;
[0191] 2) Encode the above fused feature spectrum through Encoder to obtain the encoded spectrum feature;
[0192] 3) The DPT module (Dual-Path Transformer) is used to model the encoded spectrum features in both the time and frequency directions using the attention mechanism to obtain the attention spectrum features;
[0193] 4) Decode the attention spectrum features through Decoder to obtain the complex gain parameter cIRM;
[0194] 5) Multiplying the complex gain parameter cIRM by the d spectrum to obtain a first output spectrum;
[0195] 6) respectively calculating the logarithmic power spectra corresponding to the first output spectrum and the e-spectrum, and splicing the first logarithmic power spectrum of the first output spectrum and the second logarithmic power spectrum of the e-spectrum to obtain a second spliced spectrum;
[0196] 7) The second concatenated spectrum is compressed by a compression module (such as a one-dimensional convolution or a linear layer) to obtain a convolution feature spectrum, so as to reduce the amount of model calculation and improve processing efficiency;
[0197] 8) The compressed convolution feature spectrum is further modeled by the GRU module to obtain two sets of real gain parameters (IRM1 and IRM2). IRM1 acts on the first output spectrum and IRM2 acts on the e-spectrum, that is, IRM1 is multiplied by the first output spectrum to obtain the second output spectrum, and IRM2 is multiplied by the e-spectrum to obtain the third output spectrum.
[0198] 9) The three spectra (the first output spectrum, the second output spectrum, and the third output spectrum) are added together by residual connection to obtain an optimized spectrum (ie, the final required near-end speech spectrum Z).
[0199] It should be noted that in Figure 7In the two-stage network architecture shown, the input data of the first voice optimization network and the second voice optimization network can be flexibly changed according to the scene requirements. For example, in a feasible embodiment, the d spectrum, x spectrum, and e spectrum can be input into the first voice optimization network for primary optimization processing to obtain the first output spectrum, and the first output spectrum, x spectrum, and e spectrum are all input into the second voice optimization network for secondary optimization processing to obtain the second output spectrum; for example, in another feasible embodiment, the d spectrum, x spectrum, and e spectrum can be input into the first voice optimization network for primary optimization processing to obtain the first output spectrum, and the first output spectrum, d spectrum, x spectrum, and e spectrum are all input into the second voice optimization network for secondary optimization processing to obtain the second output spectrum. The present application does not specifically limit the input data of the primary voice optimization network and the secondary voice optimization network.
[0200] Based on this, through Figure 7 As shown, the two-stage optimization processing is performed through a two-stage network structure. On the one hand, the network depth can be deepened, and the output of the first speech optimization network can play an effect similar to embedding to improve the prediction ability of the second speech optimization network; on the other hand, by fusing the output results of the first speech optimization network and the second speech optimization network, the effect of a residual network (Residue connection) is played, which can reduce the burden of each of the two optimization networks and improve the prediction ability of the network as a whole.
[0201] S606: Perform time-frequency conversion processing on the optimized spectrum to obtain an optimized speech signal corresponding to the mixed speech signal.
[0202] Specifically, the present application can perform time domain conversion processing on the optimized spectrum through time-frequency conversion technology to obtain an optimized speech signal corresponding to the mixed speech signal. It should be noted that the time-frequency conversion technology used here when performing the time domain conversion processing corresponds to the time-frequency conversion technology used when performing the frequency domain conversion processing in the aforementioned step S602. For example, in S602, Fourier transform technology is used to perform frequency domain conversion processing (that is, the time domain signal is converted into a spectrum), then the inverse transform technology of Fourier transform can be used here to perform time domain conversion processing (that is, the spectrum is converted into a time domain signal).
[0203] In a possible implementation, the above-mentioned voice signal processing method of the present application can be applied to real-time voice interaction scenarios such as conference scenarios, live broadcast scenarios, and call scenarios. Specifically, the computer device can obtain a real-time voice signal stream in a real-time communication scenario, and segment the real-time voice signal stream in the time domain according to a preset frame length to obtain a voice segment signal set, which includes N voice segments, N is a positive integer; the j-th voice segment of the N voice segments is used as a mixed voice signal to obtain an optimized segment of the j-th voice segment based on a multi-level voice optimization network, j is a positive integer and 1≤j≤N (wherein, the process of obtaining the optimized segment can refer to the specific process of obtaining the optimized voice signal shown in the above S601-S606 of the present application); the obtained N optimized segments are spliced to obtain an optimized voice signal corresponding to the real-time voice signal stream. The specific interaction process of the voice signal processing method of the present application is illustrated below in combination with specific scenarios.
[0204] See also Figure 8 , Figure 8 Schematic diagram of a scenario of voice optimization processing provided by an embodiment of the present application. Figure 8 As shown, assuming that the scenario of the voice optimization processing is a real-time call scenario, the real-time call scenario mainly involves: terminal device 801, terminal device 802, and server 803, specifically involving the voice interaction process between the voice signal sender (referred to as the first object) and the voice signal receiver (referred to as the second object), wherein the first object performs voice interaction with the second object through the terminal device 801, and the second object performs voice interaction with the first object through the terminal device 802; a multi-level voice optimization network is deployed in the server 803, and voice signal processing services (such as voice transmission, voice optimization and other services) are provided in the above-mentioned voice interaction process through the multi-level voice optimization network. Specifically, the voice interaction process of the real-time call scenario specifically includes the following processes ①-④:
[0205] ① The first object obtains a real-time voice signal stream in a real-time call scenario between a terminal device 801 (such as a mobile phone) and a second object, and can perform frame processing on the real-time voice signal stream according to a preset frame length (such as 10ms, and the preset frame length can be set according to an empirical value), thereby obtaining multiple (such as N) voice segments (i.e., signal frames with a frame length of 10ms). Next, the terminal device 801 can send each voice segment to the server 803 for optimization processing.
[0206] ② For any voice segment, the server 803 determines the target spectrum to be processed. The voice segment includes: the first voice signal generated at the near end (terminal device 801) during the voice interaction, the environmental noise signal at the near end, and the far end echo signal, which is generated based on the far end (terminal device 802); in addition, the target spectrum of the optimized segment includes: the first signal spectrum (d spectrum), the second signal spectrum (x spectrum) and the third signal spectrum (e spectrum).
[0207] ③ The server 803 uses a multi-level voice optimization network (such as a first voice optimization network and a second voice optimization network) to perform multi-level optimization processing on the voice segment to obtain the spectrum of the optimized segment (the specific optimization process here can refer to the process shown in steps S603-S606 of the embodiment of the present application).
[0208] ④ The server 803 repeats the above steps for the next voice segment to obtain the optimized segments of each of the N voice segments, and then uses the traditional Overlap-and-Add method to obtain the complete digital waveform signal (optimized voice signal) of the real-time voice signal stream, and sends the optimized voice signal of the real-time voice signal stream to the second object.
[0209] It should be noted that the voice optimization processing flow involved in the above-mentioned real-time call scenario (such as linear filtering processing and two-stage neural network optimization processing) can also be completed separately by the terminal device 801, and no specific limitation is made to this. Based on this, in the above-mentioned real-time call scenario, the present application can divide the real-time voice signal stream into multiple voice segments, thereby optimizing each fixed frame length (i.e., preset frame length, such as 10ms) voice segment separately, and finally splicing each optimized segment to obtain a real-time optimized voice signal. Since the frame length of each voice segment to be processed is the same, this segmented processing method can improve processing efficiency in real-time voice interaction scenarios while enhancing the voice optimization effect.
[0210] In the embodiment of the present application, a new low-complexity noise and echo suppression method based on a two-stage network structure of a dual-path-transformer (DPT) network is proposed. The method mainly involves: using a linear filter echo cancellation module plus an echo and noise suppression model based on a deep neural network, noise suppression and echo cancellation can be performed simultaneously; wherein, the first-level optimization network of the multi-level speech optimization network adopts a DPT network architecture to model the echo and most of the noise, and outputs an embedding spectrum (first output spectrum); the second-level optimization network of the multi-level speech optimization network adopts a GRU network with a smaller number of parameters and uses the embedding spectrum output by the first-level optimization network as input to more finely predict the speech spectrum gain; finally, the first-level optimization network and the second-level optimization network are weighted and summed to obtain the final output optimized spectrum. Through the embodiment of the present application, the speech noise and echo suppression effect can be greatly improved while maintaining a small amount of calculation, and the near-end voice quality can be well maintained in real-time communication scenarios such as double talk, reducing the fatigue of long-term calls.
[0211] The following is an explanation of the related devices of the speech signal processing solution provided in the embodiments of the present application.
[0212] It should be noted that in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0213] See also Fig. 9 , Fig. 9 900 is a schematic diagram of the structure of a speech signal processing device provided in an embodiment of the present application. The speech signal processing device 900 can be used to execute the corresponding steps in the speech signal processing method provided in an embodiment of the present application. In specific implementation, the speech signal processing device 900 can specifically include:
[0214] The acquisition unit 901 is used to acquire a mixed voice signal generated during the voice interaction process, where the mixed voice signal includes: a first voice signal generated at the near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, where the far end echo signal is generated based on a second voice signal generated at the far end;
[0215] The processing unit 902 is used to determine a target spectrum to be processed based on the mixed speech signal; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on the residual signal between the mixed speech signal and the linear echo signal of the second speech signal;
[0216] The processing unit 902 is further used to perform multi-level optimization processing on the target spectrum using a multi-level speech optimization network to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing;
[0217] The processing unit 902 is further configured to perform time-frequency conversion on the optimized spectrum to obtain an optimized speech signal corresponding to the mixed speech signal.
[0218] In a possible implementation, the multi-level speech optimization network includes M speech optimization networks, where M is an integer greater than or equal to 2; any speech optimization network is used to: perform an optimization process on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum; the processing unit 902 uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0219] Using the kth speech optimization network among the M speech optimization networks to perform optimization processing on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a candidate spectrum; k is a positive integer and 1≤k≤M;
[0220] The obtained M candidate spectrums are fused to obtain an optimized spectrum;
[0221] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0222] In a possible implementation, the multi-level speech optimization network includes: a first speech optimization network and a second speech optimization network; the processing unit 902 uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum for performing the following operations:
[0223] Based on the first signal spectrum, the second signal spectrum and the third signal spectrum, using a first speech optimization network to perform a primary optimization process on the first signal spectrum to obtain a first output spectrum;
[0224] Based on the first output spectrum and the third signal spectrum, using a second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum;
[0225] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum.
[0226] In a possible implementation, the structure of the first speech optimization network includes: an encoder, a dual-path conversion module, and a decoder; the processing unit 902 uses the first speech optimization network to perform a first-level optimization process on the first signal spectrum based on the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a first output spectrum, which is used to perform the following operations:
[0227] Performing feature encoding processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum through an encoder to obtain encoded spectrum features;
[0228] Through the dual-path conversion module, the attention mechanism is used to extract the encoded spectrum features in the time dimension and frequency dimension to obtain the attention spectrum features;
[0229] The attention spectrum features are decoded by a decoder to obtain a complex gain parameter;
[0230] A first-level speech optimization process is performed on the first signal spectrum using a complex gain parameter to obtain a first output spectrum.
[0231] In a possible implementation, the dual-path conversion module includes a local conversion module and a global conversion module, the local conversion module is used to perform local information modeling of the speech signal, and the global conversion module is used to perform global information modeling of the speech signal; the dimension of the encoded spectrum feature is T×F, T refers to the time step, F refers to the spectrum vector corresponding to each time step, and T and F are both positive integers;
[0232] The processing unit 902 uses the attention mechanism to perform feature extraction processing on the encoded spectrum features in the time dimension and the frequency dimension through the dual-path conversion module to obtain the attention spectrum features for performing the following operations:
[0233] The coded spectrum features are segmented to obtain T sub-spectrum features;
[0234] A local conversion module is used to process the local features of the ith sub-spectral feature in the frequency dimension through the self-attention mechanism to obtain the local spectral feature corresponding to the ith sub-spectral feature, where i is a positive integer and 1≤i≤T.
[0235] A global transformation module is used to process T local spectral features into global features in the time dimension through a self-attention mechanism to obtain attention spectral features.
[0236] In a possible implementation, the structure of the first speech optimization network further includes a feature extraction module; and the processing unit 902 is further configured to perform the following operations:
[0237] Performing spectrum compression processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum respectively to obtain a compressed first compressed spectrum, a second compressed spectrum, and a third compressed spectrum;
[0238] Performing feature splicing processing on the first compressed spectrum, the second compressed spectrum, and the third compressed spectrum to obtain a first spliced spectrum;
[0239] Performing feature extraction processing on the first spliced spectrum through a feature extraction module to obtain a fused feature spectrum, and performing feature encoding processing on the fused feature spectrum through an encoder to obtain encoded spectrum features;
[0240] The spectrum compression processing method includes: any one of Mel spectrum compression processing, filter bank compression processing, and linear prediction coefficient compression processing.
[0241] In a possible implementation, the structure of the second speech optimization network includes: a compression module, a gated cycle unit network module, and a decompression module; the processing unit 902 uses the second speech optimization network to perform secondary optimization processing on the third signal spectrum based on the first output spectrum and the third signal spectrum to obtain a second output spectrum for performing the following operations:
[0242] Performing convolution processing on the first output spectrum and the third signal spectrum through the compression module to obtain a convolution characteristic spectrum;
[0243] Through the gated recurrent unit network module, the convolution feature spectrum is processed according to the time dimension to obtain the processed feature optimized spectrum;
[0244] Decompressing the characteristic optimization spectrum through a decompression module to obtain a real gain parameter;
[0245] A second-level speech optimization process is performed on the third signal spectrum based on the real gain parameter to obtain a second output spectrum.
[0246] In a possible implementation, the real gain parameter includes a first real gain vector and a second real gain vector, the first real gain vector refers to a gain vector after optimizing the third signal spectrum, and the second real gain vector refers to a gain vector after optimizing the first output spectrum; the processing unit 902 is further used to perform the following operations:
[0247] Performing a multiplication operation on the first real gain vector and the third signal spectrum to obtain a second output spectrum;
[0248] A multiplication operation is performed on the second real gain vector and the first output spectrum to obtain a third output spectrum.
[0249] In a possible implementation, the processing unit 902 is further configured to perform the following operations:
[0250] Compressing and calculating the first output spectrum to obtain a first logarithmic power spectrum, and compressing and calculating the third signal spectrum to obtain a second logarithmic power spectrum;
[0251] Performing splicing processing on the first logarithmic power spectrum and the second logarithmic power spectrum to obtain a second spliced spectrum;
[0252] The second spliced spectrum is convolved by a compression module to obtain a convolution feature spectrum.
[0253] In a possible implementation, the processing unit 902 performs fusion processing on the first output spectrum and the second output spectrum to obtain an optimized spectrum for performing the following operations:
[0254] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum; or,
[0255] Performing fusion processing on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum;
[0256] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0257] In a possible implementation, the voice interaction process is a process of voice interaction between the first object and the second object; the processing unit 902 is further configured to perform the following operations:
[0258] Acquire a second voice signal generated by the second object during the voice interaction process;
[0259] Performing linear echo cancellation processing on the second voice signal using an adaptive filtering technique to obtain a linear echo signal corresponding to the second voice signal;
[0260] The adaptive filtering technology includes: any one of a minimum mean square error filter, a recursive least squares filter, and a Kalman filter.
[0261] In a possible implementation, the processing unit 902 determines a target spectrum to be processed based on the mixed speech signal, and performs the following operations:
[0262] Performing time-frequency conversion processing on the mixed speech signal using a frequency domain processing technique to obtain a first signal spectrum; and performing time-frequency conversion processing on the second speech signal using a frequency domain processing technique to obtain a second signal spectrum;
[0263] Performing a subtraction operation on the mixed speech signal and the linear echo signal to obtain a residual signal, and performing time-frequency conversion processing on the residual signal using a frequency domain processing technique to obtain a third signal spectrum;
[0264] The frequency domain processing technology includes: any one of Fourier transform technology, fast Fourier transform technology, wavelet transform technology, and Laplace transform technology.
[0265] In a possible implementation, the voice interaction process refers to an interaction process involved in a real-time communication scenario, and the real-time communication scenario includes: any one of a conference scenario, a live broadcast scenario, and a call scenario; the processing unit 902 is further configured to perform the following operations:
[0266] A real-time voice signal stream is obtained in a real-time communication scenario, and segments are intercepted in the time domain according to a preset frame length to obtain a voice segment signal set; the voice segment signal set includes N voice segments, where N is a positive integer;
[0267] The j-th speech segment of the N speech segments is used as a mixed speech signal to obtain an optimized segment of the j-th speech segment based on a multi-level speech optimization network, where j is a positive integer and 1≤j≤N;
[0268] The obtained N optimized segments are spliced to obtain an optimized speech signal corresponding to the real-time speech signal stream.
[0269] In an embodiment of the present application, it is possible to convert a mixed voice signal in the time domain into a multi-dimensional spectrum in the frequency domain (such as a first signal spectrum, a second signal spectrum, and a third signal spectrum), and perform multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effects of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized voice signal.
[0270] See also Fig.10 , Fig.10 1000 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1000 is used to execute the steps performed by the computer device in the aforementioned method embodiment. The computer device 1000 may include a device (for example, one or more of a server, a node, a terminal, etc.), or may include components inside the device (for example, a chip, a software module or a hardware module, etc.). The computer device may include at least one processor 1001 and a communication interface 1002. Further, optionally, the computer device may also include at least one memory 1003 and a bus 1004. In addition, the processor 1001, the communication interface 1002 and the memory 1003 are connected via a bus 1004. Wherein:
[0271] 1) The processor 1001 is a module that performs arithmetic operations and / or logical operations, and may specifically be a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor unit (MPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a coprocessor (assisting the central processing unit to complete corresponding processing and applications), a micro controller unit (MCU), and other processing modules, or a combination of multiple of them.
[0272] 2) The communication interface 1002 may be used to provide information input or output for at least one processor 1001. And / or, the communication interface 1002 may be used to receive data sent from the outside and / or send data to the outside, and may be a wired link interface including an Ethernet cable, etc., or a wireless link interface (Wi-Fi, Bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, and other short-range wireless communication technologies, etc.). The communication interface 1002 may be used as a network interface.
[0273] 3) The memory 1003 is used to provide a storage space, in which data such as an operating system and a computer program (including program instructions) can be stored. The memory 1003 can be a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), etc., or a combination of multiple types.
[0274] Specifically, the processor 1001 calls the program instructions stored in the memory 1003 to perform the following operations:
[0275] Acquire a mixed voice signal generated during the voice interaction process, the mixed voice signal comprising: a first voice signal generated at the near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, the far end echo signal being generated based on a second voice signal generated at the far end;
[0276] Based on the mixed speech signal, a target spectrum to be processed is determined; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on the residual signal between the mixed speech signal and the linear echo signal of the second speech signal;
[0277] A multi-level speech optimization network is used to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing;
[0278] The optimized spectrum is subjected to time-frequency conversion processing to obtain an optimized speech signal corresponding to the mixed speech signal.
[0279] In a possible implementation, the multi-level speech optimization network includes M speech optimization networks, where M is an integer greater than or equal to 2; any speech optimization network is used to: perform an optimization process on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum; the processor 1001 uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0280] Using the kth speech optimization network among the M speech optimization networks to perform optimization processing on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a candidate spectrum; k is a positive integer and 1≤k≤M;
[0281] The obtained M candidate spectrums are fused to obtain an optimized spectrum;
[0282] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0283] In a possible implementation, the multi-level speech optimization network includes: a first speech optimization network and a second speech optimization network; the processor 1001 uses the multi-level speech optimization network to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0284] Based on the first signal spectrum, the second signal spectrum and the third signal spectrum, using a first speech optimization network to perform a primary optimization process on the first signal spectrum to obtain a first output spectrum;
[0285] Based on the first output spectrum and the third signal spectrum, using a second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum;
[0286] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum.
[0287] In a possible implementation, the structure of the first speech optimization network includes: an encoder, a dual-path conversion module, and a decoder; the processor 1001 uses the first speech optimization network to perform a first-level optimization process on the first signal spectrum based on the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a first output spectrum, which is used to perform the following operations:
[0288] Performing feature encoding processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum through an encoder to obtain encoded spectrum features;
[0289] Through the dual-path conversion module, the attention mechanism is used to extract the encoded spectrum features in the time dimension and frequency dimension to obtain the attention spectrum features;
[0290] The attention spectrum features are decoded by a decoder to obtain a complex gain parameter;
[0291] A first-level speech optimization process is performed on the first signal spectrum using a complex gain parameter to obtain a first output spectrum.
[0292] In a possible implementation, the dual-path conversion module includes a local conversion module and a global conversion module, the local conversion module is used to perform local information modeling of the speech signal, and the global conversion module is used to perform global information modeling of the speech signal; the dimension of the encoded spectrum feature is T×F, T refers to the time step, F refers to the spectrum vector corresponding to each time step, and T and F are both positive integers;
[0293] The processor 1001 uses the attention mechanism to perform feature extraction processing on the encoded spectrum features in the time dimension and the frequency dimension through the dual-path conversion module to obtain the attention spectrum features for performing the following operations:
[0294] The coded spectrum features are segmented to obtain T sub-spectrum features;
[0295] A local conversion module is used to process the local features of the ith sub-spectral feature in the frequency dimension through the self-attention mechanism to obtain the local spectral feature corresponding to the ith sub-spectral feature, where i is a positive integer and 1≤i≤T.
[0296] A global transformation module is used to process T local spectral features into global features in the time dimension through a self-attention mechanism to obtain attention spectral features.
[0297] In a possible implementation, the structure of the first speech optimization network further includes a feature extraction module; and the processor 1001 is further configured to perform the following operations:
[0298] Performing spectrum compression processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum respectively to obtain a compressed first compressed spectrum, a second compressed spectrum, and a third compressed spectrum;
[0299] Performing feature splicing processing on the first compressed spectrum, the second compressed spectrum, and the third compressed spectrum to obtain a first spliced spectrum;
[0300] Performing feature extraction processing on the first spliced spectrum through a feature extraction module to obtain a fused feature spectrum, and performing feature encoding processing on the fused feature spectrum through an encoder to obtain encoded spectrum features;
[0301] The spectrum compression processing method includes: any one of Mel spectrum compression processing, filter bank compression processing, and linear prediction coefficient compression processing.
[0302] In a possible implementation, the structure of the second speech optimization network includes: a compression module, a gated cycle unit network module, and a decompression module; the processor 1001 uses the second speech optimization network to perform secondary optimization processing on the third signal spectrum based on the first output spectrum and the third signal spectrum to obtain a second output spectrum, which is used to perform the following operations:
[0303] Performing convolution processing on the first output spectrum and the third signal spectrum through the compression module to obtain a convolution characteristic spectrum;
[0304] Through the gated recurrent unit network module, the convolution feature spectrum is processed according to the time dimension to obtain the processed feature optimized spectrum;
[0305] Decompressing the characteristic optimization spectrum through a decompression module to obtain a real gain parameter;
[0306] A second-level speech optimization process is performed on the third signal spectrum based on the real gain parameter to obtain a second output spectrum.
[0307] In a possible implementation, the real gain parameter includes a first real gain vector and a second real gain vector, the first real gain vector refers to a gain vector after optimizing the third signal spectrum, and the second real gain vector refers to a gain vector after optimizing the first output spectrum; the processor 1001 is further used to perform the following operations:
[0308] Performing a multiplication operation on the first real gain vector and the third signal spectrum to obtain a second output spectrum;
[0309] A multiplication operation is performed on the second real gain vector and the first output spectrum to obtain a third output spectrum.
[0310] In a possible implementation manner, the processor 1001 is further configured to perform the following operations:
[0311] Compressing and calculating the first output spectrum to obtain a first logarithmic power spectrum, and compressing and calculating the third signal spectrum to obtain a second logarithmic power spectrum;
[0312] Performing splicing processing on the first logarithmic power spectrum and the second logarithmic power spectrum to obtain a second spliced spectrum;
[0313] The second spliced spectrum is convolved by a compression module to obtain a convolution feature spectrum.
[0314] In a possible implementation, the processor 1001 performs fusion processing on the first output spectrum and the second output spectrum to obtain an optimized spectrum, which is used to perform the following operations:
[0315] The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum; or,
[0316] Performing fusion processing on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum;
[0317] The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
[0318] In a possible implementation, the voice interaction process is a process of voice interaction between the first object and the second object; the processor 1001 is further configured to perform the following operations:
[0319] Acquire a second voice signal generated by the second object during the voice interaction process;
[0320] Performing linear echo cancellation processing on the second voice signal using an adaptive filtering technique to obtain a linear echo signal corresponding to the second voice signal;
[0321] The adaptive filtering technology includes: any one of a minimum mean square error filter, a recursive least squares filter, and a Kalman filter.
[0322] In a possible implementation, the processor 1001 determines a target spectrum to be processed based on the mixed speech signal, and is configured to perform the following operations:
[0323] Performing time-frequency conversion processing on the mixed speech signal using a frequency domain processing technique to obtain a first signal spectrum; and performing time-frequency conversion processing on the second speech signal using a frequency domain processing technique to obtain a second signal spectrum;
[0324] Performing a subtraction operation on the mixed speech signal and the linear echo signal to obtain a residual signal, and performing time-frequency conversion processing on the residual signal using a frequency domain processing technique to obtain a third signal spectrum;
[0325] The frequency domain processing technology includes: any one of Fourier transform technology, fast Fourier transform technology, wavelet transform technology, and Laplace transform technology.
[0326] In a possible implementation, the voice interaction process refers to an interaction process involved in a real-time communication scenario, where the real-time communication scenario includes any one of a conference scenario, a live broadcast scenario, and a call scenario; the processor 1001 is further configured to perform the following operations:
[0327] A real-time voice signal stream is obtained in a real-time communication scenario, and segments are intercepted in the time domain according to a preset frame length to obtain a voice segment signal set; the voice segment signal set includes N voice segments, where N is a positive integer;
[0328] The j-th speech segment of the N speech segments is used as a mixed speech signal to obtain an optimized segment of the j-th speech segment based on a multi-level speech optimization network, where j is a positive integer and 1≤j≤N;
[0329] The obtained N optimized segments are spliced to obtain an optimized speech signal corresponding to the real-time speech signal stream.
[0330] In an embodiment of the present application, it is possible to convert a mixed voice signal in the time domain into a multi-dimensional spectrum in the frequency domain (such as a first signal spectrum, a second signal spectrum, and a third signal spectrum), and perform multi-level optimization processing on each spectrum in the frequency domain. Since each level of optimization processing includes echo cancellation processing and noise suppression processing, performing multiple optimization processing can significantly improve the effects of noise suppression and echo cancellation, thereby ensuring the accuracy of the optimized voice signal.
[0331] According to one aspect of the present application, an embodiment of the present application further provides a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, the method in the corresponding embodiment of the foregoing text can be executed, so it will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one place, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0332] According to one aspect of the present application, an embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the method in the above corresponding embodiment, and therefore, it will not be described in detail here.
[0333] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0334] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A speech signal processing method, characterized in that: include: Acquire a mixed voice signal generated during the voice interaction process, wherein the mixed voice signal includes: a first voice signal generated at the near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, wherein the far end echo signal is generated based on a second voice signal generated at the far end; Based on the mixed speech signal, a target spectrum to be processed is determined; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on the residual signal between the mixed speech signal and the linear echo signal of the second speech signal; A multi-level speech optimization network is used to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing; The optimized frequency spectrum is subjected to time-frequency conversion processing to obtain an optimized speech signal corresponding to the mixed speech signal.
2. The method according to claim 1, characterized in that The multi-stage speech optimization network includes M speech optimization networks, where M is an integer greater than or equal to 2; any one of the speech optimization networks is used to: perform an optimization process on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum; The method of using a multi-stage speech optimization network to perform multi-stage optimization processing on the target spectrum to obtain an optimized spectrum includes: Using the kth speech optimization network among the M speech optimization networks to perform optimization processing on any one or more of the first signal spectrum, the second signal spectrum, and the third signal spectrum to obtain a candidate spectrum; k is a positive integer and 1≤k≤M; The obtained M candidate spectrums are fused to obtain an optimized spectrum; The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
3. The method according to claim 2, characterized in that The multi-level speech optimization network includes: a first speech optimization network and a second speech optimization network; the multi-level speech optimization network is used to perform multi-level optimization processing on the target spectrum to obtain an optimized spectrum, including: Based on the first signal spectrum, the second signal spectrum and the third signal spectrum, using a first speech optimization network to perform a primary optimization process on the first signal spectrum to obtain a first output spectrum; Based on the first output spectrum and the third signal spectrum, using a second speech optimization network to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum; The first output spectrum and the second output spectrum are fused to obtain an optimized spectrum.
4. The method according to claim 3, characterized in that The structure of the first speech optimization network includes: an encoder, a dual-path conversion module, and a decoder; based on the first signal spectrum, the second signal spectrum, and the third signal spectrum, the first speech optimization network is used to perform a primary optimization process on the first signal spectrum to obtain a first output spectrum, including: Performing feature encoding processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum by the encoder to obtain encoded spectrum features; By using the dual-path conversion module, the encoding spectrum features are subjected to feature extraction processing in the time dimension and the frequency dimension using the attention mechanism to obtain the attention spectrum features; The attention spectrum feature is decoded by the decoder to obtain a complex gain parameter; The first signal spectrum is subjected to primary speech optimization processing by using the complex gain parameter to obtain a first output spectrum.
5. The method according to claim 4, characterized in that The dual-path conversion module includes a local conversion module and a global conversion module, wherein the local conversion module is used to perform local information modeling of the speech signal, and the global conversion module is used to perform global information modeling of the speech signal; the dimension of the encoded spectrum feature is T×F, where T refers to the time step, and F refers to the spectrum vector corresponding to each time step, and both T and F are positive integers; The dual-path conversion module uses the attention mechanism to perform feature extraction processing on the encoded spectrum features in the time dimension and the frequency dimension to obtain the attention spectrum features, including: Segmenting the coded spectrum feature to obtain T sub-spectrum features; A local conversion module is used to perform local feature processing on the i-th sub-spectral feature of the T sub-spectral features in the frequency dimension through a self-attention mechanism to obtain a local spectrum feature corresponding to the i-th sub-spectral feature, where i is a positive integer and 1≤i≤T; A global transformation module is used to process T local spectral features into global features in the time dimension through a self-attention mechanism to obtain attention spectral features.
6. The method according to claim 4, characterized in that The structure of the first speech optimization network also includes a feature extraction module; The method further comprises: Performing spectrum compression processing on the first signal spectrum, the second signal spectrum, and the third signal spectrum respectively to obtain a compressed first compressed spectrum, a second compressed spectrum, and a third compressed spectrum; Performing feature splicing processing on the first compressed spectrum, the second compressed spectrum, and the third compressed spectrum to obtain a first spliced spectrum; Performing feature extraction processing on the first spliced spectrum through a feature extraction module to obtain a fused feature spectrum, and performing feature encoding processing on the fused feature spectrum through the encoder to obtain encoded spectrum features; The spectrum compression processing method includes: any one of: Mel spectrum compression processing, filter bank compression processing, and linear prediction coefficient compression processing.
7. The method according to claim 3, characterized in that The structure of the second speech optimization network includes: a compression module, a gated recurrent unit network module, and a decompression module; based on the first output spectrum and the third signal spectrum, the second speech optimization network is used to perform secondary optimization processing on the third signal spectrum to obtain a second output spectrum, including: Performing convolution processing on the first output spectrum and the third signal spectrum through the compression module to obtain a convolution characteristic spectrum; By means of the gated recurrent unit network module, feature processing is performed on the convolution feature spectrum according to the time dimension to obtain a processed feature optimized spectrum; Decompressing the characteristic optimized spectrum by a decompression module to obtain a real gain parameter; The third signal spectrum is subjected to secondary speech optimization processing based on the real gain parameter to obtain a second output spectrum.
8. The method according to claim 7, characterized in that The real gain parameter includes a first real gain vector and a second real gain vector, wherein the first real gain vector refers to a gain vector after optimizing the third signal spectrum, and the second real gain vector refers to a gain vector after optimizing the first output spectrum; the method further includes: Performing a multiplication operation on the first real gain vector and the third signal spectrum to obtain a second output spectrum; A multiplication operation is performed on the second real gain vector and the first output spectrum to obtain a third output spectrum.
9. The method according to claim 8, characterized in that The method further comprises: Performing compression calculation on the first output spectrum to obtain a first logarithmic power spectrum, and performing compression calculation on the third signal spectrum to obtain a second logarithmic power spectrum; Performing splicing processing on the first logarithmic power spectrum and the second logarithmic power spectrum to obtain a second spliced spectrum; The second spliced spectrum is convolved by the compression module to obtain a convolution feature spectrum.
10. The method according to any one of claims 3 to 9, characterized in that: The fusing the first output spectrum and the second output spectrum to obtain an optimized spectrum includes: fusing the first output spectrum and the second output spectrum to obtain an optimized spectrum; or, Performing fusion processing on the first output spectrum, the second output spectrum, and the third output spectrum to obtain an optimized spectrum; The fusion processing includes any one of a summation operation, a weighted operation, and an average operation.
11. The method according to claim 1, characterized in that The voice interaction process is a process of voice interaction between the first object and the second object; the method further includes: Acquire a second voice signal generated by the second object during the voice interaction process; Performing linear echo cancellation processing on the second voice signal by using an adaptive filtering technique to obtain a linear echo signal corresponding to the second voice signal; The adaptive filtering technology includes: any one of a minimum mean square error filter, a recursive least squares filter, and a Kalman filter.
12. The method according to claim 11, characterized in that Based on the mixed speech signal, determining a target frequency spectrum to be processed includes: Performing time-frequency conversion processing on the mixed speech signal using a frequency domain processing technique to obtain a first signal spectrum; and performing time-frequency conversion processing on the second speech signal using a frequency domain processing technique to obtain a second signal spectrum; Performing a subtraction operation on the mixed speech signal and the linear echo signal to obtain a residual signal, and performing a time-frequency conversion process on the residual signal using a frequency domain processing technique to obtain a third signal spectrum; The frequency domain processing technology includes: any one of Fourier transform technology, wavelet transform technology, and Laplace transform technology.
13. The method according to claim 11 or 12, characterized in that The voice interaction process refers to the interaction process involved in the real-time communication scenario, and the real-time communication scenario includes: any one of a conference scenario, a live broadcast scenario, and a call scenario; the method also includes: Acquire a real-time voice signal stream in a real-time communication scenario, and perform segmentation on the real-time voice signal stream in a time domain according to a preset frame length to obtain a voice segmentation signal set; the voice segmentation signal set includes N voice segments, where N is a positive integer; Using the j-th speech segment of the N speech segments as a mixed speech signal, so as to obtain an optimized segment of the j-th speech segment based on a multi-stage speech optimization network, where j is a positive integer and 1≤j≤N; The obtained N optimized segments are spliced to obtain an optimized speech signal corresponding to the real-time speech signal stream.
14. A speech signal processing device, characterized in that: include: an acquisition unit, configured to acquire a mixed voice signal generated during a voice interaction process, wherein the mixed voice signal comprises: a first voice signal generated at a near end during the voice interaction process, an ambient noise signal at the near end, and a far end echo signal, wherein the far end echo signal is generated based on a second voice signal generated at a far end; A processing unit, for determining a target spectrum to be processed based on the mixed speech signal; the target spectrum includes a first signal spectrum, a second signal spectrum and a third signal spectrum, the first signal spectrum is obtained after time-frequency conversion processing is performed on the mixed speech signal; the second signal spectrum is obtained after time-frequency conversion processing is performed on the second speech signal; the third signal spectrum is obtained after time-frequency conversion processing is performed on the residual signal between the mixed speech signal and the linear echo signal of the second speech signal; The processing unit is further used to perform multi-level optimization processing on the target spectrum using a multi-level speech optimization network to obtain an optimized spectrum; the optimization processing includes echo cancellation processing and noise suppression processing; The processing unit is further used to perform time-frequency conversion processing on the optimized spectrum to obtain an optimized speech signal corresponding to the mixed speech signal.
15. A computer device, characterized in that: include: Memory and processor; One or more computer programs are stored in the memory; A processor, used to load the one or more computer programs to implement the speech signal processing method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the speech signal processing method according to any one of claims 1 to 13 is executed.
17. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the speech signal processing method according to any one of claims 1 to 13 is executed.
Citation Information
Patent Citations
Voice state detection method suitable for echo cancellation system
CN105957520A
Voice processing method and apparatus thereof
CN107393550A
