Text-to-speech (TTS) systems typically separate the overall synthesis task into two stages: an acoustic model that predicts an intermediate acoustic representation, commonly a mel-spectrogram, from input text or phonemes, followed by a vocoder that converts that intermediate acoustic representation into an actual audio waveform. This two-stage separation lets each stage be independently developed and improved, an acoustic-model improvement focusing on prosody and pronunciation accuracy, and a vocoder improvement focusing on raw audio fidelity, rather than requiring a single monolithic model to handle both aspects simultaneously.