Speech conversion method, device, computer equipment and medium based on artificial intelligence
Through the combination of autoencoder and vocoder, the problems of low accuracy and high delay caused by voice mismatch in speech conversion technology are solved, and the accuracy and efficiency of low-latency speech conversion are improved.
Patent Information
- Application Number
- CN202211082529.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-09-06
AI Technical Summary
When the existing voice conversion technology does not match the voice of the initial speaker and the target speaker, it leads to a lack of effective supervision of the neural network model, low feature conversion accuracy, and high voice generation delay, and the method of reducing delay will affect the modeling ability and accuracy. .
The autoencoder is used to reconstruct the features of the initial mel spectrum. Through feature extraction and linear coefficient sequence calculation, combined with the vocoder, the target speech is generated, which reduces the amount of model parameters and improves the feature conversion accuracy and speech generation efficiency.
It improves the accuracy of low-latency speech conversion, maintains higher accuracy of speech conversion, reduces the amount of model parameters in the neural network prediction method, and improves the efficiency of speech conversion.
Smart Images

Figure CN115457969B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a voice conversion method, device, computer equipment and medium based on artificial intelligence. Background Art
[0002] Speech conversion technology is a technology that converts the speaker corresponding to the speech features from the initial speaker to the target speaker while retaining the speech content. With the development of speech conversion technology, it can now be applied to speech data enhancement, speech restoration, speech synthesis and other aspects. Speech conversion technology usually includes speech analysis, feature conversion and speech generation. Speech analysis is usually obtained by signal processing methods, and because neural network models have strong modeling capabilities, feature conversion and speech generation are usually processed by neural network models.
[0003] However, when the initial speaker's voice does not match the target speaker's voice, the target speaker's voice cannot be used as a label to train the neural network model, resulting in a lack of effective supervision of the neural network model used for feature conversion, low accuracy of feature conversion, and low accuracy of speech conversion. In addition, the neural network model used for speech generation has a large number of parameters, resulting in a high delay in speech generation. The current method to reduce the delay in speech generation is to reduce the number of layers of the neural network model, but this will also lead to a decrease in the modeling ability of the neural network model, reduce the accuracy of speech generation, and thus lead to a low accuracy of speech conversion. Therefore, how to improve the accuracy of low-latency speech conversion has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a speech conversion method, apparatus, computer equipment and medium based on artificial intelligence to solve the problem of low accuracy of low-latency speech conversion.
[0005] In a first aspect, an embodiment of the present invention provides a voice conversion method based on artificial intelligence, the voice conversion method comprising:
[0006] Obtaining an initial Mel spectrum corresponding to the speech sequence to be converted, inputting the initial Mel spectrum into a trained autoencoder for reconstruction, determining a reconstructed result as an updated Mel spectrum, performing feature extraction on the updated Mel spectrum, and determining the feature extraction result as a conditional feature;
[0007] Converting the updated Mel spectrum into a power spectrum density function, performing a fast inverse Fourier transform on the power spectrum density function, solving the transformation result, and determining that the solution result is a linear coefficient sequence, wherein the linear coefficient sequence includes at least two linear coefficients, and one linear coefficient corresponds to an element of a frame in the speech sequence to be converted;
[0008] For any linear coefficient, multiply the linear coefficient by an element of a corresponding frame in the speech sequence to be converted, and determine the sum of all multiplication results as a predicted value;
[0009] The element of the last frame in the speech sequence to be converted is determined as the input element in time sequence, the conditional feature, the predicted value and the input element are connected, the connection result is input into the trained voice coder to obtain the predicted excitation value, and according to the source filter model, the predicted value and the predicted excitation value are added to obtain the target speech.
[0010] In a second aspect, an embodiment of the present invention provides a speech conversion device based on artificial intelligence, the speech conversion device comprising:
[0011] A feature reconstruction module is used to obtain an initial Mel spectrum corresponding to a speech sequence to be converted, input the initial Mel spectrum into a trained autoencoder for reconstruction, determine the reconstructed result as an updated Mel spectrum, perform feature extraction on the updated Mel spectrum, and determine the feature extraction result as a conditional feature;
[0012] A coefficient solving module, used for converting the updated Mel spectrum into a power spectrum density function, performing a fast inverse Fourier transform on the power spectrum density function, solving the transformation result, and determining that the solution result is a linear coefficient sequence, wherein the linear coefficient sequence includes at least two linear coefficients, and one linear coefficient corresponds to an element of a frame in the speech sequence to be converted;
[0013] A linear prediction module, for multiplying any linear coefficient by an element of a corresponding frame in the speech sequence to be converted, and determining the sum of all multiplication results as a prediction value;
[0014] The speech generation module is used to determine the element of the last frame in the speech sequence to be converted as the input element in time sequence, connect the conditional feature, the predicted value and the input element, input the connection result into the trained vocoder to obtain the predicted excitation value, and add the predicted value and the predicted excitation value according to the source filter model to obtain the target speech.
[0015] In a third aspect, an embodiment of the present invention provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the speech conversion method as described in the first aspect when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the speech conversion method as described in the first aspect is implemented.
[0017] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0018] The initial Mel spectrum corresponding to the speech sequence to be converted is obtained, and the initial Mel spectrum is input into the trained autoencoder for reconstruction, and the reconstructed result is determined to be an updated Mel spectrum, and the updated Mel spectrum is subjected to feature extraction, and the feature extraction result is determined to be a conditional feature, and the updated Mel spectrum is converted into a power spectrum density function, and the power spectrum density function is subjected to fast inverse Fourier transform, and the transformation result is solved, and the solution result is determined to be a linear coefficient sequence, and the linear coefficient sequence includes at least two linear coefficients, and a linear coefficient corresponds to an element of a frame in the speech sequence to be converted. For any linear coefficient, the linear coefficient is multiplied with an element of a corresponding frame in the speech sequence to be converted, and the sum of all multiplication results is determined to be a predicted value, and the element of the last frame in the speech sequence to be converted is determined to be an input element in time sequence, and the conditional feature, the predicted value and the input element are connected, and the connection result is input into the trained vocoder to obtain a predicted excitation value, and the predicted value and the predicted excitation value are added according to the source filter model to obtain the target speech. An autoencoder is used to reconstruct the features of the initial Mel spectrum so that the reconstructed Mel spectrum can be closer to the Mel spectrum of the corresponding target speech, thereby improving the accuracy of feature conversion. Signal processing is used to calculate the predicted values in the speech generation process, which greatly reduces the number of model parameters. Compared with the neural network prediction method with the same delay, it can maintain more accurate speech conversion, thereby improving the accuracy of low-latency speech conversion. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0020] Figure 1 This is a schematic diagram of an application environment of a voice conversion method based on artificial intelligence provided by Embodiment 1 of the present invention;
[0021] Figure 2 This is a flow chart of a voice conversion method based on artificial intelligence provided by Embodiment 1 of the present invention;
[0022] Figure 3 1 is a schematic diagram of the structure of a speech conversion device based on artificial intelligence provided in Embodiment 2 of the present invention;
[0023] Figure 4 It is a structural diagram of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0027] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.
[0028] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0030] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0031] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0032] It should be understood that the order of execution of the steps in the following embodiments does not imply a precedence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0033] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0034] The first embodiment of the present invention provides a method for voice conversion based on artificial intelligence, which can be applied in the following aspects: Figure 1 In the application environment, the client communicates with the server. The client includes but is not limited to PDA, desktop computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cloud terminal device, personal digital assistant (PDA) and other computer devices. The server can be implemented by an independent server or a server cluster composed of multiple servers.
[0035] See also Figure 2 , is a flow chart of a method for voice conversion based on artificial intelligence provided by the first embodiment of the present invention. The above-mentioned method for voice conversion can be applied to Figure 1 The client in the client, the computer device corresponding to the client connects to the server to obtain the speech sequence to be converted and the initial Mel spectrum of the speech sequence to be converted received by the server, and the computer device corresponding to the client is deployed with a trained autoencoder and a trained vocoder. The trained autoencoder can be used to reconstruct the initial Mel spectrum, and the trained vocoder can be used to generate the target speech. Figure 2 As shown, the artificial intelligence-based voice conversion method may include the following steps:
[0036] Step S201, obtaining an initial Mel spectrum corresponding to the speech sequence to be converted, inputting the initial Mel spectrum into a trained autoencoder for reconstruction, determining the reconstructed result as an updated Mel spectrum, performing feature extraction on the updated Mel spectrum, and determining the feature extraction result as a conditional feature.
[0037] Among them, the speech sequence to be converted can refer to the waveform sequence of the speech to be converted, the waveform can refer to continuous amplitude change information, the waveform sequence can refer to a sequence obtained by sampling the waveform according to a preset sampling frequency, and the waveform sequence contains several elements, the elements are sampling points, one sampling point corresponds to one sampling time, and the element value can represent the amplitude, that is, the vibration amplitude of the sound.
[0038] The initial Mel spectrum may refer to the Mel spectrum corresponding to the speech sequence to be converted, the autoencoder may refer to the variational autoencoder, the updated Mel spectrum may refer to the Mel spectrum corresponding to the target speech, and the conditional feature may refer to the embedded feature of the vocoder.
[0039] Specifically, in this embodiment, the sampling frequency of the waveform may be 44.1 kHz, that is, 44,100 sampling points are sampled per second, that is, the number of elements in the waveform sequence.
[0040] The speech sequence to be converted is subjected to Fourier transform to obtain the spectrum corresponding to the speech sequence to be converted, and the spectrum is mapped to the initial Mel spectrum using a preset mapping function. The specific mapping function is:
[0041]
[0042] Where f represents the input frequency, mel(f) represents the Mel frequency corresponding to the input frequency, and the initial Mel spectrum can be used to characterize the voice characteristics of the speaker of the speech sequence to be converted. Since speech conversion needs to convert the voice characteristics into the voice characteristics of the target person, the initial Mel spectrum needs to be reconstructed to obtain an updated Mel spectrum that is more in line with the voice characteristics of the target person.
[0043] Feature extraction can be implemented using a preset feature extraction model. The feature extraction model can refer to a convolutional neural network. Specifically, the feature extraction model includes K convolutional layers, where K is an integer greater than 1. The first K-1 convolutional layers are used to perform one-dimensional convolution and batch normalization operations. The convolution kernel size of the one-dimensional convolution is set to 1*3 in this embodiment. The purpose of stacking K-1 layers is to expand the receptive field of the convolution operation. For example, when K is 3, the receptive field is 5. The convolution kernel size of the Kth convolutional layer is 1*1, which is used to integrate features. The implementer can replace the Kth convolutional layer with a fully connected layer according to actual conditions.
[0044] Optionally, the trained autoencoder includes a trained first encoder and a trained first decoder;
[0045] The initial Mel spectrum is input into the trained autoencoder for reconstruction, and the reconstructed result is determined to be the updated Mel spectrum including:
[0046] The initial Mel spectrum is input into the trained first encoder for feature extraction to obtain speech features;
[0047] The speech features are fused with the acquired coding features, and the feature fusion result is input into the trained first decoder for feature reconstruction to obtain an updated Mel spectrum.
[0048] Among them, the trained first encoder can be used to extract the latent features of the initial Mel spectrum, and the trained first decoder can be used to reconstruct the latent features to obtain an updated Mel spectrum. The updated Mel spectrum can refer to the Mel spectrum corresponding to the sound features of the target speech speaker, and the encoding features can refer to the encoding features of the target speaker corresponding to the updated Mel spectrum.
[0049] Specifically, the initial Mel spectrum is input into the trained first encoder for feature extraction to obtain Gaussian distribution parameters of potential features, and the Gaussian distribution is sampled by resampling to obtain speech features.
[0050] Obtain the identifier of the target speaker corresponding to the updated mel-spectrogram, and encode the identifier. In this embodiment, one-hot encoding is used to obtain encoding features;
[0051] The speech features and the coding features are fused. The feature fusion method can be concatenation, accumulation, etc. After the fused features are obtained, they are input into the trained first decoder for feature reconstruction to obtain an updated Mel spectrum. Since the fused features contain coding features, the decoder can be guided to reconstruct the updated Mel spectrum corresponding to the target speaker.
[0052] In this embodiment, the target speaker's features are fused with the speech features, so that the autoencoder outputs an updated Mel spectrum, which plays a role in feature conversion.
[0053] Optionally, the autoencoder includes a first encoder and a first decoder, the sample Mel spectrum is used as a training sample when the autoencoder is trained, the reference Mel spectrum is used as a reconstruction target of the sample Mel spectrum, the reconstruction loss is used as a loss function when the autoencoder is trained, the sample Mel spectrum corresponds to the sample speaker encoding feature, and the reference Mel spectrum corresponds to the reference speaker encoding feature;
[0054] The training process of the autoencoder includes:
[0055] Input the sample Mel spectrum into the first encoder to obtain the first sample feature;
[0056] After feature fusion of the first sample feature and the sample speaker encoding feature, the feature is input into a first decoder to obtain a first reconstructed Mel spectrum;
[0057] The reconstruction loss is calculated according to the first reconstructed Mel spectrum and the sample Mel spectrum. Based on the reconstruction loss, the parameters of the first encoder and the first decoder are updated by the gradient descent method until the reconstruction loss converges, thereby obtaining a preliminarily trained first encoder and a preliminarily trained first decoder.
[0058] Among them, the sample mel spectrum may refer to the mel spectrum corresponding to the sample speech sequence, the reference mel spectrum may refer to the target of the sample mel spectrum feature conversion, the sample speaker coding feature may refer to the coding feature of the sample speaker, and the reference speaker coding feature may refer to the coding feature of the reference speaker.
[0059] Specifically, the training process of obtaining the first reconstructed mel spectrum aims to enable the autoencoder to have a basic reconstruction function, that is, to be able to extract sample features required for reconstruction.
[0060] This embodiment performs preliminary training on the autoencoder to obtain a preliminarily trained autoencoder, which can extract effective features of the sample Mel spectrum for reconstruction, while avoiding the difficulty of convergence in the subsequent training process, thereby improving the efficiency and accuracy of subsequent re-training of the autoencoder.
[0061] Optionally, after obtaining the preliminarily trained first encoder and the preliminarily trained first decoder, the method further includes:
[0062] Input the sample Mel spectrum into the preliminarily trained first encoder to obtain the second sample feature;
[0063] After the second sample feature and the reference speaker coding feature are fused, the feature is input into the preliminarily trained first decoder to obtain a second reconstructed Mel spectrum;
[0064] Inputting the second reconstructed Mel spectrum into the preliminarily trained first encoder to obtain a third sample feature;
[0065] After the third sample feature and the sample speaker coding feature are fused, the feature is input into the preliminarily trained first decoder to obtain a third reconstructed Mel spectrum;
[0066] The reconstruction loss is calculated according to the sample Mel spectrum and the third reconstructed Mel spectrum. Based on the reconstruction loss, the parameters of the initially trained first encoder and the initially trained first decoder are updated by the gradient descent method until the reconstruction loss converges to obtain the trained first encoder and the trained first decoder.
[0067] Among them, the second sample feature may refer to the effective feature of the sample Mel spectrum, the second reconstructed Mel spectrum may refer to the reconstructed Mel spectrum that conforms to the speech characteristics of the reference speaker, the third sample feature may refer to the effective feature of the second reconstructed Mel spectrum, and the third reconstructed Mel spectrum may refer to the reconstructed Mel spectrum that conforms to the speech characteristics of the sample speaker.
[0068] Because it is usually difficult to obtain the speech of the reference speaker and the sample speaker saying the same sentence, the speech corresponding to the sample Mel spectrum does not have the corresponding reference speaker speech, that is, it belongs to a non-parallel feature conversion scenario. Therefore, the present application adopts a cyclic method to train the autoencoder.
[0069] The second sample feature is fused with the reference speaker encoding feature to reconstruct a second reconstructed Mel-spectrogram. The second reconstructed Mel-spectrogram should conform to the speech features of the reference speaker, but there is no corresponding label to supervise the generation of the second reconstructed Mel-spectrogram.
[0070] The third sample feature corresponding to the second reconstructed Mel-spectrogram is fused with the encoding feature of the sample speaker to obtain the third reconstructed Mel-spectrogram. The third reconstructed Mel-spectrogram should conform to the speech characteristics of the sample speaker. At this time, the sample Mel-spectrogram can be used to supervise the generation of the third reconstructed Mel-spectrogram, thereby achieving indirect supervision.
[0071] This embodiment uses a cyclic reconstruction method to retrain the autoencoder, so that the autoencoder can learn to reconstruct the reconstructed Mel-spectrograms corresponding to different speakers according to different coding features, thereby improving the accuracy of feature conversion.
[0072] The above steps of obtaining an initial Mel spectrum corresponding to the speech sequence to be converted, inputting the initial Mel spectrum into a trained autoencoder for reconstruction, determining the reconstructed result as an updated Mel spectrum, performing feature extraction on the updated Mel spectrum, and determining the feature extraction result as a conditional feature, obtain an updated Mel spectrum that meets the target speech speaker through the autoencoder, thereby improving the accuracy of the target speech conversion.
[0073] Step S202: convert the updated Mel spectrum into a power spectrum density function, perform a fast inverse Fourier transform on the power spectrum density function, solve the transformation result, and determine that the solution result is a linear coefficient sequence.
[0074] Among them, the power spectral density function can be used to characterize the change of signal power with frequency in a unit frequency band, that is, the distribution of signal power in the frequency domain. The transformation result of the power spectral density function after fast inverse Fourier transform is an autocorrelation function. According to the autocorrelation function, the Levinson-Durbin method can be used to solve and obtain a linear coefficient sequence. The linear coefficient sequence includes at least two linear coefficients, and a linear coefficient corresponds to an element of a frame in the speech sequence to be converted.
[0075] Specifically, linear prediction of speech means that a sampling value of speech can be approximated by a linear combination of several historical sampling values of speech, and a unique linear coefficient sequence can be determined. The linear coefficient sequence includes L linear coefficients, that is, the current sampling value can be obtained based on L historical sampling values. In this embodiment, L is set to 25, and a linear coefficient corresponds to an element of a frame in the speech sequence to be converted. The frame here refers to the sampling frame, that is, a linear coefficient corresponds to a sampling point in the speech sequence to be converted.
[0076] The above steps of converting the updated Mel spectrum into a power spectral density function, performing a fast inverse Fourier transform on the power spectral density function, solving the transformation result, and determining that the solution result is a linear coefficient sequence, calculate the linear coefficient sequence by signal processing, so that the subsequent calculation of the prediction value does not need to be obtained through a neural network, which simplifies the model parameters and improves the efficiency of speech conversion.
[0077] Step S203: for any linear coefficient, multiply the linear coefficient by the element of the corresponding frame in the speech sequence to be converted, and determine the sum of all multiplication results as the prediction value.
[0078] The element of the corresponding frame may refer to the element value of the corresponding sampling frame, and the predicted value may refer to the filter parameter p in the source filter model.
[0079] Specifically, the calculation formula of the predicted value p is:
[0080]
[0081] Among them, p t It can refer to the predicted value of the tth sampling frame, a l It can refer to the lth linear coefficient, S t-l It may refer to the element of the tlth sampling frame.
[0082] In the above step of multiplying any linear coefficient by the element of the corresponding frame in the speech sequence to be converted and determining the sum of all multiplication results as the predicted value, the predicted value is obtained by linear prediction, which is fast in calculation and does not require model fitting, thereby improving the efficiency of speech conversion.
[0083] Step S204, determine the element of the last frame in the speech sequence to be converted as the input element in time sequence, connect the conditional feature, the predicted value and the input element, input the connection result into the trained vocoder to obtain the predicted excitation value, and add the predicted value and the predicted excitation value according to the source filter model to obtain the target speech.
[0084] The input element may refer to an element used to participate in the prediction of the excitation value by the vocoder, and the connection may refer to the concatenation of features according to the dimension.
[0085] Specifically, the source filter model can be expressed as S t =p t +e t , where p t It can refer to the predicted value of the tth sampling frame, e t It can refer to the predicted excitation value of the tth sampling frame, S t It may refer to the element value of the t-th sampling frame, that is, the element value in the target speech.
[0086] After obtaining the element value in the target speech, the element value is updated to the end of the speech sequence to be converted according to the time sequence, and the prediction value is recalculated to obtain the updated prediction value p t+1 , and using S t As the input element, the step of concatenating the conditional feature, the predicted value and the input element is performed again to obtain e t+1 , that is, the predicted excitation value of the t+1th sampling frame, through S t+1 =p t+1 +e t+1 , obtain the element value of t+1 sampling frames, return to execute the step of updating the element value to the end of the speech sequence to be converted according to the time sequence, until a preset number of element values are obtained, and combine all the obtained element values into the target speech. The preset number can refer to 44100, which corresponds to the number of sampling points of the waveform in one second.
[0087] Optionally, the trained vocoder includes a trained gated recurrent layer and a trained fully connected layer;
[0088] The concatenation result is input into the trained vocoder to obtain the predicted excitation value. According to the source filter model, the predicted value and the predicted excitation value are added to obtain the target speech including:
[0089] Input the concatenation result into the trained gated recurrent layer to obtain the conversion feature;
[0090] The converted features are input into the trained fully connected layer for feature mapping to obtain the predicted stimulus value.
[0091] Among them, the gated recurrent layer belongs to a type of recurrent neural network, and the conversion feature may refer to a feature used to characterize the connection result.
[0092] Specifically, the gated recurrent layer can be used to retain part of the historical prediction information during the recurrent prediction process, thereby improving the accuracy of the prediction.
[0093] This embodiment uses a gated recurrent layer to achieve the prediction of the excitation value. During the generation process of the target speech, it is necessary to generate elements at each sampling point, so as to retain the effective feature information of the generation process, thereby avoiding the jump of the prediction result and improving the accuracy of the excitation value prediction.
[0094] Optionally, the trained fully connected layer includes a trained first fully connected layer and a trained second fully connected layer;
[0095] The converted features are input into the trained fully connected layer for feature mapping, and the predicted incentive values obtained include:
[0096] Input the converted features into the trained first fully connected layer to obtain a first Gaussian distribution, sample the first Gaussian distribution, and obtain a first sampling point;
[0097] The sum of the first sampling point and the predicted value is determined as a first update element, and the first update element is updated to the speech sequence to be converted to obtain an updated speech sequence.
[0098] Among them, the first fully connected layer can be used to predict the excitation value distribution of the current sampling frame. At this time, the priori is that the excitation value distribution satisfies the Gaussian distribution, that is, the output of the first fully connected layer is the mean and variance of the excitation value distribution. Sampling can refer to probability sampling according to the Gaussian distribution, and the first sampling point is the predicted excitation value of the current sampling frame.
[0099] Specifically, when probability sampling is performed according to the Gaussian distribution, the horizontal axis of the Gaussian distribution is the excitation value and the vertical axis is the probability value. The probability needs to be normalized before sampling, that is, the sum of the probabilities of sampling each excitation value is 1, and probability sampling is performed according to the normalized Gaussian distribution to obtain the first sampling value.
[0100] This embodiment adopts the method of predicting Gaussian distribution and sampling to determine the predicted excitation value. Compared with the conventional method of directly outputting the predicted excitation value by the fully connected layer, the difficulty of fitting the parameters of the fully connected layer is reduced, and overfitting is avoided, resulting in low accuracy of the predicted excitation value, thereby improving the accuracy of speech conversion.
[0101] Optionally, after obtaining the updated speech sequence to be converted, the method further includes:
[0102] According to the linear coefficient sequence and the updated speech sequence, an updated prediction value is calculated;
[0103] Input the converted features into the trained second fully connected layer to obtain a second Gaussian distribution, sample the second Gaussian distribution, and obtain a second sampling point;
[0104] Determine the sum of the second sampling point and the updated prediction value as a second update element, update the second update element to the update speech sequence, and determine the update result as the update speech sequence;
[0105] When it is detected that the updated speech sequence meets the preset condition, the updated speech sequence is compared with the speech sequence to be converted, and the elements belonging only to the updated speech sequence are determined as the elements of the target speech.
[0106] Among them, the second fully connected layer can be used to predict the excitation value distribution of the next sampling frame, the second sampling point is the predicted excitation value of the next sampling frame, and the preset condition can be used to determine whether the number of newly added elements in the updated speech sequence meets the preset number.
[0107] Specifically, since the conditional features, predicted values, and input elements of two adjacent sampling frames can be approximately regarded as the same, the second fully connected layer is directly predicted in parallel with the first fully connected layer to obtain the second Gaussian distribution, and the second sampling point is sampled.
[0108] After the first sampling point is updated to the updated speech sequence and the updated prediction value is calculated according to the first sampling point, the second sampling point is updated to the updated speech sequence, that is, the acquisition process of the first sampling point and the second sampling point is synchronous and has no influence on each other, but the update process is asynchronous, so that higher generation efficiency can be obtained within the same processing time.
[0109] The preset condition may refer to a length constraint, that is, when the length of the updated speech sequence is twice the length of the speech sequence to be converted, the updated speech sequence and the speech sequence to be converted are compared element by element, and only the elements belonging to the updated speech sequence are determined as the elements of the target speech, that is, the target speech is constructed based on all the newly generated elements.
[0110] When it is detected that the updated speech sequence does not meet the preset conditions, the prediction value and the input element are updated, and the prediction is performed again through the vocoder to obtain the predicted excitation value until the updated speech sequence meets the preset conditions.
[0111] This embodiment adopts a parallel Gaussian sampling method to predict the excitation value, which improves the efficiency of speech conversion while ensuring the quality of speech conversion, that is, improves the accuracy of low-delay speech conversion.
[0112] In the above steps, the element of the last frame in the speech sequence to be converted is determined in time sequence as the input element, the conditional feature, the predicted value and the input element are connected, the connection result is input into the trained vocoder to obtain the predicted excitation value, and the predicted value and the predicted excitation value are added according to the source filter model to obtain the target speech. The vocoder only predicts the excitation value, and the calculation complexity is low. At the same time, it avoids the situation where it is difficult to fit due to directly predicting the element value, thereby improving the accuracy of speech conversion.
[0113] This embodiment uses an autoencoder to reconstruct the features of the initial Mel spectrum so that the reconstructed Mel spectrum can be closer to the Mel spectrum of the corresponding target speech, thereby improving the accuracy of feature conversion. A signal processing method is used to calculate the predicted values in the speech generation process, which greatly reduces the number of model parameters. Compared with the neural network prediction method with the same delay, more accurate speech conversion can be maintained, thereby improving the accuracy of low-latency speech conversion.
[0114] Corresponding to the artificial intelligence-based voice conversion method of the above embodiment, Figure 3 The structural block diagram of the speech conversion device based on artificial intelligence provided by the second embodiment of the present invention is shown. The speech conversion device is applied to the client. The computer device corresponding to the client is connected to the server to obtain the speech sequence to be converted and the initial Mel spectrum of the speech sequence to be converted received by the server. The computer device corresponding to the client is deployed with a trained autoencoder and a trained vocoder. The trained autoencoder can be used to reconstruct the initial Mel spectrum, and the trained vocoder can be used to generate the target speech. For the convenience of explanation, only the part related to the embodiment of the present invention is shown.
[0115] See also Figure 3 , the voice conversion device comprises:
[0116] The feature reconstruction module 31 is used to obtain an initial Mel spectrum corresponding to the speech sequence to be converted, input the initial Mel spectrum into the trained autoencoder for reconstruction, determine the reconstructed result as an updated Mel spectrum, perform feature extraction on the updated Mel spectrum, and determine the feature extraction result as a conditional feature;
[0117] A coefficient solving module 32 is used to convert the updated Mel spectrum into a power spectrum density function, perform a fast inverse Fourier transform on the power spectrum density function, solve the transformation result, and determine that the solution result is a linear coefficient sequence, the linear coefficient sequence includes at least two linear coefficients, and one linear coefficient corresponds to an element of a frame in the speech sequence to be converted;
[0118] A linear prediction module 33 is used for multiplying any linear coefficient by an element of a corresponding frame in the speech sequence to be converted, and determining the sum of all multiplication results as a prediction value;
[0119] The speech generation module 34 is used to determine the element of the last frame in the speech sequence to be converted as the input element in time sequence, connect the conditional feature, the prediction value and the input element, input the connection result into the trained vocoder to obtain the predicted excitation value, and add the predicted value and the predicted excitation value according to the source filter model to obtain the target speech.
[0120] Optionally, the trained autoencoder includes a trained first encoder and a trained first decoder;
[0121] The feature reconstruction module 31 includes:
[0122] A feature extraction unit, used for inputting the initial Mel spectrum into the trained first encoder to extract features and obtain speech features;
[0123] The feature updating unit is used to perform feature fusion on the speech feature and the acquired coding feature, and input the feature fusion result into the trained first decoder for feature reconstruction to obtain an updated Mel spectrum.
[0124] Optionally, the autoencoder includes a first encoder and a first decoder, the sample Mel spectrum is used as a training sample when the autoencoder is trained, the reference Mel spectrum is used as a reconstruction target of the sample Mel spectrum, the reconstruction loss is used as a loss function when the autoencoder is trained, the sample Mel spectrum corresponds to the sample speaker encoding feature, and the reference Mel spectrum corresponds to the reference speaker encoding feature;
[0125] The above-mentioned voice conversion device also includes:
[0126] A first sample encoding module, used for inputting the sample Mel spectrum into a first encoder to obtain a first sample feature;
[0127] A first sample reconstruction module is used to perform feature fusion on the first sample feature and the sample speaker coding feature, and input the feature into a first decoder to obtain a first reconstructed Mel spectrum;
[0128] The first training module is used to calculate the reconstruction loss according to the first reconstructed Mel spectrum and the sample Mel spectrum, and based on the reconstruction loss, use the gradient descent method to update the parameters of the first encoder and the first decoder until the reconstruction loss converges, thereby obtaining a preliminarily trained first encoder and a preliminarily trained first decoder.
[0129] Optionally, the above-mentioned voice conversion device further includes:
[0130] A second sample encoding module, used for inputting the sample Mel spectrum into the preliminarily trained first encoder to obtain a second sample feature;
[0131] The second sample reconstruction module performs feature fusion on the second sample features and the reference speaker coding features, and inputs the first decoder that has been preliminarily trained to obtain a second reconstructed Mel spectrum.
[0132] A third sample encoding module, inputting the second reconstructed Mel spectrum into the preliminarily trained first encoder to obtain a third sample feature;
[0133] A third sample reconstruction module performs feature fusion on the third sample feature and the sample speaker coding feature, and inputs the first decoder that has been preliminarily trained to obtain a third reconstructed Mel spectrum;
[0134] The second training module calculates the reconstruction loss according to the sample Mel spectrum and the third reconstructed Mel spectrum, and based on the reconstruction loss, uses the gradient descent method to update the parameters of the preliminarily trained first encoder and the preliminarily trained first decoder until the reconstruction loss converges, thereby obtaining the trained first encoder and the trained first decoder.
[0135] Optionally, the trained vocoder includes a trained gated recurrent layer and a trained fully connected layer;
[0136] The above-mentioned speech generation module 34 comprises:
[0137] The gated recurrent unit is used to input the concatenation result into the trained gated recurrent layer to obtain the conversion feature;
[0138] The feature mapping unit is used to input the conversion features into the trained fully connected layer for feature mapping to obtain the predicted stimulus value.
[0139] Optionally, the trained fully connected layer includes a trained first fully connected layer and a trained second fully connected layer;
[0140] The above-mentioned speech generation module 34 comprises:
[0141] A first sampling unit is used to input the conversion feature into the trained first fully connected layer to obtain a first Gaussian distribution, and sample the first Gaussian distribution to obtain a first sampling point;
[0142] The first updating unit is used to determine the sum of the first sampling point and the predicted value as a first updating element, and update the first updating element to the speech sequence to be converted to obtain an updated speech sequence.
[0143] The above-mentioned speech generation module 34 also includes:
[0144] A second sampling unit is used to input the conversion feature into the trained second fully connected layer to obtain a second Gaussian distribution, and sample the second Gaussian distribution to obtain a second sampling point;
[0145] A second updating unit, configured to determine the sum of the second sampling point and the updated prediction value as a second updating element, update the second updating element into the updated speech sequence, and determine the updating result as the updated speech sequence;
[0146] The target speech determination unit is used to compare the elements of the updated speech sequence with the speech sequence to be converted when it is detected that the updated speech sequence meets the preset conditions, and determine the elements belonging only to the updated speech sequence as the elements of the target speech.
[0147] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules and units are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0148] Figure 4 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 4 As shown, the computer device of this embodiment includes: at least one processor ( Figure 4 Only one is shown in the figure), a memory, and a computer program stored in the memory and executable on at least one processor, wherein when the processor executes the computer program, the steps in any of the above-mentioned speech conversion method embodiments are implemented.
[0149] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 4 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, it may also include a network interface, a display screen, and an input device.
[0150] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0151] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0152] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0153] The present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0156] In the embodiments provided by the present invention, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0157] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0158] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A speech conversion method based on artificial intelligence, characterized in that: The voice conversion method comprises: Acquire an initial Mel spectrum corresponding to a speech sequence to be converted, input the initial Mel spectrum into a trained autoencoder for reconstruction, determine that the reconstructed result is an updated Mel spectrum, perform feature extraction on the updated Mel spectrum, and determine that the feature extraction result is a conditional feature; convert the updated Mel spectrum into a power spectrum density function, perform a fast inverse Fourier transform on the power spectrum density function, solve the transformation result, and determine that the solution result is a linear coefficient sequence, wherein the linear coefficient sequence includes at least two linear coefficients, and one linear coefficient corresponds to an element of a frame in the speech sequence to be converted; For any linear coefficient, multiply the linear coefficient by an element of a corresponding frame in the speech sequence to be converted, and determine the sum of all multiplication results as a predicted value; Determine the element of the last frame in the speech sequence to be converted as an input element in time sequence, connect the conditional feature, the predicted value and the input element, input the connection result into a trained vocoder to obtain a predicted excitation value, and add the predicted value and the predicted excitation value according to a source filter model to obtain a target speech; The trained autoencoder includes a trained first encoder and a trained first decoder; Inputting the initial Mel spectrum into the trained autoencoder for reconstruction, and determining the reconstructed result as an updated Mel spectrum comprises: Inputting the initial Mel spectrum into the trained first encoder to extract features to obtain speech features; The speech feature is fused with the acquired coding feature, and the feature fusion result is input into the trained first decoder for feature reconstruction to obtain the updated Mel spectrum; the coding feature is the coding feature of the target speaker corresponding to the updated Mel spectrum; The autoencoder comprises a first encoder and a first decoder, wherein a sample Mel spectrum is used as a training sample when the autoencoder is trained, a reference Mel spectrum is used as a reconstruction target of the sample Mel spectrum, and a reconstruction loss is used as a loss function when the autoencoder is trained, the sample Mel spectrum corresponds to a sample speaker coding feature, and the reference Mel spectrum corresponds to a reference speaker coding feature; The training process of the autoencoder includes: Inputting the sample mel spectrum into the first encoder to obtain a first sample feature; After performing feature fusion on the first sample feature and the sample speaker encoding feature, the feature fusion is input into the first decoder to obtain a first reconstructed Mel spectrum; Calculating the reconstruction loss according to the first reconstructed Mel spectrum and the sample Mel spectrum, and updating the parameters of the first encoder and the first decoder by using the gradient descent method based on the reconstruction loss until the reconstruction loss converges, thereby obtaining a preliminarily trained first encoder and a preliminarily trained first decoder; After obtaining the preliminarily trained first encoder and the preliminarily trained first decoder, the method further includes: Inputting the sample Mel spectrum into the preliminarily trained first encoder to obtain a second sample feature; After performing feature fusion on the second sample feature and the reference speaker coding feature, the feature fusion is input into the preliminarily trained first decoder to obtain a second reconstructed Mel spectrum; Inputting the second reconstructed Mel spectrum into the preliminarily trained first encoder to obtain a third sample feature; After feature fusion of the third sample feature and the sample speaker coding feature, the feature is input into the preliminarily trained first decoder to obtain a third reconstructed Mel spectrum; The reconstruction loss is calculated according to the sample mel spectrum and the third reconstructed mel spectrum, and based on the reconstruction loss, the parameters of the preliminarily trained first encoder and the preliminarily trained first decoder are updated by using the gradient descent method until the reconstruction loss converges, thereby obtaining the trained first encoder and the trained first decoder.
2. The voice conversion method according to claim 1, characterized in that: The trained vocoder includes a trained gated recurrent layer and a trained fully connected layer; The step of inputting the concatenation result into a trained vocoder to obtain a predicted excitation value, and adding the predicted excitation value to the predicted excitation value according to a source filter model to obtain a target speech comprises: Inputting the connection result into the trained gated recurrent layer to obtain a conversion feature; The conversion feature is input into the trained fully connected layer for feature mapping to obtain the predicted stimulus value.
3. The voice conversion method according to claim 2, characterized in that: The trained fully connected layer includes a trained first fully connected layer and a trained second fully connected layer; Inputting the conversion feature into the trained fully connected layer for feature mapping to obtain the predicted stimulus value comprises: Inputting the conversion feature into the trained first fully connected layer to obtain a first Gaussian distribution, and sampling the first Gaussian distribution to obtain a first sampling point; The sum of the first sampling point and the predicted value is determined as a first update element, and the first update element is updated into the speech sequence to be converted to obtain an updated speech sequence.
4. The method for voice conversion according to claim 3, characterized in that: After obtaining the updated speech sequence to be converted, the method further includes: Calculating an updated prediction value according to the linear coefficient sequence and the updated speech sequence; Inputting the conversion feature into the trained second fully connected layer to obtain a second Gaussian distribution, and sampling the second Gaussian distribution to obtain a second sampling point; Determine the sum of the second sampling point and the updated prediction value as a second update element, update the second update element to the updated speech sequence, and determine an update result as the updated speech sequence; When it is detected that the updated speech sequence meets a preset condition, the updated speech sequence is compared with the speech sequence to be converted, and only the elements belonging to the updated speech sequence are determined as the elements of the target speech.
5. A speech conversion device based on artificial intelligence, characterized in that: The voice conversion device comprises: A feature reconstruction module is used to obtain an initial Mel spectrum corresponding to a speech sequence to be converted, input the initial Mel spectrum into a trained autoencoder for reconstruction, determine the reconstructed result as an updated Mel spectrum, perform feature extraction on the updated Mel spectrum, and determine the feature extraction result as a conditional feature; A coefficient solving module, used for converting the updated Mel spectrum into a power spectrum density function, performing a fast inverse Fourier transform on the power spectrum density function, solving the transformation result, and determining that the solution result is a linear coefficient sequence, wherein the linear coefficient sequence includes at least two linear coefficients, and one linear coefficient corresponds to an element of a frame in the speech sequence to be converted; A linear prediction module, for multiplying any linear coefficient by an element of a corresponding frame in the speech sequence to be converted, and determining the sum of all multiplication results as a prediction value; A speech generation module is used to determine the element of the last frame in the speech sequence to be converted as an input element in time sequence, connect the conditional feature, the predicted value and the input element, input the connection result into a trained vocoder to obtain a predicted excitation value, and add the predicted value and the predicted excitation value according to a source filter model to obtain a target speech; The feature reconstruction module comprises: A feature extraction unit, used for inputting the initial Mel spectrum into the trained first encoder to extract features and obtain speech features; A feature updating unit, configured to perform feature fusion on the speech feature and the acquired coding feature, and input the feature fusion result into the trained first decoder for feature reconstruction to obtain an updated Mel spectrum; the coding feature is a coding feature of the target speaker corresponding to the updated Mel spectrum; The autoencoder comprises a first encoder and a first decoder, wherein the sample Mel spectrum is used as a training sample during the training of the autoencoder, the reference Mel spectrum is used as a reconstruction target of the sample Mel spectrum, and the reconstruction loss is used as a loss function during the training of the autoencoder, the sample Mel spectrum corresponds to the encoding feature of the sample speaker, and the reference Mel spectrum corresponds to the encoding feature of the reference speaker; A first sample encoding module, used for inputting the sample Mel spectrum into a first encoder to obtain a first sample feature; A first sample reconstruction module is used to perform feature fusion on the first sample feature and the sample speaker coding feature, and input the feature into a first decoder to obtain a first reconstructed Mel spectrum; A first training module is used to calculate a reconstruction loss according to the first reconstructed Mel spectrum and the sample Mel spectrum, and based on the reconstruction loss, update the parameters of the first encoder and the first decoder by using a gradient descent method until the reconstruction loss converges, thereby obtaining a preliminarily trained first encoder and a preliminarily trained first decoder; A second sample encoding module, used for inputting the sample Mel spectrum into the preliminarily trained first encoder to obtain a second sample feature; The second sample reconstruction module performs feature fusion on the second sample features and the reference speaker coding features, and inputs the first decoder that has been preliminarily trained to obtain a second reconstructed Mel spectrum. A third sample encoding module, inputting the second reconstructed Mel spectrum into the preliminarily trained first encoder to obtain a third sample feature; A third sample reconstruction module performs feature fusion on the third sample feature and the sample speaker coding feature, and inputs the first decoder that has been preliminarily trained to obtain a third reconstructed Mel spectrum; The second training module calculates the reconstruction loss according to the sample Mel spectrum and the third reconstructed Mel spectrum, and based on the reconstruction loss, uses the gradient descent method to update the parameters of the preliminarily trained first encoder and the preliminarily trained first decoder until the reconstruction loss converges, thereby obtaining the trained first encoder and the trained first decoder.
6. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the speech conversion method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the speech conversion method according to any one of claims 1 to 4 is implemented.
