Cross-language speech conversion method of coder-decoder structure based on multi-scale information

By using multi-scale information extraction network and deep supervision mechanism in cross-language speech conversion, the problem of low naturalness of converted speech is solved and the speech quality is improved.

CN118645083APending Publication Date: 2024-09-13NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410920630.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In existing cross-language speech conversion methods, the naturalness of the converted speech is low, resulting in insufficient speech quality.

Method used

Using an encoder-decoder structure based on multi-scale information, the content representation is further extracted through a multi-scale information extraction network, and a deep supervision mechanism is introduced into the model training to ensure that there are supervision signals at each decoding stage to generate more detailed Multi-scale information.

Benefits of technology

The naturalness and quality of the converted speech are improved. Through the combination of multi-scale information extraction network and deep supervision mechanism, more detailed information is provided, and the problem of low naturalness of the converted speech is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118645083A
    Figure CN118645083A
Patent Text Reader

Abstract

The invention discloses a cross-language speech conversion method of a coder-decoder structure based on multi-scale information, which comprises a training stage and a conversion stage, in the training stage, a coder decouples acoustic features to obtain speaker information representation and content representation; the encoder and the decoder are in U-shaped connection, and speaker information characterization is transmitted from the encoder to the decoder; the multi-scale information extraction network further extracts multi-scale information in the content representation; and the decoder reconstructs the acquired speaker information representation and the content representation containing the multi-scale information. According to the method, a deep supervision mechanism is introduced in a training stage, supervision signals are introduced in different decoding stages, multi-scale reconstruction feature representation is learned, and multi-scale information is provided for finally outputting reconstruction features; and a multi-scale information extraction network and a deep supervision mechanism are utilized, so that the converted voice contains more detailed multi-scale information, the naturalness of the converted voice is further improved, and high-quality cross-language voice conversion is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cross-language speech conversion, and in particular to a cross-language speech conversion method based on a codec structure of multi-scale information. Background Art

[0002] Speech conversion is a technology that converts the speaker's identity features in the source speech into the speaker's identity features in the target speech while keeping the content features of the source speech unchanged. It is an important research branch in the field of speech signal processing. Traditional speech conversion focuses on solving the same-language speech conversion problem, that is, the source and target speech must be of the same language. Cross-language speech conversion breaks the same language limitation, and the source and target speech must be of different languages ​​and texts.

[0003] Thanks to the development of deep learning, cross-language speech conversion has made breakthrough progress. In the prior art: (1) A cross-language speech conversion method based on a factorized hierarchical variational autoencoder model uses the FHVAE model to model the multi-scale information in speech, first decomposing the semantic content representation and speaker information representation from the acoustic features of speech in different languages, and then fusing the two to obtain the converted acoustic features, thereby generating converted speech and achieving cross-language speech conversion. (2) A cross-language speech conversion method based on a cyclic variational autoencoder model uses the disentanglement capability of the VAEs model to extract the latent coding vector representing the semantic content from the acoustic features, and uses a one-hot coding vector to represent the speaker identity, guiding the model to generate reconstructed source acoustic features and converted acoustic features, and then input the converted acoustic features into the model again for a cycle. (3) Cross-language speech conversion is achieved using a two-level nested U-shaped structure. The two-level nested U-shaped structure consists of multiple residual U-shaped modules. Compared with the standard U-shaped structure, the two-level nested U-shaped structure can capture more detailed information to improve the quality of the converted speech, but it adds a lot of additional parameters and calculations. (4) The cross-language speech conversion method based on β-VAE uses the KL divergence between content representation and acoustic features, speaker information representation and acoustic features as the upper bound of the mutual information between each representation. At the same time, two weight parameters are introduced in the KL divergence term to control the amount of data information that can be captured by the content representation and speaker information representation. (5) The cross-language speech conversion method based on activation guidance and inner convolution adopts a U-shaped connected encoder-decoder structure. The activation guidance function is used as a soft bottleneck to extract content representations of different languages, thereby achieving cross-language speech conversion between any speakers.

[0004] The various cross-language speech conversion methods mentioned above have evolved from conversion in closed set situations to open set situations, that is, cross-language speech conversion from any to any speaker. Although these cross-language speech conversion methods have been expanded in application scenarios, the naturalness of the converted speech still needs to be improved. Summary of the invention

[0005] The problem to be solved by the present invention is to provide a cross-language speech conversion method based on a codec structure of multi-scale information, which is used to solve the problem of low naturalness of converted speech in existing cross-language speech conversion methods.

[0006] The present invention adopts the following technical scheme: a cross-language speech conversion method based on a codec structure of multi-scale information, comprising a training phase and a conversion phase;

[0007] The training phase includes the following steps:

[0008] Step S1: obtaining a large amount of training corpus, the training corpus consisting of speech of multiple speakers of different languages;

[0009] Step S2: preprocessing and feature extraction of the acquired training corpus; randomly selecting 128 frames from the logarithmic Mel spectrum features of each sentence of the training corpus and concatenating them to obtain logarithmic Mel spectrum feature fragments, which are represented as acoustic features X;

[0010] Step S3: inputting the acoustic feature X into the conversion model for model training to obtain a reconstructed logarithmic Mel spectrum feature, which is represented as the acoustic feature X′;

[0011] Step S4: in the process of training the conversion model, the deep reconstruction loss function of the conversion model is made as small as possible, and the hyperparameters of the conversion model are set so that the objective function is minimized until the set number of iterations is reached, thereby obtaining a trained conversion model;

[0012] The conversion phase includes the following steps:

[0013] Step S5: selecting speech of different languages ​​as corpus to be converted, selecting source speech and target speech of different languages ​​from the corpus to be converted, respectively extracting the logarithmic Mel spectrum features of the source speech and the logarithmic Mel spectrum features of the target speech, respectively, and representing them as acoustic features X1 and X2, respectively;

[0014] Step S6: Input the acoustic features X1 and X2 into the trained conversion model to reconstruct the logarithmic Mel spectrum features of the converted speech, which are represented as acoustic features X 1→2 ;

[0015] Step S7: Using the Griffin-Lim vocoder, the acoustic features X of the converted speech are obtained. 1→2 Convert it into speech waveform for output, thus obtaining synthesized speech with cross-language speech conversion.

[0016] Preferably, step S2 preprocesses and extracts features from the acquired training corpus, specifically: the sampling rate of the training corpus is set to 24kHz, the number of fast Fourier transform points is set to 2048, the window length is set to 1200, and the window moving length is set to 300.

[0017] Preferably, in step S3, the conversion model includes an encoder E, a multi-scale information extraction network and a decoder D; the encoder E decouples the input acoustic feature X to obtain a speaker information representation S and a content representation C from the encoder E and the decoder D; a U-shaped connection is used between the encoder E and the decoder D to transfer the speaker information representation S from the encoder E to the decoder D; the multi-scale information extraction network further extracts the content representation C extracted by the encoder E to obtain a content representation MS(C) containing more detailed multi-scale information; the decoder D fuses the obtained speaker information representation S and the content representation MS(C) containing more detailed multi-scale information to obtain a reconstructed logarithmic Mel-spectrum feature D(MS(C), S), which is represented as the acoustic feature X′;

[0018] The encoder E in the conversion model consists of 1 one-dimensional convolution layer, 6 encoding modules and 6 instance normalization layers. The encoding module consists of 2 one-dimensional convolution layers, 1 batch normalization layer and 1 LeakyReLU activation function. The encoding modules and instance normalization layers are placed alternately.

[0019] The decoder D in the conversion model consists of 1 instance normalization layer, 1 one-dimensional convolution layer, 6 decoding modules, 7 adaptive instance normalization layers, 1 gated recurrent unit layer and 1 fully connected layer. The decoding module consists of a decoding convolution module and a generating convolution module. The decoding convolution module and the generating convolution module have the same structure, consisting of 2 one-dimensional convolution layers, 1 batch normalization layer and 1 LeakyReLU activation function layer. The instance normalization layer and the first adaptive instance normalization layer are placed at the head end of the decoder as a combination. The 6 decoding modules and the last 6 adaptive instance normalization layers in the decoder are placed alternately.

[0020] Preferably, the multi-scale information extraction network in the conversion model is composed of 6 residual network modules, 6 ReLU activation function layers, 1 one-dimensional convolution layer and an activation guidance layer, and each residual network module is composed of 2 one-dimensional convolution layers, 3 batch normalization layers, 2 ReLU activation function layers and 1 pyramid squeeze attention module (Pyramid SqueezeAttention, PSA).

[0021] Preferably, the core structure of the multi-scale information extraction network is a PSA module, which consists of a squeeze-splicing module and a SE attention network.

[0022] The squeeze-splicing module is a convolutional pyramid structure that uses convolutions of different sizes of kernels to extract features of different scales, thereby learning richer multi-scale information. The SE attention network is a channel attention mechanism that allows the network to selectively weight the importance of each channel. Therefore, the SE attention network can obtain the attention weights of features of different scales, thereby highlighting useful scale information.

[0023] The squeeze-splicing module first processes the input features through a multi-branch convolution structure with different convolution kernel sizes. Get S features of different scales, the number of channels in each part is Features of different scales are expressed as:

[0024]

[0025] Specifically, it can be expressed as:

[0026] F i =Conv(K i ×K i ,G i )(X)

[0027] F=Cat([F0,F1,…,F S-1 ])

[0028] Among them, C represents the number of channels, H represents the height, W represents the width, i = 0, 1, ..., S-1, and the i-th convolution kernel size is K i =2×(i+1)+1, F represents multi-scale features, Conv(·) represents convolution operation, and Cat(·) represents concatenation operation.

[0029] The size of the grouped convolution is:

[0030] Multi-scale features contain detailed information at different scales, but this information may not be useful for the current task. Therefore, the SE attention network is used to extract channel attention weight information from multi-scale features to obtain the attention weight vectors of different scale features. The attention weight vectors of different scale features are expressed as:

[0031] W i =SEWeight(F i )

[0032] Among them, W i represents the attention weight vector, and SEWeight(·) represents the SE attention network calculation operation. Then the attention weight vector is recalibrated using the Softmax function to obtain the recalibrated attention weight vector, which is expressed as:

[0033]

[0034] Among them, att i Represents the recalibrated attention weight vector. The recalibrated attention weight vector is multiplied with the corresponding scale feature in the channel dimension to obtain the weighted scale feature, and the different scale features are concatenated to obtain the multi-scale feature that highlights the useful information, which is expressed as:

[0035]

[0036] Y=Cat([Y0,Y1,…,Y S-1 ])

[0037] Among them, Y i represents the weighted scale feature, represents the multiplication operation on the channel dimension, and Y represents the multi-scale features that highlight useful information.

[0038] Preferably, the training process in step S4 is as follows:

[0039] Step S4.1: Input the acoustic features X extracted from the training corpus to the encoder E to train the encoder E to extract the content representation C and the speaker information representation S;

[0040] Step S4.2: In the encoder E, the acoustic feature X is passed through the first one-dimensional convolutional layer in the encoder E to obtain a feature vector Z, and then passed through the encoding module to obtain a feature vector Z′;

[0041] Step S4.3: The first instance normalization layer in the encoder E takes the feature vector Z′ as input, extracts the speaker information representation S = {μ(Z′), σ(Z′)}, and transmits the speaker information representation S to the decoder D through a U-type connection; and uses the extracted speaker information representation S = {μ(Z′), σ(Z′)} to normalize Z′ to obtain the instance normalized representation; where μ(Z′) and σ(Z′) are the mean and standard deviation of Z′, which are used to represent the global speaker representation S;

[0042] Step S4.4: After the instance normalized representation passes through all subsequent structures, the output content representation C of the encoder is obtained;

[0043] Step S4.5: Input the content representation C into the multi-scale information extraction network to further extract more detailed multi-scale information, and obtain the content representation MS(C) containing the multi-scale information;

[0044] Step S4.6: Input the content representation MS(C) containing multi-scale information and the speaker information representation S into the decoder D to train the decoder D to reconstruct the acoustic feature X′;

[0045] Step S4.7: The latent representation T extracted by the decoding module from the content representation MS(C) and the speaker representation S extracted by the encoder E are input into the adaptive instance normalization layer in the decoder. In the adaptive instance normalization layer, the speaker representation S provides speaker information for the latent representation T to obtain the reconstructed acoustic feature X′;

[0046] Step S4.8: The encoder E, the multi-scale information extraction network and the decoder D are jointly trained, and the process from step S4.1 to step S4.7 is repeated to obtain a trained conversion model by minimizing the deep reconstruction loss function until the set number of iterations is reached.

[0047] Preferably, the reconstruction loss function is expressed as:

[0048]

[0049] Where X represents the input acoustic features of encoder E; represents the reconstructed acoustic features of the i-th decoding stage of decoder D, represents the reconstructed acoustic features of the i-th decoding stage of decoder D The reconstruction loss between the input acoustic features X of the encoder E; ||·||1 represents the L1 norm; represents the final reconstructed acoustic features of the decoder D; L final-rec Denotes the final reconstructed acoustic features of the decoder D The reconstruction loss between the input acoustic features X of the encoder E.

[0050] Preferably, the objective function is expressed as:

[0051]

[0052] Among them, w i represents the weight of the reconstruction loss function at the i-th decoding stage; w f represents the weight of the final reconstruction loss function, and L represents the target loss function of the model.

[0053] Preferably, the conversion process in step S6 is as follows:

[0054] Step S6.1: Input the acoustic features X1 and X2 described in step S5 into the trained conversion model, and use the encoder E to extract the content representation C1 of the source speech and the speaker information representation S2 of the target speech;

[0055] Step S6.2: The content representation C1 of the source speech is further extracted through the multi-scale information extraction network to obtain the content representation MS(C1) containing more detailed multi-scale information; the speaker information representation S2 of the target speech is directly transmitted to the decoder D through the U-type connection;

[0056] Step S6.3: The source speech content representation MS(C1) containing multi-scale information and the target speech speaker information representation S2 are input into the decoder D. In the adaptive instance normalization layer in the decoder, the decoding module extracts the potential representation from the source content representation MS(C1), and the target speaker information representation S2 provides speaker information for the potential representation to realize speaker information conversion. Finally, the reconstructed transformed logarithmic Mel-spectrogram feature D(MS(C1), S2) is obtained, which is represented as the acoustic feature X 1→2 .

[0057] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:

[0058] 1. The conversion model in the cross-language speech conversion method of the present invention further extracts the content representation extracted by the encoder using a multi-scale information extraction network to obtain a content representation containing more detailed multi-scale information. At the same time, a deep supervision mechanism is introduced in the model training stage to further provide multi-scale information for the output reconstruction features to improve the naturalness of the converted speech. The content representation after the multi-scale information extraction network contains more detailed multi-scale information.

[0059] 2. The cross-language speech conversion method of the present invention introduces a deep supervision mechanism in model training and introduces reconstruction loss for each decoding stage. During training, each decoding stage generates the reconstruction features corresponding to that stage, and calculates the reconstruction loss between the generated reconstruction features and the input features; and adds the reconstruction features of the six decoding stages as the final output reconstruction features, and calculates the reconstruction loss between the final output reconstruction features and the input features. Under the action of the deep supervision mechanism, each decoding stage is supervised, so that each stage can learn the reconstruction feature representation at that scale, and by learning the multi-scale reconstruction feature representation, rich multi-scale information is provided for the final output reconstruction feature. Under the action of the multi-scale information extraction network and the deep supervision mechanism, the converted speech has more detailed information, thereby solving the problem of low naturalness of the converted speech in the existing cross-language speech conversion method and improving the quality of the converted speech. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of the principle of the training phase of the cross-language speech conversion method of the present invention;

[0061] Figure 2 It is a schematic diagram of the principle of the conversion stage of the cross-language speech conversion method of the present invention;

[0062] Figure 3 : is a network structure diagram of the encoder E of the present invention;

[0063] Figure 4 It is a partial network structure diagram of encoder E including the detailed structure of the encoding module;

[0064] Figure 5 is a network structure diagram of the multi-scale information extraction network of the present invention;

[0065] Figure 6 It is a partial network structure diagram of the multi-scale information extraction network including the detailed structure of the residual network;

[0066] Figure 7 It is a network structure diagram of the decoder D of the present invention;

[0067] Figure 8 It is a partial network structure diagram of the decoder D including the detailed structure of the decoding module. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the application is further elaborated in detail below in conjunction with the accompanying drawings. The described embodiments are only a part of the embodiments involved in the present invention. All non-innovative embodiments of other researchers in the field on this embodiment belong to the protection scope of the present invention. At the same time, for the step numbering in the embodiment of the present invention, it is only set for the convenience of explanation, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0069] In one embodiment of the present invention, a cross-language speech conversion method based on a codec structure of multi-scale information includes a training phase and a conversion phase, wherein the training phase is used to obtain a conversion model and its parameters required for cross-language speech conversion, and the conversion phase is used to realize the conversion of the speaker information of the source speech into the speaker information of the target speech while keeping the content of the source speech unchanged.

[0070] Specifically, the training phase, such as Figure 1 As shown, the following steps are included:

[0071] Step S1: Obtain a large amount of training corpus.

[0072] In this embodiment, the training corpus comes from the AISHELL-3 Chinese corpus and the CSTR VCTK English corpus; from the obtained Chinese and English corpora, 40 speakers from the AISHELL-3 Chinese corpus are selected, each speaker has about 200 voices, and each sentence lasts 2 to 10 seconds. 40 speakers from the CSTR VCTK English corpus are selected, each speaker has about 200 voices, and each sentence lasts 2 to 8 seconds.

[0073] The selected Chinese and English speech sounds are combined into a training corpus to train the conversion model. This allows the conversion model to fully learn the pronunciation characteristics and semantic content of different languages, thereby ensuring the performance of the conversion model.

[0074] Step S2: Acquire acoustic features, and perform preprocessing and feature extraction on the acquired training corpus.

[0075] In this embodiment, the sampling rate of the training corpus is set to 24kHz, the number of fast Fourier transform points is set to 2048, the window length is set to 1200, the window moving length is set to 300, and 128 frames are randomly selected from the logarithmic Mel spectrum features of each training speech and concatenated to obtain the logarithmic Mel spectrum feature fragments, which are represented as acoustic features X;

[0076] Step S3: Input the acoustic feature X obtained in step S2 into the conversion model for training.

[0077] In this embodiment, the network adopts an encoder-decoder structure. The acoustic feature X first obtains a preliminary feature through the encoding module in the encoder E, and then the content and speaker information in the preliminary feature are decoupled through the instance normalization layer to obtain the speaker information representation S and the content representation C respectively.

[0078] The content representation C is further extracted through the multi-scale information extraction network to obtain the content representation MS(C) containing more detailed multi-scale information. Then, through the U-shaped connection between the encoder E and the decoder D, the speaker information representation S is passed from the encoder E to the decoder D.

[0079] In the decoder D, the speaker information representation S provides speaker information for the potential representation extracted by the decoding module from the content representation MS(C), and obtains the reconstructed logarithmic Mel spectrum feature D(MS(C), S), which is represented as the acoustic feature X′;

[0080] Furthermore, the conversion model mainly consists of three parts: encoder E, multi-scale information extraction network and decoder D:

[0081] (1) In the encoder E, the acoustic feature X is first extracted through the encoding module. Then, the instance normalization layer is used to extract the speaker information representation S from the preliminary features. After instance normalization, the speaker information can be deleted while retaining the content information of the preliminary features, thereby separating the content and speaker information in the preliminary features. Finally, the features after the last instance normalization process are used as the output features of the encoder. The structure is as follows: Figure 3 shown.

[0082] The encoder E consists of 1 one-dimensional convolutional layer, 6 encoding modules and 6 instance normalization layers. The encoding module, such as Figure 4 As shown, it includes 2 one-dimensional convolutional layers, 1 batch normalization layer, and 1 LeakyReLU activation function layer; the output of the encoding module is connected to the instance normalization layer, which is used to extract the speaker information representation S and filter out the speaker information in the content information; Figure 4 The A in represents the encoding module and instance normalization layer as a whole, which are placed in 6 groups in sequence (the encoding module and instance normalization layer are placed alternately).

[0083] In encoder E, the formula for the instance normalization layer is:

[0084]

[0085] Among them, Z′ represents the feature vector after the encoding module, which is used as the input of the instance normalization layer. nc (Z′) and σ nc (Z′) represents the mean and standard deviation of Z′ along the c direction for a given batch n and channel number c, respectively, to represent the speaker information representation S. Z′ nci It represents the i-th frame size of Z′ along the c direction for a given batch n and number of channels c. L represents the frame length.

[0086] In particular, in this example, n is a positive integer between [1, 64], c is a positive integer between [1, 512], L is 128, and ε is a very small value to prevent the standard deviation from being zero.

[0087] (2) In the multi-scale information extraction network, the content representation C output by the encoder E is taken as input to generate a feature vector MS(C) as the content representation containing multi-scale information.

[0088] Multi-scale information extraction network structure, such as Figure 5 As shown in the figure, it consists of 6 residual network modules, 6 ReLU activation function layers, 1 one-dimensional convolution layer and 1 activation guidance layer.

[0089] Each residual network module, such as Figure 6As shown in the figure, it includes 2 one-dimensional convolutional layers, 3 batch normalization layers, 2 ReLU activation function layers and 1 PSA module. The core component of the multi-scale information extraction network is the PSA module, which consists of two parts: the squeeze-splicing module and the SE attention network.

[0090] The squeeze-splicing module is a convolutional pyramid structure that uses convolutions of different sizes of kernels to extract features of different scales, thereby learning rich multi-scale information. The SE attention network is a channel attention mechanism that allows the network to selectively weight the importance of each channel. Therefore, the SE attention network can obtain the attention weights of features of different scales, thereby highlighting useful scale information.

[0091] The squeeze-splicing module first processes the input features through a multi-branch convolution structure with different convolution kernel sizes. Get S features of different scales, the number of channels in each part is Features of different scales are expressed as:

[0092]

[0093] Specifically expressed as:

[0094] F i =Conv(K i ×K i ,G i )(H)

[0095] F=Cat([F0,F1,…,F S-1 ])

[0096] Among them, C represents the number of channels, H represents the height, and W represents the width. Represents the input feature set, i = 0, 1, ..., S-1, and the i-th convolution kernel size is K i =2×(i+1)+1, F represents multi-scale features, Conv(·) represents convolution operation, and Cat(·) represents concatenation operation.

[0097] The size of the grouped convolution is:

[0098]

[0099] Multi-scale features contain detailed information at different scales, but this information may not be useful for the current task. Therefore, the SE attention network is used to extract channel attention weight information from multi-scale features to obtain the attention weight vectors of different scale features. The attention weight vectors of different scale features can be expressed as:

[0100] W i =SEWeight(Fi )

[0101] Among them, W i represents the attention weight vector, and SEWeight(·) represents the SE attention network calculation operation.

[0102] Next, the attention weight vector is recalibrated using the Softmax function to obtain the recalibrated attention weight vector, which is expressed as:

[0103]

[0104] Among them, att i Represents the recalibrated attention weight vector. The recalibrated attention weight vector is multiplied with the corresponding scale feature in the channel dimension to obtain the weighted scale feature, and the different scale features are concatenated to obtain the multi-scale feature that highlights the useful information, which is expressed as:

[0105]

[0106] Y=Cat([Y0,Y1,…,Y S-1 ])

[0107] Among them, Y i represents the weighted scale feature, represents the multiplication operation on the channel dimension, and Y represents the multi-scale features that highlight useful information.

[0108] In the multi-scale information extraction network, the activation guidance function layer is used as a bottleneck to further filter out the speaker information and obtain a pure content representation MS(C).

[0109] The activation guidance function layer is expressed as:

[0110]

[0111] Among them, Y′ represents the feature vector obtained after the last one-dimensional convolutional layer in the multi-scale information extraction network, which is used as the input of the activation guidance function layer, and α represents a hyperparameter.

[0112] Particularly, in this embodiment, α is set to 0.1.

[0113] (3) In the decoder D, the content representation MS(C) and the speaker information representation S, after further extracting multi-scale information through the multi-scale information extraction network, are used as input features. The speaker information representation S provides speaker information for the latent representation extracted from the content representation MS(C) by the decoding module in the adaptive instance normalization layer, thereby obtaining a reconstructed acoustic feature X′ that is highly similar to the input acoustic feature X.

[0114] The structure of decoder D is as follows Figure 7 As shown in the figure, it includes 1 instance normalization layer, 1 one-dimensional convolution layer, 6 decoding modules, 7 adaptive instance normalization layers, 1 gated recurrent unit layer and 1 fully connected layer. The decoding module consists of a decoding convolution module and a generating convolution module.

[0115] The decoding convolution module and the generating convolution module have the same structure, such as Figure 8 As shown, it includes 2 one-dimensional convolution layers, 1 batch normalization layer and 1 LeakyReLU activation function layer.

[0116] The speaker information representation S provides speaker information to the latent representation extracted by the decoding module from the content representation MS(C) through an adaptive instance normalization layer, so that the converted speech is closer to the target speaker in terms of speaker similarity.

[0117] Figure 8 The B in the figure represents the decoding module and the adaptive instance normalization layer as a whole, which are placed in 6 groups in sequence (the decoding module and the adaptive instance normalization layer are placed alternately). The gated recurrent unit layer can capture the semantic relevance between frame sequences and output the transformed spectral features through the fully connected layer, thereby optimizing the reconstructed acoustic features X′.

[0118] The formula of the adaptive instance normalization layer is:

[0119] AdaIN(σ(Z′),μ(Z′),T)=σ(Z′)IN(T)+μ(Z′)

[0120] Wherein, T represents the potential representation extracted by the decoding module from the content representation as the input of the adaptive instance normalization layer, μ(Z′) and σ(Z′) represent the speaker information representation S extracted by the encoder E, and IN(T) represents instance normalization of T.

[0121] The objective function of the entire conversion model is expressed as:

[0122]

[0123] Among them, w i represents the weight of the reconstruction loss function at the i-th decoding stage; w f represents the weight of the final reconstruction loss function, and L represents the target loss function of the model.

[0124] The above objective loss function is specifically expressed as:

[0125]

[0126] Where X represents the input acoustic features of encoder E; represents the reconstructed acoustic features of the i-th decoding stage of decoder D, represents the reconstructed acoustic features of the i-th decoding stage of decoder D The reconstruction loss between the input acoustic features X of the encoder E; ||·||1 represents the L1 norm; represents the final reconstructed acoustic features of the decoder D; L final-rec Denotes the final reconstructed acoustic features of the decoder D The reconstruction loss between the input acoustic features X of the encoder E.

[0127] Step S4: During the training of the conversion model, the difference between the reconstructed acoustic feature X′ and the input acoustic feature X is made smaller and smaller through continuous iterative training, so that the deep reconstruction loss function of the conversion model is as small as possible, and the hyperparameters of the conversion model are set to minimize the objective function until the set number of iterations is reached, thereby obtaining a trained conversion model; due to different specific settings of the neural network and different performance of the experimental equipment, the set number of iterations is also different.

[0128] In particular, in this embodiment, the number of iterations is set to 130,000 times.

[0129] Step S4.1: Input the acoustic features X extracted from the training corpus to the encoder E to train the encoder E to extract the content representation C and the speaker information representation S;

[0130] Step S4.2: In the encoder E, the acoustic feature X is passed through the first one-dimensional convolutional layer in the encoder E to obtain a feature vector Z, and then passed through the encoding module to obtain a feature vector Z′;

[0131] Step S4.3: The instance normalization layer takes the feature vector Z′ as input, extracts the speaker information representation S = {μ(Z′), σ(Z′)}, and transmits the speaker information representation S to the decoder D through a U-type connection; and uses the extracted speaker information representation S = {μ(Z′), σ(Z′)} to normalize Z′ to obtain the instance normalized representation; where μ(Z′) and σ(Z′) are the mean and standard deviation of Z′, which are used to represent the global speaker representation S;

[0132] Step S4.4: After the instance normalized representation passes through all subsequent structures, the output content representation C of the encoder is obtained;

[0133] Step S4.5: Input the content representation C into the multi-scale information extraction network to further extract more detailed multi-scale information, and obtain the content representation MS(C) containing the multi-scale information;

[0134] Step S4.6: Input the content representation MS(C) containing multi-scale information and the speaker information representation S into the decoder D to train the decoder D to reconstruct the acoustic feature X′;

[0135] Step S4.7: Input the latent representation T extracted by the decoding module from the content representation MS(C) and the speaker representation S extracted by the encoder E into the adaptive instance normalization layer in the decoder. In the adaptive instance normalization layer, the speaker representation S provides speaker information for the latent representation T to obtain a reconstructed feature vector.

[0136] Step S4.8: The encoder E, the multi-scale information extraction network and the decoder D are jointly trained, and steps S4.1 to S4.7 are repeated to obtain a trained conversion model by minimizing the deep reconstruction loss function until the set number of iterations is reached.

[0137] Specifically, the conversion phase, such as Figure 2 As shown, the following steps are included:

[0138] Step S5: Obtain the corpus to be converted.

[0139] In this embodiment, the corpus to be converted comes from the AISHELL-3 Chinese corpus and the CSTR VCTK English corpus; from the acquired Chinese and English corpora, 8 speakers from the AISHELL-3 Chinese corpus are randomly selected, each speaker has about 200 voices, 10 voices are randomly selected from the 200 voices, and the duration of each voice varies from 2 to 10 seconds; 8 speakers from the CSTRVCTK English corpus are selected, each speaker has about 200 voices, 10 voices are randomly selected from the 200 voices, and the duration of each voice varies from 2 to 8 seconds.

[0140] The selected Chinese and English speech are combined into a corpus to be converted, and the logarithmic Mel spectrum features of the source speech and the logarithmic Mel spectrum features of the target speech in the corpus to be converted are extracted respectively, and represented as acoustic features X1 and X2 respectively;

[0141] Step S6: Input the acoustic features X1 and X2 into the trained conversion model to reconstruct the logarithmic Mel spectrum feature D(MS(C1), S2) of the converted speech, which is represented as the acoustic feature X 1→2 ;

[0142] Step S6.1: Input the acoustic features X1 and X2 extracted in step S5 into the trained conversion model, and the encoder E of the conversion model extracts the content representation C1 of the source speech and the speaker information representation S2 of the target speech respectively;

[0143] Step S6.2: Input the content representation C1 of the source speech obtained in step S6-1 into the multi-scale information extraction network of the conversion model to further extract more detailed multi-scale information, and obtain the content representation MS(C1) containing multi-scale information; the speaker information representation S2 of the target speech is directly passed to the decoder D through the U-type connection;

[0144] Step S6.3: The above-mentioned source speech content representation MS(C1) containing multi-scale information and the speaker information representation S2 of the target speech are input into the decoder D. In the adaptive instance normalization layer in the decoder, the decoding module extracts the potential representation from the source content representation MS(C1), and the target speaker information representation S2 provides speaker information for the potential representation, realizes speaker information conversion, and obtains the reconstructed transformed logarithmic Mel spectrum feature D(MS(C1), S2), which is represented as the acoustic feature X 1→2 .

[0145] Step S7: Using the Griffin-Lim vocoder, the acoustic features X of the converted speech obtained in step S6.3 are converted to 1→2 It is converted into speech waveform for output, thereby obtaining synthesized speech for cross-language speech conversion. The Griffin-Lim vocoder has fast calculation speed and is relatively simple to implement.

[0146] In summary, the present invention is based on a cross-language speech conversion method of a codec structure of multi-scale information. A multi-scale information extraction network is constructed between the encoder E and the decoder D. The multi-scale information extraction network consists of 6 residual network layers, 6 ReLU activation function layers, 1 one-dimensional convolution layer and 1 activation guidance layer. The 3×3 convolution layer in the residual network is replaced by PSA. The PSA module consists of a squeeze-splicing module and a SE attention mechanism network. The squeeze-splicing module is a convolutional pyramid structure that extracts different scale features through convolutions of different convolution kernel sizes to learn more detailed multi-scale information. The SE attention mechanism network is a channel attention mechanism that allows the network to selectively weight the importance of each channel. The SE attention mechanism network can obtain the attention weights of different scale features to achieve the purpose of highlighting useful scale information. The content representation C1 after the multi-scale information extraction network can contain more detailed multi-scale information.

[0147] Introducing a deep supervision mechanism in the training phase of the model and introducing supervision signals for different decoding stages helps the model learn multi-scale reconstruction feature representations, thereby further providing rich multi-scale information for the final output reconstruction features. Among them, the supervision signal refers to the reconstruction loss function additionally introduced for each decoding stage. Under the action of the multi-scale information extraction network and the deep supervision mechanism, the converted speech has more detailed information, solving the problem of low naturalness of the converted speech in the existing cross-language speech conversion methods.

[0148] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A cross-language speech conversion method based on a codec structure of multi-scale information, characterized in that: It includes a training phase and a conversion phase; The training phase includes the following steps: Step S1: obtaining a large amount of training corpus, wherein the training corpus consists of speech of multiple speakers of different languages; Step S2: preprocessing and extracting acoustic features of the training corpus to obtain a logarithmic Mel spectrum feature fragment, which is represented as an acoustic feature X; Step S3: input the acoustic feature X into the conversion model for model training to obtain a reconstructed logarithmic Mel-spectrogram feature D(MS(C),S), which is represented as the acoustic feature X′; Step S4: during the training of the conversion model, the deep supervision reconstruction loss function of the conversion model is made as small as possible, and the hyperparameters of the conversion model are set to minimize the objective function until the set number of iterations is reached to obtain a trained conversion model; The conversion phase includes the following steps: Step S5: selecting speech of different languages ​​as corpus to be converted, selecting source speech and target speech of different languages ​​from the corpus to be converted, respectively extracting the logarithmic Mel spectrum features of the source speech and the logarithmic Mel spectrum features of the target speech, respectively, and representing them as acoustic features X1 and X2, respectively; Step S6: Input the acoustic features X1 and X2 into the trained conversion model to reconstruct the logarithmic Mel spectrum features of the converted speech, which are represented as acoustic features X 1→2 ; Step S7: Using the Griffin-Lim vocoder, the acoustic features X of the converted speech are obtained. 1→2 Convert it into speech waveform for output to obtain synthesized speech with cross-language speech conversion.

2. The cross-language speech conversion method based on the encoder-decoder structure of multi-scale information according to claim 1, characterized in that: Step S2 preprocesses the training corpus and extracts acoustic features, sets the sampling rate of the training corpus to 24kHz, the number of fast Fourier transform points to 2048, the window length to 1200, and the window moving length to 300; randomly selects 128 frames from the logarithmic Mel spectrum features of each sentence of the training corpus and concatenates them to obtain the logarithmic Mel spectrum feature fragment, which is represented as the acoustic feature X.

3. The cross-language speech conversion method based on the encoder-decoder structure of multi-scale information according to claim 2, characterized in that: In step S3, the conversion model includes: an encoder E, a multi-scale information extraction network and a decoder D; The encoder E decouples the input acoustic feature X to obtain the speaker information representation S and the content representation C from it; a U-shaped connection is used between the encoder E and the decoder D to transfer the speaker information representation S from the encoder E to the decoder D; the multi-scale information extraction network further extracts multi-scale information from the content representation C extracted by the encoder E to obtain the content representation MS(C) containing more detailed multi-scale information; the decoder D reconstructs the acquired speaker information representation S and the content representation MS(C) containing multi-scale information to obtain the reconstructed logarithmic Mel-spectrum feature D(MS(C),S), which is represented as the acoustic feature X′.

4. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 3, characterized in that: The encoder E is composed of 1 one-dimensional convolution layer, 6 encoding modules and 6 instance normalization layers; the encoding module is composed of 2 one-dimensional convolution layers, 1 batch normalization layer and 1 LeakyReLU activation function layer; the encoding modules and instance normalization layers are placed alternately; The decoder D is composed of 1 instance normalization layer, 1 one-dimensional convolution layer, 6 decoding modules, 7 adaptive instance normalization layers, 1 gated recurrent unit layer and 1 fully connected layer; the decoding module is composed of a decoding convolution module and a generating convolution module, and the decoding convolution module and the generating convolution module have the same structure, consisting of 2 one-dimensional convolution layers, 1 batch normalization layer and 1 LeakyReLU activation function layer; the instance normalization layer and the first adaptive instance normalization layer are combined and placed at the head end of the decoder D; the 6 decoding modules and the last 6 adaptive instance normalization layers are placed alternately; The multi-scale information extraction network consists of 6 residual network modules, 6 ReLU activation function layers, 1 one-dimensional convolution layer and an activation guidance layer. Each residual network module consists of 2 one-dimensional convolution layers, 3 batch normalization layers, 2 ReLU activation function layers and 1 pyramid squeeze attention module.

5. The cross-language speech conversion method based on the encoder-decoder structure of multi-scale information according to claim 4, characterized in that: The pyramid squeeze attention module consists of two parts: a squeeze-splicing module and a SE attention network; The extrusion-splicing module is a convolutional pyramid structure, which uses convolutions of different sizes of convolution kernels to extract features of different scales and learn multi-scale information; it processes input features through a multi-branch convolution structure with different convolution kernel sizes. Get S features of different scales, the number of channels of each scale feature is Features of different scales are expressed as: Specifically expressed as: F i =Conv(K i ×K i ,G i )(X) F=Cat([F0,F1,…,F S-1 ]) Among them, C represents the number of channels, H represents the height, W represents the width, i = 0, 1, ..., S-1, and the i-th convolution kernel size is K i =2×(i+1)+1, F represents multi-scale features, Conv(·) represents convolution operation, and Cat(·) represents concatenation operation; The size of the grouped convolution G i It is expressed as: The SE attention network is a channel attention mechanism. By selectively weighting the importance of each channel, the channel attention weight information is extracted from the multi-scale features to obtain the attention weight vectors of different scale features. The attention weight vectors of different scale features are expressed as: W i =SEWeight(F i ) Among them, W i represents the attention weight vector, and SEWeight(·) represents the SE attention network calculation operation.

6. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 5, characterized in that: The attention weight vector is recalibrated using the Softmax function to obtain the recalibrated attention weight vector: Among them, att i Represents the recalibrated attention weight vector. The recalibrated attention weight vector is multiplied with the corresponding scale feature in the channel dimension to obtain the weighted scale feature. The different scale features are concatenated to obtain the multi-scale feature that highlights the useful information, which is expressed as: Y=Cat([Y0,Y1,…,Y S-1 ]) Among them, Y i represents the weighted scale feature, represents the multiplication operation on the channel dimension, and Y represents the multi-scale features that highlight useful information.

7. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 6, characterized in that: The training process of the conversion model in step S4 includes the following sub-steps: Step S4.1: Input the acoustic features X extracted from the training corpus into the encoder E, train the encoder E, and extract the content representation C and the speaker information representation S; Step S4.2: In the encoder E, the acoustic feature X is passed through the first one-dimensional convolutional layer in the encoder E to obtain a feature vector Z, and then passed through the encoding module to obtain a feature vector Z′; Step S4.3: The first instance normalization layer in the encoder E takes the feature vector Z′ as input, extracts the speaker information representation S = {μ(Z′), σ(Z′)}, and transmits the speaker information representation S to the decoder D through a U-type connection; and uses the extracted speaker information representation S = {μ(Z′), σ(Z′)} to normalize Z′ to obtain the instance normalized representation; Where μ(Z′) and σ(Z′) are the mean and standard deviation of Z′, which are used to represent the global speaker representation S; Step S4.4: After the instance normalized representation passes through all structures of the decoder D, the output content representation C of the decoder is obtained; Step S4.5: input the content representation C into the multi-scale information extraction network, extract the multi-scale information, and obtain the content representation MS(C) containing the multi-scale information; Step S4.6: Input the content representation MS(C) containing multi-scale information and the speaker information representation S into the decoder D to train the ability of the decoder D to reconstruct the acoustic feature X′; Step S4.7: The decoding module extracts the latent representation T from the content representation MS(C), and the speaker representation S extracted by the encoder E is input into the adaptive instance normalization layer in the decoder. The speaker representation S provides speaker information for the latent representation T, and the reconstructed feature vector is obtained; Step S4.8: The encoder E, the multi-scale information extraction network and the decoder D are jointly trained, and steps S4.1 to S4.7 are repeated to obtain the trained conversion model by minimizing the deep supervision reconstruction loss function until the set number of iterations is reached.

8. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 1, characterized in that: The reconstruction loss function in step S4 is expressed as: in, represents the final reconstructed acoustic features of the decoder D, represents the reconstructed acoustic features of the i-th decoding stage of decoder D, represents the reconstructed acoustic features of the i-th decoding stage of decoder D The reconstruction loss between the input acoustic features X of the encoder E; ||·||1 represents the L1 norm, L final-rec Denotes the final reconstructed acoustic features of the decoder D The reconstruction loss between the input acoustic features X of the encoder E.

9. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 8, characterized in that: The objective function in step S4 is expressed as: Among them, w i represents the weight of the reconstruction loss function at the i-th decoding stage; w f represents the weight of the final reconstruction loss function, and L represents the target loss function of the model.

10. The cross-language speech conversion method based on a codec structure of multi-scale information according to claim 1, characterized in that: In step S6, the logarithmic Mel spectrum features of the converted speech are reconstructed as follows: Step S6.1: Input the acoustic features X1 and X2 extracted in step S5 into the trained conversion model, and use the encoder E to extract the content representation C1 of the source speech and the speaker information representation S2 of the target speech; Step S6.2: The content representation C1 of the source speech is passed through a multi-scale information extraction network to extract multi-scale information, thereby obtaining a content representation MS(C1) containing multi-scale information; the speaker information representation S2 of the target speech is directly transmitted to the decoder D through a U-type connection; Step S6.3: The content representation MS(C1) of the source speech containing multi-scale information and the speaker information representation S2 of the target speech are input into the decoder D. In the adaptive instance normalization layer in the decoder, the decoding module extracts the potential representation from the source content representation MS(C1), and the target speaker information representation S2 provides speaker information for the potential representation, realizes speaker information conversion, and obtains the reconstructed transformed logarithmic Mel spectrum feature D(MS(C1), S2), which is represented as the acoustic feature X 1→2 .

Citation Information

Cited By

  • Speaker voice information decoupling method based on unsupervised learning

    CN118887958A

  • Cross-language voice conversion method, readable storage medium and equipment

    CN119207380A

  • A cross-language speech conversion method, readable storage medium and device

    CN119207380B