DDDM-VC: Decoupled Denoising Diffusion Models with Disentangled Representation and Prior Mixup for Verified Robust Voice Conversion

Ha-Yeong Choi, Sang-Hoon Lee, Seong-Whan Lee

Introduction

Denoising diffusion models (Ho et al., 2020; Dhariwal and Nichol, 2021; Song et al., 2021) have achieved significant success in image generation tasks (Ramesh et al., 2022; Saharia et al., 2022b). Diffusion models have also attracted increasing interest in the audio domain in recent years, owing to their ability to synthesize high-quality speech (e.g., Mel-spectrogram and audio). Various applications employ diffusion models, such as text-to-speech (TTS) (Popov et al., 2021; Kim et al., 2022a, b), neural vocoder (Kong et al., 2021; Chen et al., 2021; Huang et al., 2022a), speech enhancement (Han and Lee, 2022), and voice conversion (VC) (Liu et al., 2021; Popov et al., 2022).

Although diffusion models have achieved success in most speech applications owing to their powerful generative performance, there remains room for improvement in conventional diffusion models. As data include many attributes, it is difficult to control specific styles for each attribute with a single denoiser that shares the model parameters across all levels of generation process. To reduce this burden in the image generation domain, eDiff-i (Balaji et al., 2022) subdivides the single denoiser into multiple specialized denoisers that originate from the single denoiser progressively according to specific iterative steps. However, a limitation still exists in controlling each attribute within entirely the same conditioning framework for every iteration, which results in a lack of controllability.

To address the above issues, we first present decoupled denoising diffusion models (DDDMs) with disentangled representations. As illustrated in Figure 1, we disentangle the denoiser into specific attribute-conditioned denoisers to improve the model controllability for each attribute. Subsequently, each denoiser focuses on the noise from its own attribute at the same noise level and removes the noise at each intermediate time step. To demonstrate the effectiveness of DDDMs, we focus on the VC tasks that still face challenges in disentangling and controlling each speech attribute (Choi et al., 2021). VC is a task for transferring or controlling the voice style while maintaining the linguistic information. As speech consists of various attributes such as linguistic information, intonation, rhythm, and timbre, it remains challenging to transfer the voice style in zero/few-shot scenarios (Lee et al., 2022b).

Based on the DDDMs, we present DDDM-VC which can effectively transfer and control the voice style for each attribute. We first utilize the self-supervised representation to disentangle the speech representation based on the source-filter theory (Fant, 1970). Subsequently, we resynthesize the speech for each attribute from the disentangled representation using DDDMs. We also propose the prior mixup, a novel verified robust voice style transfer training scenario that uses the converted speech as a prior distribution for the diffusion model that is generated from the mixed speech representation, and restores the source speech. Thus, although DDDM-VC is trained by reconstructing the source speech, the prior mixup can reduce the train-inference mismatch problem for VC tasks. We demonstrate that DDDMs can effectively transfer the voice style even with lower model parameters compared to the state-of-the-art VC model (Popov et al., 2022). Furthermore, the experimental results reveal the effectiveness of speaker adaptation in the zero/one-shot scenarios. The main contributions of this study are as follows:

We propose decoupled denoising diffusion models (DDDMs), which can effectively control the style for each attribute in generative models by decoupling attributes and adopting the disentangled denosiers.

To demonstrate the effectiveness of DDDMs, We present DDDM-VC, which can disentangle and resynthesize speech for each attribute with self-supervised speech representation. Furthermore, we propose a prior mixup to improve voice style transfer performance.

Our model provides better performance in both many-to-many and zero-shot voice style transfer compared with the state-of-the-art VC model. We can also successfully adapt to novel voice with a single sample.

Related Works: Voice Conversion

The aim of VC is to convert the source speaker voice into the target speaker voice while preserving the linguistic (content) information (Yi et al., 2020). For this purpose, it is critical to decompose the linguistic, timbre, and pitch information such as intonation. Many VC methods have been presented with the goal of disentangling the speech representation by decomposing the speech into various components: two methods: (1) information bottleneck and (2) information perturbation.

An information bottleneck is used to constrict the information flow through a carefully designed bottleneck. AutoVC (Qian et al., 2019) presented a method for inducing the disentanglement of the content and timbre by restricting the dimension of the latent vector between the encoder and decoder. Subsequently, F0-AutoVC (Qian et al., 2020a) takes the idea from the constraints of layer dimension (Qian et al., 2019), conditioning the decoder with normalized F0. (Qian et al., 2021; Lee et al., 2021) presents a similarity-based information bottleneck for content and style disentanglement. However, in these models, the heuristic determination of appropriate bottleneck size is inevitable, which is directly related to the model performance, and it may even differ for each dataset.

Information perturbation approaches have been proposed to overcome the above limitation. The basic concept of information perturbation is to remove unnecessary information for each speech representation through signal processing before feeding it to the network. SpeechFlow (Qian et al., 2020b) and NANSY (Choi et al., 2021) adopt perturbation methods for the input waveforms and encourage the encoded feature to be correctly removed so that only content information remains.

Recently, (Lee et al., 2022c; Popov et al., 2022) extracted speaker-irrelevant linguistic information using phoneme information. These models can simply execute content information disentanglement, and convert the speech with accurate pronunciation using explicit phoneme information; however, phoneme information must be extracted in advance and phoneme-level downsampling may induce the loss of content information.

Recent studies have utilized a self-supervised speech representation as the linguistic content representation, (Polyak et al., 2021; Choi et al., 2021; Huang et al., 2021, 2022b) for the disentanglement of speech components. Despite the significant advances in VC, there are still certain limitations. The information loss that occurs when disentangling speech representations results in degradation of the synthesized speech quality in terms of both the audio and speaker adaptation quality. Therefore, in this study, we focus on synthesizing high-quality speech by disentangling speech representations appropriately and restoring lost information by using diffusion models. Although (Popov et al., 2022) employed diffusion models to VC tasks, their method still exhibited limitations in pronunciation and speaker adaptation quality of converted speech. To solve these problems, we present DDDMs and the prior mixup. The details of our methods are described in the following sections.

Decoupled Denoising Diffusion Models

Denoising diffusion models have significantly improved various generative tasks such as image generation (Ramesh et al., 2022; Rombach et al., 2022), image inpainting (Saharia et al., 2022a; Lugmayr et al., 2022), and audio generation (Chen et al., 2021; Kong et al., 2021; Huang et al., 2022a). These models typically consist of a forward process that gradually adds random noise, and a reverse process that progressively removes random noise and restores the original sample.

Unlike the original diffusion model that uses a discrete-time diffusion process by Markov chains (Ho et al., 2020), the score-based generative model uses a stochastic differential equation (SDE)-based continuous-time diffusion process (Song et al., 2021). The stochastic forward process is defined as follows:

where wˉ\bar{\mathbf{w}} is the Brownian motion for the time flowing in backward, and ∇xlog⁡pt(x)\nabla_{\mathbf{x}}\log p_{t}(\mathbf{x}) represents the score-function. To estimate sθ(x,t)≃∇xlog⁡pt(x)\mathbf{s}_{\theta}(\mathbf{x},t)\simeq\nabla_{\mathbf{x}}\log p_{t}(\mathbf{x}), the score-based diffusion model is trained with score matching objective:

2 Disentangled Denoiser

To effectively control the style for each attribute in generative models, we propose decoupled denoising diffusion models (DDDMs) with multiple disentangled denoisers. Although an ensemble of diffusion models was presented in (Balaji et al., 2022), only a single expert is used at the specific denoising step in this method. In contrast, we investigate the decomposition of diffusion models in a single denoising step. Specifically, more than one attribute denoiser is used at any given point.

Unlike the general diffusion process, which employs a single denoiser, we subdivide the denoiser into NN denoisers with disentangled representations. Following the use of data-driven priors in (Popov et al., 2022), we use a disentangled representation of an attribute ZnZ_{n} as the prior for each attribute denoiser. Therefore, the forward process can be expressed:

where n∈[1,N]n\in[1,N], n{n} denotes each attribute, N{N} is the total number of attributes, βt\beta_{t} regulates the amount of stochastic noise and Wt{W_{t}} is the forward Brownian motion. Reverse trajectories exist for the given forward SDE of each attribute (4). The reverse process of each disentangled denoiser can be defined as follows:

where t∈t\in, sθns_{\theta_{n}} represents the score function of each attribute nn parameterized by θn\theta_{n} and Wtˉ\bar{W_{t}} denotes the backward Brownian motion. The forward process (4) that generates a noisy sample Xn,tX_{n,t} with each prior attribute n{n} is as follows:

The reverse process (5) is trained by optimizing the parameter θn{\theta_{n}} using the following objective:

where θ=[θ1,⋯ ,θN]\theta=[\theta_{1},\cdots,\theta_{N}] and λt=1−e−∫0tβsds\lambda_{t}=1-e^{-\int_{0}^{t}{\beta_{s}ds}}. Furthermore, we derive fast sampling using the ML-SDE solver (Popov et al., 2022), which maximizes the log-likelihood of forward diffusion with the reverse SDE solver. We extend DDDMs to DDDM-VC to control the voice style for each attribute in the following Section. In addition, we show that DDDMs can be applied to audio mixing by leveraging multiple denoisers to blend the sound and speech with the desired balance in Appendix H.

DDDM-VC

DDDM-VC consists of a source-filter encoder and source-filter decoder as illustrated in Figure 2. We first disentangle the speech using self-supervised speech representations as in subsection 4.1. Thereafter, we use these disentangled speech representations to control each attribute and to generate high-quality speech with the proposed disentangled denoiser as explained in subsection 4.2. Furthermore, we propose the prior mixup for a robust voice conversion scenario in subsection 4.3.

To extract the content representation relating to the phonetic information, we utilize self-supervised speech representations. Unlike (Polyak et al., 2021) utilizing the discrete representation of audio from HuBERT, we use a continuous representation of audio from XLS-R, which is Wav2Vec 2.0 trained with a large-scale cross-lingual speech dataset. Furthermore, before fed to the filter encoder, audio is perturbed to remove the content-independent information following (Choi et al., 2021). As (Lee et al., 2022b) demonstrated that the representation from the middle layer of XLS-R contains substantial linguistic information, we adopt this representation as the content representation.

Pitch Representation

Following (Polyak et al., 2021), we extract the fundamental frequency (F0) from the audio using YAPPT algorithm (Kasi and Zahorian, 2002) to encode the intonation such as the speaker-irrelevant speaking style. The F0 from each sample is normalized for each speaker for speaker-independent pitch information, and VQ-VAE is used to extract the vector-quantized pitch representation. For a fair comparison, we normalize the F0 for each sentence, not for a speaker, during inference.

Speaker Representation

VC transfers the voice style, and our goal is to achieve robust zero-shot voice style transfer from novel speakers. To this end, we use style encoder (Min et al., 2021) that can extract the speaker representation from the Mel-spectrogram of the target speech. The extracted speaker representation is averaged per sentence for global speaker representation, and fed to all encoders and decoders for the speaker adaptation.

2 Speech Resynthesis

In this work, we simply define the speech attributes according to the source-filter theory (Fant, 1970). The filter encoder takes the content and speaker representations, whereas the source encoder takes the pitch and speaker representations. Previously, (Lee et al., 2022a) demonstrated that the data-driven prior in the diffusion process can simply guide the starting point of the reverse process. (Popov et al., 2022) adopted an average phoneme-level Mel encoder for voice conversion with a data-driven prior. However, this method requires a text transcript to extract the phoneme-level average Mel-spectrogram and pre-trained average Mel-encoder, and the smoothed Mel representation results in mispronunciation. To achieve a substantially more detailed prior, we use the entirely reconstructed source and filter Mel-spectrograms, ZsrcZ_{src} and ZftrZ_{ftr} which are regularized by the target Mel-spectrogram XmelX_{mel} as follows:

It is worth noting that the disentangled source and filter Mel-spectrograms from the disentangled representations are simply converted with different speaker representation ss. Thus, we utilize the converted source and filter Mel-spectrogram as each prior in each denoiser for VC.

Source-filter Decoder

We utilize disentangled denoisers for the source and filter representations based on our DDDMs. The source decoder takes a source representation ZsrcZ_{src} as a prior and the filter decoder takes a filter representation ZftrZ_{ftr} as a prior. Subsequently, each denoiser is trained to generate a target Mel-spectrogram from each prior with the same noise, which is conditioned on a speaker representation. Each denoiser can focus on removing the single noise from its own attribute. The forward process is expressed as:

where t∈t\in, Xsrc,tX_{src,t} and Xftr,tX_{ftr,t} are the generated noisy samples with each prior attribute (i.e., source-related and filter-related attribute respectively). For the given forward SDE of each attribute (11) and (12), there exist reverse trajectories. The reverse process is expressed as:

where sθsrcs_{\theta_{src}} and sθftrs_{\theta_{ftr}} denote the score function parameterized by θsrc\theta_{src} and θftr\theta_{ftr} respectively.

3 Prior Mixup

Although the speech can be disentangled into several attributes and resynthesized with high-quality using the self-supervised representation and diffusion processes, we still train the model by only reconstructing or using the input speech as the target speech in both the reconstruction and diffusion processes, which induces the train-inference mismatch problem. In non-parallel voice conversion scenario, the ground-truth of the converted speech does not exist; Thus, the model is trained only by reconstructing the source speech. However, as we convert the source speech with a different voice style for VC, we shift our focus from reconstruction to conversion even in the training scenario.

To achieve this, we propose a prior mixup in the diffusion process, which uses the randomly converted representation instead of the reconstructed representation as a prior distribution as illustrated in Figure 3(c). Specifically, because the source-filter encoder can also be trained to reconstruct a source and filter of speech from the disentangled representation, the converted source and filter can be obtained with the randomly selected speaker style srs_{r} as follows:

Subsequently, the randomly converted source and filter, Zsrc,rZ_{src,r} and Zftr,rZ_{ftr,r} are used as the prior for each denoiser as below:

The reverse process for the given forward SDE of each attribute (16) and (17) is expressed as:

Hence, the prior mixup can alleviate the train-inference mismatch problem as the model is trained to convert the converted speech into the source speech even when reconstructing the source speech. Moreover, the voice style can be adapted in the source-filter decoder when the source-filter encoder may not execute VC effectively during inference. The entire model, including the style encoder, source-filter encoder, and decoder without pre-trained XLS-R and F0 VQ-VAE, is jointly trained in an end-to-end manner with Equation (8) for each attribute and Equation (9).

As described in section 4.2, the reconstruction loss Lrec\mathcal{L}_{rec} (9) is used to regulate the encoder output for the data-driven prior of diffusion models. The reverse SDE of the source attribute (18) and filter attribute (19) is trained with the neural network θsrc\theta_{src} and θftr\theta_{ftr} to approximate the gradient of the log-density of noisy data XtX_{t}. Each attribute network is parameterized using the following objective:

where θ=[θsrc,θftr]\theta=[\theta_{src},\theta_{ftr}]. Hence, the diffusion loss can be expressed as the following:

The final objectives for DDDM-VC can be defined as follows:

Experiment and Result

We used the large-scale multi-speaker LibriTTS dataset to train the model. The train-clean-360 and train-clean-100 subsets of LibriTTS, which consist of 110 hours of audio samples for 1,151 speakers, were used for training. Thereafter, we evaluated VC performance on LibriTTS and VCTK dataset for many-to-many and zero-shot VC scenarios. For zero-shot cross-lingual voice conversion scenarios, we used the CSS10 dataset which includes 10 different languages.

Preprocessing

We resampled the audio from the sampling rate of 24,000 Hz to 16,000 Hz using the Kaiser-best algorithm of torchaudio Python package. We use the downsampled audio waveform as the input for XLS-R (0.3B) (Babu et al., 2022) to extract the self-supervised speech representation. For the target speech and the input of speaker encoder, we used log-scale Mel-spectrogram with 80 bins. To map the time frames between the self-supervised representation and Mel-spectrogram without any interpolation, Mel-spectrogram was transformed with hop size of 320, window size of 1280, and 1280-point Fourier transform.

Training

For reproducibility, we attached the source code of DDDM-VC in the Supplementary materials. We trained DDDM-VC using the AdamW optimizer (Loshchilov and Hutter, 2019) with β1=0.8\beta_{1}=0.8, β2=0.99\beta_{2}=0.99, and weight decay λ=0.01\lambda=0.01, and applied the learning rate schedule with a decay of 0.9991/80.999^{1/8} at an initial learning rate of 5×10−55\times 10^{-5}. We train all models including ablation study with a batch size of 64 for 200 epochs. Architecture details are described in Appendix A. For prior mixup, we mixed the speaker representation using binary selection between the original and shuffled representations in the same batch. For zero-shot voice conversion, we did not fine-tune the model. For one-shot speaker adaptation, we fine-tuned the model with only one sentence of novel speakers for 500 steps with optimizer initialization and an initial learning rate of 2×10−52\times 10^{-5}. We used the pre-trained Vocoder to convert the Mel-spectrogram into waveform. For vocoder, we used HiFi-GAN V1 (Kong et al., 2020) as an generator, and we used multi-scale STFT-based discriminators (MS-STFTD) of EnCodec (Défossez et al., 2022) which use a complex-valued STFT with real and imaginary components.

2 Evaluation Metrics

We measured the mean opinion score (MOS) for the speech naturalness and speaker similarity in VC tasks. At least 20 listeners rated each sample from the source and converted speech on a scale of 1 to 5 for the speech naturalness MOS (nMOS). At least 20 listeners rated the target and converted speech on a scale of 1 to 4 for the speaker similarity MOS (sMOS).

Objective Metrics

We calculated the character error rate (CER) and word error rate (WER) using Whisper (Radford et al., 2022) which is public available automatic speech recognition (ASR) modelhttps://github.com/openai/whisper. We used a large model of Whisper with 1,550M parameters, and used a presented text normalizer before calculating the CER and WER. with large-scale multi-lingual and multitask supervision for the content consistency measurement. We evaluated the equal error rate (EER) of automatic speaker verification (ASV) model (Kwon et al., 2021), which is trained with large-scale speech recognition dataset, VoxCeleb2 (Chung et al., 2018) for the speaker similarity measurement. Furthermore, we determined the speaker encoder cosine similarity (SECS) for the additional similarity measurement. As VCTK provided a paired utterance per speaker, we also evaluated the Mel-cepstral distortion (MCD). We produced all possible pairs from the converted and target speech (400×\times20 = 8,000), and calculated all the evaluation metrics.

3 Many-to-Many Voice Conversion

We performed the many-to-many VC task with seen speakers during the training, and compared our models with various VC models. As indicated in Table 1, DDDM-VC-Small also outperformed the other models in all subjective and objective metrics without ASR results. Although VoiceMixer had a lower CER and WER, it had a lower voice style transfer performance in terms of the EER and SECS. Furthermore, we compared the converted speech generated with 6 and 30 iterations to evaluate the performance with fast sampling. Although the objective results of the model with 6 iterations were better than those of the model with 30 iterations, the model with 30 iterations achieved better performance in both the nMOS and sMOS evaluations. Thus, the audio quality was perceptually improved and the generated samples had better diversity with the stochastic iterative processes.

4 Zero-shot Voice Conversion

We also report the results of the zero-shot VC tasks. As indicated in Table 2, our models significantly outperformed the baseline models in terms of speaker similarity. In particular, only the DDDM-VC models could adapt the voice style with novel speakers in terms of EER and SECS. We found that increasing iteration steps improved the diversity of converted speech in that CER, WER, and EER were increased, but the nMOS was consistently improved. We analyzed the effectiveness of each proposed component in the ablation study. In addition, we can control each attribute by transferring different styles to each attribute respectively as indicated in Appendix E.

5 One-shot Speaker Adaptation

For better speaker adaptation, we additionally fine-tuned our model on the VCTK dataset. We only used one sample per speaker, which is under ten seconds per speaker. As indicated in Table 2, the speaker similarity in terms of EER and SECS is consistently improved but the CER increased after the model overfitted the small training samples. With a small iteration of training, our model trained with large-scale speech dataset could effectively adapt to novel speaker by only one sample.

6 Zero-shot Cross-lingual Voice Conversion

We performed the zero-shot cross-lingual VC to demonstrate the zero-shot generation performance, even with unseen languages. We first produced all possible pairs from two samples of each language (20×\times20=400). Subsequently, we calculated the EER of all speakers of all languages (400×\times20=8000), the results reveal an EER of 9.75%\% which is similar to the zero-shot performance of seen language. Moreover, the CER results in Figure 4 demonstrate that our model could perform generalization for disentangling and converting speech even in zero-shot cross-lingual scenarios.

7 Ablation Study

We trained the DDDM-VC model without the prior mixup to clarify the reduction in the train-inference mismatch. As indicated in Table 3, the prior mixup could improve the generalization performance with better speaker adaptation in that the EER of the model with the prior mixup decreased and the SECS increased. However, the naturalness was slightly decreased, which can occur in VC since it does not take into account the target rhythm on the fixed-length of input speech. The research on the rhythm conversion could address this issue and we leave it for the future work.

Disentangled Denoiser

We observed that removing the disentangled denoiser (employing only a single denoiser) decreased the performance in all metrics. It indicates that the disentangled denoiser can improve the model performance by effectively adapting each representation to the target voice style, compared to a single denoiser.

Normalized F0

We determined that removing the normalized F0 conditioning decreases the VC performance. Without the pitch contour, the encoder may not disentangle the content information of the speech effectively, resulting in a degradation of the VC performance. As it is difficult to reconstruct the speech from the perturbed speech representation, the use of additional pitch information that can be extracted from the ground-truth speech may improve the stability of the model.

Data-driven Prior

As noted in (Lee et al., 2022a), a data-driven prior can improve the performance of diffusion model. We minimize the L1 distance of Mel-spectrogram between the ground-truth Mel-spectrogram and output of the source-filter encoder as Equation (10) for the data-driven prior. Each output from the source and filter encoder was used for the prior of each diffusion model, which was disentangled by the source-filter theory. Although nMOS was reported slightly lower, the performance of speaker adaptation significantly increased with data-driven prior. In the VC tasks, using the converted Mel-spectrogram performs better than using the average Mel-spectrogram (Popov et al., 2022). Besides, we think that the enhanced prior through normalizing flow (Kim et al., 2020; Ren et al., 2021) may also improve the performance of models.

Conclusion

We have presented DDDMs for the robust control of various data components in diffusion models. We successfully demonstrated that DDDMs can improve the style transfer performance in VC tasks. DDDM-VC can convert the voice style even in zero-shot voice style transfer tasks by improving the speaker adaptation quality significantly. We have also proposed the prior mixup, which can improve the robustness of style control by learning to restore the data from converted representations for better generalization with reduced train-inference mismatch. Furthermore, we demonstrated that our model can robustly convert the voice with high-quality regardless of the model size. The small model also achieved better performance than state-of-the-art VC models.

Broader Impact and Limitation

We present DDDMs, which can control the style for each attribute in generative models. We verify the effectiveness of DDDMs with DDDM-VC which can convert the voice style by disentangling the speech and resynthesizing the speech from the disentangled representation. These VC systems could be utilized in various applications such as dubbing systems for the game and film industries. For more practical application, we also extend our model to text-to-speech system by utilizing the pre-trained DDDM-VC in Appendix I. In addition, we also present an audio mixing system, DDDM-Mixer in Appendix H.

Social Negative Impact

Although TTS or VC systems could be positively utilized in various applications, they also have possible threats of malicious uses such as fake audio generation and voice spoofing. To alleviate these potential harms, audio fingerprint and fake audio detection systems should be presented with the development of speech technology.

Limitation

Although our model can improve the speaker adaptation quality significantly, there is room for improvement in the speech naturalness for zero-shot cross-lingual VC or noisy speech scenarios, which results from the inaccurate pitch modeling and style transfer with noise. Hence, in future works, we will first attempt to train the model with a cross-lingual dataset using the language-independent speech decomposition to improve the speech naturalness. In addition, we will separate the noise from speech for noise-free voice conversion with noise disentanglement.

Acknowledgements

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No. 2019-0-00079, Artificial Intelligence Graduate School Program(Korea University), No. 2019-0-01371, Development of Brain-inspired AI with Human-like Intelligence, No. 2021-0-02068, Artificial Intelligence Innovation Hub, and No. 2022-0-00984, Development of Artificial Intelligence Technology for Personalized Plug-and-Play Explanation and Verification of Explanation) and ESTsoft Corp., Seoul, Korea.

References

Appendix A Implementation Details

The hyperparameters of DDDM-VC are described in Table 4. DDDM-VC-Small has all the same hyperparameters without the initial dimension size of the source-filter diffusion decoder. For efficient training, we segment audio into 35,840 frames per audio, which is downsampled to 112 frames by XLS-R and this size is same as the Mel-spectrogram size transformed by the hop size of 320. We train all models with the batch size of 64 on two NVIDIA A100 GPUs (batch size of 32 per GPU) for three days. For the F0 VQVAE model, we utilize the official source code of speech resynthesishttps://github.com/facebookresearch/speech-resynthesis. We use the same dataset (train-clean-360 and train-clean-100 of LibriTTS subsets), and we train the F0 VQVAE module with the batch size of 16 on single NVIDIA A100 GPUs for 720k steps (It takes only eight hours). For XLS-R (0.3B), we utilize the pre-trained XLS-Rhttps://huggingface.co/docs/transformers/model_doc/xls_r.

A.2 Baseline Models

We compared our model with AutoVC (Qian et al., 2019), VoiceMixer (Lee et al., 2021), Speech Resynthesis (SR) (Polyak et al., 2021), and DiffVC (Popov et al., 2022). All of the models are trained with the same training dataset of train-clean and train-other of LibriTTS subsets. For AutoVC and VoiceMixer, the Mel-spectrogram segmented by 192 frames is fed to the model. We use an information bottleneck size of 32 for AutoVChttps://github.com/auspicious3000/autovc. For VoiceMixer, we set the k as 16 (about 0.3 seconds for a sampling rate of 16,000 Hz and hop size of 320). 0.3 seconds means over the average boundary of consonant-vowel syllables (Lee et al., 2021). For SR, we follow the official source code, however we found that training this model with a large-scale speaker dataset decreased the speaker adaptation performance. Also, although we utilize the same pre-trained F0 VQVAE module that is used to train our model, SR synthesizes some noisy sound when F0 is zero. We have also experienced that the E2E models lack speaker adaptation ability, and the SSL features used in SR contain low acoustic information, which results in mispronunciation and over-smoothing problems in the converted speech. We discovered that expanding SR to the large-scale LibriTTS dataset (rather than VCTK which is utilized in the paper) did not ensure the quality of model despite using the official source code of SR and the same VQ-VAE model our model used. Table 1,2 also demonstrated that the SR has a lower speaker adaptation quality. In addition, the E2E model takes more than 10 days to converge, but our model converges in just two days. Hence, we focused on synthesizing a high-fidelity Mel-spectrogram. For DiffVC, we follow the official source codehttps://github.com/huawei-noah/Speech-Backbones/tree/main/DiffVC to train the model. For better speaker adaptation performance of DiffVC, we additionally use the presented wodyn setting for speaker conditioning, which uses speaker embedding with additional noise Mel-spectrogram of the target speaker at time tt.

A.3 Vocoder

To transform Mel-spectrogram into waveform audio, we use the same neural vocoder, HiFi-GAN V1 (Kong et al., 2020) for all models without speech resynthesis which is an end-to-end waveform synthesis model. However, as the performance of vocoder is the upper-bound of VC models, we would like to improve the quality of vocoder. Hence, we replace the multi-scale discriminator and multi-period discriminator with multi-scale STFT-based discriminators (MS-STFTD) of EnCodec (Défossez et al., 2022) which use the real and imaginary components transformed from audio by STFT. Table 5 shows that only replacing the discriminator can improve the quality of vocoderFor PESQ, we used an open-source implementation from https://github.com/ludlows/PESQ. For Pitch, Periodicity, and V/UV F1, we follow the implementation from https://github.com/descriptinc/cargan, so we used the HiFi-GAN with MS-STFTD for waveform audio generation. We trained this vocoder with the train-clean-360 and train-clean-100 of LibriTTS, which are the same subsets of the training dataset for VC models.

Appendix B Evaluation on Speech Resynthesis

We evaluated the speech resynthesis performance of DDDM-VC to measure the reconstruction performance, and compared it with DiffVC on the all subsets of LibriTTS including dev-clean, dev-other, test-clean, and test-other. For the speech resynthesis task, we additionally calculate the Mel-spectrogram reconstruction L1 distance (Recon.), Mel-cepstral distortion (MCD13), and the root mean square error of F0 (RMSEf0) for evaluating reconstruction performance. All above subsets are unseen during training, so Table 9, 9, 9, and 9 shows the zero-shot speech resynthesis performance. The results indicated that our model outperform the DiffVC in all objective metrics without the RMSEf0 of test-clean subset. In terms of speaker similarity, DDDM-VC can adapt to novel speaker during speech resynthesis. However, DiffVC, which uses the average Mel-spectrogram as a prior of diffusion model, has a lower speaker adaptation performance even in the speech resynthesis tasks. As shown in Table 3, using the converted Mel-spectrogram as a prior for diffusion models can improve the quality of synthetic speech.

Appendix C Zero-shot Voice Conversion on LibriTTS

We additionally evaluate the zero-shot voice conversion performance on the all subsets of LibriTTS including dev-clean, dev-other, test-clean, and test-other. The zero-shot voice conversion performance of DDDM-VC outperformed that of DiffVC in all subsets. As Table 13 and 13, we found that a noisy source and target speech significantly degrade the voice conversion performance in terms of naturalness. We expect the noise modeling in encoder will improve the robustness of voice conversion with better pronunciation and speaker adaptation performance. Specifically, in future work, robust content, pitch, and speaker modeling irrelevant to environmental noise will be conducted for better generalization on the zero-shot voice conversion scenario.

Appendix D One-shot Speaker Adaptation

As indicated in Table 2, the one-shot speaker adaptation of our model could significantly increase the speaker similarity in terms of EER and SECS. Figure 5 also shows the speaker adaptation performance is improved during fine-tuning. However, the CER and WER increased after the model overfits a single sample per speaker. Hence, we only fine-tune the model for 500 steps. Following (Kim et al., 2022b), we also fine-tune the model with real-world dataset or non-human characters. We highly recommend to listen the audio samples https://hayeong0.github.io/DDDM-VC-demo/.

Appendix E Style Control

Although we can control each attribute by transferring different or mixed voice styles to each attribute respectively, for voice conversion, we transfer the voice style of the same target speaker to each attribute. Table 14 reveals that our model can control for each attribute with different styles from source and target speech (ssrcs_{src} and strgs_{trg}). Specifically, controlling each filter and source attribute can convert the timbre and pitch, respectively. Although pitch control increases the CER and WER slightly, EER and SECS decrease by converting the intonation with target speaking style.

Appendix F t-SNE Visualization

The t-SNE visualization of content representation, the representation from the 12th layer of XLS-R model, is presented in Figure 7(a). The content representations for each speaker from VCTK were not clustered by speaker, and it means that the speaker information is disentangled and the content representation only contains the representation irrelevant to speaker information. To demonstrate the zero-shot voice conversion performance, we also present the t-SNE visualization of speaker embedding which is extracted from the ground-truth and converted speech as illustrated in Figure 7(b) and 7(c). We use the external tool, Resemblyzer, to extract the speaker representation of speech. Both speaker embeddings are clustered by each speaker. This means that our model successfully executes the zero-shot voice conversion.

Appendix G Evaluation Details

We evaluated MOS to measure the perceptual quality of synthesized speech. The naturalness of a synthesized speech is measured by the nMOS, and the similarity between the synthesized speech and the ground-truth speech is evaluated by the sMOS. We conducted a survey on Amazon Mechanical Turkhttps://www.mturk.com/ to evaluate the quality of the synthesized speech as shown in Figure 8.

Character Error Rate and Word Error Rate

To evaluate the pronunciation of synthesized speech, we measured character error rate (CER) and word error rate (WER) using Whisper (Radford et al., 2022)https://github.com/openai/whisper, an automatic speech recognition system trained on multi-lingual and multi-task supervised data.

Equal Error Rate

The equal error rate (EER) is measured to evaluate the speaker similarity between the ground-truth and synthesized speech. Specifically, it is useful for quantitatively evaluating the similarity between the converted speech and target speech in the VC task. To this end, we calculated the EER of the automatic speaker verification (ASV) modelhttps://github.com/clovaai/voxceleb_trainer trained with Voxceleb2 (Chung et al., 2018), a large speech recognition dataset containing 5,994 speakers. Specifically, we used the pre-trained model with online augmentationhttps://www.robots.ox.ac.uk/~joon/data/baseline_v2_smproto.model, which improves the speaker verification performance of model.

Speaker Encoder Cosine Similarity

For a more thorough analysis of speaker similarity, we evaluated speaker encoder cosine similarity (SECS). We used Resemblyzerhttps://github.com/resemble-ai/Resemblyzer, a speaker encoder capable of high-level feature extraction, to extract speaker features from converted speech and ground-truth speech and then calculated the cosine similarity in the extracted embedding space.

Mel Cepstral Distortion

We extracted the first 13 mel-frequency cepstral coefficients (MFCCs) by applying a discrete cosine transform to the ground-truth and synthesized speechhttps://github.com/MTG/essentia/. Subsequently, we used the dynamic time warping (DTW) between the extracted MFCCs features, and the sequences of different lengths are aligned to calculate the similarity between the two features.

where TT is the number of frames and Mt,k\boldsymbol{M}_{t,k}, Mt,k′\boldsymbol{M}_{t,k}^{{}^{\prime}} denote the ground-truth and synthesized kthk^{th} MFCCs of ttht^{th} frame. We only conduct the MCD evaluation for VCTK dataset, which contains the paired sentences for each speaker.

Appendix H Audio Mixing

We extend DDDMs to DDDM-Mixer which leverages multiple denoisers to mix the sound and speech into the mixture of Mel-spectrograms by blending them with the desired balance as shown in Figure 9. While DDDM-VC disentangles a single speech into source and filter attributes for attribute denoisers, DDDM-Mixer treats the mixture of audio as a target audio and disentangles it into sound and speech as attributes. We utilize the data augmentation according to signal-to-noise ratio (SNR) from -5 dB to 25 dB for target audio. DDDM-Mixer utilizes the Mel-spectrogram of each attribute as a prior. We employ two denoisers, both of which remove a single noise in terms of their own attribute (sound and speech). We utilize an SNR dB between sound and speech as conditional information to mix each attribute with a desired ratio. We concatenate the SNR positional embedding with the time positional embedding for the condition. Hence, we could mix the generated sound and speech on the Mel-spectrogram. To verify the effectiveness of the DDDM-Mixer, we compare the augmented audio between vocoded sound and speech and the vocoded audio from mixed Mel-spectrogram. The evaluation results show DDDM-Mixer has better performance than audio augmentation according to SNR between the vocoded sound and speech.

Implementation Details

We implement the DDDM-Mixer with the same DDDMs as the DDDM-VC-Small, which consists of two 2D UNet-based diffusion models with 3 layers and a hidden size of . We train the DDDM-Mixer utilizing AudioSet, BBC sound effects, Clotho, DEMAND, ESC, FSD18k, Nonspeech100, Sonniss Game Effects, TAU Urban Acoustic Scenes 2019, and UrbanSound8K for sound datasets, and LibriTTS and CSS10 for speech datasets. We utilize the pre-trained HiFi-GAN with speech dataset.

Evaluation

We conduct the Mel L1 and PESQ evaluation between the augmented audio and mixed audio using DDDM-Mixer. Table 15 shows that DDDM-Mixer has a better audio mixing performance than audio augmentation according to SNR between vocoded sound and speech separately. Figure 9 shows that each sound and speech are mixed by DDDM-Mixer.

In future works, we will train the HiFi-GAN with both sound and speech datasets, and also utilize the augmented audio for training to convert the mixed Mel-spectrogram into waveform audio robustly. In addition, we see that we could extend the DDDM-Mixer scenario to mix the sound from the text-to-audio model and the speech from the speech synthesis model.

Appendix I Text-to-Speech

For a practical application, we have experimented with an extension version of DDDM-VC for a text-to-speech system as illustrated in Figure 10. In DDDM-VC, our goal is to train the model without any text transcripts, and only utilize the self-supervised representation for speech disentanglement. Based on the DDDM-VC, we train the text-to-vec (TTV) model which can generate the self-supervised speech representation (the representation from the middle layer of XLS-R) from the text as a content representation. We jointly train the duration predictor and pitch predictor. The predicted content and pitch representation are fed to DDDM-VC instead of each representation from the waveform to synthesize the speech. Hence, we could synthesize the speech from text by utilizing the pre-trained DDDM-VC.

Text-to-Vec (TTV)

Specifically, we first convert the text prompt into the phoneme sequence. Then, the phoneme sequence is fed to the text encoder to generate the content representation and pitch representation. We utilize the self-supervised speech representation as a content representation and log-scale F0 as a pitch representation. The text encoder consists of a conditional variational autoencoder, duration predictor, and pitch predictor. First, the self-supervised speech representation is encoded and reconstructed by a variational autoencoder. The transformer encoder conditioned by phoneme sequence generates the mean and variance for the linguistic prior distribution, and we utilize monotonic alignment search to align the latent representation from the posterior distribution and the linguistic prior distribution by searching the alignment maximizing the likelihood of data (Kim et al., 2021). For better expressiveness of prior distribution, we also use the normalizing flow on the latent representation. In addition, we adopt the stochastic duration predictor of VITS and the pitch predictor consisting of multi-receptive filed fusion module (Kong et al., 2020) by conditioning voice prompt to predict the speaker-dependent duration and pitch representation from text representation and content representation, respectively. The generated content representation and log-scale F0 from text are fed to the pre-trained DDDM-VC to generate Mel-spectrogram. We called this text-to-speech pipeline DDDM-TTS.

Implementation Details

We utilize the Phonemizerhttps://github.com/bootphon/phonemizer to transform the text sequence into the International Phonetic Alphabet (IPA) sequence. For robust alignment between text and latent representation, we add the blank token between phonemes. Text encoder consists of six blocks of transformer networks which take the sequence of phoneme embedding. Content encoder and decoder consist of 16 layers of Non-casual WaveNet with a hidden size of 256. Flow block consists of four affine coupling layers, and the WaveNet is utilized for the scale and bias of the affine transform. The pitch predictor has two blocks consisting of two upsampling layers and two multi-receptive field fusion (MRF) blocks (Kong et al., 2020). We utilize the log-scale F0 for target pitch information, and normalized the predicted F0 before fed to VQVAE. We train the TTV model with a batch size of 128 for 500k steps. Following (Kim et al., 2021), we use the AdamW optimizer and two NVIDIA A100 GPUs to train. For the pitch predictor, we use windowed generator training with a randomly sliced F0 of 120 frames.

Evaluation

We conduct the objective evaluation with text-to-speech models, VITS (Kim et al., 2021) and HierSpeech (Lee et al., 2022b). For voice style transfer, we utilize the same style encoder for all models. DDDM-TTS has better performance on pronunciation in terms of CER and WER, and also achieves higher speaker adaptation performance in terms of EER and SECS as indicated in Table 16. We additionally evaluate the zero-shot voice style transfer performance of DDDM-TTS, and Table 17 shows that our model could synthesize the speech from the text even with the novel voice style. We also add the audio samples of DDDM-TTS at the demo page.

We will scale up the DDDM-VC model with a large-scale speech dataset, and use the DDDM-VC as a backbone speech synthesizer for DDDM-TTS. We see that utilizing the pre-trained model with the cross-lingual speech dataset could be extended to the low-resource speech synthesizer from the text for text-to-speech or speech for voice conversion.