DiffCSS: Diverse Conversational Speech Synthesis
DiffCSS: Diverse Conversational Speech Synthesis
Abstract—Conversational speech synthesis (CSS) aims to syn- of more stable and discriminative context representation. Most
thesize both contextually appropriate and expressive speech, and recently, Liu et al. [10] employ a GPT-based architecture to
considerable efforts have been made to enhance the understand- capture semantic and stylistic features within conversational
ing of conversational context. However, existing CSS systems
are limited to deterministic prediction, overlooking the diversity sequences.
of potential responses. Moreover, they rarely employ language However, current CSS methods are constrained by deter-
model (LM)-based TTS backbones, limiting the naturalness and ministic prosody predictions. Specifically, in a given conver-
quality of synthesized speech. To address these issues, in this sational context, speech can be delivered in various ways, each
paper, we propose DiffCSS, an innovative CSS framework that conveying different emotions and intentions. Consequently,
leverages diffusion models and an LM-based TTS backbone to
generate diverse, expressive, and contextually coherent speech. A multiple prosody variations can correspond to the same conver-
diffusion-based context-aware prosody predictor is proposed to sational context. This one-to-many mapping problem has not
sample diverse prosody embeddings conditioned on multimodal been thoroughly explored in previous CSS systems, thus lim-
conversational context. Then a prosody-controllable LM-based iting their ability to generate diverse and expressive prosody.
TTS backbone is developed to synthesize high-quality speech with Additionally, nearly all previous CSS approaches have relied
sampled prosody embeddings. Experimental results demonstrate
that the synthesized speech from DiffCSS is more diverse, on traditional TTS backbones, resulting in limited naturalness
contextually coherent, and expressive than existing CSS systems1 . and quality. Recent advancements in text-modal language
Index Terms—Conversational speech synthesis, diffusion mod- models [11]–[13] have further driven the development of
els, prosody diversity language model (LM)-based TTS systems [14]–[17]. These
systems employ pre-trained audio codec models [18]–[20] to
I. I NTRODUCTION encode speech waveforms into discrete codes, which are then
With the development of deep learning, end-to-end text- predicted by prompt-based language models. When trained
to-speech (TTS) systems have made significant strides [1]– on large-scale datasets, these models can effectively extract
[4]. However, in certain application scenarios such as chatbots semantic information and synthesize speech that closely ap-
and virtual assistants, these systems often underperform due proximates human speech in terms of expressiveness and voice
to their limited ability to understand conversational context, quality.
highlighting the growing importance of conversational speech In this paper, we propose a novel CSS framework: DiffCSS.
synthesis (CSS). CSS aims to generate speech that is not only Inspired by the success of diffusion models in capturing
appropriate for the current utterance but also coherent with complex data distributions and generating diverse outputs in
the broader conversational context. Therefore, effective context the field of computer vision [21]–[24], DiffCSS leverages
modeling is crucial for CSS models. Guo et al. [5] are the diffusion models to generate diverse and expressive prosody
first to propose a GRU-based conversational context encoder conditioned on the conversational context. Additionally, Dif-
that sequentially processes the textual conversational context. fCSS integrates an LM-based TTS backbone to synthesize
Subsequently, graph-based networks [6], [7] are introduced high-quality speech. In this framework, we first employ a pre-
to model the cross-sentence and cross-speaker relationships. trained codec [25] model to extract prosody-related features
To enhance the extraction of fine-grained details, multi-scale from reference speech. Based on these features, we develop
information has also been explored [7], [8]. Deng et al. [9] a prosody-enhanced ParlerTTS [17], which is capable of syn-
introduce contrastive learning to CSS, facilitating the learning thesizing expressive speech conditioned on provided prosody
embeddings. To generate diverse and context-appropriate
This work is supported by National Natural Science Foundation prosody embeddings from multimodal conversational context,
of China (62076144) and Shenzhen Science and Technology Program we design a diffusion-based context-aware prosody predictor.
(WDZC20220816140515001, JCYJ20220818101014030). Experimental results demonstrate that our proposed method
*These authors contributed equally to this work as first authors.
† Corresponding Author. significantly outperforms deterministic baselines in terms of
1 Audio samples: [Link] expressiveness and contextual coherence. Furthermore, the
Decoder-only Transformer
0 0 0 t1 t2 … tn-3
0 0 t1 t2 t3 … tn-3 tn-2
Current Text RVQ
3059 6 24 …
“Tom, that lucky guy.” 0 t1 t2 t3 t4 … tn-2 tn-1 Decoder
Pre-pend tn-1
Synthesized Speech
t1 t2 t3 t4 t5 … tn
text tokens
Cross Attention
Speaker Embedding
+
Denoising Diffusion-based
Prosody Embedding P1 P2 … Pm context-aware …
prosody predictor
Gauss Noise
Cross Attention
K,V
FACodec F1 F2 … Fn QKV-Attn
prosody distribution generated by DiffCSS aligns more closely reference speech. To extract prosody features disentangled
with ground truth distribution, highlighting the effectiveness of from other information, we employ the pre-trained FACodec
incorporating diffusion models into CSS. [25] to extract frame-level prosody features {F1 , F2 , ..., Fn },
To summarize, the main contributions of this paper are: where n represents the number of audio frames. However,
• We proposed a novel CSS framework DiffCSS, which the computation cost of the TTS backbone increases linearly
leverages diffusion models to enhance prosody diversity with the length of prosody features. To reduce resource con-
depending on conversational context along with an LM- sumption, we introduce a cross-attention layer with learnable
based TTS backbone to improve speech quality. query tokens {Q1 , Q2 , ..., Qm } to derive fixed-length prosody
• To the best of our knowledge, we are the first to apply dif- embeddings {P1 , P2 , ..., Pm }, where m ≪ n.
fusion models to CSS systems for conversational context These prosody embeddings are then combined with pre-
modeling. Through prosody diffusion, we significantly extracted speaker embeddings and serve as the keys and values
enhance the prosody diversity of the synthesized speech. in the cross-attention layer of the TTS backbone, guiding the
• Through comparative experiments, we demonstrate the speech synthesis process.
effectiveness of our proposed approach in generating
speech that is both rich in prosody diversity and suitable B. Diffusion-based context-aware prosody predictor
for the conversational context. To predict diverse and contextually appropriate prosody, we
II. M ETHODOLOGY design a diffusion-based context-aware prosody predictor that
generates the current prosody embedding conditioned on both
The architecture of our proposed model is illustrated in Fig. the multimodal conversational context and the current text.
1. It consists of two primary components: a TTS backbone The structure of the prosody predictor is illustrated in Fig. 2,
based on ParlerTTS [17] and a diffusion-based context-aware where a set of Transformer encoder blocks are employed as
prosody predictor. The TTS backbone synthesizes high-quality the underlying denoiser network θ.
speech based on varying prosody inputs, while the prosody For a conversation chunk of length N + 1, we combine the
predictor generates diverse prosody embeddings conditioned multimodal context information as described in Equation 1,
on the conversational context. where c denotes the multimodal context information, si and
A. Prosody-enhanced ParlerTTS pi denote the textual information extracted by a pre-trained
sentence-level T5 [27] and the prosody embedding for the i-
Inspired by the success of LM-based TTS models, we th turn, respectively.
develop a prosody-enhanced ParlerTTS [17] as our TTS back-
bone, which predicts pre-extracted acoustic tokens by decoder- c = [s1 , p1 , ..., sN , pN ] (1)
only transformer blocks. By adopting the delayed pattern
introduced in [26], the TTS backbone is capable of generating During the diffusion process, Gaussian noise is added to the
high-quality speech autoregressively in a short amount of time. current prosody embedding pN +1 according to a fixed noise
Within the backbone, we designed a prosody extractor to schedule α1 , ..., αT , where T is the total diffusion steps. This
learn prosody embeddings in an unsupervised manner from process can be described as Equation 2 and 3, where ϵ ∼
× 𝑁𝑁 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 During inference, we first extract the multimodal conversa-
zT z0
tional context information c and the current textual information
Cross Attention
Feed Forward
Self Attention
… …
sN +1 . We then iteratively compute the predicted prosody
Gauss Noise Prosody embedding embedding zˆ0 from Gaussian noise, following Equation 5 and
6. Finally, we feed zˆ0 into the TTS backbone and synthesize
denoising × 𝑇𝑇 𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠
ST5
speech according to it.
Concat III. E XPERIMENTS
Text A. Training setup
N+1th turn
Prosody Prosody We conduct our experiments on two English datasets. For
ST5 ST5 embedding
embedding
… TTS backbone pre-training, we use an open-source multi-
Text Speech Text Speech speaker English speech dataset LibriTTS-R [28], which con-
1st turn Nth turn tains 585 hours of high-quality speech from 2,456 speakers.
Fig. 2. The structure of the diffusion-based context-aware prosody predictor For the conversational dataset, we select DailyTalk [29],
which includes 2,541 conversations spanning about 20 hours,
N (0, I) is the Gaussian noise, z0 represents the ground truth performed by two speakers. These conversations are divided
n
prosody embedding pN +1 and αt =
Q
αi . into equal-length chunks, each containing 5 utterances, with
i=1 the first 4 serving as the conversational context for the fifth.
√ The first 2400 conversations are used for training while the
q(zt | zt−1 ) = N (zt ; αt zt−1 , (1 − αt )I) (2)
√ √ remaining 141 are reserved for testing. A pre-trained audio
zt = αt z0 + 1 − αt ϵ (3) codec model DAC [20] is employed to encode the raw wave-
During training, we first uniformly sample a time step t from form with 24kHz sampling rate and reconstruct the waveform
[1, T], based on which the ground truth prosody embedding based on the predicted acoustic tokens. Speaker embeddings
z0 is diffused into zt according to Formula 3. Then we are extracted by a pre-trained voiceprint model2 .
concatenate textual information of the current sentence sN +1 In our implementation, the TTS backbone comprises 12
with zt as the input of the diffusion denoiser. Multimodal transformer decoder blocks, and the diffusion-based context-
context information c is incorporated through cross-attention. aware prosody predictor consists of 6 transformer encoder
Given zt , sN +1 , t and c, the denoiser predicts the added blocks. We pre-train the TTS backbone on LibriTTS-R for
Gaussian noise ϵθ (zt , sN +1 , t, c) and optimizes its parameters 150000 iterations and finetune it on DailyTalk for 20000
with the following denoising objective: iterations with a batch size of 64. The diffusion-based context-
aware prosody predictor is trained on DailyTalk for 100000
L(θ) = Et,zt ,ϵ ∥ϵ − ϵθ (zt , sN +1 , t, c)∥2 (4) iterations with a batch size of 32.
In the inference stage, we sample zT ∼ N (0, I) and itera- B. Baseline Models
tively perform the denoising process according to Equation 5 We implemented the following three models as baselines.
and 6 to compute zt−1 from zt for t = T, T − 1, ..., 1 where GRU-based context modeling [5] This model uses a unidi-
x ∼ N (0, I) except for x = 0 when t = 1. After completing rectional GRU to process conversational context sequentially.
T iterations, we obtain the generated prosody embedding zˆ0 . DialogueGCN-based context modeling [6] This model
1
1 − αt
employs a relation-aware graph convolutional network to
zt−1 = √ xt − √ ϵθ (zt , sN +1 , t, c) + σt x (5) model context from both text and audio modalities.
at 1 − αt
Transformer encoder-based context modeling We imple-
1 − αt−1
σt = (1 − αt ) (6) ment a contextual prosody predictor based on the Transformer
1 − αt
encoder, which shares the same structure and parameters as our
C. Training Strategy and Inference Procedure proposed method but without diffusion modeling.
To enhance the controllability of the TTS module and C. Subjective Evaluation
improve the prosody diversity of synthesized speech, we pro-
pose a two-stage training strategy, where prosody is explicitly To evaluate the performance of our proposed model in com-
modeled as an intermediate representation. In order to enhance parison to baselines, we conduct two separate mean opinion
the semantic understanding and speech synthesis capability of score (MOS) tests: one for speech expressiveness and the other
the TTS backbone, we first pre-train the TTS backbone on a for contextual coherence. We randomly select 15 samples and
large-scale dataset and subsequently fine-tune it on a conver- their corresponding contexts from the test set for evaluation. A
sational dataset. After completing the TTS backbone training, total of 20 listeners are invited to rate the synthesized speech
we freeze its parameters and use it to extract ground truth on a scale of 1 to 5 with 1 point interval, based on both
prosody embeddings from reference speech. We then divide expressiveness and contextual coherence.
the conversations into equal-length chunks, which are used to 2 Available at: [Link]
train the diffusion-based context-aware prosody predictor. 3dspeaker/sv-cam++
TABLE I
T HE OBJECTIVE AND SUBJECTIVE COMPARISONS FOR DIFFERENT MODELS .