Speech conversion model training method, speech conversion method and device

By training a speech conversion model with synthesized speech samples, extracting and fusing speech features, and adjusting model parameters, the problem of limited real speech data was solved, and highly accurate speech conversion was achieved.

CN117012180BActive Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210614302.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-10-01
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

In existing speech conversion technologies, the high cost and limited data of recording real speech make it difficult for models to effectively learn the conversion between different timbres, resulting in low accuracy in speech conversion.

Method used

By acquiring synthesized speech samples, extracting speech features, fusing mutually matching initial speech features, adjusting the parameters of the speech conversion model until the convergence condition is met, and generating the target speech conversion model, pseudo-samples are used to reduce the acquisition pressure, increase the amount of data, and improve the model training quality.

Benefits of technology

This method achieves the conversion of speech features into target timbre without altering the speech content, improving the accuracy of the speech conversion model, reducing the risk of overfitting to specific timbres, and enhancing the model's speech conversion capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117012180B_ABST
    Figure CN117012180B_ABST
Patent Text Reader

Abstract

The present application relates to a speech conversion model training method, a speech conversion method, an apparatus, a computer device, a storage medium and a computer program product. The present application relates to artificial intelligence technology. The method comprises: extracting speech features of a training speech sample in a speech sample set to obtain an initial speech feature, fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain a target speech feature; the training speech sample comprises a synthetic speech sample obtained by synthesizing the target speech content feature and the speech timbre feature corresponding to the training object identifier; based on the speech feature set obtained from each target speech feature and the target speech data corresponding to the target object identifier, training the initial speech conversion model to obtain a target speech conversion model; the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other. The present method can improve the accuracy of speech conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology, and in particular to a speech conversion model training method, a speech conversion method, an apparatus, a computer device, a storage medium and a computer program product. Background Art

[0002] With the development of speech technology, voice conversion technology has emerged. Voice conversion (VC) aims to convert the speech of an input speaker (source speaker) into speech with the same content but the timbre of a different speaker (target speaker).

[0003] In traditional technology, the real speech of multiple speakers is directly obtained, and the training samples of the speech conversion model are generated based on the real speech to train the speech conversion model. However, the cost of recording real speech is high, and the data obtained is limited, which makes it impossible for the model to learn the conversion between different timbres, resulting in low accuracy of the model's speech conversion. Summary of the invention

[0004] Based on this, it is necessary to provide a speech conversion method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the accuracy of speech conversion in order to solve the above technical problems.

[0005] The present application provides a method for training a speech conversion model. The method comprises:

[0006] Acquire a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers;

[0007] Extracting speech features of training speech samples to obtain initial speech features corresponding to each training speech sample;

[0008] The initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other are integrated to obtain the target speech features;

[0009] Obtaining a speech feature set based on each target speech feature;

[0010] The speech features in the speech feature set are input into an initial speech conversion model to obtain predicted speech data; based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, the model parameters of the initial speech conversion model are adjusted until a first convergence condition is met to obtain a target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

[0011] The present application also provides a speech conversion model training device. The device comprises:

[0012] A speech sample acquisition module is used to acquire a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, and the training speech samples in the speech sample set include synthetic speech samples, which are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers;

[0013] A speech feature extraction module is used to extract speech features of training speech samples and obtain initial speech features corresponding to each training speech sample;

[0014] A speech feature fusion module is used to fuse initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features;

[0015] A speech feature set generation module, used to obtain a speech feature set based on each target speech feature;

[0016] The speech conversion model training module is used to input the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, adjust the model parameters of the initial speech conversion model until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

[0017] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps described in the above-mentioned speech conversion model training method when executing the computer program.

[0018] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above-mentioned speech conversion model training method.

[0019] A computer program product includes a computer program, and when the computer program is executed by a processor, the steps described in the above-mentioned speech conversion model training method are implemented.

[0020] The speech conversion model training method, apparatus, computer equipment, storage medium and computer program product are provided by obtaining a speech sample set, wherein the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, the training speech samples in the speech sample set include synthetic speech samples, the synthetic speech samples are obtained by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifiers, extracting the speech features of the training speech samples to obtain the initial speech features corresponding to each training speech sample, fusing the initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain the target speech features, obtaining a speech feature set based on each target speech feature, inputting the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model, the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model matches the speech timbre corresponding to the target object identifier. In this way, by fusing initial speech features that belong to different training object identifiers and whose corresponding speech contents match each other, timbre amplification can be achieved, and target speech features whose speech contents match the initial speech features and have new timbre can be obtained. In addition, the initial speech features include speech features extracted from synthetic speech samples. Synthetic speech samples are pseudo samples. Pseudo samples are not real speech samples. Pseudo samples help reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features, so that target speech features corresponding to various timbres can be obtained through timbre amplification. Using a speech feature set composed of speech features corresponding to various timbres as a training set for a speech conversion model can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of the model overfitting to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0021] The present application provides a voice conversion method. The method comprises:

[0022] Obtaining the speech features to be converted and the target object identifier;

[0023] Inputting the speech feature to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other;

[0024] The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are synthesized by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifiers; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; obtaining a speech feature set based on each target speech feature; inputting the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

[0025] The present application also provides a voice conversion device. The device comprises:

[0026] A first data acquisition module, used to acquire the speech features to be converted and the target object identifier;

[0027] A first data conversion module is used to input the speech feature to be converted into a target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other;

[0028] The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are synthesized by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifiers; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; obtaining a speech feature set based on each target speech feature; inputting the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

[0029] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned voice conversion method when executing the computer program.

[0030] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned voice conversion method when executed by a processor.

[0031] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned voice conversion method are implemented.

[0032] The above-mentioned speech conversion method, apparatus, computer equipment, storage medium and computer program product obtain the speech features to be converted and the target object identifier, input the speech features to be converted into the target speech conversion model corresponding to the target object identifier, and obtain the converted speech data. The speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other. The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifier; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; obtaining a speech feature set based on each target speech feature; inputting speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other. In this way, the target speech conversion model can be used to convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier on the basis of retaining the speech content corresponding to the current object identifier. The training set of the target speech conversion model is generated based on the synthesized speech sample and through timbre amplification. The speech conversion accuracy of the trained target speech conversion model is good, so that more accurate speech conversion can be achieved by using the target speech conversion model, and relatively accurate converted speech data can be obtained. For the target speech conversion model, by fusing the initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other, timbre amplification can be achieved, and the target speech features whose speech contents match the initial speech features and have new timbre can be obtained. In addition, the initial speech features include speech features extracted from the synthesized speech samples. The synthesized speech samples are pseudo samples, which are not real speech samples. The pseudo samples help to reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features. Therefore, through timbre amplification, target speech features corresponding to various timbres can be obtained. The speech feature set composed of speech features corresponding to various timbres is used as the training set of the speech conversion model, which can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of the model overfitting to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0033] The present application provides a method for training a speech conversion model. The method comprises:

[0034] Acquire multiple training speech feature pairs, and determine a target speech feature pair from each training speech feature pair; speech contents corresponding to a first training speech feature and a second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different;

[0035] Inputting the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and inputting the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data;

[0036] The speech data corresponding to the target object identifier and having speech content matching the speech content corresponding to the target speech feature pair is used as the target speech data;

[0037] generating a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and generating a second loss based on a difference between the first predicted speech data and the target speech data;

[0038] Based on the first loss and the second loss, adjusting model parameters of a first initial speech conversion model and a second initial speech model to obtain a first intermediate speech conversion model and a second intermediate speech conversion model;

[0039] The first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the next training speech feature pair is used as the target speech feature pair. The step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to the step of executing the step until the target convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model matches the speech timbre corresponding to the target object identifier.

[0040] The present application also provides a speech conversion model training device. The device comprises:

[0041] A speech feature pair acquisition module is used to acquire multiple training speech feature pairs and determine a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different;

[0042] A speech data generation module, configured to input the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data;

[0043] A voice data acquisition module, used to take the voice data corresponding to the target object identifier and whose voice content matches the voice content corresponding to the target voice feature pair as the target voice data;

[0044] a loss generating module, configured to generate a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and to generate a second loss based on a difference between the first predicted speech data and the target speech data;

[0045] A model adjustment module, configured to adjust model parameters of a first initial speech conversion model and a second initial speech model based on the first loss and the second loss to obtain a first intermediate speech conversion model and a second intermediate speech conversion model;

[0046] A model iteration module is used to use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, and return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model until the target convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model both match the speech timbre corresponding to the target object identifier.

[0047] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps described in the above-mentioned speech conversion model training method when executing the computer program.

[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above-mentioned speech conversion model training method.

[0049] A computer program product includes a computer program, and when the computer program is executed by a processor, the steps described in the above-mentioned speech conversion model training method are implemented.

[0050] The above-mentioned speech conversion model training method, apparatus, computer equipment, storage medium and computer program product obtain multiple training speech feature pairs, determine the target speech feature pair from each training speech feature pair, the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbre is different, the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data, and the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech data, based on the first intermediate speech data and the second intermediate speech data The difference between the speech data generates a first loss, and the second loss is generated based on the difference between the first predicted speech data and the target speech data. Based on the first loss and the second loss, the model parameters of the first initial speech conversion model and the second initial speech model are adjusted to obtain the first intermediate speech conversion model and the second intermediate speech conversion model. The first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the next training speech feature pair is used as the target speech feature pair. The step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to execute until the target convergence condition is met, and the first target speech conversion model and the second target speech conversion model are obtained. The speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model are matched with the speech timbre corresponding to the target object identifier. In this way, through the joint training between the models, the first target speech conversion model and the second target speech conversion model with high speech conversion accuracy can be trained. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model. The first target speech conversion model and the second target speech conversion model obtained by model training based on the first loss and the second loss have high speech conversion accuracy.

[0051] The present application provides a voice conversion method. The method comprises:

[0052] Obtaining the speech features to be converted and the target object identifier;

[0053] The speech feature to be converted is input into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model;

[0054] The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech conversion model; The first intermediate speech data is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the target speech data is used as the target speech data; a first loss is generated based on the difference between the first intermediate speech data and the second intermediate speech data, and a second loss is generated based on the difference between the first predicted speech data and the target speech data; based on the first loss and the second loss, the model parameters of the first initial speech conversion model and the second initial speech model are adjusted to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; the first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, the next training speech feature pair is used as the target speech feature pair, and the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to the step of executing the step until the target convergence condition is met to obtain the first target speech conversion model and the second target speech conversion model.

[0055] The present application also provides a voice conversion device. The device comprises:

[0056] A second data acquisition module is used to acquire the speech features to be converted and the target object identifier;

[0057] A second data conversion module is used to input the speech feature to be converted into a target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted match each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model;

[0058] The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech conversion model; The first intermediate speech data is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the target speech data is used as the target speech data; a first loss is generated based on the difference between the first intermediate speech data and the second intermediate speech data, and a second loss is generated based on the difference between the first predicted speech data and the target speech data; based on the first loss and the second loss, the model parameters of the first initial speech conversion model and the second initial speech model are adjusted to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; the first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, the next training speech feature pair is used as the target speech feature pair, and the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to the step of executing the step until the target convergence condition is met to obtain the first target speech conversion model and the second target speech conversion model.

[0059] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned voice conversion method when executing the computer program.

[0060] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned voice conversion method when executed by a processor.

[0061] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned voice conversion method are implemented.

[0062] The above-mentioned speech conversion method, apparatus, computer equipment, storage medium and computer program product obtain the speech features to be converted and the target object identifier, input the speech features to be converted into the target speech conversion model corresponding to the target object identifier, and obtain the converted speech data. The speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model. The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; as the target speech data; based on the difference between the first intermediate speech data and the second intermediate speech data, generate a first loss, based on the difference between the first predicted speech data and the target speech data, generate a second loss; based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; use the first intermediate speech conversion model as the first initial speech conversion model, use the second intermediate speech conversion model as the second initial speech conversion model, use the next training speech feature pair as the target speech feature pair, return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, until the target convergence condition is met, and obtain the first target speech conversion model and the second target speech conversion model. In this way, the first target speech conversion model or the second target speech conversion model can be used to convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier on the basis of retaining the speech content corresponding to the current object identifier. The first target speech conversion model and the second target speech conversion model are obtained by joint training and have a higher speech conversion accuracy, so that the first target speech conversion model or the second target speech conversion model can be used to achieve more accurate speech conversion and obtain more accurate converted speech data.The first target speech conversion model and the second target speech conversion model are trained based on the first loss and the second loss. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A diagram of an application environment of a speech conversion model training method and a speech conversion method in one embodiment;

[0064] Figure 2 A flowchart of a speech conversion model training method in one embodiment;

[0065] Figure 3 is a schematic diagram of training and applying a pseudo sample synthesis model in one embodiment;

[0066] Figure 4 A schematic diagram of a process of timbre amplification in one embodiment;

[0067] Figure 5 A schematic diagram of a process of training a first initial speech conversion model and a second initial speech conversion model in one embodiment;

[0068] Figure 6 A flowchart of a speech conversion method in one embodiment;

[0069] Figure 7 A flowchart of a speech conversion model training method in one embodiment;

[0070] Figure 8 A flowchart of a speech conversion method in one embodiment;

[0071] Fig. 9 A schematic diagram of a process of establishing training samples for a speech conversion model and performing model training in one embodiment;

[0072] Fig.10 A schematic diagram of a process for training a teacher model and a student model in one embodiment;

[0073] Fig.11 is a structural block diagram of a speech conversion model training device in one embodiment;

[0074] Fig.12 is a structural block diagram of a speech conversion device in one embodiment;

[0075] Fig.13 is a structural block diagram of a speech conversion model training device in one embodiment;

[0076] Fig.14 is a structural block diagram of a speech conversion device in one embodiment;

[0077] Fig.15 is an internal structure diagram of a computer device in one embodiment;

[0078] Fig.16 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0080] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0081] The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. For example, the embodiments of the present application can be applied to assisted driving scenarios to perform voice conversion on the prompt voice in assisted driving.

[0082] The solution provided in the embodiments of the present application involves artificial intelligence speech technology, machine learning and other technologies, which are specifically described through the following embodiments:

[0083] The speech conversion model training method and speech conversion method provided in the embodiments of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. Among them, the terminal 102 can be but is not limited to various desktop computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. There can be at least one terminal 102. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers or a cloud server.

[0084] Both the terminal and the server can be used independently to execute the speech conversion model training method and the speech conversion method provided in the embodiments of the present application.

[0085] For example, the server obtains a speech sample set locally, wherein the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, and the training speech samples in the speech sample set include synthetic speech samples, which are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers. The server extracts speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample, fuses initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other, obtains target speech features, and obtains a speech feature set based on each target speech feature. The server inputs speech features in the speech feature set into an initial speech conversion model to obtain predicted speech data, adjusts model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, until a first convergence condition is met, and obtains a target speech conversion model, wherein the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model matches the speech timbre corresponding to the target object identifier.

[0086] The server obtains the speech features to be converted and the target object identifier, inputs the speech features to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data, the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other.

[0087] The server obtains multiple training voice feature pairs locally, and determines a target voice feature pair from each training voice feature pair, wherein the voice contents corresponding to the first training voice feature and the second training voice feature belonging to the same training voice feature pair match each other, and the corresponding voice timbres are different. The server inputs the first training voice feature in the target voice feature pair into the first initial voice conversion model to obtain first intermediate voice data and first predicted voice data, and inputs the second training voice feature in the target voice feature pair into the second initial voice conversion model to obtain second intermediate voice data, wherein the first predicted voice data is obtained based on the first intermediate voice data. The server uses the voice data corresponding to the target object identifier and whose voice content matches the voice content corresponding to the target voice feature pair as the target voice data. The server generates a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, generates a second loss based on the difference between the first predicted speech data and the target speech data, adjusts the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss, obtains the first intermediate speech conversion model and the second intermediate speech conversion model, takes the first intermediate speech conversion model as the first initial speech conversion model, takes the second intermediate speech conversion model as the second initial speech conversion model, takes the next training speech feature pair as the target speech feature pair, returns to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, and executes until the target convergence condition is met, and obtains the first target speech conversion model and the second target speech conversion model. The speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model both match the speech timbre corresponding to the target object identifier.

[0088] The server obtains the speech feature to be converted and the target object identifier, and inputs the speech feature to be converted into the target speech conversion model corresponding to the target object identifier to obtain the converted speech data. The speech content corresponding to the converted speech data matches the speech content corresponding to the speech feature to be converted, the speech timbre corresponding to the converted speech data matches the speech timbre corresponding to the target object identifier, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model.

[0089] The terminal and the server can also be used together to execute the speech conversion model training method and the speech conversion method provided in the embodiments of the present application.

[0090] For example, the server obtains a speech sample set from the terminal, extracts speech features of the training speech samples, obtains initial speech features corresponding to each training speech sample, fuses initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other, obtains target speech features, and obtains a speech feature set based on each target speech feature. The server inputs the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and adjusts the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met, thereby obtaining a target speech conversion model.

[0091] The server obtains the speech feature to be converted and the target object identifier from the terminal, and inputs the speech feature to be converted into the target speech conversion model corresponding to the target object identifier to obtain the converted speech data. The server can send the converted speech data to the terminal, and the terminal plays the converted speech data.

[0092] The server obtains multiple training speech feature pairs from the terminal, inputs the first training speech feature in the target speech feature pair into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and inputs the second training speech feature in the target speech feature pair into the second initial speech conversion model to obtain the second intermediate speech data. The server uses the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair as the target speech data, generates a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, generates a second loss based on the difference between the first predicted speech data and the target speech data, adjusts the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss, obtains the first intermediate speech conversion model and the second intermediate speech conversion model, uses the first intermediate speech conversion model as the first initial speech conversion model, uses the second intermediate speech conversion model as the second initial speech conversion model, uses the next training speech feature pair as the target speech feature pair, and returns to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model until the target convergence condition is met, and obtains the first target speech conversion model and the second target speech conversion model.

[0093] The server obtains the speech feature to be converted and the target object identifier from the terminal, and inputs the speech feature to be converted into the target speech conversion model corresponding to the target object identifier to obtain the converted speech data, where the target speech conversion model is the first target speech conversion model or the second target speech conversion model. The server can send the converted speech data to the terminal, and the terminal plays the converted speech data.

[0094] In one embodiment, Figure 2As shown, a speech conversion model training method is provided, and the method is applied to a computer device as an example for explanation. It can be understood that the computer device can be Figure 1 The terminal 102 in the embodiment may also be the server 104. The speech conversion model training method comprises the following steps:

[0095] Step S202, obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers.

[0096] The speech sample set is a set of multiple training speech samples. The training speech samples refer to speech samples used to generate input data for the speech conversion model during training. The speech samples refer to samples composed of speech. For example, a voice message sent in an application can be used as a speech sample; the audio in a video can be used as a speech sample; and so on.

[0097] The training object identifier is an object identifier corresponding to the training object. The object identifier is an identifier used to uniquely identify the object, and specifically may include a character string of at least one of letters, numbers, and symbols. The training speech sample corresponding to the training object identifier refers to a speech sample whose speech timbre matches the speech timbre corresponding to the training object identifier.

[0098] The training speech samples in the speech sample set include synthetic speech samples. Synthesized speech samples are pseudo speech samples, which are synthesized by technical means, and are not real speech collected by speech collection equipment. Synthesized speech samples are obtained by synthesizing speech samples by combining the target speech content features and the speech timbre features corresponding to the training object identifier. The target speech content features can be randomly selected speech content features or any speech content features. The speech content features are used to characterize the speech content and content information of the speech. The speech content is used to distinguish speech with different semantics. The speech timbre features are used to characterize the speech timbre and timbre information of the speech. The speech timbre is used to distinguish the speech of different objects. Speech sample synthesis is used to synthesize the speech content features and the speech timbre features to generate speech samples. It can be understood that by synthesizing the same speech content features and the speech timbre features corresponding to different training object identifiers, different synthetic speech samples can be obtained, and the speech contents corresponding to these synthetic speech samples match each other, that is, the semantics expressed by these synthetic speech samples are the same. Speech sample synthesis can be performed through a model, or through a custom formula or algorithm.

[0099] In one embodiment, the speech content feature can be obtained by extracting the content feature of the real speech. For example, the real speech can be input into a speech content feature extraction model, and the speech content feature extraction model outputs the speech content feature. The real speech can also be input into a speech content recognition model, and the intermediate processing result of the speech content recognition model is obtained as the speech content feature. The speech content recognition model is used to convert the speech into text. In one embodiment, the speech timbre feature corresponding to the training object identifier can be obtained by extracting the timbre feature of the real speech corresponding to the training object identifier. For example, the real speech corresponding to the training object identifier can be input into a speech timbre feature extraction model, and the speech timbre feature extraction model outputs the speech timbre feature corresponding to the training object identifier. The real speech can also be input into a speech object recognition model, and the intermediate processing result of the speech object recognition model is obtained as the speech timbre feature. The speech object recognition model is used to identify the object to which the speech timbre belongs.

[0100] Specifically, the computer device can obtain a speech sample set locally or on other devices, generate a training set for the speech conversion model based on the speech sample set, and perform model training on the speech conversion model to be trained based on the training set to obtain a trained speech conversion model.

[0101] In one embodiment, the training speech samples may only include synthesized speech samples. In one embodiment, the speech contents corresponding to the synthesized speech samples in the speech sample set all match each other, that is, the speech sample set is a parallel data set.

[0102] In one embodiment, the training speech samples may also include real speech samples, which are samples composed of real speech. In one embodiment, the speech sample set may include at least one group of training speech samples with matching speech content. Speech content matching refers to the same semantics of expression. Speech content matching may refer to the complete consistency of speech content. If the speech content is completely consistent, the semantics of expression are obviously the same. Speech content matching may also refer to the speech content not being completely consistent but the semantics of expression being the same. For example, speech samples with content similarity greater than a preset similarity may be determined as speech samples with matching speech content. A group of training speech samples with matching speech content may include at least one of a synthetic speech sample and a real speech sample. A group of training speech samples with matching speech content may include at least two training speech samples corresponding to training object identifiers. If the speech sample set includes at least two groups of training speech samples with matching speech content, it indicates that the speech sample set is a non-parallel data set.

[0103] Step S204: extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample.

[0104] The initial speech features refer to the speech features extracted from the training speech samples. The initial speech features can be used to characterize the speech content and speech timbre.

[0105] Specifically, after the computer device obtains the speech sample set, it can perform feature extraction on the speech sample set to obtain initial speech features corresponding to each training speech sample.

[0106] In one embodiment, the computer device can input the training speech sample into the speech feature extraction model to obtain the initial speech feature corresponding to the training speech sample. It can be understood that the training speech sample has corresponding speech content, and the initial speech feature corresponding to the training speech sample obviously also has corresponding speech content.

[0107] Step S206, fusing initial speech features that belong to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features.

[0108] Among them, the target speech feature is the speech feature obtained by fusing the initial speech feature.

[0109] Specifically, since the training object identifiers are limited, the speech timbre corresponding to the initial speech features is limited. In order to generate speech features with more timbre, the computer device can obtain initial speech features that belong to different object identifiers but have matching speech contents from each initial speech feature, and fuse the initial speech features that belong to different training object identifiers and have matching corresponding speech contents to obtain the target speech features. Because the target speech features are obtained by fusing initial speech features with matching speech contents, the speech contents of the fused target speech features and the initial speech features used for fusion are also matched. Because the target speech features are obtained by fusing initial speech features belonging to different training object identifiers, the speech timbre of the fused target speech features and the initial speech features used for fusion is different.

[0110] It is understandable that the computer device can obtain multiple target speech features through multiple fusions. In each fusion, at least two initial speech features can be fused to obtain a target speech feature.

[0111] In one embodiment, the training speech samples in the speech sample set are synthesized speech samples, and each synthesized speech sample can be synthesized by synthesizing speech samples with the same speech content feature and different speech timbre features, so the speech contents corresponding to each synthesized speech sample match each other. Furthermore, when fusing the initial speech features, the initial speech features corresponding to different synthesized speech samples can be randomly obtained for fusion, and multiple target speech features can be quickly obtained through multiple fusions.

[0112] Step S208: obtaining a speech feature set based on each target speech feature.

[0113] The speech feature set refers to a set consisting of multiple speech features.

[0114] Specifically, after obtaining each target speech feature through fusion, the computer device can combine each target speech feature into a speech feature set. The speech feature set is used as a training set for the speech conversion model to be trained.

[0115] In one embodiment, the computer device may also obtain a speech feature set based on each initial speech feature and each target speech feature. In this way, the speech feature set composed of the initial speech feature and the target speech feature may include data of more timbres, which helps to improve the training quality of subsequent models, allowing the model to learn more conversions between timbres, and further reducing the risk of overfitting the model to a specific timbre.

[0116] In one embodiment, the voice feature set may include at least one group of voice features that match the voice content.

[0117] Step S210, input the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and adjust the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

[0118] The speech conversion model is a machine learning model used to convert the speech timbre corresponding to the input data. The input data of the speech conversion model is speech features, and the output data is speech data. The output data can be speech directly or the spectrum data of speech, and the spectrum data is subsequently converted into speech. The initial speech conversion model refers to the speech conversion model to be trained. The target speech conversion model refers to the speech conversion model that has been trained.

[0119] Predicted speech data refers to the output data and predicted data of the initial speech conversion model. Target speech data refers to speech data with speech timbre corresponding to the target object identifier. The speech contents corresponding to the predicted speech data and the target speech data match each other, that is, the semantics corresponding to the predicted speech data and the target speech data are the same. The target speech data corresponding to the target object identifier is the expected output data of the speech conversion model. The goal of model training is to make the expected speech data and the target speech data closer and closer, so that the trained target speech conversion model can convert input data of any timbre into speech data of the target timbre without changing the semantics corresponding to the input data.

[0120] The target object identifier refers to the object identifier corresponding to the target object. The target object can be any object in the training object, or can be other objects outside the training object. In one embodiment, the target object can be a virtual character, for example, the target object can be an animation character, a game character, etc.

[0121] Specifically, the computer device may input the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and the computer device calculates loss information based on the difference between the predicted speech data and the target object identifier, for example, the difference, mean square error, root mean square error, etc. between the predicted speech data and the target object identifier are calculated as loss information. The computer device performs back propagation based on the loss information to adjust the model parameters of the initial speech conversion model until the first convergence condition is met, thereby obtaining the target speech conversion model.

[0122] Among them, the first convergence condition can be at least one of the conditions such as the loss information is less than a first preset threshold, the number of model iterations is greater than a first preset number, etc.

[0123] In one embodiment, the computer device can determine a reference voice feature from a voice feature set, input the reference voice feature into an initial voice conversion model to obtain predicted voice data, obtain voice data corresponding to a target object identifier and whose voice content matches the voice content corresponding to the reference voice feature as target voice data, adjust the model parameters of the initial voice conversion model based on the difference between the predicted voice data and the target voice data, obtain an intermediate voice conversion model, use the next voice feature in the voice feature set as a new reference voice feature, use the intermediate voice conversion model as a new initial voice conversion model, return to the step of inputting the reference voice feature into the initial voice conversion model to obtain predicted voice data, perform model iterative training, and continuously adjust the model parameters until the first convergence condition is met to obtain the target voice conversion model. For example, if in a certain round of training, the loss information calculated based on the difference between the predicted voice data and the target voice data is less than a preset threshold, stop adjusting the model parameters, and use the latest adjusted voice conversion model as the target voice conversion model. If the number of model iterations after a certain round of training is greater than a preset number, the latest adjusted voice conversion model is used as the target voice conversion model. Wherein, the reference voice feature determined in each round of training may include at least one voice feature in the voice feature set.

[0124] In one embodiment, there may be at least one initial speech model. In one embodiment, the computer device may generate loss information based on a loss function, and the loss function may be a loss function commonly used in model training or a custom loss function.

[0125] In the above-mentioned speech conversion model training method, a speech sample set is obtained, the speech sample set includes training speech samples corresponding to multiple training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, the synthetic speech samples are synthesized by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifier, the speech features of the training speech samples are extracted to obtain the initial speech features corresponding to each training speech sample, the initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other are integrated to obtain the target speech features, a speech feature set is obtained based on each target speech feature, the speech features in the speech feature set are input into the initial speech conversion model to obtain predicted speech data, based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, the model parameters of the initial speech conversion model are adjusted until the first convergence condition is met to obtain the target speech conversion model, the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model matches the speech timbre corresponding to the target object identifier. In this way, by fusing initial speech features that belong to different training object identifiers and whose corresponding speech contents match each other, timbre amplification can be achieved, and target speech features whose speech contents match the initial speech features and have new timbre can be obtained. In addition, the initial speech features include speech features extracted from synthetic speech samples. Synthetic speech samples are pseudo samples. Pseudo samples are not real speech samples. Pseudo samples help reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features, so that target speech features corresponding to various timbres can be obtained through timbre amplification. Using a speech feature set composed of speech features corresponding to various timbres as a training set for a speech conversion model can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of the model overfitting to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0126] In one embodiment, the synthesized speech sample is obtained by inputting the target speech content feature and the speech timbre feature corresponding to the training object identifier into the target speech sample synthesis model. The training process of the target speech sample synthesis model includes the following steps:

[0127] The invention relates to a method for synthesizing a target speech sample and a target object. The method comprises the following steps: obtaining original speech samples and speech timbre features corresponding to a plurality of candidate object identifiers, and determining a reference object identifier from the plurality of candidate object identifiers; obtaining speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as reference speech content features; inputting the speech timbre features and reference speech content features corresponding to the reference object identifier into an initial speech sample synthesis model to obtain a predicted speech sample corresponding to the reference object identifier; adjusting model parameters of the initial speech sample synthesis model based on the original speech sample and the predicted speech sample corresponding to the reference object identifier to obtain an intermediate speech sample synthesis model; taking the next candidate object identifier as the reference object identifier, taking the intermediate speech sample synthesis model as the initial speech sample synthesis model, and returning to the step of obtaining speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as reference speech content features, until a second convergence condition is met, and obtaining a target speech sample synthesis model.

[0128] The target speech sample synthesis model refers to the trained speech sample synthesis model. The initial speech sample synthesis model refers to the speech sample synthesis model to be trained. The input data of the speech sample synthesis model are speech content features and speech timbre features, and the output data of the speech sample synthesis model are synthesized speech samples.

[0129] The original speech sample corresponding to the candidate object identifier refers to the real speech sample corresponding to the candidate object identifier. The candidate object identifier refers to the object identifier corresponding to the candidate object. The candidate object can be a training object or an object other than the training object. The predicted speech sample refers to the output data and predicted data of the initial speech sample synthesis model.

[0130] Specifically, the computer device can synthesize the speech sample through the target speech sample synthesis model. The computer device can input any speech content features and speech timbre features corresponding to the training object identifier into the target speech sample synthesis model, and the target speech sample synthesis model outputs a synthesized speech sample with speech content and speech timbre corresponding to the input data.

[0131] When training the speech sample synthesis model, the computer device can obtain speech content features that match the speech content of the original speech sample corresponding to the candidate object identifier, obtain speech timbre features corresponding to the candidate object identifier, and perform model training on the initial speech sample synthesis model based on the acquired speech content features, speech timbre features, and the original speech sample corresponding to the candidate object identifier to obtain a target speech sample synthesis model. The speech content features and speech timbre features are used as input data of the speech sample synthesis model, and the original speech sample is used as the expected output data of the speech sample synthesis model. The training goal of the model is to make the actual output data of the model and the expected output data as close as possible, so that the model can output pseudo-speech samples close to real speech samples to achieve a fake-real effect.

[0132] The computer device can obtain the original speech samples and speech timbre features corresponding to multiple candidate object identifiers, and randomly select an object identifier from the multiple candidate object identifiers as a reference object identifier. Furthermore, the computer device obtains the speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as the reference speech content features, and the reference speech content features are used as a kind of input data of the model. The computer device inputs the speech timbre features and the reference speech content features corresponding to the reference object identifier into the initial speech sample synthesis model, and through the data processing of the model, the model outputs the predicted speech sample corresponding to the reference object identifier. Furthermore, the computer device performs back propagation based on the difference between the predicted speech sample corresponding to the reference object identifier and the original speech sample, and adjusts the model parameters of the initial speech sample synthesis model, thereby obtaining an intermediate speech sample synthesis model. The computer device obtains the next candidate object identifier as a new reference object identifier, uses the intermediate speech sample synthesis model as a new initial speech sample synthesis model, and returns to the step of obtaining the speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as the reference speech content features, so as to perform model iterative training, and continuously adjusts the model parameters through multiple model iterative training until the second convergence condition is met, and the target speech sample synthesis model is obtained.

[0133] Among them, the second convergence condition can be at least one of the conditions such as the loss information is less than a second preset threshold, the number of model iterations is greater than a second preset number, etc.

[0134] It can be understood that the original speech sample and the reference speech content features corresponding to the same reference object identifier correspond to mutually matching speech contents, and the speech content features of the original speech samples corresponding to different reference object identifiers may be the same or different. In addition, each determined reference object identifier may include at least one candidate object identifier.

[0135] In one embodiment, the speech content of the original speech samples corresponding to different candidate object identifiers may be different, that is, the original sample set composed of the original speech samples corresponding to the candidate object identifiers may be a non-parallel data set. In this way, the speech sample synthesis model is trained based on the non-parallel data set, and a parallel data set can be generated based on the trained speech sample synthesis model, and the parallel data set includes multiple synthesized speech samples with matching speech content. Compared with collecting real speech samples to form a parallel data set, a parallel data set can be quickly generated based on the speech sample synthesis model.

[0136] In one embodiment, the reference speech content feature and the target speech content feature may be the same.

[0137] In the above embodiment, the synthesized speech sample is obtained by inputting the target speech content feature and the speech timbre feature corresponding to the training object identifier into the target speech sample synthesis model, and the target speech sample synthesis model can be used to quickly generate the synthesized speech sample. The training process of the target speech sample synthesis model includes the following steps: obtaining the original speech samples and speech timbre features corresponding to multiple candidate object identifiers, and determining the reference object identifier from the multiple candidate object identifiers; obtaining the speech content feature that matches the speech content of the original speech sample corresponding to the reference object identifier as the reference speech content feature; inputting the speech timbre feature and the reference speech content feature corresponding to the reference object identifier into the initial speech sample synthesis model to obtain the predicted speech sample corresponding to the reference object identifier; adjusting the model parameters of the initial speech sample synthesis model based on the original speech sample and the predicted speech sample corresponding to the reference object identifier to obtain the intermediate speech sample synthesis model; taking the next candidate object identifier as the reference object identifier, taking the intermediate speech sample synthesis model as the initial speech sample synthesis model, and returning to the step of obtaining the speech content feature that matches the speech content of the original speech sample corresponding to the reference object identifier as the reference speech content feature, until the second convergence condition is met, and the target speech sample synthesis model is obtained. In this way, based on the reference speech content features, the original speech samples corresponding to the reference object identifiers, and the speech timbre features, the initial speech sample synthesis model can be supervised trained to quickly obtain the target speech sample synthesis model.

[0138] In a specific embodiment, Figure 3It is the training process and application process of the pseudo-sample synthesis model. The pseudo-sample synthesis model can also be called a speech sample synthesis model. Among them, the source speaker data set includes the speech of multiple source speakers, which is used to train the pseudo-sample synthesis model. The source speaker data set may not include the speech of the target speaker. The target speaker data set includes the speech of the target speaker, which is used to generate the pseudo-sample data set. The additional speaker data set includes the speech of several speakers other than the target speaker, which is used to expand the pseudo-sample data set. During speech conversion, the input speech comes from the source speaker, and the output speech is expected to have the same timbre as the target speaker.

[0139] In the training phase of the pseudo-sample synthesis model, the speech in the source speaker data set is input into the speaker feature extraction model to obtain the speaker features of the source speaker (also known as speaker timbre features), and the pseudo-sample synthesis model to be trained is trained based on the speaker features and speech content features of the source speaker to obtain a trained pseudo-sample synthesis model. Multiple source speakers can be divided into multiple groups of source speakers, and the speaker features and speech content features of any group of source speakers are input into the pseudo-sample synthesis model to be trained to obtain the predicted speech corresponding to each source speaker in the current group. The pseudo-sample synthesis model is adjusted based on the predicted speech and real speech corresponding to each source speaker in the current group to obtain a new pseudo-sample synthesis model, and the speaker features and speech content features of the next group of source speakers are input into the new pseudo-sample synthesis model for iterative training until the convergence condition is met to obtain a trained pseudo-sample synthesis model.

[0140] In the application stage of the pseudo sample synthesis model, the speech in the target speaker data set and the additional speaker data set is input into the speaker feature extraction model to obtain the speaker features of the target speaker and the speaker features of the additional speaker. The speech content features and the speaker features of the target speaker are input into the trained pseudo sample synthesis model to obtain a pseudo speech with the timbre of the target speaker (also referred to as a synthesized speech sample or a pseudo sample). The speech content features and the speaker features of the additional speaker are input into the trained pseudo sample synthesis model to obtain a pseudo speech with the timbre of the additional speaker. A pseudo sample data set is generated based on the pseudo speech with the timbre of the target speaker and the pseudo speech with the timbre of the additional speaker.

[0141] In one embodiment, step S206 includes:

[0142] An initial speech feature corresponding to a first training object identifier is obtained as a first initial speech feature, and an initial speech feature corresponding to a second training object identifier is obtained as a second initial speech feature, wherein the speech contents corresponding to the first initial speech feature and the second initial speech feature match each other; a first weight corresponding to the first initial speech feature and a second weight corresponding to the second initial speech feature are obtained; the sum of the first weight and the second weight is one; based on the first weight and the second weight, the first initial speech feature and the second initial speech feature are weightedly fused to obtain a target speech feature.

[0143] Specifically, when generating the target speech feature, the computer device may obtain two initial speech features that belong to different training object identifiers and whose corresponding speech contents match each other, and fuse the two initial speech features to obtain the target speech feature. The computer device may use the initial speech feature corresponding to the first training object identifier as the first initial speech feature, and the initial speech feature corresponding to the second training object identifier as the second initial speech feature. The speech contents corresponding to the first initial speech feature and the second initial speech feature match each other, that is, the semantics corresponding to the first initial speech feature and the second initial speech feature are the same. When fusing, the computer device may perform weighted fusion of the two initial speech features to obtain the target speech feature. The computer device obtains the first weight corresponding to the first initial speech feature and the second weight corresponding to the second initial speech feature, and performs weighted fusion of the first initial speech feature and the second initial speech feature based on the first weight and the second weight to obtain the target speech feature.

[0144] The sum of the first weight and the second weight is one, and the sum of the first weight and the second weight is one, which can ensure that the target speech feature will not change suddenly.

[0145] In one embodiment, the first weight and the second weight may be preset fixed values, or the first weight and the second weight may be randomly generated random values.

[0146] In the above embodiment, the initial speech features corresponding to the first training object identifier and the second training object identifier and having matching speech contents are fused to obtain target speech features whose speech contents still match but whose timbre is different. Based on the first weight and the second weight whose sum is one, the first initial speech feature and the second initial speech feature are fused to quickly obtain accurate target speech features.

[0147] In one embodiment, the first initial speech feature and the second initial speech feature include speech sub-features corresponding to a target number of speech frames arranged in an orderly manner. Based on the first weight and the second weight, the first initial speech feature and the second initial speech feature are weightedly fused to obtain the target speech feature, including:

[0148] From the first initial speech feature and the second initial speech feature, based on the first weight and the second weight, the speech sub-features corresponding to the speech frames with the same order are weightedly fused to obtain a target number of target sub-features arranged in an ordered manner; the speech contents corresponding to the speech sub-features corresponding to the speech frames with the same order are matched with each other; based on the target number of target sub-features arranged in an ordered manner, the target speech feature is obtained.

[0149] The first initial speech feature and the second initial speech feature include speech sub-features corresponding to a target number of speech frames arranged in an orderly manner. The speech sub-features corresponding to each speech frame can be sorted in the time sequence of the speech frames. The speech contents corresponding to the speech sub-features corresponding to the speech frames with the same sorting match each other, that is, the first initial speech feature and the second initial speech feature are strictly aligned frame by frame, and the speech contents corresponding to each frame match each other.

[0150] Specifically, when performing weighted fusion, the computer device can perform weighted fusion of the speech sub-features corresponding to the speech frames with the same order from the first initial speech feature and the second initial speech feature based on the first weight and the second weight to obtain the target sub-feature. Since the initial speech feature includes the speech sub-features corresponding to the target number of speech frames arranged in order, the target number of target sub-features arranged in order can be finally obtained. Since the first initial speech feature and the second initial speech feature are strictly aligned frame by frame, the speech content between the target sub-feature obtained by fusion based on the first weight and the second weight with the sum of the weights being one and the initial sub-feature used for fusion is strictly matched. Finally, the computer device combines the target number of target sub-features arranged in order to obtain the target speech feature. It can be understood that the target speech feature not only matches the speech content between the first initial speech feature and the second initial speech feature, but also is aligned frame by frame and strictly matched frame by frame. The target speech feature has the same semantic information but different timbre information between the corresponding frames of the first initial speech feature and the second initial speech feature.

[0151] In one embodiment, the first initial speech feature and the second initial speech feature may be initial speech features corresponding to different synthetic speech samples generated based on the same speech content feature. The synthetic speech samples generated based on the same speech content feature are completely aligned in the time dimension, and accordingly, the first initial speech feature and the second initial speech feature generated based on the synthetic speech sample are also strictly aligned frame by frame in the time dimension, and the speech content corresponding to each frame is the same. Furthermore, by fusing the first initial speech feature and the second initial speech feature based on the first weight and the second weight whose sum is one, the target speech feature with new timbre information can be synthesized without changing the speech content information.

[0152] In the above embodiment, the first initial speech feature and the second initial speech feature include speech sub-features corresponding to a target number of speech frames arranged in an orderly manner. From the first initial speech feature and the second initial speech feature, based on the first weight and the second weight, the speech sub-features corresponding to the speech frames with the same order are fused to obtain a target number of target sub-features arranged in an orderly manner. The speech contents corresponding to the speech sub-features corresponding to the speech frames with the same order match each other. Based on the target number of target sub-features arranged in an orderly manner, the target speech feature is obtained. In this way, the corresponding frames of the initial speech features with matching speech contents have matching speech contents but different timbre information. By fusing the speech sub-features of the corresponding frames, the target speech feature with new timbre information can be synthesized without changing the speech content information.

[0153] In a specific embodiment, the target speech feature can be calculated by the following formula:

[0154] PPG aug =λPPG s0 +(1-λ)PPG s1

[0155] Among them, PPG aug Indicates the target speech feature. PPG s0 Represents the first initial speech feature, PPG s1 PPG represents the second initial speech feature. s0 and PPG s1 Corresponding to different training object identifiers, the corresponding speech contents match each other. λ represents the first weight, and (1-λ) represents the second weight.

[0156] In one embodiment, λ can be randomly generated. λ can be made to obey a Beta distribution (also called Beta distribution) with a parameter α, that is, λ~Beta(α,α). α is used to control the shape of the Beta distribution.

[0157] In a specific embodiment, Figure 4 The specific process of timbre amplification is to synthesize pseudo samples based on the existing non-parallel data set, and perform timbre amplification on the pseudo samples to obtain a timbre-amplified data set.

[0158] 1. Training pseudo sample synthesis model

[0159] The pseudo sample synthesis model is trained based on a non-parallel dataset, which contains speech samples from different speakers with different speech contents.

[0160] 2. Synthesize parallel pseudo sample dataset

[0161] The trained pseudo sample synthesis model is used to synthesize a pseudo sample dataset with parallel content, wherein the parallel pseudo sample dataset contains pseudo samples of different speakers with the same speech content.

[0162] 3. Extract PPG features of pseudo samples (also called speech features)

[0163] The PPG features of the pseudo samples are extracted using the pre-trained PPG extraction model. The phonetic posterior gram (PPG) is a feature extracted based on speech using a pre-trained speech recognition model. The phonetic posterior gram has information in two dimensions (time dimension and feature dimension). For example, the PPG feature is represented by a matrix of [425, 256]. The time dimension is 425, which means that the speech is divided into 425 frames when using the PPG feature. The feature dimension is 256, which means that the feature corresponding to each frame consists of 256 data.

[0164] 4. PPG features of sampling alignment

[0165] Randomly select two speakers (including the target speaker) and record them as s0 and s1. From the PPG features corresponding to the two speakers, randomly select a pair of PPG features with the same speech content and record them as PPG s0 and PPG s1 .

[0166] 5. Randomly assign and sum the sampled PPG features

[0167] Calculate the weight coefficient λ, and calculate the PPG based on the weight coefficient λ. s0 and PPG s1 Perform weighted summation, and the calculation formula is as follows:

[0168] PPG aug =λPPG s0 +(1-λ)PPG s1

[0169] 6. Generate timbre augmentation dataset

[0170] Each PPG aug Composed of timbre augmentation dataset.

[0171] In this embodiment, the PPG feature has a frame-by-frame correspondence with the corresponding speech. When a parallel pseudo sample data set is synthesized based on the speech content of the source speaker, the speech with different timbres and the same speech content is completely aligned in the time dimension. Similarly, the PPG feature is also strictly aligned frame by frame in the time dimension, and the speech content corresponding to each frame is the same. Therefore, the PPG corresponding frames with the same content have the same speech content but different timbre information. The timbre amplification method can synthesize PPG features with new timbre information without changing the speech content information.

[0172] In one embodiment, Figure 5 As shown, step S210 includes:

[0173] Step S502, determine multiple training voice feature pairs from the voice feature set, and determine a target voice feature pair from each training voice feature pair; the voice contents corresponding to the first training voice feature and the second training voice feature belonging to the same training voice feature pair match each other, and the corresponding voice timbres are different.

[0174] The training speech feature pair includes a pair of training speech features, and the training speech features are speech features in the speech feature set. In addition, the speech contents corresponding to the training speech features in the training speech feature pair match each other, and the corresponding speech timbres are different. The target speech feature pair is a training speech feature pair randomly selected from each training speech feature pair.

[0175] Specifically, in addition to training an initial speech conversion model based on the speech feature set, in order to improve training efficiency and training quality, the computer device can also synchronously train and jointly train two initial speech conversion models based on the speech feature set, and obtain two target speech conversion models through one-time training.

[0176] In order to synchronously train the two initial speech conversion models, the computer device needs to generate training data of the models in pairs. Therefore, the computer device can obtain two training speech features with matching speech contents and different speech timbres from the speech feature set to form a training speech feature pair. The computer device can determine multiple training speech feature pairs from the speech feature set. One training speech feature in the training speech feature pair is used to input the first initial speech conversion model, and the other training speech feature is used to input the second initial speech conversion model. It can be understood that when obtaining training speech features from the speech feature set to generate training speech feature pairs, data can be obtained in a way with replacement or without replacement.

[0177] During training, the computer device can iteratively train the two initial speech conversion models. In each round of training, one training speech feature in the target speech feature pair of this round is input into the first initial speech conversion model, and the other training speech feature is input into the second initial speech conversion model. Loss information is generated based on the intermediate processing data and final processing data of the two initial speech conversion models, and the model parameters of the two initial speech conversion models are adjusted based on the loss information. In the next round of training, a new training speech feature pair is obtained as the target speech feature pair, one training speech feature in the new target speech feature pair is input into the first initial speech conversion model whose model parameters have been adjusted in the previous round of training, and the other training speech feature is input into the second initial speech conversion model whose model parameters have been adjusted in the previous round of training. Loss information is generated based on the intermediate processing data and final processing data of the two initial speech conversion models, and the model parameters of the two initial speech conversion models are adjusted based on the loss information. The training is iterated in this way until the convergence condition is met and the two target speech conversion models are obtained.

[0178] Step S504, input the first training speech feature in the target speech feature pair into the first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into the second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data.

[0179] The first intermediate speech data refers to the intermediate processing result of the first initial speech conversion model, and the first predicted speech data refers to the final processing result and the final output result of the first initial speech conversion model. The first predicted speech data is obtained based on the first intermediate speech data. Correspondingly, the second intermediate speech data refers to the intermediate processing result of the second initial speech conversion model.

[0180] Specifically, the computer device may input the first training voice feature in the target voice feature pair into the first initial voice conversion model, obtain the intermediate processing result of the first initial voice conversion model as the first intermediate voice data, and obtain the final processing result of the first initial voice conversion model as the first predicted voice data. The computer device may input the second training voice feature in the target voice feature pair into the second initial voice conversion model, and obtain the intermediate processing result of the second initial voice conversion model as the second intermediate voice data.

[0181] In one embodiment, the initial speech conversion model may include a first processing layer and a second processing layer. The first processing layer is used to obtain input training speech features, convert the training speech features into intermediate speech data, and input the intermediate speech data into the second processing layer. The second processing layer is used to convert the intermediate speech data into predicted speech data and output the predicted speech data.

[0182] Step S506: The speech data corresponding to the target object identifier and having speech content matching the speech content corresponding to the target speech feature pair is taken as the target speech data.

[0183] Specifically, the computer device can obtain speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair as target speech data, and use the target speech data as the expected final processing result of the initial speech conversion model.

[0184] Step S508: Generate a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, and generate a second loss based on the difference between the first predicted speech data and the target speech data.

[0185] Specifically, the computer device can calculate the first loss based on the difference between the first intermediate voice data and the second intermediate voice data, and calculate the second loss based on the difference between the first predicted voice data and the target voice data. The first loss is used to improve the model's processing capability for input data of various timbres, so that the model can flexibly convert various timbres into target timbres, and the second loss is used to improve the model's processing capability for converting input timbre into target timbre, so that the model can convert input timbre into target timbre.

[0186] In one embodiment, the computer device can calculate at least one error such as the difference, mean square error, root mean square error, etc. between the first intermediate speech data and the second intermediate speech data to obtain a first loss, and calculate at least one error such as the difference, mean square error, root mean square error, etc. between the first predicted speech data and the target speech data to obtain a second loss.

[0187] Step S510: Based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model to obtain the first intermediate speech conversion model and the second intermediate speech conversion model.

[0188] Specifically, the computer device can perform backpropagation updates based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model, use the adjusted first initial speech conversion model as the first intermediate speech conversion model, and use the adjusted second initial speech model as the second intermediate speech conversion model.

[0189] In one embodiment, the computer device may generate a target loss based on the first loss and the second loss, and the adjustment ranges of the first initial speech conversion model and the second initial speech model based on the target loss may be different. In one embodiment, the computer device may first adjust the first initial speech conversion model based on the target loss, and then adjust the second initial speech model based on the adjusted first initial speech conversion model.

[0190] Step S512, using the first intermediate speech conversion model as the first initial speech conversion model, using the second intermediate speech conversion model as the second initial speech conversion model, using the next training speech feature pair as the target speech feature pair, returning to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, until the first convergence condition is met, and obtaining the first target speech conversion model and the second target speech conversion model.

[0191] Specifically, after obtaining the first intermediate voice conversion model and the second intermediate voice conversion model, the computer device can use the first intermediate voice conversion model as the first initial voice conversion model, the second intermediate voice conversion model as the second initial voice conversion model, and the next training voice feature pair as the target voice feature pair, and return to the step of inputting the first training voice feature in the target voice feature pair into the first initial voice conversion model to obtain a new first intermediate voice conversion model and a second intermediate voice conversion model, and then use the new first intermediate voice conversion model and the second intermediate voice conversion model as the new first initial voice conversion model and the second initial voice conversion model, obtain a new target voice feature pair and input it into the new first initial voice conversion model and the second initial voice conversion model, and so on, and iterate the training until the first convergence condition is met to obtain the first target voice conversion model and the second target voice conversion model. Both the first target voice conversion model and the second target voice conversion model can be used to convert input data corresponding to any timbre into voice data corresponding to the target timbre.

[0192] In one embodiment, in each round of training, there may be at least one target speech feature pair. In each round of training, the computer device may obtain the first intermediate speech data, the second intermediate speech data, the first predicted speech data, and the target speech data corresponding to the same target speech feature pair. The computer device may calculate the first sub-loss based on the first intermediate speech data and the second intermediate speech data corresponding to the same target speech feature pair, obtain the first sub-loss corresponding to each target speech feature pair, and obtain the first loss based on each first sub-loss. The computer device may calculate the second sub-loss based on the first predicted speech data and the target speech data corresponding to the same target speech feature pair, obtain the second sub-loss corresponding to each target speech feature pair, and obtain the second loss based on each second sub-loss.

[0193] In the above embodiment, multiple training speech feature pairs are determined from a speech feature set, and the first initial speech conversion model and the second initial speech conversion model are jointly trained based on the training speech feature pairs, so that the first target speech conversion model and the second target speech conversion model are obtained at one time, thereby improving the model training efficiency. During training, a target speech feature pair is determined from each training speech feature pair, the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data, the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech data, a first loss is generated based on the difference between the first intermediate speech data and the second intermediate speech data, a second loss is generated based on the difference between the first predicted speech data and the target speech data, model parameters of the first initial speech conversion model and the second initial speech model are adjusted based on the first loss and the second loss to obtain the first intermediate speech conversion model and the second intermediate speech conversion model, the first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, the next training speech feature pair is used as the target speech feature pair, and the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to be executed until the first convergence condition is met to obtain the first target speech conversion model and the second target speech conversion model. In this way, the second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model. The first target speech conversion model and the second target speech conversion model obtained by model training based on the first loss and the second loss have higher speech conversion accuracy.

[0194] In one embodiment, step S504 includes:

[0195] The first training speech feature in the target speech feature pair is input into the encoder in the first initial speech conversion model to obtain first intermediate speech data; the first intermediate speech data is input into the decoder in the first initial speech conversion model to obtain first predicted speech data; the second training speech feature in the target speech feature pair is input into the encoder in the second initial speech conversion model to obtain second intermediate speech data.

[0196] The encoder is used to extract useful information from the input features and map the input features to a more abstract semantic space to obtain intermediate features. The decoder is used to parse the intermediate features and complete the reconstruction of the speech data. The first initial speech conversion model includes an encoder and a decoder. The second initial speech conversion model includes an encoder and a decoder.

[0197] Specifically, the computer device may input the first training speech feature in the target speech feature pair into the encoder in the first initial speech conversion model, and through data processing by the encoder, the encoder outputs first intermediate speech data, and the encoder inputs the first intermediate speech data into the decoder in the first initial speech conversion model, and through data processing by the decoder, the decoder outputs first predicted speech data. The computer device may input the second training speech feature in the target speech feature pair into the encoder in the second initial speech conversion model, and through data processing by the encoder, the encoder outputs second intermediate speech data.

[0198] In the above embodiment, the initial speech conversion model includes an encoder and a decoder. The encoder is used to process input speech features to quickly obtain intermediate speech data, and the decoder is used to process the intermediate speech data to quickly obtain output speech data and predicted speech data.

[0199] In one embodiment, step S510 includes:

[0200] Generate a target loss based on the first loss and the second loss; adjust the model parameters of the first initial speech conversion model based on the target loss to obtain a first intermediate speech conversion model; adjust the model parameters corresponding to the second initial speech conversion model based on the model parameters of the first intermediate speech conversion model to obtain a second intermediate speech conversion model.

[0201] Specifically, the computer device can generate a target loss based on the first loss and the second loss, first adjust the first initial speech conversion model based on the target loss, and then adjust the second initial speech conversion model based on the adjusted first initial speech conversion model, thereby obtaining a first intermediate speech conversion model and a second intermediate speech conversion model.

[0202] The computer device may first calculate the target loss based on the first loss and the second loss. For example, the sum of the first loss and the second loss may be calculated as the target loss, or the first loss and the second loss may be weighted and summed to obtain the target loss. Furthermore, the computer device may adjust the model parameters of the first initial speech conversion model by backpropagation based on the target loss, and use the adjusted first initial speech conversion model as the first intermediate speech conversion model. Furthermore, the computer device may adjust the model parameters corresponding to the second initial speech conversion model based on the model parameters of the first intermediate speech conversion model, thereby obtaining the second intermediate speech conversion model.

[0203] In the above embodiment, a target loss is generated based on the first loss and the second loss, a model parameter of the first initial speech conversion model is adjusted based on the target loss to obtain a first intermediate speech conversion model, and a model parameter corresponding to the second initial speech conversion model is adjusted based on the model parameter of the first intermediate speech conversion model to obtain a second intermediate speech conversion model. In this way, the data processing accuracy of the first initial speech conversion model can be improved by first adjusting the first initial speech conversion model, and then the second initial speech conversion model is adjusted based on the adjustment result of the first initial speech conversion model, so that the second initial speech conversion model can learn from and approach the adjusted first initial speech conversion model, thereby improving the data processing accuracy of the second initial speech conversion model.

[0204] In one embodiment, generating a target loss based on the first loss and the second loss includes:

[0205] Get the loss weight corresponding to the first loss; the loss weight increases with the increase of model training rounds; adjust the first loss based on the loss weight to get the update loss; get the target loss based on the second loss and the update loss.

[0206] Specifically, when calculating the target loss, in order to further improve the processing stability of the model for input data of different timbres, the influence of the first loss in adjusting the model parameters can be gradually increased. The computer device can adjust the first loss based on the loss weight corresponding to the first loss, use the adjusted first loss as the update loss, and obtain the target loss based on the second loss and the update loss.

[0207] Among them, the loss weight corresponding to the first loss increases with the increase of model training rounds and the increase of model iterations. With the increase of model training rounds, in order to further improve the stability and accuracy of the model when processing input data of different timbres, the loss weight corresponding to the first loss can be increased, and the influence of the first loss in adjusting model parameters can be increased, thereby improving the generalization ability of the model.

[0208] The model training rounds represent the number of iterative trainings during the model training process. It can be understood that performing steps S504 to S510 once is one round of model training and one iterative training.

[0209] In one embodiment, the loss weight corresponding to the first loss may remain unchanged at first, and after several rounds of model training, the loss weight corresponding to the first loss increases as the number of model training rounds increases. That is, after the number of model training rounds is greater than the preset rounds, the loss weight corresponding to the first loss increases as the number of model training rounds increases. The loss weight corresponding to the first loss remains unchanged at first, which allows the model to converge steadily so that the model has a certain accuracy, and then increases the loss weight corresponding to the first loss, allowing the model to focus on learning feature representations that are not related to the timbre of the speech, thereby enhancing the robustness of the model when facing input data of different timbres. Among them, the preset round refers to a pre-set training round threshold, and the training round threshold can be set according to actual needs.

[0210] In the above embodiment, the loss weight corresponding to the first loss is obtained, and the loss weight increases with the increase of the model training rounds. The first loss is adjusted based on the loss weight to obtain the updated loss; the target loss is obtained based on the second loss and the updated loss. Adjusting the model parameters based on such a target loss can allow the model to focus on learning feature representations that are not related to the timbre of the speech, thereby improving the generalization ability of the model.

[0211] In a specific embodiment, the target loss is calculated as follows:

[0212] L=L m +γL c

[0213] Among them, L represents the target loss, L c represents the first loss, L m represents the second loss, γ represents the loss weight corresponding to the first loss, and γ increases with the increase of training rounds.

[0214] In one embodiment, there are model parameters with a matching relationship between the first intermediate speech conversion model and the second initial speech conversion model. Based on the model parameters of the first intermediate speech conversion model, the model parameters corresponding to the second initial speech conversion model are adjusted to obtain the second intermediate speech conversion model, including:

[0215] The model parameters in the first intermediate speech conversion model and the second initial speech conversion model that have a matching relationship are used as the first model parameters and the second model parameters; the first model parameters and the second model parameters that have a matching relationship are fused to obtain the target model parameters; and the corresponding model parameters in the second initial speech conversion model are replaced based on the target model parameters to obtain the second intermediate speech conversion model.

[0216] There are model parameters with a matching relationship between the first initial speech conversion model and the second initial speech conversion model, and correspondingly, there are model parameters with a matching relationship between the first intermediate speech conversion model and the second initial speech conversion model. The first model parameter is a model parameter in the first intermediate speech conversion model. The second model parameter is a model parameter in the second initial speech conversion model, and there is a matching relationship between the first model parameter and the second model parameter.

[0217] Specifically, when adjusting the model parameters corresponding to the second initial speech conversion model, the computer device may use the model parameters having a matching relationship between the first intermediate speech conversion model and the second initial speech conversion model as the first model parameters and the second model parameters, and fuse the first model parameters and the second model parameters having a matching relationship to obtain the target model parameters. For example, the first model parameters and the second model parameters may be weighted summed to obtain the target model parameters, or the sum of the weighted summation result and the preset value may be used as the target model parameters, etc. Furthermore, the computer device may replace the corresponding model parameters in the second initial speech conversion model based on the target model parameters, thereby obtaining the second intermediate speech conversion model.

[0218] It can be understood that there are multiple model parameters with matching relationships between the first intermediate speech conversion model and the second initial speech conversion model. The computer device can obtain multiple target model parameters and can replace the corresponding model parameters in the second initial speech conversion model based on each target model parameter to obtain the second intermediate speech conversion model.

[0219] In one embodiment, each model parameter of the first initial speech conversion model corresponds to each model parameter of the second initial speech conversion model one by one, and there is a matching relationship between the corresponding model parameters.

[0220] In the above embodiment, the model parameters in the first intermediate speech conversion model and the second initial speech conversion model that have a matching relationship are used as the first model parameters and the second model parameters, the first model parameters and the second model parameters that have a matching relationship are fused to obtain the target model parameters, and the corresponding model parameters in the second initial speech conversion model are replaced based on the target model parameters to obtain the second intermediate speech conversion model. In this way, based on the model parameters of the first intermediate speech conversion model, the model parameters in the second initial speech conversion model that match the model parameters are adjusted, so that the intermediate processing results output by the second speech conversion model can gradually approach the intermediate processing results of the first speech conversion model, so that the intermediate processing results corresponding to the input data of different timbres are similar, that is, the first speech conversion model and the second speech conversion model gradually learn feature representations that are independent of the timbre of the speech.

[0221] In one embodiment, the first initial voice conversion model and the second initial voice conversion model are two models with the same model structure and the same model parameter quantity. The model parameters of the first initial voice conversion model and the model parameters of the second initial voice conversion model correspond one to one. Assume that the first initial voice conversion model is a Teacher model, the second initial voice conversion model is a Student model, and a parameter of the Teacher model is t param , a corresponding parameter s can be found in the same position in the Student model param Assuming the second fusion weight is a, for s param The data update can be expressed as:

[0222] s′ param =a*s param +(1-a)*t param

[0223] Among them, s′ param Indicates the updated and adjusted data. In each update and adjustment, the model parameters in the Student model are updated in sequence using the above method.

[0224] In one embodiment, Figure 6 As shown, a speech conversion method is provided, and the method is applied to a computer device as an example for explanation. It can be understood that the computer device can be Figure 1 The terminal 102 in the embodiment may also be the server 104. The voice conversion method comprises the following steps:

[0225] Step S602: Acquire the speech features to be converted and the target object identifier.

[0226] Among them, the voice features to be converted refer to the voice features whose voice timbre needs to be converted. The voice features to be converted can be voice features obtained by extracting features from voice samples. The voice samples corresponding to the voice features to be converted can be voices collected in real time by a voice acquisition device. For example, when sending a voice message, the user can select a target person to send a voice message with a target timbre corresponding to the target person. The voice message entered by the user in real time and with the user's own timbre can be used as the voice message to be converted, and the voice timbre corresponding to the target person selected by the user can be used as the target timbre. The voice message to be converted can be converted in real time into a target voice message with the target timbre, and the target voice message can be sent. The voice samples corresponding to the voice features to be converted can also be pre-recorded voices, for example, the original timbre corresponding to the audio is converted into the target timbre.

[0227] The target object identifier refers to the object identifier corresponding to the target object. The target object refers to an object having a target timbre. The voice timbre corresponding to the voice feature to be converted needs to be converted to the voice timbre corresponding to the target object. For example, the target person selected by the user can be used as the target object, and the object identifier corresponding to the target person can be used as the target object identifier.

[0228] Specifically, the computer device can obtain the speech features to be converted and the target object identifier locally or from other devices, and then convert the speech timbre corresponding to the speech features to be converted into the speech timbre corresponding to the target object identifier through the target speech conversion model corresponding to the target object identifier.

[0229] Step S604, input the speech features to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other.

[0230] Among them, the target speech conversion model refers to the speech conversion model that has been trained. The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to multiple training object identifiers, the training speech samples have corresponding speech contents, and the training speech samples in the speech sample set include synthetic speech samples, which are synthesized by synthesizing speech samples by combining the target speech content features and the speech timbre features corresponding to the training object identifier; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; obtaining a speech feature set based on each target speech feature; inputting speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

[0231] It can be understood that the specific training process of the target speech conversion model can refer to the contents of the various embodiments of the aforementioned speech conversion model training method, which will not be repeated here.

[0232] The converted voice data refers to voice data having a voice timbre corresponding to the target object identifier. The converted voice data may be voice directly, or may be spectral data of voice, and the spectral data is subsequently converted into voice. The voice timbre corresponding to the converted voice data and the voice timbre corresponding to the target object identifier match each other. The voice timbre matching each other may be that the voice timbre is completely the same, or that the voice timbre is extremely similar.

[0233] Specifically, the computer device can input the speech feature to be converted into the target speech conversion model corresponding to the target object identifier, and through data processing of the target speech conversion model, the target speech conversion model outputs the converted speech data. The target speech conversion model can convert the speech timbre corresponding to the input data into the speech timbre corresponding to the target object identifier on the basis of ensuring that the semantics of the input data is not changed. The speech content corresponding to the converted speech data finally obtained matches the speech content corresponding to the speech feature to be converted, and the speech timbre corresponding to the converted speech data matches the speech timbre corresponding to the target object identifier.

[0234] In one embodiment, a computer device may obtain a speech conversion task, the speech conversion task includes a speech to be converted and a target object identifier, extract speech features of the speech to be converted to obtain speech features to be converted, obtain a target speech conversion model corresponding to the target object identifier, input the speech features to be converted into the target speech conversion model, and the target speech conversion model outputs converted speech data. The speech task to be converted may be submitted by a user through a terminal.

[0235] The above-mentioned speech conversion method obtains the speech features to be converted and the target object identifier, inputs the speech features to be converted into the target speech conversion model corresponding to the target object identifier, obtains the converted speech data, the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other. The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech contents, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifier; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; obtaining a speech feature set based on each target speech feature; inputting speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other. In this way, the target speech conversion model can be used to convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier on the basis of retaining the speech content corresponding to the current object identifier. The training set of the target speech conversion model is generated based on the synthesized speech sample and through timbre amplification. The speech conversion accuracy of the trained target speech conversion model is good, so that more accurate speech conversion can be achieved by using the target speech conversion model, and relatively accurate converted speech data can be obtained. For the target speech conversion model, by fusing the initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other, timbre amplification can be achieved, and the target speech features whose speech contents match the initial speech features and have new timbre can be obtained. In addition, the initial speech features include speech features extracted from the synthesized speech samples. The synthesized speech samples are pseudo samples, which are not real speech samples. The pseudo samples help to reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features. Therefore, through timbre amplification, target speech features corresponding to various timbres can be obtained. The speech feature set composed of speech features corresponding to various timbres is used as the training set of the speech conversion model, which can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of the model overfitting to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0236] In one embodiment, Figure 7 As shown, a speech conversion model training method is provided, and the method is applied to a computer device as an example for explanation. It can be understood that the computer device can be Figure 1 The terminal 102 in the embodiment may also be the server 104. The speech conversion model training method comprises the following steps:

[0237] Step S702, obtaining multiple training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different.

[0238] The training speech feature pair includes a pair of training speech features. The training speech feature pair can be generated based on the original speech sample, for example, real speech with matching speech content but different speech timbre is collected, and speech features of the real speech are extracted to obtain the training speech features. The generation of the training speech feature pair can also refer to the contents of the various related embodiments of the aforementioned speech conversion model training method, which will not be repeated here.

[0239] The target speech feature pair is a training speech feature pair randomly selected from each training speech feature pair.

[0240] Specifically, the computer device can synchronously train and jointly train two initial speech conversion models based on the training speech features, and obtain two target speech conversion models through one-time training.

[0241] During training, the computer device can iteratively train the two initial speech conversion models. In each round of training, one training speech feature in the target speech feature pair of this round is input into the first initial speech conversion model, and the other training speech feature is input into the second initial speech conversion model. Loss information is generated based on the intermediate processing data and final processing data of the two initial speech conversion models, and the model parameters of the two initial speech conversion models are adjusted based on the loss information. In the next round of training, a new training speech feature pair is obtained as the target speech feature pair, one training speech feature in the new target speech feature pair is input into the first initial speech conversion model whose model parameters have been adjusted in the previous round of training, and the other training speech feature is input into the second initial speech conversion model whose model parameters have been adjusted in the previous round of training. Loss information is generated based on the intermediate processing data and final processing data of the two initial speech conversion models, and the model parameters of the two initial speech conversion models are adjusted based on the loss information. The training is iterated in this way until the convergence condition is met and the two target speech conversion models are obtained.

[0242] Step S704, input the first training speech feature in the target speech feature pair into the first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into the second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data.

[0243] Specifically, the computer device may input the first training voice feature in the target voice feature pair into the first initial voice conversion model, obtain the intermediate processing result of the first initial voice conversion model as the first intermediate voice data, and obtain the final processing result of the first initial voice conversion model as the first predicted voice data. The computer device may input the second training voice feature in the target voice feature pair into the second initial voice conversion model, and obtain the intermediate processing result of the second initial voice conversion model as the second intermediate voice data.

[0244] Step S706: The speech data corresponding to the target object identifier and having speech content matching the speech content corresponding to the target speech feature pair is taken as the target speech data.

[0245] Specifically, the computer device can obtain speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair as target speech data, and use the target speech data as the expected final processing result of the initial speech conversion model.

[0246] Step S708: Generate a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, and generate a second loss based on the difference between the first predicted speech data and the target speech data.

[0247] Specifically, the computer device can calculate the first loss based on the difference between the first intermediate voice data and the second intermediate voice data, and calculate the second loss based on the difference between the first predicted voice data and the target voice data. The first loss is used to improve the model's processing capability for input data of various timbres, so that the model can flexibly convert various timbres into target timbres, and the second loss is used to improve the model's processing capability for converting input timbre into target timbre, so that the model can convert input timbre into target timbre.

[0248] Step S710: Based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model to obtain the first intermediate speech conversion model and the second intermediate speech conversion model.

[0249] Specifically, the computer device can perform backpropagation updates based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model, use the adjusted first initial speech conversion model as the first intermediate speech conversion model, and use the adjusted second initial speech model as the second intermediate speech conversion model.

[0250] Step S712, taking the first intermediate speech conversion model as the first initial speech conversion model, taking the second intermediate speech conversion model as the second initial speech conversion model, taking the next training speech feature pair as the target speech feature pair, returning to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, until the target convergence condition is met, and obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model both match the speech timbre corresponding to the target object identifier.

[0251] Specifically, after obtaining the first intermediate voice conversion model and the second intermediate voice conversion model, the computer device can use the first intermediate voice conversion model as the first initial voice conversion model, the second intermediate voice conversion model as the second initial voice conversion model, and the next training voice feature pair as the target voice feature pair, and return to the step of inputting the first training voice feature in the target voice feature pair into the first initial voice conversion model to obtain a new first intermediate voice conversion model and a second intermediate voice conversion model, and then use the new first intermediate voice conversion model and the second intermediate voice conversion model as the new first initial voice conversion model and the second initial voice conversion model, obtain a new target voice feature pair and input it into the new first initial voice conversion model and the second initial voice conversion model, and so on, and iterate the training until the target convergence condition is met to obtain the first target voice conversion model and the second target voice conversion model. Both the first target voice conversion model and the second target voice conversion model can be used to convert input data corresponding to any timbre into voice data corresponding to the target timbre.

[0252] The target convergence condition may be at least one of the following conditions: the loss information is less than a first preset threshold, the number of model iterations is greater than a first preset number, etc. The loss information is less than the first preset threshold may be that both the first loss and the second loss are less than the corresponding preset loss threshold, or the target loss obtained based on the first loss and the second loss is less than the corresponding first preset threshold.

[0253] It can be understood that the specific training process of the first initial speech conversion model and the second initial speech model can refer to the contents of the various related embodiments of the aforementioned speech conversion model training method, for example, Figure 5 The corresponding embodiments will not be described in detail here.

[0254] The above-mentioned speech conversion model training method obtains multiple training speech feature pairs, determines the target speech feature pair from each training speech feature pair, the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different, the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data, the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech data, and the speech data is generated based on the difference between the first intermediate speech data and the second intermediate speech data. A first loss is generated based on the difference between the first predicted speech data and the target speech data. Based on the first loss and the second loss, the model parameters of the first initial speech conversion model and the second initial speech model are adjusted to obtain the first intermediate speech conversion model and the second intermediate speech conversion model. The first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the next training speech feature pair is used as the target speech feature pair. The step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to execute until the target convergence condition is met, and the first target speech conversion model and the second target speech conversion model are obtained. The speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model are matched with the speech timbre corresponding to the target object identifier. In this way, through joint training between models, the first target speech conversion model and the second target speech conversion model with high speech conversion accuracy can be trained. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model. The first target speech conversion model and the second target speech conversion model obtained by model training based on the first loss and the second loss have high speech conversion accuracy.

[0255] In one embodiment, Figure 8As shown, a speech conversion method is provided, and the method is applied to a computer device as an example for explanation. It can be understood that the computer device can be Figure 1 The terminal 102 in the embodiment may also be the server 104. The voice conversion method comprises the following steps:

[0256] Step S802: Acquire the speech features to be converted and the target object identifier.

[0257] Among them, the voice features to be converted refer to the voice features whose voice timbre needs to be converted. The voice features to be converted can be voice features obtained by extracting features from voice samples. The voice samples corresponding to the voice features to be converted can be voices collected in real time by a voice acquisition device. For example, when sending a voice message, the user can select a target person to send a voice message with a target timbre corresponding to the target person. The voice message entered by the user in real time and with the user's own timbre can be used as the voice message to be converted, and the voice timbre corresponding to the target person selected by the user can be used as the target timbre. The voice message to be converted can be converted in real time into a target voice message with the target timbre, and the target voice message can be sent. The voice samples corresponding to the voice features to be converted can also be pre-recorded voices, for example, the original timbre corresponding to the audio is converted into the target timbre.

[0258] The target object identifier refers to the object identifier corresponding to the target object. The target object refers to an object having a target timbre. The voice timbre corresponding to the voice feature to be converted needs to be converted to the voice timbre corresponding to the target object. For example, the target person selected by the user can be used as the target object, and the object identifier corresponding to the target person can be used as the target object identifier.

[0259] Specifically, the computer device can obtain the speech features to be converted and the target object identifier locally or from other devices, and then convert the speech timbre corresponding to the speech features to be converted into the speech timbre corresponding to the target object identifier through the target speech conversion model corresponding to the target object identifier.

[0260] Step S804, input the speech features to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model.

[0261] Among them, the target speech conversion model is the first target speech conversion model or the second target speech conversion model. The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining multiple training speech feature pairs, determining the target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbre is different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; as target speech data; generate a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, and generate a second loss based on the difference between the first predicted speech data and the target speech data; adjust the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, and execute until the target convergence condition is met to obtain the first target speech conversion model and the second target speech conversion model.

[0262] It can be understood that the training process of the first target speech conversion model and the second target speech conversion model can refer to the content of the aforementioned second speech conversion model training method, which will not be repeated here.

[0263] The converted voice data refers to voice data having a voice timbre corresponding to the target object identifier. The converted voice data may be voice directly, or may be spectral data of voice, and the spectral data is subsequently converted into voice. The voice timbre corresponding to the converted voice data and the voice timbre corresponding to the target object identifier match each other. The voice timbre matching each other may be that the voice timbre is completely the same, or that the voice timbre is extremely similar.

[0264] Specifically, the computer device can input the speech feature to be converted into the target speech conversion model corresponding to the target object identifier, and through data processing of the target speech conversion model, the target speech conversion model outputs the converted speech data. The target speech conversion model can convert the speech timbre corresponding to the input data into the speech timbre corresponding to the target object identifier on the basis of ensuring that the semantics of the input data is not changed. The speech content corresponding to the converted speech data finally obtained matches the speech content corresponding to the speech feature to be converted, and the speech timbre corresponding to the converted speech data matches the speech timbre corresponding to the target object identifier.

[0265] In one embodiment, a computer device may obtain a speech conversion task, the speech conversion task includes a speech to be converted and a target object identifier, extract speech features of the speech to be converted to obtain speech features to be converted, obtain a target speech conversion model corresponding to the target object identifier, input the speech features to be converted into the target speech conversion model, and the target speech conversion model outputs converted speech data. The speech task to be converted may be submitted by a user through a terminal.

[0266] The above-mentioned speech conversion method obtains speech features to be converted and target object identifiers, inputs the speech features to be converted into a target speech conversion model corresponding to the target object identifier, obtains converted speech data, the speech content corresponding to the converted speech data matches the speech content corresponding to the speech features to be converted, the speech timbre corresponding to the converted speech data matches the speech timbre corresponding to the target object identifier, and the target speech conversion model is a first target speech conversion model or a second target speech conversion model. The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbre is different; the first training speech feature in the target speech feature pair is input into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, the second training speech feature in the target speech feature pair is input into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is input into a second initial speech conversion model to obtain second intermediate speech data. as the target speech data; based on the difference between the first intermediate speech data and the second intermediate speech data, generate a first loss, based on the difference between the first predicted speech data and the target speech data, generate a second loss; based on the first loss and the second loss, adjust the model parameters of the first initial speech conversion model and the second initial speech model to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; use the first intermediate speech conversion model as the first initial speech conversion model, use the second intermediate speech conversion model as the second initial speech conversion model, use the next training speech feature pair as the target speech feature pair, return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, until the target convergence condition is met, and obtain the first target speech conversion model and the second target speech conversion model. In this way, the first target speech conversion model or the second target speech conversion model can be used to convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier on the basis of retaining the speech content corresponding to the current object identifier. The first target speech conversion model and the second target speech conversion model are obtained by joint training and have a higher speech conversion accuracy, so that the first target speech conversion model or the second target speech conversion model can be used to achieve more accurate speech conversion and obtain more accurate converted speech data.The first target speech conversion model and the second target speech conversion model are trained based on the first loss and the second loss. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model.

[0267] In a specific embodiment, reference Fig. 9 Based on the existing non-parallel training data set, parallel pseudo samples are synthesized and timbre amplification is performed. The parallel data set after timbre amplification is used to train a speaker-independent speech conversion model (the speech conversion model can also be called a VC model).

[0268] 1. Synthesize pseudo samples based on the existing non-parallel data set, and amplify the timbre of the pseudo samples to obtain a timbre-amplified data set.

[0269] 1-1. Training pseudo sample synthesis model

[0270] 1-2. Synthesize parallel pseudo sample dataset

[0271] 1-3. Extract PPG features of pseudo samples

[0272] 1-4. PPG features of sampling alignment

[0273] 1-5. Randomly assign and sum the sampled PPG features

[0274] 1-6. Generate timbre amplification dataset

[0275] 2. Use the timbre-amplified dataset to complete the speaker-independent speech conversion model training.

[0276] Fig.10 Training process for training a speech conversion model based on the timbre augmentation dataset.

[0277] Training data: In each training, the input features of the model are a pair of PPG features. These two PPG features are generated using the timbre amplification method and have the same speech content information. The training label used for supervision (also called Groundtruth) is the Mel spectrogram calculated based on the target speaker's speech, and its corresponding speech content information is the same as the two PPG features. The training goal is to enable the model to output a Mel spectrogram with the same speech content as the input PPG but with the timbre of the target speaker based on the input random timbre PPG. Among them, the Mel spectrum is an acoustic feature that reflects the spectral information of the speech.

[0278] Model structure: In terms of model structure, an encoder-decoder architecture is used. The encoder can extract useful information from the input features according to the task requirements, map the input features to a more abstract semantic space, and obtain intermediate features. The decoder then parses the intermediate features to complete the reconstruction of the Mel spectrum. A teacher model and a student model are also set up, and the model structures and parameter dimensions of the two are exactly the same.

[0279] Training process: For two PPG feature inputs with the same speech content information but different timbre information, it is hoped that the difference between the two in the encoder's output feature space is small. In other words, the encoder can ignore the different timbre information between the PPGs, that is, it can extract features that are unrelated to the speaker.

[0280] 2-1. Two PPGs with the same voice content information and different timbre information (i.e. Fig.10 The "Timbre Amplification PPG_0" and "Timbre Amplification PPG_1" in the figure are input into the Teacher model and the Student model respectively.

[0281] 2-2. According to the final output of the Teacher model (i.e. Fig.10 "Synthetic Mel Spectrum_0" in the Fig.10 The training labels in ) calculate the second loss (also called synthetic error, synthetic loss), and the loss function used here is the mean square error. The calculation formula of the second loss is as follows:

[0282] L m =MSE(y t ,y gt )

[0283] Among them, y t Represents the final output of the Teacher model, y gt Represents the training label. MSE represents the mean square error.

[0284] 2-3. According to the bottleneck layer characteristics of the Teacher model and the Student model (i.e. Fig.10 The first loss (also called consistency error, consistency loss) is calculated using the "intermediate feature_0" and "intermediate feature_1" in the dataset. The loss function used here is the mean square error. The calculation formula for the first loss is as follows:

[0285] L c =MSE(y ct ,y cs )

[0286] Among them, y ct represents the middle layer features of the Teacher model (also known as the bottleneck layer features), y cs Represents the middle layer features of the Student model.

[0287] 2-4. Calculate the total loss L based on the first loss and the second loss

[0288] L=L m +γL c

[0289] Among them, γ increases with the increase of training rounds.

[0290] 2-5. Update the Teacher model parameters using back propagation based on the total loss L.

[0291] 2-6. Update the model parameters of the Student model according to the sliding average of the Teacher model.

[0292] First, the Teacher model parameters are updated based on the total loss L, and then the model parameters of the Student model are updated based on the updated model parameters of the Teacher model. The updated model parameters of the Student model can be obtained by weighted summing the updated model parameters of the Teacher model and the model parameters of the Student model.

[0293] The above training method, by inputting PPG pairs and adding consistency loss between the middle layers of the Teacher model and the Student model, enables the model to map PPGs with similar speech content to closer positions, thereby ignoring the timbre interference between PPGs and having better robustness when facing different timbre inputs. In addition, the parameters of the Student model are the sliding average of the Teacher model, which makes the Student model less disturbed by samples with large noise in the data set and can stably provide supervision for the Teacher model in the encoder output feature space. In addition, the sliding average can also play an effect similar to ensemble learning, which can make the model have better generalization ability.

[0294] In this embodiment, a timbre amplification method is used to generate a large number of speech features with the same content information and different timbre information. At the same time, this timbre amplification method allows the data set to include more timbre categories at a lower cost, reducing the risk of overfitting due to fewer timbre categories in model training. A speaker-independent training architecture is used to constrain the feature distribution in the bottleneck layer feature space through consistency loss, so that samples with similar speech content information are mapped to similar positions. At the same time, the input of the model during the training process is PPG features with different timbres and the same content, which can make the model more robust to the interference caused by the timbre information in the input PPG features, that is, it can better extract speaker-independent features.

[0295] In a specific embodiment, the speech conversion model training method or speech conversion method of the present application can be applied to various speech conversion scenarios. For example, in instant voice and video communication, the user can specify a target timbre, such as game character A. The method of the present application can convert the speech input of the speech sender into a speech with the target timbre, and the speech received by the speech receiver is a speech with the target timbre. When sending a voice message in an application, the method of the present application can also be used to convert the user's voice message into a voice message with the target timbre for sending.

[0296] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0297] Based on the same inventive concept, the embodiment of the present application also provides a speech conversion model training device for implementing the speech conversion model training method involved above, and a speech conversion device for implementing the speech conversion method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more speech conversion model training device embodiments provided below can refer to the limitations on the speech conversion model training method above, and the specific limitations in one or more speech conversion device embodiments provided below can refer to the limitations on the speech conversion method above, which will not be repeated here.

[0298] In one embodiment, Fig.11 As shown, a speech conversion model training device 1100 is provided, comprising: a speech sample acquisition module 1102, a speech feature extraction module 1104, a speech feature fusion module 1106, a speech feature set generation module 1108 and a speech conversion model training module 1110, wherein:

[0299] The speech sample acquisition module 1102 is used to acquire a speech sample set; the speech sample set includes training speech samples corresponding to multiple training object identifiers, and the training speech samples have corresponding speech content. The training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers.

[0300] The speech feature extraction module 1104 is used to extract speech features of the training speech samples and obtain initial speech features corresponding to each training speech sample.

[0301] The speech feature fusion module 1106 is used to fuse initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features.

[0302] The speech feature set generating module 1108 is used to obtain a speech feature set based on each target speech feature.

[0303] The speech conversion model training module 1110 is used to input the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and adjust the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

[0304] The above-mentioned speech conversion model training device can realize timbre amplification by fusing initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other, and obtain target speech features whose speech contents match the initial speech features and have new timbre. In addition, the initial speech features include speech features extracted from synthetic speech samples. The synthetic speech samples are pseudo samples. The pseudo samples are not real speech samples. The pseudo samples help to reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features, so that target speech features corresponding to various timbres can be obtained through timbre amplification. Using a speech feature set composed of speech features corresponding to various timbres as a training set for a speech conversion model can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of the model overfitting to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0305] In one embodiment, the synthesized speech sample is obtained by inputting the target speech content features and the speech timbre features corresponding to the training object identifier into the target speech sample synthesis model. Fig.11 As shown, the speech conversion model training device 1100 also includes:

[0306] The speech sample synthesis model training module 1101 is used to obtain original speech samples and speech timbre features corresponding to multiple candidate object identifiers, determine a reference object identifier from the multiple candidate object identifiers; obtain speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as reference speech content features; input the speech timbre features and reference speech content features corresponding to the reference object identifier into the initial speech sample synthesis model to obtain a predicted speech sample corresponding to the reference object identifier; adjust the model parameters of the initial speech sample synthesis model based on the original speech sample and the predicted speech sample corresponding to the reference object identifier to obtain an intermediate speech sample synthesis model; use the next candidate object identifier as the reference object identifier, use the intermediate speech sample synthesis model as the initial speech sample synthesis model, and return to the step of obtaining the speech content features that match the speech content of the original speech sample corresponding to the reference object identifier as the reference speech content features until the second convergence condition is met to obtain the target speech sample synthesis model.

[0307] In one embodiment, a speech feature fusion module is used to obtain an initial speech feature corresponding to a first training object identifier as a first initial speech feature, and to obtain an initial speech feature corresponding to a second training object identifier as a second initial speech feature, wherein the speech contents corresponding to the first initial speech feature and the second initial speech feature match each other; obtain a first weight corresponding to the first initial speech feature and a second weight corresponding to the second initial speech feature; the sum of the first weight and the second weight is one; based on the first weight and the second weight, perform weighted fusion on the first initial speech feature and the second initial speech feature to obtain a target speech feature.

[0308] In one embodiment, the first initial speech feature and the second initial speech feature include speech sub-features corresponding to a target number of speech frames arranged in an orderly manner. The speech feature fusion module is used to perform weighted fusion of speech sub-features corresponding to speech frames with the same order from the first initial speech feature and the second initial speech feature based on the first weight and the second weight to obtain a target number of target sub-features arranged in an orderly manner; the speech contents corresponding to the speech sub-features corresponding to speech frames with the same order match each other; and the target speech feature is obtained based on the target number of target sub-features arranged in an orderly manner.

[0309] In one embodiment, the speech conversion model training module includes:

[0310] A training data acquisition unit is used to determine a plurality of training voice feature pairs from a voice feature set, and to determine a target voice feature pair from each training voice feature pair; the voice contents corresponding to the first training voice feature and the second training voice feature belonging to the same training voice feature pair match each other, and the corresponding voice timbres are different;

[0311] A training data input unit, used to input the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data;

[0312] A training label acquisition unit, used to take the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair as the target speech data;

[0313] a loss generating unit, configured to generate a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and to generate a second loss based on a difference between the first predicted speech data and the target speech data;

[0314] A model parameter adjustment unit, configured to adjust model parameters of a first initial speech conversion model and a second initial speech model based on the first loss and the second loss to obtain a first intermediate speech conversion model and a second intermediate speech conversion model;

[0315] The iterative training unit is used to use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, and return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model until the first convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model.

[0316] In one embodiment, the training data input unit is also used to input the first training speech feature in the target speech feature pair into the encoder in the first initial speech conversion model to obtain first intermediate speech data; input the first intermediate speech data into the decoder in the first initial speech conversion model to obtain first predicted speech data; and input the second training speech feature in the target speech feature pair into the encoder in the second initial speech conversion model to obtain second intermediate speech data.

[0317] In one embodiment, the model parameter adjustment unit is also used to generate a target loss based on the first loss and the second loss; adjust the model parameters of the first initial speech conversion model based on the target loss to obtain a first intermediate speech conversion model; adjust the model parameters corresponding to the second initial speech conversion model based on the model parameters of the first intermediate speech conversion model to obtain a second intermediate speech conversion model.

[0318] In one embodiment, the model parameter adjustment unit is also used to obtain the loss weight corresponding to the first loss; the loss weight increases with the increase of model training rounds; the first loss is adjusted based on the loss weight to obtain the updated loss; and the target loss is obtained based on the second loss and the updated loss.

[0319] In one embodiment, there are model parameters with matching relationship between the first intermediate speech conversion model and the second initial speech conversion model. The model parameter adjustment unit is further used to use the model parameters with matching relationship in the first intermediate speech conversion model and the second initial speech conversion model as the first model parameters and the second model parameters; to fuse the first model parameters and the second model parameters with matching relationship to obtain the target model parameters; and to replace the corresponding model parameters in the second initial speech conversion model based on the target model parameters to obtain the second intermediate speech conversion model.

[0320] In one embodiment, Fig.12 As shown, a speech conversion device 1200 is provided, comprising: a first data acquisition module 1202 and a first data conversion module 1204, wherein:

[0321] The first data acquisition module 1202 is used to acquire the speech features to be converted and the target object identifier.

[0322] The first data conversion module 1204 is used to input the speech features to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other.

[0323] The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to multiple training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are synthesized by synthesizing the target speech content features and the speech timbre features corresponding to the training object identifier; extracting the speech features of the training speech samples to obtain the initial speech features corresponding to each training speech sample; fusing the initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain the target speech features; obtaining a speech feature set based on each target speech feature; inputting the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

[0324] The above-mentioned speech conversion device can convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier based on retaining the speech content corresponding to the current object identifier by using the target speech conversion model. The training set of the target speech conversion model is generated based on the synthesized speech sample and by timbre amplification. The speech conversion accuracy of the trained target speech conversion model is good, so that more accurate speech conversion can be achieved by using the target speech conversion model, and relatively accurate converted speech data can be obtained. For the target speech conversion model, by fusing initial speech features that belong to different training object identifiers and whose corresponding speech contents match each other, timbre amplification can be achieved, and target speech features whose speech contents match the initial speech features and have new timbre can be obtained. In addition, the initial speech features include speech features extracted from synthetic speech samples. Synthetic speech samples are pseudo samples. Pseudo samples are not real speech samples. Pseudo samples help to reduce the pressure of speech sample collection, increase the data volume of speech samples, and increase the data volume of initial speech features. Therefore, target speech features corresponding to various timbres can be obtained through timbre amplification. Using a speech feature set composed of speech features corresponding to various timbres as a training set for the speech conversion model can effectively improve the training quality of the speech conversion model, allow the model to learn the conversion between different timbres, reduce the risk of overfitting the model to a specific timbre, and effectively improve the speech conversion accuracy of the speech conversion model.

[0325] In one embodiment, Fig.13 As shown, a speech conversion model training device 1300 is provided, comprising: a speech feature pair acquisition module 1302, a speech data generation module 1304, a speech data acquisition module 1306, a loss generation module 1308, a model adjustment module 1310 and a model iteration module 1312, wherein:

[0326] The speech feature pair acquisition module 1302 is used to acquire multiple training speech feature pairs and determine the target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different.

[0327] The speech data generation module 1304 is used to input the first training speech feature in the target speech feature pair into the first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into the second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data.

[0328] The voice data acquisition module 1306 is used to take the voice data corresponding to the target object identifier and whose voice content matches the voice content corresponding to the target voice feature pair as the target voice data.

[0329] The loss generating module 1308 is used to generate a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, and to generate a second loss based on the difference between the first predicted speech data and the target speech data.

[0330] The model adjustment module 1310 is used to adjust the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss to obtain the first intermediate speech conversion model and the second intermediate speech conversion model.

[0331] The model iteration module 1312 is used to use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, and return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model until the target convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model both match the speech timbre corresponding to the target object identifier.

[0332] The above-mentioned speech conversion model training device can train a first target speech conversion model and a second target speech conversion model with higher speech conversion accuracy through joint training between models. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbres, effectively improving the speech conversion accuracy of the model. The first target speech conversion model and the second target speech conversion model obtained by model training based on the first loss and the second loss have higher speech conversion accuracy.

[0333] In one embodiment, Fig.14 As shown, a speech conversion device 1400 is provided, comprising: a second data acquisition module 1402 and a second data conversion module 1404, wherein:

[0334] The second data acquisition module 1402 is used to acquire the speech features to be converted and the target object identifier.

[0335] The second data conversion module 1404 is used to input the speech features to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech features to be converted match each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model.

[0336] The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; as target speech data; generate a first loss based on the difference between the first intermediate speech data and the second intermediate speech data, and generate a second loss based on the difference between the first predicted speech data and the target speech data; adjust the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss to obtain the first intermediate speech conversion model and the second intermediate speech conversion model; use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model, and execute until the target convergence condition is met to obtain the first target speech conversion model and the second target speech conversion model.

[0337] The above-mentioned speech conversion device can convert the speech timbre from the timbre corresponding to the current object identifier to the timbre corresponding to the target object identifier on the basis of retaining the speech content corresponding to the current object identifier by using the first target speech conversion model or the second target speech conversion model. The first target speech conversion model and the second target speech conversion model are obtained by joint training and have a high speech conversion accuracy, so that more accurate speech conversion can be achieved by using the first target speech conversion model or the second target speech conversion model, and relatively accurate converted speech data can be obtained. The first target speech conversion model and the second target speech conversion model are obtained by training based on the first loss and the second loss. The second loss adjustment model generated based on the difference between the first predicted speech data and the target speech data can make the output data of the model closer and closer to the expected result, so that the trained model can convert the input data into speech data of the target timbre. The first loss adjustment model generated based on the difference between the first intermediate speech data and the second intermediate speech data can make the model map the input data with matching content information and different timbre information closer and closer in the feature space, so that the trained model can achieve more stable speech conversion when facing input data with different timbre, effectively improving the speech conversion accuracy of the model.

[0338] Each module in the above-mentioned speech conversion model training device and speech conversion device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0339] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as a speech sample set and a speech feature set. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a speech conversion model training method or a speech conversion method is implemented.

[0340] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.16 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a speech conversion model training method or a speech conversion method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0341] Those skilled in the art will understand that Fig.15 , 16 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0342] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0343] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0344] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0345] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0346] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0347] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0348] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A speech conversion model training method, characterized in that: The method comprises: Acquire a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers; Extracting speech features of training speech samples to obtain initial speech features corresponding to each training speech sample; the initial speech features are used to characterize speech content and speech timbre, and speech content features, speech timbre features and speech features are different types of features; Initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other are fused to obtain target speech features; the speech timbre of the fused target speech features and the initial speech features used for fusion is different; Obtaining a speech feature set based on each target speech feature; The speech features in the speech feature set are input into an initial speech conversion model to obtain predicted speech data; based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, the model parameters of the initial speech conversion model are adjusted until a first convergence condition is met to obtain a target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

2. The method according to claim 1, characterized in that The synthesized speech sample is obtained by inputting the target speech content feature and the speech timbre feature corresponding to the training object identifier into the target speech sample synthesis model. The training process of the target speech sample synthesis model includes the following steps: Acquire original speech samples and speech timbre features corresponding to a plurality of candidate object identifiers, and determine a reference object identifier from the plurality of candidate object identifiers; Acquire a speech content feature that matches the speech content of the original speech sample corresponding to the reference object identifier as a reference speech content feature; Inputting the speech timbre features and the reference speech content features corresponding to the reference object identifier into the initial speech sample synthesis model to obtain a predicted speech sample corresponding to the reference object identifier; Based on the original speech sample and the predicted speech sample corresponding to the reference object identifier, adjusting the model parameters of the initial speech sample synthesis model to obtain the intermediate speech sample synthesis model; The next candidate object identifier is used as the reference object identifier, the intermediate speech sample synthesis model is used as the initial speech sample synthesis model, and the step of obtaining the speech content features that match the speech content of the original speech sample corresponding to the reference object identifier is returned to be executed as the reference speech content features until the second convergence condition is met to obtain the target speech sample synthesis model.

3. The method according to claim 1, characterized in that The fusion of initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features includes: Acquire an initial speech feature corresponding to the first training object identifier as a first initial speech feature, acquire an initial speech feature corresponding to the second training object identifier as a second initial speech feature, and the speech contents corresponding to the first initial speech feature and the second initial speech feature match each other; Obtaining a first weight corresponding to the first initial voice feature and a second weight corresponding to the second initial voice feature; the sum of the first weight and the second weight is one; Based on the first weight and the second weight, the first initial speech feature and the second initial speech feature are weightedly fused to obtain a target speech feature.

4. The method according to claim 3, characterized in that The first initial speech feature and the second initial speech feature include speech sub-features corresponding to a target number of speech frames arranged in an orderly manner, and the first initial speech feature and the second initial speech feature are weightedly fused based on the first weight and the second weight to obtain a target speech feature, including: From the first initial speech feature and the second initial speech feature, based on the first weight and the second weight, speech sub-features corresponding to speech frames with the same order are weightedly fused to obtain a target number of target sub-features arranged in an orderly manner; speech contents corresponding to speech sub-features corresponding to speech frames with the same order are matched with each other; Based on the target number of target sub-features arranged in order, the target speech feature is obtained.

5. The method according to any one of claims 1 to 4, characterized in that: The step of inputting the speech features in the speech feature set into an initial speech conversion model to obtain predicted speech data, and adjusting the model parameters of the initial speech conversion model based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier until a first convergence condition is satisfied to obtain a target speech conversion model, comprising: Determine a plurality of training voice feature pairs from the voice feature set, and determine a target voice feature pair from each training voice feature pair; the voice contents corresponding to the first training voice feature and the second training voice feature belonging to the same training voice feature pair match each other, and the corresponding voice timbres are different; Inputting the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and inputting the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; The speech data corresponding to the target object identifier and having speech content matching the speech content corresponding to the target speech feature pair is used as the target speech data; generating a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and generating a second loss based on a difference between the first predicted speech data and the target speech data; Based on the first loss and the second loss, adjusting model parameters of a first initial speech conversion model and a second initial speech model to obtain a first intermediate speech conversion model and a second intermediate speech conversion model; The first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, the next training speech feature pair is used as the target speech feature pair, and the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to execute until the first convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model.

6. The method according to claim 5, characterized in that The step of inputting the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and inputting the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data comprises: Inputting the first training speech feature in the target speech feature pair into an encoder in the first initial speech conversion model to obtain the first intermediate speech data; Inputting the first intermediate speech data into a decoder in a first initial speech conversion model to obtain the first predicted speech data; The second training speech feature in the target speech feature pair is input into an encoder in a second initial speech conversion model to obtain the second intermediate speech data.

7. The method according to claim 5, characterized in that The method of adjusting the model parameters of the first initial speech conversion model and the second initial speech model based on the first loss and the second loss to obtain the first intermediate speech conversion model and the second intermediate speech conversion model includes: generating a target loss based on the first loss and the second loss; Adjusting model parameters of a first initial speech conversion model based on the target loss to obtain a first intermediate speech conversion model; Based on the model parameters of the first intermediate speech conversion model, the model parameters corresponding to the second initial speech conversion model are adjusted to obtain a second intermediate speech conversion model.

8. The method according to claim 7, characterized in that The generating a target loss based on the first loss and the second loss comprises: Obtaining a loss weight corresponding to the first loss; the loss weight increases as the number of model training rounds increases; Adjust the first loss based on the loss weight to obtain an updated loss; The target loss is obtained based on the second loss and the updated loss.

9. The method according to claim 7, characterized in that: There are model parameters with a matching relationship between the first intermediate speech conversion model and the second initial speech conversion model, and the model parameters corresponding to the second initial speech conversion model are adjusted based on the model parameters of the first intermediate speech conversion model to obtain the second intermediate speech conversion model, including: Using model parameters that have a matching relationship between the first intermediate speech conversion model and the second initial speech conversion model as first model parameters and second model parameters; The first model parameters and the second model parameters that have a matching relationship are fused to obtain the target model parameters; The corresponding model parameters in the second initial speech conversion model are replaced based on the target model parameters to obtain the second intermediate speech conversion model.

10. A voice conversion method, characterized in that: The method comprises: Obtaining the speech features to be converted and the target object identifier; Inputting the speech feature to be converted into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other; The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; the initial speech features are used to characterize speech content and speech timbre, and the speech content features, speech timbre features and speech features are different types of features ; Initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other are integrated to obtain target speech features; the speech timbre between the fused target speech features and the initial speech features used for fusion is different; a speech feature set is obtained based on each target speech feature; the speech features in the speech feature set are input into an initial speech conversion model to obtain predicted speech data, and based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, the model parameters of the initial speech conversion model are adjusted until the first convergence condition is met to obtain a target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

11. A speech conversion model training method, characterized in that: The method comprises: Acquire multiple training speech feature pairs, and determine a target speech feature pair from each training speech feature pair; speech contents corresponding to a first training speech feature and a second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; Inputting the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and inputting the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; The speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech data; generating a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and generating a second loss based on a difference between the first predicted speech data and the target speech data; Based on the first loss and the second loss, adjusting model parameters of a first initial speech conversion model and a second initial speech model to obtain a first intermediate speech conversion model and a second intermediate speech conversion model; The first intermediate speech conversion model is used as the first initial speech conversion model, the second intermediate speech conversion model is used as the second initial speech conversion model, and the next training speech feature pair is used as the target speech feature pair. The step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model is returned to the step of executing the step until the target convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model matches the speech timbre corresponding to the target object identifier.

12. A voice conversion method, characterized in that: The method comprises: Obtaining the speech features to be converted and the target object identifier; The speech feature to be converted is input into the target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model; The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech conversion model; The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The training set is used as the training set, and the training set is used as the training set. The training set is used as the training set. The training set is used as the training set. The training set is used as the training set. The training set is used as the training set.

13. A speech conversion model training device, characterized in that: The device comprises: A speech sample acquisition module is used to acquire a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, and the training speech samples in the speech sample set include synthetic speech samples, which are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers; A speech feature extraction module is used to extract speech features of training speech samples to obtain initial speech features corresponding to each training speech sample; the initial speech features are used to characterize speech content and speech timbre, and speech content features, speech timbre features and speech features are different types of features; A speech feature fusion module is used to fuse initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other to obtain target speech features; the speech timbre between the fused target speech features and the initial speech features used for fusion is different; A speech feature set generation module, used to obtain a speech feature set based on each target speech feature; The speech conversion model training module is used to input the speech features in the speech feature set into the initial speech conversion model to obtain predicted speech data, and based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, adjust the model parameters of the initial speech conversion model until the first convergence condition is met to obtain the target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other, and the speech timbre corresponding to the output data of the target speech conversion model and the speech timbre corresponding to the target object identifier match each other.

14. A speech conversion device, characterized in that: The device comprises: A first data acquisition module, used to acquire the speech features to be converted and the target object identifier; A first data conversion module is used to input the speech feature to be converted into a target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted are matched with each other, and the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier are matched with each other; The training process of the target speech conversion model includes the following steps: obtaining a speech sample set; the speech sample set includes training speech samples corresponding to a plurality of training object identifiers, the training speech samples have corresponding speech content, the training speech samples in the speech sample set include synthetic speech samples, and the synthetic speech samples are obtained by synthesizing speech samples by combining target speech content features and speech timbre features corresponding to the training object identifiers; extracting speech features of the training speech samples to obtain initial speech features corresponding to each training speech sample; the initial speech features are used to characterize speech content and speech timbre, and the speech content features, speech timbre features and speech features are different types of features ; Initial speech features belonging to different training object identifiers and whose corresponding speech contents match each other are integrated to obtain target speech features; the speech timbre between the fused target speech features and the initial speech features used for fusion is different; a speech feature set is obtained based on each target speech feature; the speech features in the speech feature set are input into an initial speech conversion model to obtain predicted speech data, and based on the difference between the predicted speech data and the target speech data corresponding to the target object identifier, the model parameters of the initial speech conversion model are adjusted until the first convergence condition is met to obtain a target speech conversion model; the speech contents corresponding to the predicted speech data and the target speech data match each other.

15. A speech conversion model training device, characterized in that: The device comprises: A speech feature pair acquisition module is used to acquire multiple training speech feature pairs and determine a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; A speech data generation module, configured to input the first training speech feature in the target speech feature pair into a first initial speech conversion model to obtain first intermediate speech data and first predicted speech data, and input the second training speech feature in the target speech feature pair into a second initial speech conversion model to obtain second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; A voice data acquisition module, used to take voice data corresponding to the target object identifier and whose voice content matches the voice content corresponding to the target voice feature pair as target voice data; a loss generating module, configured to generate a first loss based on a difference between the first intermediate speech data and the second intermediate speech data, and to generate a second loss based on a difference between the first predicted speech data and the target speech data; A model adjustment module, configured to adjust model parameters of a first initial speech conversion model and a second initial speech model based on the first loss and the second loss to obtain a first intermediate speech conversion model and a second intermediate speech conversion model; A model iteration module is used to use the first intermediate speech conversion model as the first initial speech conversion model, the second intermediate speech conversion model as the second initial speech conversion model, and the next training speech feature pair as the target speech feature pair, and return to the step of inputting the first training speech feature in the target speech feature pair into the first initial speech conversion model until the target convergence condition is met, thereby obtaining the first target speech conversion model and the second target speech conversion model; the speech timbre corresponding to the output data of the first target speech conversion model and the second target speech conversion model both match the speech timbre corresponding to the target object identifier.

16. A speech conversion device, characterized in that: The device comprises: A second data acquisition module is used to acquire the speech features to be converted and the target object identifier; A second data conversion module is used to input the speech feature to be converted into a target speech conversion model corresponding to the target object identifier to obtain converted speech data; the speech content corresponding to the converted speech data and the speech content corresponding to the speech feature to be converted match each other, the speech timbre corresponding to the converted speech data and the speech timbre corresponding to the target object identifier match each other, and the target speech conversion model is the first target speech conversion model or the second target speech conversion model; The training process of the first target speech conversion model and the second target speech conversion model includes the following steps: obtaining a plurality of training speech feature pairs, and determining a target speech feature pair from each training speech feature pair; the speech contents corresponding to the first training speech feature and the second training speech feature belonging to the same training speech feature pair match each other, and the corresponding speech timbres are different; the first training speech feature in the target speech feature pair is input into the first initial speech conversion model to obtain the first intermediate speech data and the first predicted speech data, and the second training speech feature in the target speech feature pair is input into the second initial speech conversion model to obtain the second intermediate speech data; the first predicted speech data is obtained based on the first intermediate speech data; the speech data corresponding to the target object identifier and whose speech content matches the speech content corresponding to the target speech feature pair is used as the target speech conversion model; The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The first intermediate speech data is used as the training set, and the second intermediate speech data is used as the training set. The training set is used as the training set, and the training set is used as the training set. The training set is used as the training set. The training set is used as the training set. The training set is used as the training set. The training set is used as the training set.

17. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 or 10 or 11 or 12 are implemented.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 or 10 or 11 or 12 are implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 or 10 or 11 or 12 are implemented.