Speech code conversion speech synthesis method based on multi-task denoising diffusion implicit model
By introducing multi-task denoising diffusion latent model and self-supervised speech soft unit into code-switching technology, the problem of speech quality degradation in multi-language scenarios is solved, high-quality speech generation and low computational cost are achieved, and the stability of the model is improved. sex and sample diversity.
Patent Information
- Application Number
- CN202410723510.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-11
AI Technical Summary
Existing code-switching technology is difficult to effectively coordinate the inconsistency between the mother tongue and the second language in multi-language and multi-speaker scenarios, resulting in reduced speech quality. Autoregressive TTS has high computational cost and insufficient robustness, and non-autoregressive methods generate Sample diversity and quality are limited.
A code-switched speech synthesis method based on multi-task denoising diffusion latent model (DDIM) is adopted. By introducing self-supervised speech soft units, SoftHuBERT is used to extract language features, build a multi-task L1 loss function, train the teacher model and perform distillation training to generate Non-native speech samples of the target speaker are used to construct a single-speaker bilingual data set to achieve CS TTS capabilities and optimize model performance through the CosDiff model.
It achieves high-quality speech generation, reduces computational costs, improves model stability and sample diversity, reduces the number of hyperparameters that need to be adjusted, and ensures the quality of generated samples and inference speed in the field of CS TTS.
Smart Images

Figure CN118762686A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of information processing, and in particular is a code-conversion speech synthesis method based on a multi-task denoising diffusion latent model. Background Art
[0002] With the development of globalization, the phenomenon of alternating multiple languages in conversation, commonly known as "code-switching (CS)", is becoming more and more common. However, the development of code-switching technology faces difficulties due to the lack of high-quality bilingual corpora and the high cost of construction. To meet this challenge, many researchers choose to use single-language datasets of multiple speakers to train models equipped with speaker encoders. However, this approach encounters challenges in accurately capturing the complex data distribution inherent in multilingual and multi-speaker scenarios. This difficulty is mainly due to the inability of its speaker encoder to effectively coordinate the inconsistency between the native language part and the second language part, resulting in the degradation of the generated speech quality in different language environments.
[0003] In addition, current CS speech synthesis (Text-To-Speech, TTS) research mainly adopts two types of neural network models: autoregressive and non-autoregressive. Although autoregressive TTS architectures perform well in terms of the fidelity of mel-spectrogram synthesis, they are computationally expensive and lack robustness. In contrast, non-autoregressive methods effectively alleviate the limitations of autoregressive models, but encounter other problems such as limited diversity or quality of generated samples. The recently popular diffusion probability models fill these gaps. They generate high-quality samples through a step-by-step denoising process and show strong performance in both image and audio synthesis. However, constrained by the Markov chain process, they require nearly a hundred steps of sampling to produce high-quality samples.
[0004] To this end, those skilled in the art have proposed a CSTTS method based on a multi-task denoising diffusion implicit model (DenoisingDiffusion Implicit Model, DDIM) to solve the problems raised by the background technology. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a code-conversion speech synthesis method based on a multi-task denoising diffusion latent model. The method introduces a self-supervised speech software unit on the basis of DDIM to implement CSTTS to solve the problems existing in the prior art.
[0006] A code-switching speech synthesis method based on a multi-task denoising diffusion latent model comprises the following steps:
[0007] S1. Before training begins, preprocess the training data: first, resample the speech data to 16KHz and extract the corresponding Mel spectrum, then use SoftHuBERT to extract language soft unit features from the language data;
[0008] S2. Then, the diffusion parameterization is analyzed on the LJSpeech dataset to evaluate the balance between generation quality and sampling speed on GPU in TTS and Voice Conversion (VC) tasks. Finally, based on the experimental results and parameter adjustment experience, a model with four diffusion steps is selected as the teacher model. The TTS is the abbreviation of Text-to-Speech, and GPU refers to the processor.
[0009] S3, then use the Data Baker and LJSpeech datasets to train the teacher model, and the input includes the noise spectrogram x t , diffusion step size t, and the joint features of variance and soft unit c, so that it has preliminary TTS and VC capabilities. In addition, in order to balance the learning of the two tasks, a multi-task L1 loss function is constructed to accurately model the difference between the generated audio and the original audio.
[0010] S4. Then, after the teacher model training converges to obtain VC capabilities, VC reasoning is performed to generate non-native speech samples of the target speaker. For example, if the initial training set is in Chinese, the goal is to obtain non-native samples of Chinese speakers. Then, by inputting the audio of the native English dataset into the pre-trained teacher model to perform VC reasoning, non-native samples of Chinese speakers can be obtained. These samples are then combined with the initial training set to construct a new single-speaker bilingual dataset, which is used for model training to obtain CS TTS capabilities.
[0011] S5, then after the teacher model acquires the CS TTS capability, the distillation training algorithm operation is performed, which will impart the TTS and VC capabilities of the CosDiff model;
[0012] S6. Then, after CosDiff obtains the teacher's capabilities, it will perform reasoning operations to obtain the synthesized audio of CS.
[0013] Preferably, in step S1, before training begins, a preprocessing operation is performed on the training data Data Baker and LJSpeech.
[0014] Preferably, in step S3, in the process of training the teacher model, the AdamW optimizer is used to enhance the stability and overall performance of the training. In addition, by using a multi-task L1 loss function, the design is intended to optimize and refine the learning process of the model. The core of this loss function is to effectively capture and utilize the intrinsic characteristics of the data, while ensuring that the model can show good generalization ability and high learning efficiency in both TTS and VC tasks. The formula is as follows:
[0015]
[0016] in, and They represent the prediction results of TTS and VC tasks respectively, which are generated by the following formula:
[0017]
[0018] Among them, f θ is the denoising generative model we trained, α t and σ t is the scale factor that decreases over time, and ∈ is the noise sample obtained by random sampling.
[0019] Preferably, in step S4, the CosDiff obtains the code conversion TTS function through two training stages, and the steps are as follows:
[0020] 1) In the initial stage, the model is trained on a monolingual dataset (Chinese and English) to obtain TTS and VC features;
[0021] 2) In the second stage, the model uses its VC function to perform speaker adaptation on a dataset in another language. These samples are then integrated with the initial training set to construct a new monolingual and bilingual dataset, which is used for training to obtain CSTTS capabilities;
[0022] Both stages use 4 diffusion steps. After the teacher model converges, a CosDiff model with 2 diffusion steps is generated through knowledge distillation.
[0023] Preferably, the step S5 is specifically described as follows: using the denoising model target value 1 and target value 2 calculated from the two-step DDIM sampling results of the teacher model as supervision signals, fine-tuning the prediction target of the single-step DDIM sampling of the student model in the TTS and VC tasks, and defining a mean square error loss function to quantify the consistency between the CosDiff prediction result and the denoising target of the teacher model. The full name of DDIM is (Denoising Diffusion Implicit Model, DDIM), which is a denoising diffusion implicit model.
[0024] Preferably, the distillation training algorithm includes the following:
[0025]
[0026] The main steps of the above CosDiff distillation training algorithm can be divided into the following three steps:
[0027] 1) Load the pre-trained parameters of the teacher model and assign the pre-trained parameters of the teacher model to the student model. The diffusion steps of the student model will be set to half of the diffusion steps of the teacher model.
[0028] 2) Use the denoising model x computed from the two-step DDIM sampling results of the teacher model (results in rows 9 and 11) target1 and x target2 Prediction targets of single-step DDIM sampling for fine-tuning student models in TTS and VC tasks as supervisory signals and (result of line 15);
[0029] 3) Calculate the loss and update the student model parameters.
[0030] Preferably, the loss function of the student model in the progressive diffusion distillation process is as follows:
[0031]
[0032] Among them, x target1 and x target2 is the supervisory signal of the teacher model’s two-step DDIM sampling calculation, and and It is the prediction target of the single-step DDIM sampling of the student model.
[0033] Preferably, in step S6, the performing of the reasoning operation includes the following:
[0034]
[0035] Unlike the training phase, the inference process does not require the joint features of unit and variance. Instead, it only needs to input either unit or variance features to perform a single downstream task (TTS or VC). At each reverse time step t∈{T,T-1,...,1}, CosDiff first utilizes the parameterized denoising function f θ (x t |c, t), based on the current sample x t Predicting Clean Data Then, calculate the current sample x t and forecast data The posterior mean μ obtained by dynamic weighted combination t-1, and determine its posterior variance based on the diffusion coefficients α and β Finally, CosDiff will use the posterior distribution x t-1 Sampling is performed. Repeat the above process until x0 is obtained.
[0036] Specifically, the CosDiff is the first diffusion model implemented in the CS TTS task.
[0037] The diffusion model used has the following advantages over traditional autoregressive and non-autoregressive models:
[0038] 1) High generation quality: Diffusion models are particularly good at generating high-quality and high-resolution image and audio samples. This is because they generate data by gradually removing noise, which can capture the complex distribution characteristics of the data.
[0039] 2) Stability and controllability: Compared with the autoregressive model, the diffusion model is more stable in the generation process and is less prone to mode collapse. In addition, the generation process of the diffusion model is more controllable, and the characteristics of the generated samples can be affected by adjusting the rate at which the noise is reduced.
[0040] 3) Better sample diversity: Diffusion models can generate more diverse samples than non-autoregressive models. This is because each generation step involves randomness, which makes the final generated samples more diverse than the deterministic output of non-autoregressive models.
[0041] 4) Training stability: The diffusion model exhibits high stability during training, especially when dealing with high-dimensional data. This stability makes the model training process more reliable and reduces the number of hyperparameters that need to be adjusted.
[0042] Diffusion models have been shown to outperform traditional autoregressive and non-autoregressive models in terms of generation quality, stability, and sample diversity, which makes them very useful and popular in various generation tasks.
[0043] A CS TTS method based on multi-task DDIM comprises the following steps:
[0044] S1: CosDiff is trained by using the public datasets Data Baker and LJSpeech. Before training, the training data is preprocessed. First, the speech data is resampled to 16KHz and the corresponding Mel spectrum is extracted. Then, Soft HuBERT is used to extract language soft unit features from the language data for subsequent training.
[0045] S2: The performance of the teacher model is the key to determine the upper limit of the refined model. In order to select a suitable teacher model, we first analyzed the diffusion parameterization on the LJSpeech dataset to evaluate the balance between generation quality and sampling speed on GPU in TTS and Voice Conversion (VC) tasks. Finally, based on experimental results and empirical evidence, we selected a model with four diffusion steps as the teacher model;
[0046] S3: Train the teacher model using Data Baker and LJSpeech datasets, with input including the noise spectrogram x t , diffusion step t, and the joint features of variance and soft unit c, so that it has preliminary TTS and VC capabilities. In addition, in order to balance the learning of the two tasks, a multi-task L1 loss function is finally constructed to accurately model the difference between the generated audio and the original audio;
[0047] S4: After the teacher model training converges to obtain VC capabilities, VC inference is performed to generate non-native speech samples of the target speaker. For example, if the initial training set is in Chinese, our goal is to obtain non-native samples of Chinese speakers. By inputting audio from the native English dataset into the pre-trained teacher model to perform VC inference, we can obtain non-native samples of Chinese speakers. These samples are then combined with the initial training set to construct a new single-speaker bilingual dataset, which is used for model training to obtain CS TTS capabilities;
[0048] S5: After the teacher model acquires the CS TTS capability, a distillation operation is performed to impart the TTS and VC capabilities of the CosDiff model. Specifically, the denoising model target value 1 and target value 2 calculated from the two-step DDIM sampling results of the teacher model are then used as supervisory signals to fine-tune the prediction target of the single-step DDIM sampling of the student model in the TTS and VC tasks. And the mean square error loss function is defined to quantify the consistency between the CosDiff prediction results and the denoising target of the teacher model;
[0049] S6: After CosDiff obtains the teacher's capabilities, it will perform reasoning operations to obtain the synthesized audio of CS. Specifically, the target mixed text (Chinese and English are used here) is then input into the model. The text will first be mapped to the corresponding phoneme representation, then converted to the corresponding phoneme ID, and finally the model will convert the corresponding phoneme ID into the target CS audio.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] 1. The CosDiff of the present invention is the first diffusion model implemented in the CS TTS task. It achieves a lower computational cost in the CS TTS field while maintaining the quality of generated samples.
[0052] 2. The present invention creates a single-speaker bilingual dataset by using a VC module based on a unit DDIM, and implements CS TTS without the need for a speaker encoder. In addition, an improved diffusion module is then introduced to improve the overall performance of CosDiff.
[0053] 3. For the multi-task speech synthesis model based on DDIM, this paper implements a strategy to directly predict clean data x0 to speed up complex distribution sampling. We also use N-step teacher behavior for knowledge distillation to generate a new model CosDiff that only requires N / 2 steps. CosDiff optimizes model parameters while ensuring the quality of the generated mel-spectrogram, further improving the model sampling speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 Schematic diagram of a spectrum denoiser of the CosDiff model of the present invention;
[0055] Figure 2 Schematic diagram of the CosDiff model reasoning process of the present invention;
[0056] Figure 3 It is a schematic diagram of the overall architecture of CosDiff of the present invention;
[0057] Figure 4 It is a schematic diagram of the model training process of the present invention;
[0058] Figure 5 It is a schematic diagram of the model reasoning process of the present invention;
[0059] Figure 6 This is a schematic diagram of a monolingual TTS scenario of the present invention;
[0060] Figure 7 It is a schematic diagram of the CS TTS scenario of the present invention. DETAILED DESCRIPTION
[0061] The following is a further detailed description of the embodiments of the present invention in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.
[0062] As attached Figure 1 To Attachment Figure 7 As shown:
[0063] Embodiment: The present invention provides a code-switching speech synthesis method based on a multi-task denoising diffusion latent model, comprising the following steps:
[0064] S1. Before training begins, preprocessing is performed on the training data: first, the speech data is resampled to 16KHz and the corresponding Mel spectrum is extracted. Then, Soft HuBERT is used to extract language soft unit features from the language data.
[0065] S2. Then, we analyzed the diffusion parameterization on the LJSpeech dataset to evaluate the balance between generation quality and sampling speed on GPU in TTS and Voice Conversion (VC) tasks. Finally, based on the experimental results and parameter tuning experience, we selected a model with four diffusion steps as the teacher model.
[0066] S3, then use the Data Baker and LJSpeech datasets to train the teacher model, and the input includes the noise spectrogram x t , diffusion step length t, and the joint features of variance and soft unit c, so that it has preliminary TTS and VC capabilities, which are input into a denoising spectrometer to directly predict the clean spectrum x0. Figure 1 As shown, the spectrogram denoiser θ is based on the noise spectrogram x t , diffusion step t and condition c are used as input to calculate f θ (x t |c, t) to directly predict the clean mel spectrogram x0. The symbols FC, Swish and ReLU are used to represent the fully connected layers, as well as the Swish and ReLU activation functions;
[0067] S4. Then, after the teacher model training converges to obtain VC capabilities, VC reasoning is performed to generate non-native speech samples of the target speaker. Then, by inputting the audio of the native English dataset into the pre-trained teacher model to perform VC reasoning, non-native samples of Chinese speakers can be obtained. These samples are then combined with the initial training set to construct a new single-speaker bilingual dataset, which is used for model training to obtain CS TTS capabilities.
[0068] S5, then after the teacher model acquires the CS TTS capability, the distillation training algorithm operation is performed, which will impart the TTS and VC capabilities of the CosDiff model;
[0069] S6. Then, after CosDiff obtains the teacher's capabilities, it will perform reasoning operations to obtain the synthesized audio of CS.
[0070] Specifically, in step S1, before training begins, a preprocessing operation is performed on the training data Data Baker and LJSpeech.
[0071] Specifically, in step S3, during the training of the teacher model, the AdamW optimizer is used to enhance the stability and overall performance of the training. In addition, by using the multi-task L1 loss function, the design is intended to optimize and refine the learning process of the model. The core of this loss function is to effectively capture and utilize the intrinsic characteristics of the data, while ensuring that the model can show good generalization ability and high learning efficiency in both TTS and VC tasks. The formula is as follows:
[0072]
[0073] in, and They represent the prediction results of TTS and VC tasks respectively, which are generated by the following formula:
[0074]
[0075] Among them, f θ is the denoising generative model we trained, α t and σ t is the scale factor that decreases over time, and ∈ is the noise sample obtained by random sampling.
[0076] Specifically, in step S4, the CosDiff obtains the code conversion TTS function through two training stages, and the steps are as follows:
[0077] 1) In the initial stage, the model is trained on a monolingual dataset (Chinese or English) to obtain TTS and VC features;
[0078] 2) In the second stage, the model uses its VC function to perform speaker adaptation on a dataset in another language. These samples are then integrated with the initial training set to construct a new monolingual and bilingual dataset, which is used for training to obtain CSTTS capabilities;
[0079] Both stages use 4 diffusion steps. After the teacher model converges, a CosDiff model with 2 diffusion steps is generated through knowledge distillation.
[0080] Specifically, the step S5 is specifically described as follows: using the denoising model target value 1 and target value 2 calculated from the two-step DDIM sampling results of the teacher model as supervision signals, fine-tuning the prediction target of the single-step DDIM sampling of the student model in the TTS and VC tasks, and defining a mean square error loss function to quantify the consistency between the CosDiff prediction result and the denoising target of the teacher model.
[0081] As can be seen above, by applying soft units (Units) in DDIM, a VC module based on Units-DDIM was developed. This module is designed for "Any-To-One" VC, which can convert the voices of different speakers into the voice of a single target speaker. This module can convert voices from different speakers into the voice of a single, specific target speaker. Using this capability, a new single-speaker bilingual dataset was then constructed for training to obtain CSTTS features, thereby alleviating the scarcity of bilingual datasets.
[0082] Specifically, the main steps of the CosDiff distillation training algorithm can be divided into the following three steps:
[0083] 1) Load the pre-trained parameters of the teacher model and assign the pre-trained parameters of the teacher model to the student model. The diffusion steps of the student model will be set to half of the diffusion steps of the teacher model.
[0084] 2) Use the denoising model x computed from the two-step DDIM sampling results of the teacher model (results in rows 9 and 11) target1 and x target2 Prediction targets of single-step DDIM sampling for fine-tuning student models in TTS and VC tasks as supervisory signals and (result of line 15);
[0085] 3) Calculate the loss and update the student model parameters.
[0086] Specifically, the step S6 is described in detail as follows: the target mixed text (Chinese and English) is input into the model, the text will first be mapped to the corresponding phoneme representation, then converted into the corresponding phoneme ID, and finally the model will convert the corresponding phoneme ID into the target CS audio.
[0087] Specifically, the specific reasoning process of the CosDiff model is as follows Figure 2 As shown in the figure, here, the model first determines the input data type. If the input data is phoneme, TTS reasoning will be performed, otherwise VC reasoning will be performed.
[0088] As can be seen from the above, the present invention aims to improve the generation quality of model samples by adopting an improved DDIM while maintaining a fast inference speed. This improvement is particularly important for multi-task speech synthesis models, as these models need to efficiently process and generate complex audio data. Our method includes the following key steps:
[0089] 1) Strategy of directly predicting clean data x0: Our model improvement consists of directly predicting clean data x0 instead of the traditional step-by-step denoising process. This strategy significantly speeds up the sampling of complex distributions because it reduces the required iterative steps and computational burden.
[0090] 2) Knowledge distillation of N-step teacher actions: In order to further improve the inference efficiency, the knowledge distillation technique of N-step teacher actions was then adopted. Through this method, a new model was finally generated that only takes N / 2 steps to complete sample generation. This not only reduces the computation time, but also maintains the high quality of the generated samples.
[0091] On top of all these improvements, we pay special attention to the quality of the generated mel-spectrograms. Through optimized model design and parameter tuning, we ensure the accuracy and clarity of the mel-spectrograms, thereby improving the quality of sample generation while maintaining fast inference speed.
[0092] Application examples:
[0093] The listening test was conducted by 15 native Mandarin speakers who are proficient in English and engaged in speech research. For each different test, we used 20 sentences for listening evaluation and adopted the following metrics to evaluate the overall performance of the model:
[0094] Audio quality: These tests are based on Mean Opinion Score (MOS). MOS evaluation is divided into two key categories: 1) Naturalness: focuses on noise level, timbre richness, and speech clarity, ignoring prosodic properties. 2) Speaker Similarity: focuses on the consistency of the timbre and pitch of the synthesized speech with the target speaker.
[0095] Sampling speed: Real-Time Factor (RTF) is evaluated on the GPU as a metric to assess the performance of the model under real-time or near-real-time conditions.
[0096] Parametric analysis experiment: This is a comparison of the generation quality of different diffusion step models on LJSpeech in VC and TTS tasks, so as to select the appropriate teacher model. indicates that the subjects had difficulty distinguishing the differences between these test tones, so we take the average of the values given:
[0097]
[0098] Comparison Models: We choose FastSpeech 2 and Grad-TTS as baseline models, both of which implement code-switching TTS via the speaker encoder approach.
[0099] Generation effect comparison experiment: The experiment uses mixed Chinese and English texts for testing, where Speaker refers to the speaker used in the test, EN refers to the speaker whose native language is English, and CN refers to the speaker whose native language is Chinese. The experimental results are as follows:
[0100]
[0101] Sampling speed comparison experiment: To evaluate the inference speed, we visualize the relationship between the input phoneme sequence length (phonemelength) and the inference time (inference time). Figure 6 describes a monolingual TTS scenario, while Figure 7 A CS TTS scenario is shown, where the ratio of English phonemes to Chinese phonemes is always kept at 50%. EN indicates that the phoneme is English, CN indicates that the phoneme is Chinese, and EN / CN indicates that the phoneme is either English or Chinese. The results show that Grad-TTS takes significantly longer to infer a Chinese phoneme sequence than an English sequence of the same length. Thanks to the training strategy of two-step reverse sampling and direct prediction of x0, its inference speed is largely independent of the language of the input data. Even when dealing with more complex CS TTS tasks, the inference time does not increase linearly with the phoneme length and always remains at around 10ms. This efficiency is comparable to the parallel processing capability of the FastSpeech 2 model, demonstrating its robustness in complex scenarios.
[0102] In summary, this method performs well in sampling speed and CS audio generation effect, and is suitable for large-scale promotion and application.
[0103] The embodiments of the present invention are provided for the purpose of illustration and description. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present invention. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A code-switching speech synthesis method based on a multi-task denoising diffusion latent model, characterized in that: The following steps are involved: S1. Before training begins, preprocess the training data: first, resample the speech data to 16KHz and extract the corresponding Mel spectrum, then use SoftHuBERT to extract language soft unit features from the language data; S2. Then, we analyzed the diffusion parameterization on the LJSpeech dataset to evaluate the balance between generation quality and sampling speed on GPU in TTS and speech conversion tasks. Finally, based on the experimental results and parameter adjustment experience, we selected a model with four diffusion steps as the teacher model. S3, then use DataBaker and LJSpeech dataset to train the teacher model, the input includes the noise spectrogram x t , diffusion step size t, and the joint features of variance and soft unit c give it preliminary TTS and VC capabilities. S4. Then, after the teacher model training converges to obtain VC capabilities, VC reasoning is performed to generate non-native speech samples of the target speaker. Then, by inputting the audio of the native English dataset into the pre-trained teacher model to perform VC reasoning, non-native samples of Chinese speakers can be obtained. These samples are then combined with the initial training set to construct a new single-speaker bilingual dataset, which is used for model training to obtain CSTTS capabilities. S5, then after the teacher model acquires the CSTTS capability, the distillation training algorithm operation is performed, which will impart the TTS and VC capabilities of the CosDiff model; S6. Then, after CosDiff obtains the teacher's capabilities, it will perform reasoning operations to obtain the synthesized audio of CS.
2. The method for code-switching speech synthesis based on a multi-task denoising diffusion latent model as claimed in claim 1, characterized in that: In step S3, during the training of the teacher model, the AdamW optimizer is used to enhance the stability and overall performance of the training. In addition, a multi-task L1 loss function is used, which is designed to optimize and refine the learning process of the model. The core of this loss function is to effectively capture and utilize the intrinsic characteristics of the data while ensuring that the model can exhibit good generalization ability and high learning efficiency in both TTS and VC tasks.
3. The method for code-switching speech synthesis based on multi-task denoising diffusion latent model as claimed in claim 1, characterized in that: In step S4, the CosDiff obtains the transcoding TTS function through two training stages, the steps of which are as follows: 1) In the initial stage, the model is trained on a monolingual dataset to obtain TTS and VC features; 2) In the second stage, the model uses its VC function to perform speaker adaptation on a dataset in another language. These samples are then integrated with the initial training set to construct a new monolingual and bilingual dataset, which is used for training to obtain CS TTS capabilities; Both stages use 4 diffusion steps. After the teacher model converges, a CosDiff model with 2 diffusion steps is generated through knowledge distillation.
4. The method for code-switching speech synthesis based on multi-task denoising diffusion latent model as claimed in claim 1, characterized in that: The specific description of step S5 is: using the denoising model target value 1 and target value 2 calculated from the two-step DDIM sampling results of the teacher model as supervision signals, fine-tuning the prediction target of the single-step DDIM sampling of the student model in the TTS and VC tasks, and defining the mean square error loss function to quantify the consistency between the CosDiff prediction result and the denoising target of the teacher model.
5. The method for code-switching speech synthesis based on multi-task denoising diffusion latent model as claimed in claim 1, characterized in that: The specific description of step S6 is as follows: the target mixed text (Chinese and English) is input into the model, the text will first be mapped to the corresponding phoneme representation, then converted into the corresponding phoneme ID, and finally the model will convert the corresponding phoneme ID into the target CS audio.
Citation Information
Cited By
Fast text guidance sound effect generation method and system based on segmented rectification
CN119811365A
A fast text-guided sound effect generation method and system based on segmented rectification
CN119811365B
