A pitch-based speech conversion model training method and speech conversion system
Through the pitch-based speech conversion model training method, the splicing and alignment of audio features and pitch features are used to solve the problem of low pitch similarity of the speech conversion model under a small amount of sample data, and improve the pitch similarity of speech conversion.
Patent Information
- Application Number
- CN202311845426.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-12-28
AI Technical Summary
In the case of a small amount of sample data, the pitch similarity between the human voice generated by the voice conversion model and the real voice is low, making it difficult to achieve high-quality voice conversion.
Using a pitch-based speech conversion model training method, through the prior encoder, posterior encoder, timing alignment module and pitch extraction module, audio features and pitch features are extracted for splicing and alignment, and the converted speech code is generated, and passed through the decoder Converted speech is generated and the training loss is calculated to determine model convergence.
Improves the similarity between the pitch of the converted voice and the real voice when there are insufficient voice samples, making the converted voice closer to the real person's voice.
Smart Images

Figure CN117765959B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech conversion technology, and in particular to a pitch-based speech conversion model training method and a speech conversion system. Background Art
[0002] Speech conversion technology is a technology that converts one character's voice into another character's voice through a speech conversion model. However, in order to obtain high-quality character voices, a large amount of sample data is needed to train the speech conversion model in order to obtain more realistic character voices through speech conversion technology.
[0003] In the actual training process, it is often difficult to obtain a large amount of sample data. Therefore, only a small amount of sample data can be used to train the speech conversion model. However, since human natural speech is more expressive, the timbre and rhythm of human speech vary greatly, and the human speech generated by the speech conversion model trained with a small amount of sample data is somewhat different from the actual human speech.
[0004] In order to reduce the voice gap, when using a small amount of sample data to train the voice conversion model, you can use the method of pre-training and model fine-tuning, that is, first pre-train the voice conversion model on a large data set of audio data, and then use a small amount of sample data to fine-tune the voice conversion model. However, in the case of a small amount of sample data, there is still a problem that the pitch similarity between the converted character voice and the real character voice is low. Summary of the invention
[0005] In order to reduce the problem of low pitch similarity between the converted character voice and the real character voice in the case of a small amount of sample data.
[0006] In a first aspect, some embodiments of the present application provide a pitch-based speech conversion model training method, the method is applied to train a speech conversion model, the speech conversion model includes a priori encoder, a posteriori encoder, a timing alignment module, a decoder and a pitch extraction module, the method includes:
[0007] Inputting the reference speech into the a priori encoder and the pitch extraction module to extract the audio feature code through the a priori encoder, and extracting the pitch feature through the pitch extraction module;
[0008] Perform feature splicing on the audio feature encoding and the pitch feature to obtain a speech splicing feature;
[0009] Inputting the linear spectrum corresponding to the reference speech into the posterior encoder to obtain an audio latent variable;
[0010] Aligning the speech concatenation feature and the time sequence of the audio latent variable by the time sequence alignment module to obtain a conversion speech code;
[0011] Decoding the converted speech code by the decoder to obtain the converted speech;
[0012] Calculate the training loss of the converted speech. If the training loss is less than or equal to a training loss threshold, output a speech conversion model according to the current parameters of the model to be trained. If the training loss is greater than the training loss threshold, perform iterative training on the speech conversion model. The model to be trained is a speech synthesis model that has not been trained and converged.
[0013] In some embodiments, the pitch extraction module includes an encoder layer, a filter layer, an intermediate layer, and a decoder layer;
[0014] The encoder layer, the intermediate layer and the decoder layer form a first encoding branch of the pitch extraction module, and the encoder layer, the filter layer and the decoder layer form a second encoding branch of the pitch extraction module.
[0015] In some embodiments, the encoder layer includes an average pooling layer and a convolutional network, and the step of extracting the pitch feature through the pitch extraction module includes:
[0016] Extracting a pitch feature vector of the reference speech through the convolutional network;
[0017] Downsampling the pitch feature vector through the average pooling layer to obtain the pitch feature code;
[0018] The pitch feature encoding is decoded by the decoder layer to obtain the pitch feature.
[0019] In some embodiments, the convolutional network includes a convolutional block, the convolutional block includes a 2D convolutional layer, a batch normalization layer and a relu function, and the step of extracting the pitch feature vector of the reference speech through the convolutional network includes:
[0020] Extracting deep audio vectors through the 2D convolutional layer;
[0021] performing an accelerated convergence process on the deep-level audio vector through the batch normalization layer to extract a converged pitch feature from the deep-level audio vector;
[0022] The pitch feature vector is obtained by adding a nonlinear relationship to the convergent pitch feature through the relu function.
[0023] In some embodiments, a shortcut convolution layer is provided between the input end of the convolution network and the output end of the convolution network, and before the step of adding a nonlinear relationship to the convergent pitch feature by the relu function, the method further includes:
[0024] Extracting quick pitch features through the quick convolution layer;
[0025] Splicing the quick pitch feature and the convergent pitch feature to obtain a pitch splicing feature;
[0026] The nonlinear relationship between the pitch splicing features is added through the relu function to obtain the pitch feature vector.
[0027] In some embodiments, the decoder layer includes a deconvolution layer and the convolutional network, and the step of performing a decoding operation on the pitch feature encoding through the decoder layer includes:
[0028] Performing a deconvolution calculation on the pitch feature code through the deconvolution layer to obtain a deconvolution feature vector;
[0029] The deconvolution feature vector is decoded by the convolution network to obtain the pitch feature.
[0030] In some embodiments, the step of aligning the time sequence of the speech splicing feature and the audio latent variable by the time sequence alignment module includes:
[0031] Obtaining a template speech sequence for a timing alignment module;
[0032] Aligning the temporal sequence of the speech concatenation features and the audio latent variables according to the template speech sequence;
[0033] The aligned speech concatenation features and the audio latent variables are encoded to obtain a converted speech code.
[0034] In some embodiments, the speech conversion model further includes a style encoder, and after the step of performing feature concatenation on the audio feature encoding and the pitch feature, the method further includes:
[0035] Extracting style features of the reference speech by the style encoder;
[0036] The style feature is mapped to the speech concatenation feature to update the speech concatenation feature.
[0037] In some embodiments, the training loss comprises a spectral loss, and the step of calculating the training loss of the converted speech comprises:
[0038] Acquiring the spectral accuracy of the reference speech, and acquiring the spectral accuracy of the converted speech;
[0039] The spectrum loss is calculated according to the spectrum accuracy of the reference speech and the spectrum accuracy of the converted speech according to the following formula:
[0040]
[0041] Among them, L recon is the spectrum loss, x mel is the spectral accuracy of the reference speech, is the spectral accuracy of the converted speech.
[0042] In a second aspect, the present application provides a speech conversion system, the speech conversion system comprising a speech conversion model, the speech conversion model being trained and obtained according to the pitch-based speech conversion model training method described in the first aspect, the speech conversion model comprising an a priori encoder, an a posteriori encoder, a timing alignment module, a decoder and a pitch extraction module, wherein the a priori encoder is configured to extract an audio feature code of a reference speech;
[0043] The pitch extraction module is configured to extract the pitch features of the reference speech;
[0044] The a posteriori encoder is configured to generate an audio latent variable according to a linear spectrum corresponding to the reference speech;
[0045] The timing alignment module is configured to align the speech splicing feature and the timing sequence of the audio latent variable to obtain a converted speech code, wherein the speech splicing feature is extracted from the audio code feature and the pitch feature;
[0046] The decoder is configured to decode the converted speech code to obtain converted speech.
[0047] It can be seen from the above technical scheme that the present application provides a pitch-based speech conversion model training method and a speech conversion system, the method is used to train a speech conversion model, and the speech conversion model includes a priori encoder, a posterior encoder, a timing alignment module, a decoder and a pitch extraction module. The method inputs a reference speech into the priori encoder and the pitch extraction module, outputs an audio feature code through the priori encoder, and extracts the pitch feature through the pitch extraction module. Then the linear spectrum corresponding to the reference speech is input into the posterior encoder to obtain an audio latent variable. And the speech splicing feature and the audio latent variable obtained by splicing the audio feature code and the pitch feature are input into the timing alignment module to obtain a converted speech code, and the converted speech code is decoded by the decoder to obtain the converted speech. Then calculate the training loss of the converted speech to determine the convergence degree of the speech conversion model. The present application extracts the pitch feature of the reference speech through the pitch extraction module, and splices and aligns it with the audio feature code, so that the pitch feature of the converted speech is closer to the speech of the real person, and improves the pitch similarity of the converted speech in the case of insufficient speech samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] Figure 1 A flowchart of a pitch-based speech conversion model training method provided in an embodiment of the present application;
[0050] Figure 2 This is a schematic diagram of the structure of the pitch extraction module in the embodiment of the present application;
[0051] Figure 3 This is a schematic diagram of the structure of the REB network structure in the embodiment of the present application;
[0052] Figure 4 This is a schematic diagram of the structure of the RCB convolutional network in the embodiment of the present application;
[0053] Figure 5 This is a schematic diagram of the network structure of the decoder layer in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of a flow chart of outputting a speech conversion model according to training loss in an embodiment of the present application;
[0055] Figure 7 Schematic diagram of the structure of the prosody encoder in the embodiment of the present application. DETAILED DESCRIPTION
[0056] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0058] Voice conversion technology is a technology that converts the voice of one character into the voice of another character through a voice conversion model. For example, when a user is driving a digital human generated in his or her own image, he or she wants the digital human to speak in a voice other than the user's own voice to enhance the fun of the digital human interaction. At this time, the user can use voice conversion technology to convert his or her own voice into the voice of another character, thereby achieving the purpose of voice conversion.
[0059] In order to improve the accuracy of speech conversion and obtain high-quality character conversion speech, a large amount of sample data is needed to train the speech conversion model so as to obtain more realistic character speech through speech conversion technology.
[0060] However, in the actual training process, it is often difficult to obtain a large amount of sample data. Therefore, only a small amount of sample data can be used to train the speech conversion model. However, since human natural speech is more expressive and the timbre and rhythm of human speech vary greatly, the converted speech generated by the speech conversion model trained with a small amount of sample data is somewhat different from the actual human speech.
[0061] When the language content is fixed, the speaker's timbre and pitch are relevant factors that affect the speaker's personality. When the amount of speaker data is large, voice conversion technology will produce a good conversion result. However, when the amount of speaker data is small, the conversion effect of voice conversion technology on the speaker's timbre and pitch is poor.
[0062] In some embodiments, the gap between the synthesized character voice and the actual character voice can be reduced by using a small amount of sample data to train the voice conversion model, using a pre-training and model fine-tuning method, that is, first pre-training the voice conversion model on a large amount of audio data, and then fine-tuning the voice conversion model with a small amount of sample data. However, in the case of a small amount of sample data, there is still a problem that the pitch similarity between the synthesized character voice and the real character voice is low.
[0063] In order to reduce the problem of low pitch similarity between the converted character voice and the real character voice in the case of a small amount of sample data, some embodiments of the present application provide a pitch-based speech conversion model training method, which is used to train the speech conversion model, wherein the use stages of the speech conversion model include a pre-training stage, a learning training stage, and an application stage.
[0064] In the pre-training stage of the speech conversion model, the speech conversion model can be pre-trained by training speech so that the speech conversion model has basic speech conversion capabilities. In the process of pre-training, the training speech used can be obtained in a variety of ways, for example, extracting the corresponding audio file from the video media as the training speech. In this example, if the duration of the audio file is long, the audio file can be segmented to obtain multiple training speech segments. Alternatively, some embodiments of the present application can also perform speech synthesis on preset text to obtain training speech. The present application does not impose too many restrictions on the method of obtaining the training speech.
[0065] It should be noted that, since the training speech is used to perform pre-training on the speech conversion model, the training speech should contain at least one character's speech so as to perform speech conversion training on the character's speech during the pre-training process of the speech conversion model.
[0066] The training method provided in the embodiment of the present application is used to train the learning and training stage of the speech conversion model. In the learning and training stage, the speech conversion model includes a priori encoder, a posteriori encoder, a timing alignment module, a decoder and a pitch extraction module. Among them, the priori encoder includes a normalizing flow layer, a projection layer, and an audio encoder.
[0067] It should be noted that in an embodiment of the present application, on the basis of the speech synthesis algorithm, audio feature encoding and pitch features can be added as the core algorithm of the speech conversion model. For example, the widely used and interpretable text-to-speech synthesis model (Versatile and Interpretable Text-to-Speech, VITS) algorithm can be used as the basic synthesis algorithm of the speech conversion model, and on the basis of this algorithm, an audio encoder and an RMPVE pitch extraction algorithm can be added as the core algorithm of the speech conversion model.
[0068] The VITS algorithm is a highly expressive speech synthesis algorithm that combines variational reasoning, normalized flow, and adversarial training. The acoustic model and vocoder in speech synthesis are connected in series through latent variables rather than spectra, random modeling is performed on latent variables, and a random duration predictor is used to improve the diversity of synthesized speech. The above is only an example of an embodiment of the present application. In practical applications, other speech synthesis algorithms can also be used in combination with the speech synthesis model of the embodiment of the present application.
[0069] Figure 1 Flow chart of the pitch-based speech conversion model training method provided in the embodiment of the present application. Figure 1 , the training method comprises:
[0070] S100: Inputting reference speech into the a priori encoder and the pitch extraction module to extract audio feature coding through the a priori encoder, and extracting pitch features through the pitch extraction module.
[0071] The reference speech is the speech that the speech conversion model needs to learn. For example, the user inputs the speech of character A into the speech conversion model, so that the speech conversion model can output the speech of character B based on the same text content of the speech of character A. Among them, the speech of character B is the reference speech. After the speech conversion model completes the learning and training of the reference speech, after the target to be converted is input into the speech conversion model, the speech conversion model can perform speech conversion on the target speech with the speech features of the reference speech to obtain the converted speech.
[0072] It should be noted that the reference speech and the training speech are speech samples used in two different stages of the speech conversion model, wherein the training speech is used to train the speech conversion model in the pre-training stage of the speech conversion model so that the speech conversion model has basic speech conversion capabilities. The reference speech is used to train the speech conversion model in the learning and training stage of the speech conversion model so that the speech conversion model can convert the speech features of the input speech into the speech features of the reference speech.
[0073] In this embodiment, during the learning and training process of the speech synthesis model, the reference speech needs to be input into the audio encoder in the prior encoder so as to extract the audio feature encoding of the reference speech through the audio encoder. At the same time, in order to make the pitch of the converted speech output by the speech conversion model more closely match the pitch of the real character speech, the reference speech can also be synchronously input into the pitch extraction module so as to extract the pitch feature of the reference speech through the pitch extraction module, thereby improving the learning accuracy of the speech conversion model for the reference speech.
[0074] In some embodiments, the a priori encoder can also recognize the text content of the reference speech and extract features of the text information based on the text content to improve the learning accuracy of the speech conversion model for the reference speech.
[0075] It should be noted that, in order to better extract audio features, the reference speech may be preprocessed before being input into the audio encoder. For example, the reference speech may be processed into a Mel spectrum, and the Mel spectrum may be input into the audio encoder, so that the audio features of the Mel spectrum and the text features corresponding to the reference speech are extracted by the audio encoder, and the audio features and the text features are compressed and encoded, and the audio feature code is output, so as to improve the accuracy of the speech obtained by subsequent conversion.
[0076] In some embodiments, Figure 2 As shown, the pitch extraction module may include encoder layers, filter layers, intermediate layers, and decoder layers, wherein two coding branches may be included in the pitch extraction module. The encoder layers, intermediate layers, and decoder layers form a first coding branch of the pitch extraction module, and the encoder layers, filter layers, and decoder layers form a second coding feature of the pitch extraction module.
[0077] The encoder layer is used to perform encoding on the reference speech. In the first encoding branch, the middle layer is used to extract high-level pitch features of the reference speech through multiple convolutional layers. In the second encoding branch, the filter layer is used to skip hidden features in the reference speech and extract low-level pitch features in the reference speech through the convolutional layer. The decoder layer is used to perform deconvolution operations on the high-level pitch features and low-level pitch features extracted by the first encoding branch and the second encoding branch, thereby completing decoding and obtaining pitch features.
[0078] In some embodiments, the encoder layer may include a preset number of REB network structures, where Figure 3 As shown, the REB network structure includes a multi-layer RCB convolutional network and a 2×2 average pooling layer (Avgpool). Therefore, in the process of extracting the pitch features of the reference speech by the pitch extraction module, the pitch feature vector of the reference speech can be extracted through the RCB convolutional network.
[0079] In the REB network structure, it includes multiple layers of RCB convolutional networks, and a 2×2 average pooling layer is set after the last layer of RCB convolutional network. The average pooling layer can downsample the pitch feature vector output by the RCB convolutional network to obtain the pitch feature encoding, and then decode the pitch feature encoding through the decoder layer to obtain the pitch feature encoding.
[0080] Since the encoder layer includes multiple layers of REB network structures, these REB network structures can increase the dimensions of extracted pitch features in sequence according to the input order, so as to extract pitch features from shallow to deep levels. For example, the extraction dimension of the first-layer REB network structure is (1,16), the extraction dimension of the second-layer REB network structure is (16,32), and the extraction dimension of the third-layer REB network structure is (32,64), and so on, so as to gradually and stably extract pitch features and improve the extraction accuracy of pitch features.
[0081] In some embodiments, the RCB convolutional network may include multiple convolutional blocks, where Figure 4 As shown, the convolution block may include a 2D convolution layer, a batch normalization layer and a relu function, and the batch normalization layer and the relu function are arranged after each 2D convolution layer. In the process of extracting the pitch feature vector by the RCB convolution network, the deep audio vector can be extracted through the 2D convolution layer. In this embodiment, the accuracy of the audio vector can be determined by setting the number of 2D convolution layers. It should be noted that the more 2D convolution layers are set, the higher the accuracy of the audio vector should be. When the accuracy of the audio vector reaches the maximum, the number of 2D convolution layers is the maximum number of layers. On the basis of the maximum number of layers, even if more 2D convolution layers are added, the accuracy of the audio vector cannot be improved.
[0082] After the audio vector is extracted by the 2D convolution layer, it needs to be input into the batch normalization layer of the corresponding convolution block. The batch normalization layer is used to perform accelerated convergence processing on the deep audio vector to extract the converged pitch features from the deep audio vector and improve the convergence speed of the RCB convolutional network, thereby improving the efficiency of speech conversion.
[0083] After obtaining the convergent pitch feature, a nonlinear relationship can be added to the convergent pitch feature through the relu activation function, and the nonlinear characteristics can be introduced into the convolution block to obtain a pitch feature vector, so that the pitch feature vector output by the current convolution block can be used as the input of the next convolution block, so as to extract the pitch features of the reference speech through multiple layers of 2D convolution layers, and obtain the pitch feature vector finally output by the convolution block. It should be noted that in order to improve the efficiency of extracting the pitch features of the reference speech, in an embodiment of the present application, the optimal convolution kernel of the 2D convolution layer of the convolution block can be 3×3. In actual applications, the convolution kernel can also be adjusted to 2×2 or 4×4 according to the efficiency required by the application. The present application does not impose specific restrictions on the size of the convolution kernel.
[0084] In some embodiments, a shortcut convolution layer is further provided between the input and output ends of the RCB convolution network. For this purpose, before the relu activation function adds a nonlinear relationship to the convergent pitch feature, the shortcut pitch feature can be extracted by the shortcut convolution layer, wherein the shortcut convolution layer includes only one 2D convolution layer. It should be noted that the speed at which the shortcut convolution layer extracts the shortcut pitch feature is greater than the speed at which the convolution block extracts the pitch feature vector. Therefore, the convolution kernel of the shortcut convolution layer should be smaller than the convolution kernel of the 2D convolution layer of the convolution block. For example, the convolution kernel of the shortcut convolution layer can be 1×1.
[0085] After the quick pitch feature is extracted by the quick convolution layer, the quick pitch feature can be concatenated with the converged pitch feature output by the batch normalization layer to combine the pitch features extracted according to different dimensions to obtain the pitch concatenation feature. Then, the nonlinear relationship between the pitch concatenation features is added through the relu activation function, so that the speech concatenation feature is used as the input of the next convolution block, thereby obtaining the pitch feature vector output by the next convolution block.
[0086] In some embodiments, the middle layer may include multiple ICB network structures, wherein the ICB network structure is similar to the REB network structure, except that the ICB network structure does not have an average pooling layer. The middle layer may extract deeper pitch features in the pitch feature encoding through the ICB network structure and output them in the format of the pitch feature encoding.
[0087] In some embodiments, the filter layer includes a multi-layer RCB convolutional network, and the RCB convolutional network in the filter layer can also be arranged in the same dimension as the REB network structure according to the input order, and the dimension of extracting the pitch feature is increased sequentially to extract the pitch feature from the shallow level to the deep level. The embodiment of the present application uses the above-mentioned network structure, and the U-Net structure composed of 2D convolutional layers and deconvolutional layers to obtain the deep pitch features of the reference speech, so as to improve the pitch similarity between the converted speech output by the subsequent speech conversion model and the real person's speech.
[0088] In some embodiments, the decoder layer includes a multi-layer RDB network structure, such as Figure 5 As shown, the RDB network structure includes a deconvolution layer (transposed convolutional layer) and an RCB convolutional network. A batch normalization layer and a relu activation function can be connected between the deconvolution layer and the RCB convolutional network. The role of the batch normalization layer and the relu activation function in the decoder layer can refer to the role in the aforementioned encoder layer, and the embodiments of the present application will not be repeated.
[0089] In this embodiment, the decoder layer needs to decode the pitch feature coding finally output by the intermediate layer and the filter layer. Therefore, it is first necessary to perform deconvolution calculation on the pitch feature coding through the deconvolution layer to obtain the deconvolution feature vector, and then improve the convergence speed of the decoder layer through the batch normalization layer, and introduce nonlinear characteristics to the RCB convolutional network in the decoder layer through the relu activation function.
[0090] After the batch normalization layer outputs the deconvolution feature vector, the deconvolution feature vector is decoded layer by layer through the RCB convolutional network to complete the extraction of the pitch features of the reference speech.
[0091] S200: performing feature splicing on the audio feature encoding and the pitch feature to obtain a speech splicing feature.
[0092] In order to combine the pitch feature with the audio feature code, the audio feature code and the pitch feature can be concatenated to obtain the speech concatenation feature of the reference speech. In the speech concatenation feature, the pitch feature can be mapped to the audio feature code, so that the pitch feature can be better combined with the audio feature code.
[0093] S300: Inputting the linear spectrum corresponding to the reference speech into the posterior encoder to obtain audio latent variables.
[0094] During the learning and training process of the speech conversion model, a corresponding linear spectrum can be generated according to the reference speech, and then the linear spectrum is input into the posterior encoder, and the audio latent variable corresponding to the reference speech is output according to the posterior encoder.
[0095] It should be noted that the audio latent variables are only generated by the posterior encoder during the learning and training process, and are generated by the standardized stream in the a priori encoder of the speech conversion model during the application process. Among them, the posterior encoder can use the non-causal WaveNet residual module in WaveGlow and Glow-TTS. The non-causal WaveNet residual module in WaveGlow and Glow-TTS is only used in the learning and training process and does not participate in the application process of the speech conversion model.
[0096] S400: Aligning the speech concatenation features and the time sequence of the audio latent variables through the time sequence alignment module to obtain a converted speech code.
[0097] Before performing speech conversion, it is necessary to ensure that the speech concatenation features and the audio latent variables correspond in time sequence, so as to alleviate the problem of the converted speech being out of sync with the reference speech. To this end, the speech concatenation features and the audio latent variables can be input into the timing alignment module, so that the timing sequence of the speech concatenation features and the audio latent variables is aligned according to the timing alignment module, and the converted speech code is output.
[0098] In some embodiments, the reference speech can also be input into the projection layer of the prior encoder, so that the speech splicing features of the reference speech can be projected into the timing alignment module through the projection layer, so as to better combine the speech splicing features and the audio latent variables, thereby improving the accuracy of the speech splicing features fused into the converted speech coding.
[0099] The timing alignment module may use a MAS alignment estimation algorithm (Monotonic Alignment Search). The MAS alignment estimation algorithm is an algorithm used for audio signal processing, which is used to compare a speech sequence with a template to perform an alignment operation.
[0100] To this end, in some embodiments, in the process of inputting the speech splicing features and the audio latent variables into the timing alignment module, it is necessary to perform timing alignment on the speech splicing features and the audio latent variables according to a specific template speech sequence. In this embodiment, a template speech sequence of the timing alignment module can be obtained, and the template speech sequence is a speech sequence that speaks the specified text content within a preset time length at a preset speed, intonation and pitch. The template speech sequence plays a reference role in the process of aligning the speech splicing features and the audio latent variables. The timing alignment module can align the speech splicing features and the audio latent variables through the template speech sequence according to the MAS alignment estimation algorithm, and perform encoding on the aligned speech splicing features and the audio latent variables to obtain the converted speech encoding.
[0101] In some embodiments, before inputting the speech splicing features and audio latent variables into the timing alignment module, the speech splicing features and audio latent variables are first input into a standardized stream to improve the complexity of the prior distribution of the speech splicing features and audio latent variables through the standardized stream, thereby improving the complexity of the pitch splicing features, enhancing the efficiency of the speech conversion model in learning pitch features, and improving the pitch similarity between the converted speech output by the subsequently trained speech conversion model and the real person's speech.
[0102] S500: Decoding the converted speech code by the decoder to obtain the converted speech.
[0103] In this embodiment, in order to better combine the speech splicing features of the reference speech, the speech splicing features and the audio latent variables need to be combined and time-aligned in a coded state. However, the speech conversion model cannot output the converted speech in a coded state, so the converted speech code needs to be input into the decoder of the speech synthesis model, so that the decoder decodes the converted speech code to obtain the converted speech.
[0104] In this embodiment, the decoder may use a generator of the vocoder HiFi-GAN V1, or may use a generator of other vocoders. The embodiment of the present application does not impose too many restrictions on the type of vocoder used by the decoder.
[0105] S600: Calculate the training loss of the converted speech. If the training loss is less than or equal to a training loss threshold, output a speech conversion model according to current parameters of the model to be trained. If the training loss is greater than the training loss threshold, perform iterative training on the speech conversion model.
[0106] After the converted speech is obtained, it means that the speech conversion model has completed a learning and training process. At this time, the training loss of the current converted speech can be calculated to determine the learning and training progress of the speech conversion model. Figure 6 As shown, if the training loss is less than or equal to the training loss threshold, it means that the speech synthesis model has been trained to convergence. At this time, the speech synthesis model can be output according to the current parameters of the model to be trained.
[0107] It should be noted that after completing the learning and training, the speech conversion model will reach a convergence state, and thus can enter the application stage of the speech conversion model. In order to facilitate the distinction between speech conversion models with different training degrees, in an embodiment of the present application, a speech conversion model that has not been trained to convergence is defined as a model to be trained.
[0108] If the training loss is greater than the training loss threshold, it means that the speech conversion model has not been trained to convergence. At this time, it is necessary to continue to train the model to be trained through the reference speech, so as to iteratively train the model to be trained. After each iterative training, the training loss is calculated again until the training loss is less than or equal to the training loss threshold, and the speech conversion model is trained to convergence. In this way, the speech conversion model can output the converted speech with high pitch similarity to the real person's speech and high speech accuracy through the target speech during the application process.
[0109] In some embodiments, the speech conversion model may also include a style encoder and a prosody encoder, wherein, after performing feature splicing on the audio feature encoding and the pitch feature, the reference speech or the Mel spectrum corresponding to the reference speech may be input into the style encoder to extract the style features of the reference speech through the style encoder, and the obtained style features are mapped to the speech splicing features, thereby updating the speech splicing features so that the speech splicing features retain both the speech splicing features and the style features of the reference speech.
[0110] In some embodiments, the style encoder may select a MelStyleEncoder module, which includes three sub-modules: a spectral processing layer, a temporal processing layer, and an attention mechanism layer (Multi-head attention).
[0111] Specifically, the composition and working method of the style encoding module are as follows:
[0112] Spectrum processing layer: It consists of a fully connected layer, which is used to obtain the Mel spectrum of the input training speech and convert it into a feature sequence.
[0113] Time series processing layer: includes a gated convolution layer and a residual layer, which are used to obtain the time series information in the feature sequence.
[0114] Attention mechanism layer: used to extract the style features corresponding to the corresponding feature sequence within the first preset duration according to the timing information, and repeat the operation. The first preset duration is a short duration at the frame level. The above operation is to extract the corresponding style features in multiple short durations respectively; on this basis, in the second preset duration, the multiple style features corresponding to the multiple first preset durations are averaged to obtain a style vector. Generally speaking, the second preset duration is a long duration, and the second preset duration includes the first preset duration.
[0115] After the Mel spectrum corresponding to the reference speech is input into the style encoder, the Spectralprocessing submodule in the style encoder can convert the input Mel spectrum into a frame-level hidden state sequence through a fully connected layer. The Temporal processing submodule can capture the temporal information in the reference speech through Gated CNN and residual connections. The Multi-head attention submodule can encode global information through a multi-head self-attention mechanism and residual connections, where multi-head self-attention is used at the frame level to better extract style features from shorter reference speech, and then the output is averaged over time to obtain a style vector Style Embeddings.
[0116] In some embodiments, the style encoder may further include a style adaptation unit, which includes a normalization layer and a fully connected layer, for predicting the corresponding feature bias and feature gain according to the style vector, and outputting this as the style information of the speech, and for subsequent speech conversion. In the traditional speech conversion process, subsequent operations are performed solely based on the style features obtained from the audio. In order to achieve better results, a larger training sample is required to achieve more accurate style extraction. Through the above improvements, the style information changes adaptively according to the change of the style vector, and its reproduction of the style is more accurate, and the demand for training speech is also smaller.
[0117] In some embodiments, the a priori encoder may further include a text encoder, and the text encoder may cooperate with the prosody encoder to extract the prosody features of the reference speech. In this embodiment, a reference text may be input into the text encoder, and the reference text is the text corresponding to the speech content in the reference speech, and the text encoder may extract text features based on the reference text. At the same time, the text features and the reference speech may be input into the prosody encoder together, and the prosody encoder may output the prosody features based on the text features and the reference speech.
[0118] In this embodiment, the prosody encoder may adopt a ProsodyEncoder module, which may extract prosody features from the reference speech through a word-level vector quantization bottleneck.
[0119] In some embodiments, Figure 7 As shown in the figure, the prosody encoder includes a prosody convolution layer and a pooling layer, wherein the prosody convolution layer includes a relu activation function and a normalization layer. The relu activation function can remove the linearization of the prosody encoder, so that the prosody convolution layer has nonlinear expression ability to fit deeper prosody features and improve the accuracy of prosody feature extraction. The normalization layer is used to normalize the samples of each reference speech, improve the convergence speed of the prosody encoder, reduce overfitting, and improve the efficiency of prosody feature extraction.
[0120] The structure of the rhythmic encoder can be a rhythmic convolution layer, a pooling layer and another rhythmic convolution layer. For the sake of ease of expression, the embodiment of the present application defines the rhythmic convolution layer located before the pooling layer as the first rhythmic convolution layer, and defines the rhythmic convolution layer located after the pooling layer as the second rhythmic convolution layer.
[0121] In the process of inputting the text features and the reference speech into the prosody encoder, the text features are directly input into the prosody convolution layer, so that the text features are compressed by the prosody convolution layer, and the word-level hidden features are obtained from the text features. The reference speech can be preprocessed into a Mel spectrum, and the Mel spectrum is sequentially input into the first prosody convolution layer, the pooling layer, and the second prosody convolution layer according to the structure of the prosody encoder. After the Mel spectrum of the reference speech is input into the first prosody convolution layer, the first prosody convolution layer can perform word-level prosody quantization on the reference speech according to the compressed word-level hidden features, so as to obtain the prosody features.
[0122] After the first prosodic convolution layer outputs the prosodic features, the pooling layer can perform feature dimensionality reduction on the word-level hidden features and prosodic attribute features to obtain prosodic coding, so as to reduce the amount of calculation of the speech conversion model, reduce the problem of overfitting, and improve the efficiency of feature extraction. After the pooling layer outputs the prosodic coding, the prosodic coding can be input into the second prosodic convolution layer to extract deep prosodic features, and finally the deep prosodic features can be compressed into the vector quantization layer to output the final prosodic features, improve the feature extraction accuracy, and make the prosodic coding obtained in the training process of the speech synthesis model more in line with the speech rhythm of real people.
[0123] In some embodiments, the speech splicing features, style features and prosody features can be simultaneously input into the standardized stream of the prior encoder to increase the complexity of the speech splicing features, style features and prosody features. And according to the timing alignment module, the speech splicing features, style features and prosody features with increased complexity are time-aligned with the audio latent variables, so that the obtained speech coding combines the speech splicing features, style features and prosody features at the same time, thereby improving the audio gap between the converted speech and the real person's speech.
[0124] In some embodiments, the audio encoder may be constructed based on a pre-trained Hubert model. By pre-training the audio encoder, the audio encoder may be able to better extract the audio characteristics of the reference speech. The pre-training process is described below:
[0125] First, a clustering model based on a k-means network is preset. The clustering model may include a feature extraction layer, a clustering processing layer, and a category identification layer. Among them, the feature extraction layer adopts a self-supervised model, such as the above-mentioned Hubert model, which is used to extract features from the training data in the pre-training process. At the same time, the feature extraction layer is also used to constitute the feature extraction part of the audio encoder. The clustering processing layer is based on the K-mens model and is used to cluster the extracted audio features, that is, to cluster the audio features of the same category. The category identification layer is used to assign corresponding category codes to the audio features of a certain category after clustering.
[0126] After completing the construction of the clustering model, the clustering model can be pre-trained through general training data. The general training data can be based on LibriSpeech-960 and AISHELL-3 data. For example, the speech sample data of two hundred speakers is obtained, and the number of clusters is 200. In the clustering model, the feature extraction layer performs audio feature processing on the training data, and the clustering processing layer clusters the corresponding audio features, so that the clustering model can perform clustering processing on speech samples of different speaking categories. It should be noted that clustering processing refers to automatically clustering sounds with similar sound styles through unsupervised training and similarity calculation. Sounds of the same category may not be from the same speaker, and it is sufficient to achieve the similarity in sound style as long as it reaches the preset similarity threshold.
[0127] The category identification layer can encode the clustered categories for use in the subsequent training of the audio encoder. For example, after the clustering model clusters the speech sample data, different categories are obtained, which can be assigned category codes ID1.1, ID1.2, ... ID1.9 respectively. Category coding can make each audio feature category after clustering by the clustering model have a unique identifier for distinction, so as to perform category mapping and encoding in the subsequent learning and training process of the speech conversion model.
[0128] It should be noted that, in the above clustering model, except for the feature extraction layer, the rest of the model does not participate in the construction of the audio encoder. It only provides audio feature category encoding for the audio encoder during the training phase of the audio encoder. After the speech conversion model is trained, the clustering model also does not participate in the reasoning work of the speech conversion model during the application process.
[0129] After the audio encoder completes pre-training, the audio encoder can be constructed according to the model constructed after pre-training and the structure of each layer. In some embodiments, the audio encoder includes the following parts:
[0130] Feature encoding unit: The Hubert model that completes clustering pre-training in the above clustering model is constructed to extract and encode the audio features of the reference speech.
[0131] Category mapping unit: composed of a mapping layer, the category mapping unit is used for mapping the audio feature category coding, that is, the category coding corresponding to the audio feature mapping extracted by the feature coding unit.
[0132] Category coding unit: composed of one embedding layer, the category coding module is used to assign the category coding defined in the aforementioned clustering model to the audio features extracted by the feature coding unit during the training process of the audio encoder.
[0133] During the training of the audio encoder, the feature encoding unit and the category mapping unit are first initialized, that is, some parameters of the Hubert model and the mapping layer are randomly initialized. After the initialization is completed, the audio encoder can be trained using general training data.
[0134] During the actual training of the audio encoder, in addition to normal model training and parameter updating, the audio encoding module can also be trained based on the predicted category coding corresponding to the category coding of the common training data and the actual category coding obtained by the aforementioned clustering model.
[0135] The audio features extracted by the feature extraction unit are mapped to a category code through the category mapping unit and the category coding unit. This category code is the predicted category code for the general training data. After that, the average cross entropy between the predicted category code of the Hubert model for the general training sample and the real category code assigned in the training process of the clustering model is minimized, and the loss function of the audio encoder is updated based on this, and the relevant parameters of the audio coding module are updated at the same time to complete the training of the audio encoder.
[0136] In some embodiments, in the process of training the speech synthesis model, multiple training losses may be included. To this end, in an embodiment of the present application, the training loss may include spectrum loss, discreteness loss, decoder loss, random duration prediction loss, and feature matching loss of the training generator. In this embodiment, the training loss may be expressed by the following formula:
[0137] L total =L recon +L kl +L dur +L adv +L fm (G);
[0138] Among them, L total is the training loss, L recon is the spectrum loss, L kl is the discreteness loss, L dur is the random duration prediction loss, L adv is the loss of the decoder during training, L fm (G) is the feature matching loss for training the decoder.
[0139] In some embodiments, the spectral loss is the training loss between the training speech and the training synthesized speech. To calculate the spectral loss, the spectral accuracy of the training speech and the spectral accuracy of the training synthesized speech may be obtained, and the spectral loss may be calculated according to the spectral accuracy of the training speech and the spectral accuracy of the training synthesized speech according to the following formula:
[0140]
[0141] Among them, L recon is the spectrum loss, x mel To train the spectral accuracy of speech, To train the spectral accuracy of synthesized speech.
[0142] In some embodiments, L kl It is the KL discreteness loss, which is the loss between the posterior distribution estimate of the final latent variable obtained by combining the linear spectrum of the audio through the posterior encoder with the style vector output by the style encoder and the prosody code output by the prosody encoder, and the prior distribution estimate of the latent variable between the given conditional text and its information.
[0143] In this embodiment, the posterior distribution result can be calculated according to the audio latent variable, and the alignment information of the synthesized speech coding can be obtained, and then the prior distribution result can be calculated according to the alignment information and the audio latent variable, and finally the discreteness loss can be calculated according to the posterior distribution result and the prior distribution result according to the following formula:
[0144]
[0145] Among them, L kl is the discreteness loss, z is the audio latent variable, is the posterior distribution result, logp θ (z|c text ,A) is the prior distribution result, c text is the preset text, and A is the alignment information.
[0146] In some embodiments, the decoder also includes a discriminator, which can identify the synthesized speech obtained after decoding during the application of the speech synthesis model. When the discriminator cannot distinguish between the synthesized speech and the real character speech, it means that the accuracy of the synthesized speech has reached the accuracy of the real character speech, and then the synthesized speech is output.
[0147] During the training process of the speech synthesis model, the training synthesized speech can be input into the discriminator to obtain the identification features output by the discriminator, and the feature matching loss of the training decoder is calculated, wherein the feature matching loss can be regarded as a reconstruction loss, which is used to constrain the output of the middle layer of the discriminator, and the discriminator is used to perform adversarial training with the decoder in the training speech synthesis model.
[0148] In some embodiments, the feature matching loss for training the decoder may be calculated according to the following formula:
[0149]
[0150] Among them, L fm(G) is the feature matching loss of the training generator, E is the expression of mathematical expectation, x is the real waveform of the training spectrum, z is the audio hidden variable, T is the number of layers of the discriminator network, and D l Get N l The features of the lth layer of the discriminator with features, G(z) represents the generated features of the decoder after inputting the hidden variables.
[0151] In some embodiments, L adv ×L fm (G) is the loss of the decoder module, where L adv For the least squares loss function of adversarial training, the loss of the discriminator can be calculated according to the following formula:
[0152] L adv (D)=E x,z [(D(x)-1) 2 +D(G(z)) 2 ];
[0153] Among them, L adv (D) is the loss of the discriminator, E is the expression of mathematical expectation, x is the real waveform of the training spectrum, D(x) represents the discrimination result of the real waveform, G(z) represents the feature representation generated after inputting the latent variable z, and D(G(z)) represents the discrimination result of the feature G(z) generated by the generator.
[0154] The loss of the generator can be calculated as follows:
[0155] L adv (G) = E z [(D(G(z))-1) 2 ];
[0156] L adv (G) is the loss of the generator, D(G(z)) represents the discriminant result of the feature G(z) generated by the generator, and E is the expression of mathematical expectation.
[0157] To this end, the least squares loss function of the adversarial training can be calculated based on the loss of the discriminator and the loss of the generator, and then the loss of the decoder can be calculated based on the least squares loss function of the adversarial training and the feature matching loss of the training generator.
[0158] In some embodiments, L dur For the random duration prediction loss, the temporal alignment module can be used according to the MAS algorithm to obtain the text encoding of the training text, and the predicted mean variance and the optimal alignment matrix of the normal distribution of the latent variable Z after the standardized flow to calculate the random duration prediction loss.
[0159] It can be seen from the above technical scheme that the present application provides a pitch-based speech conversion model training method and a speech conversion system, the method is used to train a speech conversion model, and the speech conversion model includes a priori encoder, a posterior encoder, a timing alignment module, a decoder and a pitch extraction module. The method inputs a reference speech into the priori encoder and the pitch extraction module, outputs an audio feature code through the priori encoder, and extracts the pitch feature through the pitch extraction module. Then the linear spectrum corresponding to the reference speech is input into the posterior encoder to obtain an audio latent variable. And the speech splicing feature and the audio latent variable obtained by splicing the audio feature code and the pitch feature are input into the timing alignment module to obtain a converted speech code, and the converted speech code is decoded by the decoder to obtain the converted speech. Then calculate the training loss of the converted speech to determine the convergence degree of the speech conversion model. The present application extracts the pitch feature of the reference speech through the pitch extraction module, and splices and aligns it with the audio feature code, so that the pitch feature of the converted speech is closer to the speech of the real person, and improves the pitch similarity of the converted speech in the case of insufficient speech samples.
[0160] The "multiple embodiments", "some embodiments", "one embodiment" or "embodiment" mentioned throughout this specification means that the specific features, components or characteristics described in conjunction with the embodiment are included in at least one embodiment. Therefore, the phrases "in multiple embodiments", "in some embodiments", "in at least another embodiment" or "in an embodiment" appearing throughout this specification do not necessarily refer to the same embodiment. In addition, in one or more embodiments, specific features, components or characteristics may be combined in any suitable manner. Therefore, without limitation, the specific features, components or characteristics shown or described in conjunction with one embodiment may be combined in whole or in part with the features, components or characteristics of one or more other embodiments. Such modifications and variations are intended to be included within the scope of this application.
[0161] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.
[0162] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A pitch-based speech conversion model training method, used for training a speech conversion model, the speech conversion model comprising an a priori encoder, a posteriori encoder, a timing alignment module, a decoder and a pitch extraction module, the pitch extraction module comprising an encoder layer, a decoder layer, a filter layer and an intermediate layer; the encoder layer, the intermediate layer and the decoder layer form a first encoding branch of the pitch extraction module, and the encoder layer, the filter layer and the decoder layer form a second encoding branch of the pitch extraction module; The encoder layer includes an average pooling layer and a convolutional network, the convolutional network includes a convolutional block and a shortcut convolutional layer, the convolutional block includes a 2D convolutional layer, a batch normalization layer and a relu function, and the shortcut convolutional layer is arranged between the input end of the convolutional network and the output end of the convolutional network, characterized in that: include: Inputting a reference speech into the a priori encoder and the pitch extraction module to extract an audio feature code through the a priori encoder, and extracting a pitch feature vector of the reference speech through the convolutional network; Downsampling the pitch feature vector through the average pooling layer to obtain the pitch feature code; Decoding the pitch feature encoding through the decoder layer to obtain the pitch feature; The pitch feature vector is obtained in the following way: Extracting deep audio vectors through the 2D convolutional layer; performing an accelerated convergence process on the deep-level audio vector through the batch normalization layer to extract a converged pitch feature from the deep-level audio vector; Adding a nonlinear relationship to the convergent pitch feature through the relu function to obtain the pitch feature vector; Alternatively, before the step of adding a nonlinear relationship to the convergent pitch feature through the relu function, a shortcut pitch feature is extracted through the shortcut convolution layer, the shortcut convolution layer includes only one 2D convolution layer, the speed at which the shortcut convolution layer extracts the shortcut pitch feature is greater than the speed at which the convolution block extracts the pitch feature vector, and the shortcut pitch feature is a pitch feature extracted by the shortcut convolution layer; Splicing the quick pitch feature and the convergent pitch feature to obtain a pitch splicing feature; Adding the nonlinear relationship between the pitch splicing features through the relu function to obtain the pitch feature vector; Perform feature splicing on the audio feature encoding and the pitch feature to obtain a speech splicing feature; Inputting the linear spectrum corresponding to the reference speech into the posterior encoder to obtain an audio latent variable; Aligning the speech concatenation feature and the time sequence of the audio latent variable by the time sequence alignment module to obtain a conversion speech code; Decoding the converted speech code by the decoder to obtain the converted speech; The training loss of the converted speech is calculated. If the training loss is less than or equal to a training loss threshold, a speech conversion model is output according to the current parameters of the model to be trained. If the training loss is greater than the training loss threshold, iterative training is performed on the speech conversion model. The model to be trained is a speech synthesis model that has not been trained and converged.
2. The pitch-based voice conversion model training method according to claim 1, wherein: The decoder layer includes a deconvolution layer and the convolution network, and the step of performing a decoding operation on the pitch feature encoding through the decoder layer includes: Performing a deconvolution calculation on the pitch feature code through the deconvolution layer to obtain a deconvolution feature vector; The deconvolution feature vector is decoded by the convolution network to obtain the pitch feature.
3. The pitch-based voice conversion model training method according to claim 1, wherein: The step of aligning the time sequence of the speech splicing feature and the audio latent variable by the time sequence alignment module includes: Obtaining a template speech sequence for a timing alignment module; Aligning the temporal sequence of the speech concatenation features and the audio latent variables according to the template speech sequence; The aligned speech concatenation features and the audio latent variables are encoded to obtain a converted speech code.
4. The pitch-based voice conversion model training method according to claim 1, wherein: The speech conversion model further includes a style encoder, and after the step of performing feature splicing on the audio feature encoding and the pitch feature, the method further includes: Extracting style features of the reference speech by the style encoder; The style feature is mapped to the speech concatenation feature to update the speech concatenation feature.
5. The pitch-based voice conversion model training method according to claim 1, wherein: The training loss includes spectrum loss, and the step of calculating the training loss of the converted speech includes: Acquiring the spectral accuracy of the reference speech, and acquiring the spectral accuracy of the converted speech; The spectrum loss is calculated according to the spectrum accuracy of the reference speech and the spectrum accuracy of the converted speech according to the following formula: Among them, L recon is the spectrum loss, x mel is the spectral accuracy of the reference speech, is the spectral accuracy of the converted speech.
6. A speech conversion system, characterized in that: The speech conversion system comprises a speech conversion model, wherein the speech conversion model is obtained by training according to the pitch-based speech conversion model training method according to any one of claims 1 to 5, wherein the speech conversion model comprises an a priori encoder, an a posteriori encoder, a timing alignment module, a decoder and a pitch extraction module, wherein the pitch extraction module comprises an encoder layer, a decoder layer, a filter layer and an intermediate layer; the encoder layer, the intermediate layer and the decoder layer form a first encoding branch of the pitch extraction module, and the encoder layer, the filter layer and the decoder layer form a second encoding branch of the pitch extraction module; The encoder layer includes an average pooling layer and a convolutional network, the convolutional network includes a convolutional block and a shortcut convolutional layer, the convolutional block includes a 2D convolutional layer, a batch normalization layer and a relu function, and the shortcut convolutional layer is arranged between an input end of the convolutional network and an output end of the convolutional network, wherein the a priori encoder is configured to extract an audio feature code of a reference speech; The pitch extraction module is configured to extract the pitch feature vector of the reference speech through the convolutional network, perform downsampling on the pitch feature vector through the average pooling layer to obtain the pitch feature code, and perform decoding on the pitch feature code through the decoder layer to obtain the pitch feature; The pitch feature vector is obtained in the following way: Extracting deep audio vectors through the 2D convolutional layer; performing an accelerated convergence process on the deep-level audio vector through the batch normalization layer to extract a converged pitch feature from the deep-level audio vector; Adding a nonlinear relationship to the convergent pitch feature through the relu function to obtain the pitch feature vector; Alternatively, before the step of adding a nonlinear relationship to the convergent pitch feature through the relu function, a shortcut pitch feature is extracted through the shortcut convolution layer, the shortcut convolution layer includes only one 2D convolution layer, the speed at which the shortcut convolution layer extracts the shortcut pitch feature is greater than the speed at which the convolution block extracts the pitch feature vector, and the shortcut pitch feature is a pitch feature extracted by the shortcut convolution layer; Splicing the quick pitch feature and the convergent pitch feature to obtain a pitch splicing feature; Adding the nonlinear relationship between the pitch splicing features through the relu function to obtain the pitch feature vector; The a posteriori encoder is configured to generate an audio latent variable according to a linear spectrum corresponding to the reference speech; The timing alignment module is configured to align the speech splicing feature and the timing sequence of the audio latent variable to obtain a converted speech code, wherein the speech splicing feature is extracted from the audio code feature and the pitch feature; The decoder is configured to decode the converted speech code to obtain converted speech.
