← Back to Multimodal Mind Map
👁️ MultimodalID: tts

TTS

语音合成 TTS
🎯Core Definition
TTS (text-to-speech) generates speech from text. Pipeline evolution: concatenative/parametric synthesis (HMM, vocoders like Griffin-Lim phase recovery) → two-stage neural TTS (Tacotron 2 acoustic model + WaveGlow/HiFi-GAN vocoder) → end-to-end (VITS, Vall-E, CosyVoice). The end-to-end representative VITS combines:
📌Overview
Variational inference (VAE-style): text goes through an encoder and stochastic duration predictor giving alignment AA and latent speech representation zz — zz is obtained by transforming text hidden states with a normalizing flow: z=fθ(h,A)z = f_\theta(h, A). Training optimizes the variational lower bound of the acoustic likelihood:
📌Overview
L=log⁡pθ(x∣z)−KL(qϕ(z∣x)∥pθ(z∣h,A))\mathcal{L} = \log p_\theta(x | z) - \mathrm{KL}(q_\phi(z | x) \Vert p_\theta(z | h, A))
📌Overview
where pθ(x∣z)p_\theta(x|z) is the HiFi-GAN decoder producing the waveform directly; the KL term pulls the flow prior pθ(z∣h,A)p_\theta(z|h,A) (invertible, exact log-likelihood) toward the posterior qϕ(z∣x)q_\phi(z|x), and the flow's flexibility keeps the KL from degenerating.
📌Overview
Alignment: Monotonic Alignment Search (MAS) learns text-speech alignment implicitly in latent space at training — no external aligner needed.
📌Overview
Adversarial training: a multi-period discriminator scores the generated waveform (GAN loss), sharply improving naturalness and high-frequency detail.
📌Overview
Later directions: Vall-E uses audio codec tokens for zero-shot voice cloning; GPT-4o speaks directly with native audio tokens.
💡Use Cases
voice assistants, audiobooks/dubbing, short-video voiceover, real-time spoken dialogue; interviews drill VITS's ELBO and the flow's role.
⚡Key Problems Solved
two-stage pipelines lose detail in the intermediate mel representation, accumulate errors, and need a separate vocoder; VITS is single-stage end-to-end with flow prior + GAN output, regressing the waveform from text directly — near-human naturalness, faster inference, no external aligner or vocoder.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of TTS.
Use Cases
In production engineering, what are the primary use cases for TTS and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
TTS evolution: concatenative → two-stage → end-to-end; the bottleneck of each?
2
Why variational inference in VITS; write the ELBO and explain each term?
3
The role of normalizing flow in VITS; why not a plain Gaussian prior?
4
What does Monotonic Alignment Search solve, and why no external aligner?
5
VITS vs two-stage TTS; what does the GAN discriminator contribute?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "TTS"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardASR (Whisper)Next Card →Speech-Audio LLM

🔗 More Multimodal Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/Multimodal/card/tts
中文速览与面试要点

语音合成 TTS (TTS)

定义: TTS(语音合成)从文本生成语音。管线演进:拼接/参数合成(HMM、声码器如 Griffin-Lim 相位恢复)→ 两阶段神经 TTS(Tacotron 2 声学模型 + WaveGlow/HiFi-GAN 声码器)→ 端到端(VITS、Vall-E、CosyVoice)。端到端代表 VITS 的核心机制: 变分推理(VAE 框架): 文本经编码器与随机时长预测器得对齐 A 与潜在语音表示 z——z 由 normalizing flow 对文本隐状态做可逆变换得到:z = f_ (h, A)。训练目标是声学似然的变分下界: L = p_ (x | z) - KL(q_ (z | x) p_ (z | h, A)) 其中 p_ (x|z) 由 HiFi-GAN 解码器直接生成波形;KL 项让 flow 先验 p_ (z|h,A)(可逆变换、对数似然精确可算)贴近后验 q_ (z|x),flow 的灵活性使 KL 不退化、先验能建模复杂分布。 对齐: 训练用单调对齐搜索(MAS)在隐空间隐式学习文本-语音对齐,无需外部强制对齐器。 对抗训练: 多周期判别器(multi-period discriminator)对生成波形做 GAN 判别,显著提升自然度与高频细节。 后续方向:Vall-E 用音频 codec token 做零样本语音克隆,GPT-4o 用原生音频 token 端到端“说话”。 使用场景: 语音助手、有声书/配音、短视频配音、实时对话语音;面试常问 VITS 的变分下界与 flow 的作用。 解决的问题: 两阶段管线中间梅尔谱表示丢失细节、误差逐级累积、还需独立声码器;VITS 单阶段端到端 + flow 先验 + GAN 判别,直接从文本回归波形,自然度接近真人、推理更快,并摆脱外部对齐器与声码器。

核心要点

  • TTS 管线演进:拼接 → 两阶段 → 端到端,各自瓶颈是什么?
  • VITS 为什么用变分推理?写出训练目标 ELBO 并解释每一项?
  • normalizing flow 在 VITS 中扮演什么角色?为什么不用普通高斯先验?
  • 单调对齐搜索(MAS)解决什么问题?为什么不需要外部对齐器?
  • VITS 与两阶段 TTS 的对比?GAN 判别器贡献了什么?