Voice processing method, device, electronic device and storage medium
Through signal fusion of multiple echo cancellation models, feature extraction and weighted summation solve the problem of inaccurate echo cancellation results in the existing technology and improve the accuracy of speech processing.
Patent Information
- Application Number
- CN202210768487.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In the existing technology, the echo cancellation model trained by the deep learning algorithm results in inaccurate echo cancellation results due to differences in network structure, loss function and training method.
Use multiple echo cancellation models with different echo cancellation performances to process the source speech signal. Use the signal fusion model to perform feature extraction and weight matching on multiple processed signal spectra, perform weighted summation to obtain the target speech signal, and combine each model The advantages make up for the disadvantages.
The accuracy of echo cancellation is improved, the advantages of each echo cancellation model are brought into play, and the processing effect of the source speech signal is enhanced.
Smart Images

Figure CN115294997B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of speech processing technology, and in particular to a speech processing method, device, electronic device and storage medium. Background Art
[0002] In real-time communication scenarios, acoustic echo is an important problem. To solve this problem, various acoustic echo cancellation systems and methods have been designed.
[0003] In the related technology, deep learning algorithms are applied to the field of speech processing technology. The echo cancellation models trained based on the deep learning method may adopt different network structures, different loss functions, and different training methods, etc., so that the trained echo cancellation models have their own advantages and disadvantages, and the echo cancellation results of these echo cancellation models are inaccurate. Summary of the invention
[0004] The present disclosure provides a speech processing method, device, electronic device and storage medium to at least solve the problem of inaccurate echo cancellation results of echo cancellation models in related technologies. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a speech processing method, comprising:
[0006] determining a signal spectrum of a source speech signal;
[0007] Inputting the signal spectrum of the source speech signal into a plurality of echo cancellation models respectively for echo cancellation processing to obtain a plurality of processed signal spectrums; the echo cancellation performances of the plurality of echo cancellation models are different;
[0008] Inputting the multiple processed signal spectra and the signal spectrum of the source speech signal into a signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models;
[0009] A signal spectrum of the target speech signal is obtained by performing weighted summation based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra.
[0010] In an exemplary embodiment, the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer;
[0011] The step of inputting the multiple processed signal spectra and the signal spectrum of the source speech signal into a signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra includes:
[0012] Based on the local feature extraction layer, local feature extraction is performed on the multiple processed signal spectra and the signal spectrum of the source speech signal to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0013] Performing time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0014] The weight information corresponding to each of the plurality of processed signal spectra is determined based on the time series feature information.
[0015] In an exemplary embodiment, the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0016] Before extracting local features from the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal, the method further includes:
[0017] Based on the multiple processed signal spectra, the signal spectrum of the source speech signal, the input channel information corresponding to the multiple processed signal spectra, and the input channel information corresponding to the signal spectrum of the source speech signal, a three-dimensional speech signal input matrix is constructed; the dimensions of the three-dimensional speech signal input matrix include a time dimension, a frequency dimension, and a channel dimension.
[0018] In an exemplary embodiment, the local feature extraction layer includes a plurality of convolutional layers;
[0019] The extracting local features of the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal includes:
[0020] Based on the first convolution kernel corresponding to the first convolution layer, extract local features of the three-dimensional speech signal input matrix to obtain first local feature information;
[0021] Based on the second convolution kernel corresponding to the second convolution layer, perform local feature extraction on the first local feature information to obtain second local feature information;
[0022] Determine the local spectrum feature information based on the second local feature information;
[0023] The first convolution kernel and the second convolution kernel are both three-dimensional convolution kernels, and the dimensions of the three-dimensional convolution kernels correspond to the time dimension, the frequency dimension, and the channel dimension; the number of the second convolution layer is at least one, and the channel dimension of the second convolution kernel is greater than the channel dimension of the first convolution kernel.
[0024] In an exemplary embodiment, determining the weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information includes:
[0025] Determine the weight value of the multiple processed signal spectra at each time-frequency point based on the time series feature information; the sum of the weight values of the multiple processed signals at the same time-frequency point is 1;
[0026] Based on the weight value of the multiple processed signal spectra at each time-frequency point, weight information corresponding to each of the multiple processed signal spectra is determined.
[0027] In an exemplary embodiment, the signal fusion model includes an information smoothing layer;
[0028] The determining, based on the weight value of the multiple processed signal spectra at each time-frequency point, weight information corresponding to each of the multiple processed signal spectra includes:
[0029] Based on the information smoothing layer, a weight value of each time-frequency point of the multiple processed signal spectra is smoothed to obtain smoothing weight information corresponding to the multiple processed signal spectra;
[0030] Based on the smoothing weight information corresponding to the multiple processed signal spectra, weight information corresponding to each of the multiple processed signal spectra is determined.
[0031] In an exemplary embodiment, the smoothing of the weight values of the multiple processed signal spectra at each time-frequency point based on the information smoothing layer to obtain smoothing weight information corresponding to the multiple processed signal spectra includes:
[0032] Determining historical time-frequency points adjacent to each of the time-frequency points;
[0033] Based on a preset smoothing coefficient, a weighted sum is performed on the weight value of each time-frequency point and the weight values of historical time-frequency points adjacent to each time-frequency point to obtain the smoothing weight information.
[0034] In an exemplary embodiment, the weight information corresponding to each of the multiple processed signal spectra includes the weight value of the multiple processed signal spectra at each time-frequency point; the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0035] The step of performing weighted summation based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain the signal spectrum of the target speech signal includes:
[0036] Based on the weight value of each processed signal spectrum at each time-frequency point, weighting the signal energy information of each processed signal spectrum at each time-frequency point, to obtain a weighted signal energy corresponding to each processed signal spectrum;
[0037] The signal energy information of each weighted signal energy at the same time-frequency point is superimposed to obtain the signal spectrum of the target speech signal.
[0038] According to a second aspect of an embodiment of the present disclosure, there is provided a speech processing device, including:
[0039] A signal spectrum determination unit, configured to determine a signal spectrum of a source speech signal;
[0040] The echo cancellation processing unit is configured to input the signal spectrum of the source speech signal into a plurality of echo cancellation models respectively for echo cancellation processing to obtain a plurality of processed signal spectrums; the echo cancellation performances of the plurality of echo cancellation models are different;
[0041] A signal fusion unit is configured to perform signal fusion by inputting the multiple processed signal spectra and the signal spectrum of the source speech signal into a signal fusion model to obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models;
[0042] The first weighted summing unit is configured to perform weighted summing based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain the signal spectrum of the target speech signal.
[0043] In an exemplary embodiment, the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer;
[0044] The signal fusion unit comprises:
[0045] A first extraction unit is configured to perform local feature extraction on the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0046] A second extraction unit is configured to perform time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0047] The first determining unit is configured to determine weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information.
[0048] In an exemplary embodiment, the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0049] The device also includes:
[0050] The matrix construction unit is configured to construct a three-dimensional voice signal input matrix based on the multiple processed signal spectra, the signal spectrum of the source voice signal, the input channel information corresponding to the multiple processed signal spectra, and the input channel information corresponding to the signal spectrum of the source voice signal; the dimensions of the three-dimensional voice signal input matrix include a time dimension, a frequency dimension, and a channel dimension.
[0051] In an exemplary embodiment, the local feature extraction layer includes a plurality of convolutional layers;
[0052] The first extraction unit comprises:
[0053] A third extraction unit is configured to perform local feature extraction on the three-dimensional speech signal input matrix based on a first convolution kernel corresponding to the first convolution layer to obtain first local feature information;
[0054] a fourth extraction unit, configured to perform local feature extraction on the first local feature information based on a second convolution kernel corresponding to the second convolution layer, to obtain second local feature information;
[0055] A second determining unit is configured to determine the local spectrum feature information based on the second local feature information;
[0056] The first convolution kernel and the second convolution kernel are both three-dimensional convolution kernels, and the dimensions of the three-dimensional convolution kernels correspond to the time dimension, the frequency dimension, and the channel dimension; the number of the second convolution layer is at least one, and the channel dimension of the second convolution kernel is greater than the channel dimension of the first convolution kernel.
[0057] In an exemplary embodiment, the first determining unit includes:
[0058] A third determining unit is configured to determine the weight value of the multiple processed signal spectra at each time-frequency point based on the time series feature information; the sum of the weight values of the multiple processed signals at the same time-frequency point is 1;
[0059] The fourth determining unit is configured to determine the weight information corresponding to each of the multiple processed signal spectra based on the weight value of the multiple processed signal spectra at each time-frequency point.
[0060] In an exemplary embodiment, the signal fusion model includes an information smoothing layer;
[0061] The fourth determining unit includes:
[0062] a smoothing processing unit configured to perform smoothing processing on the weight values of the multiple processed signal spectra at each time-frequency point based on the information smoothing layer to obtain smoothing weight information corresponding to the multiple processed signal spectra;
[0063] The fifth determining unit is configured to determine the weight information corresponding to each of the plurality of processed signal spectra based on the smoothing weight information corresponding to the plurality of processed signal spectra.
[0064] In an exemplary embodiment, the smoothing processing unit includes:
[0065] A historical time-frequency point determination unit, configured to determine historical time-frequency points adjacent to each of the time-frequency points;
[0066] The second weighted summation unit is configured to perform weighted summation of the weight value of each time-frequency point and the weight values of the historical time-frequency points adjacent to each time-frequency point based on a preset smoothing coefficient to obtain the smoothing weight information.
[0067] In an exemplary embodiment, the weight information corresponding to each of the multiple processed signal spectra includes the weight value of the multiple processed signal spectra at each time-frequency point; the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0068] The first weighted summing unit comprises:
[0069] A weighting unit is configured to perform weighting on the signal energy information of each processed signal spectrum at each time-frequency point based on the weight value of each processed signal spectrum at each time-frequency point, so as to obtain a weighted signal energy corresponding to each processed signal spectrum;
[0070] The signal superposition unit is configured to perform superposition of signal energy information of each weighted signal energy at the same time-frequency point to obtain a signal spectrum of the target speech signal.
[0071] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the speech processing method as described above.
[0072] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the speech processing method as described above.
[0073] According to the fifth aspect of an embodiment of the present disclosure, a computer program product is provided, which includes a computer program, and the computer program is stored in a readable storage medium. At least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the device performs the above-mentioned speech processing method.
[0074] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0075] The echo cancellation models with different echo cancellation performances disclosed in the present invention have their own characteristics. The signal spectrum of the source speech signal is input into multiple echo cancellation models. By performing signal fusion on the processed signal spectrum output by the multiple echo cancellation models, weight information corresponding to each of the multiple processed signal spectrums is obtained. The weight information corresponding to each of the multiple processed signal spectrums matches the echo cancellation performance of the multiple echo cancellation models. Based on the weight information corresponding to each of the multiple processed signal spectrums, the corresponding processed signal spectrum is weighted and summed to obtain the target speech signal after the source speech signal is echo-cancelled. Therefore, based on the fusion of the output results of the multiple echo cancellation models, the target speech signal is obtained according to the fusion result, which can give full play to the advantages of each echo cancellation model and make up for the disadvantages of each echo cancellation model, thereby further improving the accuracy of echo cancellation.
[0076] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0078] Figure 1 It is a schematic diagram of an implementation environment according to an exemplary embodiment.
[0079] Figure 2 The present invention is a flow chart of a speech processing method according to an exemplary embodiment.
[0080] Figure 3 The figure is a flow chart of a signal fusion method according to an exemplary embodiment.
[0081] Figure 4 The figure is a flow chart of a method for extracting local feature information according to an exemplary embodiment.
[0082] Figure 5 The figure is a flow chart of a method for determining weight information according to an exemplary embodiment.
[0083] Figure 6 The present invention is a flow chart of a signal spectrum weighting method according to an exemplary embodiment.
[0084] Figure 7 The figure is a flow chart of a weight smoothing method according to an exemplary embodiment.
[0085] Figure 8 The present invention is a flow chart of a method for weight smoothing based on time-frequency points according to an exemplary embodiment.
[0086] Fig. 9 is a schematic diagram of an echo cancellation fusion model according to an exemplary embodiment.
[0087] Fig.10 The figure is a block diagram of a speech processing device according to an exemplary embodiment.
[0088] Fig.11 The figure is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0089] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0090] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0091] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0092] See also Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present disclosure, the implementation environment may include: a first terminal 110 and a second terminal 120, and the first terminal 110 and the second terminal 120 can communicate data through a network.
[0093] Specifically, the first terminal 110 can collect the voice information of user 1 and send the voice information of user 1 to the second terminal 120. After receiving the voice information of user 1, the second terminal 120 plays it. Similarly, the first terminal 120 can collect the voice information of user 2 and send the voice information of user 2 to the first terminal 110. After receiving the voice information of user 2, the first terminal 110 plays it.
[0094] Furthermore, while collecting the voice information of user 1, the first terminal 110 may also collect the voice information of user 2 played through the first terminal 110, so that the first terminal 110 can perform an echo cancellation operation on the collected voice information, and then send the voice information after echo cancellation to the second terminal 120; similarly, while collecting the voice information of user 2, the second terminal 120 may also collect the voice information of user 1 played through the second terminal 120, so that the second terminal 120 can perform an echo cancellation operation on the collected voice information, and then send the voice information after echo cancellation to the first terminal 110.
[0095] The first terminal 110 and the second terminal 120 may include physical devices such as smart phones, tablet computers, laptop computers, digital assistants, smart wearable devices, and vehicle-mounted terminals. The operating systems running on the first terminal 110 and the second terminal 120 in the embodiment of the present disclosure may include but are not limited to Android, IOS, Linux, Windows, etc.
[0096] In order to solve the problem of inaccurate echo cancellation results of the echo cancellation model in the related art, the embodiment of the present disclosure provides a voice processing method, the execution subject of which can be a terminal capable of voice processing, such as the first terminal or the second terminal mentioned above; please refer to Figure 2 , the method may include:
[0097] S210. Determine the signal spectrum of the source speech signal.
[0098] Specifically, for each user, the corresponding terminal is the near-end, and the user is the near-end user. The user who conducts voice interaction or voice call with the near-end user is the far-end user, and the terminal corresponding to the far-end user is the far-end. Each user can be both a near-end user and a far-end user; each terminal can be both a near-end and a far-end. The near-end can play the voice signal sent by the far-end, so that the source voice signal collected by each terminal can include the actual voice signal of the near-end user, the echo signal of the far-end user, and the noise signal.
[0099] The determination of the signal spectrum of the source voice signal can be achieved based on Fourier transform or short-time Fourier transform. The signal spectrum of the source voice signal can be used to characterize the three-dimensional signal information of the source voice signal. Specifically, the signal spectrum of the source voice signal can characterize the source voice signal through the time dimension, the frequency dimension and the signal energy dimension. Therefore, the three-dimensional signal information of the source voice signal, that is, the information of the time dimension, the frequency dimension and the signal energy dimension, can be determined based on Fourier transform or short-time Fourier transform.
[0100] In a specific embodiment, the numerical value corresponding to the energy dimension in the signal spectrum of the source speech signal can be the amplitude value of the source signal or the power of the source signal; further, when the two-dimensional information is determined based on the time dimension and the frequency dimension, the signal energy information corresponding to each time-frequency point can be determined, that is, the source signal amplitude value or the power of the source signal corresponding to each time-frequency point can be specifically determined.
[0101] It should be noted that the above definition of the signal spectrum is based on the source speech signal. The signal spectrum corresponding to each speech signal in this embodiment has a corresponding definition, which will not be described in detail later.
[0102] S220. Input the signal spectrum of the source speech signal into multiple echo cancellation models respectively for echo cancellation processing to obtain multiple processed signal spectra; the echo cancellation performances of the multiple echo cancellation models are different.
[0103] The multiple echo cancellation models are different echo cancellation models, and the echo cancellation performance of the multiple echo cancellation models is different. The echo cancellation performance can be characterized by the index data of the corresponding echo cancellation effect performance index. The echo cancellation effect performance index may include an echo cancellation index, an original voice retention index, etc. The higher the index data of the echo cancellation index, the stronger the echo cancellation ability of the echo cancellation model is. The higher the index data of the original voice retention index, the stronger the original voice retention ability of the echo cancellation model is. The echo cancellation index and the original voice retention index may be a pair of mutually restrictive performance indicators. For example, if the echo cancellation model has a strong echo cancellation ability, it may eliminate part of the original voice signal, thereby reducing the original voice retention ability of the echo cancellation model; for another example, if the echo cancellation model has a strong original voice signal retention ability, it may retain part of the echo signal, thereby reducing the echo cancellation ability of the echo cancellation model. That is, different echo cancellation models have their own advantages and disadvantages.
[0104] In an optional embodiment, the number of echo cancellation models may be two or more, and these two or more echo cancellation models may have corresponding echo cancellation advantages in different performance indicators. By performing different degrees of echo cancellation on the original speech signal through a plurality of different echo cancellation models, processed signals with different echo cancellation effects may be obtained. This facilitates combining the advantages of each echo cancellation model in the subsequent signal fusion process to improve the accuracy of the echo cancellation result.
[0105] S230. Input the multiple processed signal spectra and the signal spectrum of the source speech signal into the signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models.
[0106] The input of the signal fusion layer includes multiple processed signal spectra and the signal spectrum of the source voice signal. The signal fusion layer can realize signal fusion of the multiple processed signal spectra and the signal spectrum of the source voice signal, and determine the weight information corresponding to each of the multiple processed signal spectra according to the signal fusion result; in the specific signal fusion process, the signal fusion layer extracts features from the signal spectra of each input, and determines the weight information of the multiple processed signals relative to the actual voice signal in the source voice signal based on the extracted feature information, that is, the weight information corresponding to the multiple processed signal spectra.
[0107] Furthermore, the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models. It can be understood that at each time-frequency point, a larger weight is assigned to the signal spectrum corresponding to the echo cancellation model with better echo cancellation performance at the time-frequency point, and a smaller weight is assigned to the signal spectrum corresponding to the echo cancellation model with poor echo cancellation performance at the time-frequency point, thereby achieving weight allocation for the multiple processed signal spectra corresponding to each time-frequency point. The echo cancellation performance of the same target echo cancellation model at different time-frequency points may be different, that is, the echo cancellation performance of the same target echo cancellation model at time-frequency point A is better, but the echo cancellation performance at time-frequency point B is poor. Therefore, the signal fusion model can combine the echo cancellation performance of each echo cancellation model at different time-frequency points, assign corresponding weights to each echo cancellation model, and improve the accuracy of the weight allocation of the echo cancellation model.
[0108] S240. Perform weighted summation based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain a signal spectrum of the target speech signal.
[0109] The weight information corresponding to each of the multiple processed signal spectra can characterize the contribution degree or importance of each processed signal spectrum to the signal spectrum of the target speech signal. Therefore, based on the contribution degree or importance of each processed signal spectrum to the signal spectrum of the target speech signal, the weighted multiple processed signal spectra can be summed to obtain the signal spectrum of the target speech signal.
[0110] The echo cancellation models with different echo cancellation performances disclosed in the present invention have their own characteristics. The signal spectrum of the source speech signal is input into multiple echo cancellation models. By performing signal fusion on the processed signal spectrum output by the multiple echo cancellation models, weight information corresponding to each of the multiple processed signal spectrums is obtained. The weight information corresponding to each of the multiple processed signal spectrums matches the echo cancellation performance of the multiple echo cancellation models. Based on the weight information corresponding to each of the multiple processed signal spectrums, the corresponding processed signal spectrum is weighted and summed to obtain the target speech signal after the source speech signal is echo-cancelled. Therefore, based on the fusion of the output results of the multiple echo cancellation models, the target speech signal is obtained according to the fusion result, which can give play to the advantages of each echo cancellation model and make up for the disadvantages of each echo cancellation model, thereby further improving the accuracy of echo cancellation of the source speech signal.
[0111] In a specific embodiment, the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer; thus, the input multiple processed signal spectra and the signal spectrum of the source speech signal can be processed based on the local feature extraction layer and the temporal feature extraction layer to obtain corresponding weight information; please refer to Figure 3 , which shows a signal fusion method, which may include:
[0112] S310. Perform local feature extraction on the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal.
[0113] S320. Perform time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal.
[0114] S330. Determine weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information.
[0115] In this embodiment, the local feature extraction layer may be a feature extraction layer capable of performing local feature extraction or short-term feature extraction, and may specifically be two or more convolutional layers; the temporal feature extraction layer may be a feature extraction layer capable of performing temporal feature extraction or long-term feature extraction, and may specifically be an LSTM (Long Short-Term Memory) or a GRU (Gated Recurrent Unit).
[0116] The local feature extraction layer can be used to extract local features of multiple processed signal spectra and the signal spectrum of the source speech signal, so as to obtain local spectrum feature information corresponding to the multiple processed signal spectra and local spectrum feature information corresponding to the signal spectrum of the source speech signal. Based on the local spectrum feature corresponding to each speech signal, the difference between the speech signal and other speech signals can be determined, that is, the signal spectra of different signals can be distinguished based on the local spectrum feature.
[0117] The temporal feature extraction layer can be used to extract temporal features from the local spectrum feature information output by the local feature extraction layer, and obtain a plurality of processed signal spectra, and temporal feature information corresponding to the signal spectrum of the source speech signal. The signal spectrum of the speech signal may include a signal spectrum corresponding to each frame of speech signal, so that the temporal feature information can characterize the dependency relationship between each frame of speech signal in the time dimension, i.e., the temporal relationship, or it can also be a contextual relationship.
[0118] Therefore, through the local feature extraction layer and the time series feature extraction layer in the signal fusion model, both the local features of the speech signal and the time series features of the speech signal are extracted; since the time series feature information is extracted on the basis of the local spectral feature information, the time series feature information also contains the local feature information, thereby improving the comprehensiveness and accuracy of the speech signal feature extraction; determining the corresponding weight information based on the extracted local features and time series features can improve the accuracy of the weight information determination.
[0119] In this embodiment, the signal fusion model may also include a fully connected layer. After extracting local spectral feature information and time series feature information, the information can be integrated based on the fully connected layer, and the integrated data can be activated through an activation function, so as to obtain the weight information corresponding to each of the multiple processed signal spectra.
[0120] In a specific embodiment, the weight information corresponding to each of the multiple processed signal spectra may include weight items corresponding to each of the multiple processed signal spectra; for example, the weight information corresponding to each of the multiple processed signal spectra is W = [W1, W2...], where W1 is the weight item corresponding to processed signal spectrum 1, W2 is the weight item corresponding to processed signal spectrum 2...; W can be a weight matrix, and corresponding W1 and W2 can also be weight matrices; W can be a weight sequence, and corresponding W1 and W2 can also be weight sequences.
[0121] In the disclosed embodiment, the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension; the signal energy information may be the signal amplitude or the signal power, etc. According to the above embodiment, the input of the signal fusion model includes a plurality of processed signal spectra and the signal spectrum of the source speech signal, so that different speech signals may correspond to different input channels; and before the plurality of processed signal spectra and the signal spectrum of the source speech signal are input into the signal fusion model, a three-dimensional speech signal input matrix may be constructed based on the plurality of processed signal spectra, the signal spectrum of the source speech signal, the input channel information corresponding to the plurality of processed signal spectra, and the input channel information corresponding to the signal spectrum of the source speech signal; the dimensions of the three-dimensional speech signal input matrix include the time dimension, the frequency dimension and the channel dimension.
[0122] Specifically, a two-dimensional matrix can be constructed based on the time dimension and the frequency dimension. The element values in the two-dimensional matrix can be the signal energy information corresponding to each time-frequency point. Then, the channel information corresponding to each signal spectrum is used as the third dimension, so that a three-dimensional speech signal input matrix can be constructed. The data form of the three-dimensional speech signal input matrix is compatible with the data processing form of the signal fusion model.
[0123] By constructing a three-dimensional speech signal input matrix based on the signal spectrum of each input speech signal and the corresponding input channel information, it is possible to preprocess the input data of the signal fusion model, thereby facilitating the signal fusion model to perform signal fusion based on the three-dimensional speech signal data matrix and improving the data processing efficiency of the signal fusion model.
[0124] Furthermore, in the case where the local feature extraction layer includes multiple convolutional layers, see Figure 4 , which shows a method for extracting local feature information, which may include:
[0125] S410. Based on the first convolution kernel corresponding to the first convolution layer, local feature extraction is performed on the three-dimensional speech signal input matrix to obtain first local feature information.
[0126] S420. Based on the second convolution kernel corresponding to the second convolution layer, perform local feature extraction on the first local feature information to obtain second local feature information;
[0127] S430. Determine the local spectrum feature information based on the second local feature information.
[0128] Since the input information of the local feature extraction layer is a three-dimensional speech signal input matrix, accordingly, the dimension of the convolution kernel in the convolution layer can also be three-dimensional; specifically, the first convolution kernel and the second convolution kernel are both three-dimensional convolution kernels, and the dimensions of the three-dimensional convolution kernels correspond to the time dimension, the frequency dimension and the channel dimension; specifically, the first dimension of the convolution kernel corresponds to the time dimension, the second dimension of the convolution kernel corresponds to the frequency dimension, and the third dimension of the convolution kernel corresponds to the channel dimension, so that the corresponding dimensions of the three-dimensional speech signal input matrix can be extracted based on the corresponding dimensions of the three-dimensional convolution kernel, thereby realizing feature extraction by sub-dimensioning and improving the convenience and accuracy of local spectrum feature extraction.
[0129] The number of the second convolutional layers is at least one, and the channel dimension of the second convolutional kernel is greater than the channel dimension of the first convolutional kernel. In the case where the second convolutional layer includes multiple convolutional layers, output information of the last convolutional layer in the second convolutional layer is used as the local spectrum feature information.
[0130] In this embodiment, each convolution layer may correspond to convolution kernels of different sizes, so that feature extraction can be performed on the input information of the convolution layer based on the convolution kernel corresponding to the current convolution layer, and corresponding feature information can be output; on the basis that there is still a convolution layer after the current convolution layer, the output information of the current convolution layer can be used as the input information of the next convolution layer.
[0131] Furthermore, the convolution kernel sizes of multiple convolution layers can be gradually increased. For example, the convolution kernel size of the first convolution layer is 3×3×5, the convolution kernel size of the second convolution layer is 3×3×8, and the convolution kernel size of the third convolution layer is 3×3×10…, so it can be seen that the size of the third dimension of the convolution kernel is constantly increasing, from 5 to 8, from 8 to 10…, that is, the number of channels corresponding to the third dimension is constantly increasing, and the depth and granularity of the corresponding extracted feature information are also increasing, which can improve the accuracy and comprehensiveness of the local spectral feature information.
[0132] In an optional embodiment, the weight information corresponding to each of the multiple processed signal spectra can be determined based on the time series feature information output by the time series feature extraction layer; Figure 5 , which shows a method for determining weight information, which may include:
[0133] S510. Determine the weight value of the multiple processed signal spectra at each time-frequency point based on the time series feature information; the sum of the weight values of the multiple processed signals at the same time-frequency point is 1.
[0134] S520. Determine weight information corresponding to each of the multiple processed signal spectra based on the weight value of the multiple processed signal spectra at each time-frequency point.
[0135] According to the above embodiments, the weight information corresponding to each of the multiple processed signal spectra can characterize the contribution or importance of each processed signal spectrum to the signal spectrum of the target speech signal, that is, for each time-frequency point of the signal spectrum of the target speech signal, it can be obtained by weighting the signal energy information of the multiple processed signal spectra at the corresponding time-frequency point to obtain the signal energy information of the signal spectrum of the target speech signal at the corresponding time-frequency point, so that the sum of the weight values of the multiple processed signals at the same time-frequency point is 1.
[0136] Taking the example that the weight information corresponding to each of the multiple processed signal spectra is a weight matrix, the weight items corresponding to each processed signal spectrum can also be a weight matrix; specifically, the signal spectrum of the target speech signal and the weight matrix corresponding to each processed signal spectrum are both two-dimensional matrices, the dimensions of the target speech signal and the weight matrix corresponding to each processed signal are the same, and the signal spectrum of the target speech signal and the positions of the matrix elements in the two-dimensional weight matrix corresponding to each processed signal spectrum correspond one-to-one to the positions of the time-frequency points in the processed signal spectrum.
[0137] Therefore, by determining the weight information based on each time-frequency point, it is possible to take into account the contribution or importance of different processed signal spectra to the target speech signal at different time-frequency points, forming a fine-grained weight information determination, thereby improving the accuracy of the weight information determination.
[0138] For example, the dimension of the two-dimensional weight matrix corresponding to the processed speech signal spectrum is m×n, which means that the number of time dimensions is n and the number of frequency dimensions is m. Each element position in the two-dimensional weight matrix can represent each time-frequency point, and the element value of each element can represent the weight value corresponding to the corresponding time-frequency point.
[0139] That is, in the process of determining the weight value of each time-frequency point, the weights of the same time-frequency points of the two-dimensional weight matrix corresponding to different processed speech information spectra can be determined at one time. For example, the number of processed signal spectra is 2. The two-dimensional weight matrix corresponding to processed signal spectrum 1 is W1, and the two-dimensional weight matrix corresponding to processed signal spectrum 2 is W2. Therefore, element a11 in W1 and element b11 in W2 are in the same element position, and the sum of a11 and b11 is 1. For element values at other positions, the weight information can be determined based on the same method.
[0140] Specifically, the two-dimensional weight matrix W1 corresponding to the processed signal spectrum 1 is as follows:
[0141]
[0142] The two-dimensional weight matrix corresponding to the processed signal spectrum 2 is W2 as follows:
[0143]
[0144] The sum of the element values at the same matrix position is 1, that is, the sum of a11 and b11 is 1, the sum of a12 and b12 is 1, the sum of a21 and b21 is 1... Among them, a11 and b11 are the weight values corresponding to the time-frequency point t11, a12 and b12 are the weight values corresponding to the time-frequency point t12, and a21 and b21 are the weight values corresponding to the time-frequency point t21.
[0145] Thus, the weight information corresponding to each of the multiple processed signal spectra includes the weight value of the multiple processed signal spectra at each time-frequency point; the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension. Figure 6 , which shows a signal spectrum weighting method, which may include:
[0146] S610. Based on the weight value of each processed signal spectrum at each time-frequency point, weight the signal energy information of each processed signal spectrum at each time-frequency point to obtain the weighted signal energy corresponding to each processed signal spectrum.
[0147] S620. Superimpose the signal energy information of each weighted signal energy at the same time-frequency point to obtain the signal spectrum of the target speech signal.
[0148] The processed speech signal spectrum may also correspond to a two-dimensional spectrum matrix, and the corresponding dimension may also be m×n, that is, the two-dimensional spectrum matrix of the processed speech signal has the same dimension as the two-dimensional weight matrix, and the matrix elements at the same position correspond to the same time-frequency points, the matrix element values in the two-dimensional spectrum matrix are the signal energy information at the corresponding time-frequency points, and the matrix element values in the two-dimensional weight matrix are the weight values at the corresponding time-frequency points. The two-dimensional spectrum matrix corresponding to the signal spectrum of the preset target signal may have the same dimension as the spectrum matrix of the processed speech signal, and the time-frequency points corresponding to each matrix element position are also the same.
[0149] Therefore, in the process of generating the signal spectrum of the target signal, a weighted spectrum matrix corresponding to the processed speech signal can be generated based on the two-dimensional weight matrix corresponding to each processed speech signal spectrum and the two-dimensional spectrum matrix. Specifically, the two-dimensional weight matrix can be multiplied with the elements in the same element position in the two-dimensional spectrum matrix to obtain the corresponding weighted spectrum matrix.
[0150] For example, the two-dimensional spectrum matrix F1 corresponding to the processed signal spectrum 1 is:
[0151]
[0152] The two-dimensional spectrum matrix F2 corresponding to the processed signal spectrum 2 is:
[0153]
[0154] It can be determined that a11, b11, c11 and d11 all correspond to the time-frequency point t11, a12, b12, c12 and d12 all correspond to the time-frequency point t12, and other elements are similar. Therefore, when performing weighted summation, the processed signal spectrum 1 can be weighted based on the matrix W1 and F1, and the processed signal spectrum 2 can be weighted based on the matrix W2 and F2.
[0155] When weighting the processed signal spectrum, the elements corresponding to the same time-frequency point can be multiplied. For example, a11 and c11 can be multiplied to obtain a first weighted result corresponding to t11, and b11 and d11 can be multiplied to obtain a second weighted result corresponding to t11; then the first weighted result is added to the second weighted result to obtain the signal energy information of the signal spectrum of the target speech signal at the time-frequency point t11; the signal energy information of the signal spectrum of the target speech signal at other time-frequency points can be obtained by weighted summation based on a similar method, which will not be repeated here.
[0156] Therefore, when generating the signal spectrum of the target speech signal, the weighted signal energy can be obtained based on the signal energy information and weight value of each processed signal spectrum at each time-frequency point; then the weighted signal energy of the same time-frequency point is superimposed to generate the superimposed signal energy of the target speech signal at the corresponding time-frequency point; based on the superimposed signal energy of each time-frequency point, the signal spectrum of the target speech signal can be obtained. That is, the generation of the target speech signal can be obtained based on the signal energy of each processed signal spectrum at each time-frequency point, so that the signal spectrum can be determined based on fine granularity, further improving the accuracy of the determination of the signal spectrum of the target speech signal.
[0157] In a specific embodiment, the signal fusion layer may also include a smoothing layer. Figure 7 , which shows a weight smoothing method, which may include:
[0158] S710. Smoothing the weight values of the multiple processed signal spectra at each time-frequency point based on the information smoothing layer to obtain smoothing weight information corresponding to the multiple processed signal spectra.
[0159] S720. Determine weight information corresponding to each of the plurality of processed signal spectra based on the smoothing weight information corresponding to the plurality of processed signal spectra.
[0160] Due to the time-frequency characteristics of speech signals, speech signals at different time points may jump, resulting in the auditory perception of sharp and harsh noise. In order to solve this problem, the weight values of multiple processed signal spectra at each time-frequency point can be smoothed separately through the information smoothing layer, that is, the weight values in the above W1 and W2 are smoothed separately to obtain the smoothed weight values corresponding to each weight value, so as to determine the smoothed weight information corresponding to the multiple processed signal spectra.
[0161] Determining the weight information corresponding to each processed signal spectrum based on the smoothed weight information can avoid the jump of the speech signal caused by excessive jump of the weight information of adjacent time-frequency points, thereby avoiding the introduction of noise and improving the auditory experience.
[0162] In a specific embodiment, a weight smoothing operation may be performed based on each time-frequency point; for details, please refer to Figure 8 , which shows a method for weight smoothing based on time-frequency points, which may include:
[0163] S810. Determine the historical time-frequency points adjacent to each of the time-frequency points.
[0164] S820. Based on a preset smoothing coefficient, perform weighted summation on the weight value of each time-frequency point and the weight values of historical time-frequency points adjacent to each time-frequency point to obtain the smoothing weight information.
[0165] In this embodiment, the weight information of each time-frequency point can be weight-smoothed by the adjacent historical time-frequency points, that is, the weights of the adjacent historical time-frequency points will affect the weight information of the current time-frequency point. The number of historical time-frequency points adjacent to each time-frequency point can be one or more, which can be determined according to the specific implementation process.
[0166] Assuming the number of adjacent historical time-frequency points is 1, for each weight value in the matrix W1, weight smoothing can be performed using the following formula:
[0167] W1(f,t)=W1(f,t)*(1-α)+W1(f,t-1)*α (5)
[0168] Among them, W1(f, t) is the weight value corresponding to the time-frequency point (f, t) in W1, W1(f, t-1) is the weight value corresponding to the time-frequency point (f, t-1) in W1, and (f, t-1) is the time-frequency point before (f, t); α is the smoothing coefficient, which can be determined according to the specific implementation situation, for example, it can be set to 0.95. It can be seen that for the matrix W1, its weight value at the time-frequency point (f, t) is equal to the sliding average of the weight value at the previous moment (f, t-1) and the weight value at the current moment (f, t).
[0169] Therefore, the weight value corresponding to each time-frequency point can be determined based on the weight values corresponding to the adjacent historical time-frequency points of the time-frequency point, thereby improving the sliding average of the weight value so that the weight value will not jump between adjacent time-frequency points, thereby avoiding the introduction of noise and improving the auditory experience.
[0170] The following is an example of an echo cancellation scenario. In this embodiment, an echo cancellation fusion model may be used to perform echo cancellation. The echo cancellation fusion model may include multiple pre-trained echo cancellation models, and the signal fusion model described in this embodiment is described by taking an echo cancellation model including two pre-trained echo cancellation models as an example. For a schematic diagram of the echo cancellation fusion model, please refer to Fig. 9 , specifically, it may include two pre-trained echo cancellation models and a signal fusion model, wherein the signal fusion model may also include a local feature extraction layer, a temporal feature extraction layer and an information smoothing layer.
[0171] In this embodiment, the echo cancellation model in the echo cancellation fusion model is pre-trained, so supervised model training can be performed on the signal fusion model in the echo cancellation model. The training samples may include sample signals and label information corresponding to the sample signals. The sample signals may specifically include near-end microphone signals, far-end reference signals, and signals that have undergone linear echo cancellation. The signal spectrum D of the near-end microphone signal, the signal spectrum E of the far-end reference signal, and the signal spectrum R of the signal that has undergone linear echo cancellation are jointly processed to obtain a joint input signal spectrum I; the joint input signal spectrum I is respectively input into the first echo cancellation model and the second echo cancellation model to obtain estimated signal spectra S1 and S2; the joint input signal spectrum I, the estimated signal spectra S1 and S2 are input into the signal fusion model to obtain weight information corresponding to the signal spectra S1 and S2 respectively; the signal spectrum S1 is weighted based on the weight information corresponding to the signal spectrum S1, the signal spectrum S2 is weighted based on the weight information corresponding to the signal spectrum S2, and the weighted signal spectra are summed to obtain an output signal spectrum S; the loss information is determined based on the signal spectrum D of the near-end microphone signal and the output signal spectrum S; the parameters of the signal fusion model are adjusted based on the loss information to obtain a trained signal fusion model.
[0172] Specifically, the signal fusion model may also include a local feature extraction layer, a temporal feature extraction layer, and an information smoothing layer. The combined input signal spectrum I and the estimated signal spectra S1 and S2 are input into the local feature extraction layer and the temporal feature extraction layer, and the original weight information W1 corresponding to the estimated signal spectrum S1 and the original weight information W2 corresponding to the estimated signal spectrum S2 can be obtained. The original weight information W1 and the original weight information W2 are input into the information smoothing layer to obtain the smoothed weight information And smooth weight information based on The estimated signal spectrum S1 is weighted based on The estimated signal spectrum S2 is weighted to finally obtain the output signal spectrum S. When the weight information is smoothed, the above formula (5) of this embodiment may be used for smoothing.
[0173] Therefore, the present disclosure can enable the signal fusion model to adaptively learn the weight information corresponding to each pre-trained echo cancellation model through supervised training, and weight the corresponding estimated signal spectrum based on the weight information corresponding to each pre-trained echo cancellation model, so as to combine the advantages of different pre-trained echo cancellation models, make up for the corresponding shortcomings, and improve the accuracy of echo cancellation.
[0174] The above methods in this embodiment can be combined based on actual application situations, and have corresponding beneficial effects after the combination, which will not be described in detail here.
[0175] Fig.10 is a block diagram of a speech processing device according to an exemplary embodiment. Fig.10 , the device comprises:
[0176] The signal spectrum determination unit 1010 is configured to determine the signal spectrum of the source speech signal;
[0177] The echo cancellation processing unit 1020 is configured to input the signal spectrum of the source speech signal into multiple echo cancellation models for echo cancellation processing to obtain multiple processed signal spectra; the echo cancellation performances of the multiple echo cancellation models are different;
[0178] The signal fusion unit 1030 is configured to input the multiple processed signal spectra and the signal spectrum of the source speech signal into the signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models;
[0179] The first weighted summing unit 1040 is configured to perform weighted summing based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain a signal spectrum of the target speech signal.
[0180] In an exemplary embodiment, the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer;
[0181] The signal fusion unit 1030 includes:
[0182] A first extraction unit is configured to perform local feature extraction on the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0183] A second extraction unit is configured to perform time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal;
[0184] The first determining unit is configured to determine weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information.
[0185] In an exemplary embodiment, the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0186] The device also includes:
[0187] The matrix construction unit is configured to construct a three-dimensional voice signal input matrix based on the multiple processed signal spectra, the signal spectrum of the source voice signal, the input channel information corresponding to the multiple processed signal spectra, and the input channel information corresponding to the signal spectrum of the source voice signal; the dimensions of the three-dimensional voice signal input matrix include a time dimension, a frequency dimension, and a channel dimension.
[0188] In an exemplary embodiment, the local feature extraction layer includes a plurality of convolutional layers;
[0189] The first extraction unit comprises:
[0190] A third extraction unit is configured to perform local feature extraction on the three-dimensional speech signal input matrix based on a first convolution kernel corresponding to the first convolution layer to obtain first local feature information;
[0191] a fourth extraction unit, configured to perform local feature extraction on the first local feature information based on a second convolution kernel corresponding to the second convolution layer, to obtain second local feature information;
[0192] A second determining unit is configured to determine the local spectrum feature information based on the second local feature information;
[0193] The first convolution kernel and the second convolution kernel are both three-dimensional convolution kernels, and the dimensions of the three-dimensional convolution kernels correspond to the time dimension, the frequency dimension, and the channel dimension; the number of the second convolution layer is at least one, and the channel dimension of the second convolution kernel is greater than the channel dimension of the first convolution kernel.
[0194] In an exemplary embodiment, the first determining unit includes:
[0195] A third determining unit is configured to determine the weight value of the multiple processed signal spectra at each time-frequency point based on the time series feature information; the sum of the weight values of the multiple processed signals at the same time-frequency point is 1;
[0196] The fourth determining unit is configured to determine the weight information corresponding to each of the multiple processed signal spectra based on the weight value of the multiple processed signal spectra at each time-frequency point.
[0197] In an exemplary embodiment, the signal fusion model includes an information smoothing layer;
[0198] The fourth determining unit includes:
[0199] a smoothing processing unit configured to perform smoothing processing on the weight values of the multiple processed signal spectra at each time-frequency point based on the information smoothing layer to obtain smoothing weight information corresponding to the multiple processed signal spectra;
[0200] The fifth determining unit is configured to determine the weight information corresponding to each of the plurality of processed signal spectra based on the smoothing weight information corresponding to the plurality of processed signal spectra.
[0201] In an exemplary embodiment, the smoothing processing unit includes:
[0202] A historical time-frequency point determination unit, configured to determine historical time-frequency points adjacent to each of the time-frequency points;
[0203] The second weighted summation unit is configured to perform weighted summation of the weight value of each time-frequency point and the weight values of the historical time-frequency points adjacent to each time-frequency point based on a preset smoothing coefficient to obtain the smoothing weight information.
[0204] In an exemplary embodiment, the weight information corresponding to each of the multiple processed signal spectra includes the weight value of the multiple processed signal spectra at each time-frequency point; the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension;
[0205] The first weighted summing unit 1040 includes:
[0206] A weighting unit is configured to perform weighting on the signal energy information of each processed signal spectrum at each time-frequency point based on the weight value of each processed signal spectrum at each time-frequency point, so as to obtain a weighted signal energy corresponding to each processed signal spectrum;
[0207] The signal superposition unit is configured to perform superposition of signal energy information of each weighted signal energy at the same time-frequency point to obtain a signal spectrum of the target speech signal.
[0208] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0209] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided. Optionally, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, an optical data storage device, etc.; when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the methods described above.
[0210] In an exemplary embodiment, a computer program product is also provided, which includes a computer program stored in a readable storage medium, and at least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the device performs any of the above methods.
[0211] Fig.11 is a block diagram of an electronic device for voice processing according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a voice processing method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0212] Those skilled in the art will understand that Fig.11 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0213] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0214] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A speech processing method, characterized in that: include: determining a signal spectrum of a source speech signal; Inputting the signal spectrum of the source speech signal into a plurality of echo cancellation models respectively for echo cancellation processing to obtain a plurality of processed signal spectrums; the echo cancellation performances of the plurality of echo cancellation models are different; Inputting the multiple processed signal spectra and the signal spectrum of the source speech signal into a signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models; the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer, and inputting the multiple processed signal spectra and the signal spectrum of the source speech signal into the signal fusion model for signal fusion to obtain weight information corresponding to each of the multiple processed signal spectra, including: Based on the local feature extraction layer, local feature extraction is performed on the multiple processed signal spectra and the signal spectrum of the source speech signal to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal; Performing time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal; Determine weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information; A signal spectrum of the target speech signal is obtained by performing weighted summation based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra.
2. The method according to claim 1, characterized in that The signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension; Before extracting local features from the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal, the method further includes: Based on the multiple processed signal spectra, the signal spectrum of the source speech signal, the input channel information corresponding to the multiple processed signal spectra, and the input channel information corresponding to the signal spectrum of the source speech signal, a three-dimensional speech signal input matrix is constructed; the dimensions of the three-dimensional speech signal input matrix include a time dimension, a frequency dimension, and a channel dimension.
3. The method according to claim 2, characterized in that The local feature extraction layer includes a plurality of convolutional layers; The extracting local features of the multiple processed signal spectra and the signal spectrum of the source speech signal based on the local feature extraction layer to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal includes: Based on the first convolution kernel corresponding to the first convolution layer, extract local features of the three-dimensional speech signal input matrix to obtain first local feature information; Based on the second convolution kernel corresponding to the second convolution layer, perform local feature extraction on the first local feature information to obtain second local feature information; Determine the local spectrum feature information based on the second local feature information; The first convolution kernel and the second convolution kernel are both three-dimensional convolution kernels, and the dimensions of the three-dimensional convolution kernels correspond to the time dimension, the frequency dimension, and the channel dimension; the number of the second convolution layer is at least one, and the channel dimension of the second convolution kernel is greater than the channel dimension of the first convolution kernel.
4. The method according to claim 2, characterized in that: The determining, based on the time series feature information, weight information corresponding to each of the plurality of processed signal spectra comprises: Determine the weight value of the multiple processed signal spectra at each time-frequency point based on the time series feature information; the sum of the weight values of the multiple processed signals at the same time-frequency point is 1; Based on the weight value of the multiple processed signal spectra at each time-frequency point, weight information corresponding to each of the multiple processed signal spectra is determined.
5. The method according to claim 4, characterized in that The signal fusion model includes an information smoothing layer; The determining, based on the weight value of the multiple processed signal spectra at each time-frequency point, weight information corresponding to each of the multiple processed signal spectra includes: Based on the information smoothing layer, a weight value of each time-frequency point of the multiple processed signal spectra is smoothed to obtain smoothing weight information corresponding to the multiple processed signal spectra; Based on the smoothing weight information corresponding to the multiple processed signal spectra, weight information corresponding to each of the multiple processed signal spectra is determined.
6. The method according to claim 5, characterized in that The step of smoothing the weight values of the multiple processed signal spectra at each time-frequency point based on the information smoothing layer to obtain smoothing weight information corresponding to the multiple processed signal spectra includes: Determining historical time-frequency points adjacent to each of the time-frequency points; Based on a preset smoothing coefficient, a weighted sum is performed on the weight value of each time-frequency point and the weight values of historical time-frequency points adjacent to each time-frequency point to obtain the smoothing weight information.
7. The method according to claim 1, characterized in that The weight information corresponding to each of the multiple processed signal spectra includes the weight value of the multiple processed signal spectra at each time-frequency point; the signal spectrum represents the signal energy information of the signal at each time-frequency point; each time-frequency point is determined based on the time dimension and the frequency dimension; The step of performing weighted summation based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain the signal spectrum of the target speech signal includes: Based on the weight value of each processed signal spectrum at each time-frequency point, weighting the signal energy information of each processed signal spectrum at each time-frequency point, to obtain a weighted signal energy corresponding to each processed signal spectrum; The signal energy information of each weighted signal energy at the same time-frequency point is superimposed to obtain the signal spectrum of the target speech signal.
8. A speech processing device, characterized in that: include: A signal spectrum determination unit, configured to determine a signal spectrum of a source speech signal; The echo cancellation processing unit is configured to input the signal spectrum of the source speech signal into a plurality of echo cancellation models respectively for echo cancellation processing to obtain a plurality of processed signal spectrums; the echo cancellation performances of the plurality of echo cancellation models are different; The signal fusion unit is configured to input the multiple processed signal spectra and the signal spectrum of the source voice signal into a signal fusion model for signal fusion, and obtain weight information corresponding to each of the multiple processed signal spectra; the weight information corresponding to each of the multiple processed signal spectra matches the echo cancellation performance of the multiple echo cancellation models; the signal fusion model includes a local feature extraction layer and a temporal feature extraction layer, and the multiple processed signal spectra and the signal spectrum of the source voice signal are input into the signal fusion model for signal fusion, and the weight information corresponding to each of the multiple processed signal spectra is obtained, including: Based on the local feature extraction layer, local feature extraction is performed on the multiple processed signal spectra and the signal spectrum of the source speech signal to obtain local spectrum feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal; Performing time series feature extraction on the local spectrum feature information based on the time series feature extraction layer to obtain time series feature information corresponding to the multiple processed signal spectra and the signal spectrum of the source speech signal; Determine weight information corresponding to each of the plurality of processed signal spectra based on the time series feature information; The first weighted summing unit is configured to perform weighted summing based on the multiple processed signal spectra and the weight information corresponding to each of the multiple processed signal spectra to obtain the signal spectrum of the target speech signal.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the speech processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the speech processing method as claimed in any one of claims 1 to 7.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the speech processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Residual echo and noise elimination method and device
CN112863535A
Echo cancellation method and device and electronic equipment
CN113113038A
