# Tacotron: Towards End-to-End Speech Synthesis

Tacotron synthesizes speech directly from characters without separate pipeline stages

Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J. Weiss, Navdeep Jaitly and 8 more · arXiv · 2017-3-29

- **Problem** Conventional text-to-speech systems chain several separately built stages, each needing heavy feature engineering. Errors made early in the chain carry into later stages.
- **Method** Tacotron maps characters to a spectrogram with a seq2seq model and attention, trained from scratch without phoneme alignment. A CBHG post-processing net then refines it before Griffin-Lim makes the waveform.
- **Results** Tacotron reaches a 3.82 mean opinion score on US English, above a production parametric system and below a concatenative one at 4.09.

## Why replace the multi-stage pipeline

Each of these parts depends on specialist knowledge, and because they are trained separately, an error made early can carry into later stages.

An integrated model trained on text-audio pairs with little manual annotation would remove much of the hand-designed feature work, which often relies on heuristics that are fragile. Conditioning on a speaker, a language or a higher-level attribute would also be simpler, because the conditioning can enter at the input rather than at a particular component.

A single model may additionally be more robust than a chain in which each component's errors add up.

Speech is a continuous signal that is much longer than its text, so small prediction errors accumulate quickly, and one input text can map to many pronunciations and speaking styles. Tacotron answers this with a seq2seq model with attention, adapted to characters and spectrogram frames, and trained completely from scratch without phoneme-level alignment.

## Encoding characters with a pre-net and CBHG

Each input character is a one-hot vector that is embedded into a 256-dimensional continuous vector. The embeddings then pass through an encoder pre-net, a bottleneck of two fully connected ReLU layers of 256 and 128 units, each followed by dropout at 0.5. The pre-net output is the input to a CBHG module, which produces the final encoder representation used by the attention.

Inside CBHG, a bank of 1-D convolutions with K=16 filter sets, where the k-th set has filters of width k, models local and context patterns similar to unigrams through K-grams. Max pooling along time uses stride 1, so the time resolution is kept, and fixed-width projections are added back to the input through residual connections. A multi-layer highway network and a bidirectional GRU with 128 cells follow, so the representation carries information from both directions.

## Attention decoder that emits several frames per step

The decoder uses content-based tanh attention, where a stateful attention RNN produces the query at each step, and its context vector is concatenated with the attention RNN output to form the input of a stack of decoder GRUs. The decoder GRUs use vertical residual connections, which the authors found to speed convergence. The decoder predicts an 80-band mel-scale spectrogram, because a raw linear spectrogram is highly redundant for learning the alignment between speech and text.

A fully connected output layer predicts r non-overlapping frames at each decoder step, so the number of decoder steps is divided by r. The authors found this to speed convergence considerably, judged by a faster and more stable alignment learned from attention, and they explain it by neighboring frames being correlated and each character covering several frames.

Predicting several frames lets attention move forward early in training, whereas emitting one frame per step forces the model to keep attending to the same input token.

During training, every r-th ground-truth frame is fed to the decoder, and the first step receives an all-zero GO frame. At inference, only the last of the r predicted frames is fed back as the next input, which the authors call an ad-hoc choice, since all r predictions could be used. Scheduled sampling is not used because the authors found it hurt audio quality, so the dropout in the pre-net is what provides the noise that lets the model generalize.

The MOS results use r=2, and the authors report that larger values such as r=5 also work well.

## From predicted magnitudes to audio

The post-processing net is a CBHG module that reads the whole decoded mel sequence in both directions and predicts magnitudes on a linear-frequency scale. Having both past and future frames lets it correct errors frame by frame, which a left-to-right seq2seq decoder cannot do. The concept is general, and the post-processing net could also predict vocoder parameters or drive a WaveNet-like vocoder, though the paper uses Griffin-Lim.

Griffin-Lim turns the predicted spectrogram into a waveform, and Tacotron raises the predicted magnitudes to the power 1.2 before this step, which the authors found reduces artifacts. The authors attribute the gain to a harmonic enhancement effect and observed convergence after 50 iterations, with about 30 iterations sufficient. Griffin-Lim is implemented in TensorFlow as part of the model, has no trainable weights, and receives no loss in this work.

Because Tacotron produces frames rather than samples, its inference is described as substantially faster than sample-level autoregressive methods. That speed comparison is qualitative in the text and gives no timing numbers.

## Training data and spectrogram settings

Tacotron is trained on an internal North American English dataset of about 24.6 hours of speech from a professional female speaker. The phrases are text-normalized, so numbers such as 16 are spelled out.

The model uses log magnitude spectrograms with Hann windowing, a 50 ms frame length, a 12.5 ms frame shift and a 2048-point Fourier transform. Pre-emphasis of 0.97 is applied, and all experiments use a 24 kHz sampling rate.

## Optimization, loss and stop-token handling

The batch size is 32, with all sequences padded to a maximum length. An l1 loss is applied to both the decoder mel target and the post-processing linear target, with equal weights.

Training with a loss mask over zero-padded frames, which is standard for sequence models, left the model unable to learn when to stop, so it repeated sounds near the end. Reconstructing the zero-padded frames as well removed this problem, which the authors describe as a simple fix.

## Vanilla seq2seq alignment

The vanilla model uses two residual GRU layers of 256 cells in both encoder and decoder, with no pre-net and no post-processing net, and it predicts linear-scale log magnitude spectrograms directly. It needed scheduled sampling at rate 0.5 to learn alignments and to generalize, and the comparison is shown on a test phrase.

Its attention alignment is poor, and the attention tends to stay on one input for many frames before moving forward. The authors state that this causes poor intelligibility and destroys naturalness and overall duration, while Tacotron learns a clean and smooth alignment on the same phrase. These alignment comparisons are visual, because the authors note that objective metrics for generative models correlate poorly with perception.

## CBHG encoder versus GRU encoder

The GRU variant replaces the CBHG encoder with a 2-layer residual GRU encoder, and the rest of the model, including the encoder pre-net, is kept the same. Comparing the two alignments, the GRU encoder gives a noisier alignment than the CBHG encoder.

Listening to synthesized signals, the authors found that a noisy alignment often leads to mispronunciations. They attribute the CBHG encoder's better behavior on long and complex phrases to reduced overfitting.

## Effect of the post-processing net

The comparison trains a model without the post-processing net, with all other components unchanged, so the decoder predicts the linear-scale spectrogram directly. The spectrograms are compared visually, and the version with the post-processing net shows better-resolved harmonics, for example higher harmonics between bins 100 and 400. That version also shows high-frequency formant structure, which the authors link to fewer synthesis artifacts.

## Naturalness ratings against two production systems

The MOS test uses 100 unseen phrases, each rated by 8 crowdsourced native speakers on a 5-point Likert scale, and only ratings made with headphones are included. The baselines are a parametric system based on LSTM and a concatenative system, both in production.

Tacotron scored 3.82 ± 0.085, the parametric system 3.69 ± 0.109 and the concatenative system 4.09 ± 0.119. Tacotron is therefore above the parametric baseline and below the concatenative one. The authors call the result promising, given the strong baselines and the artifacts that Griffin-Lim introduces.

## Limitations

The waveform stage is Griffin-Lim, and the authors note that its outputs may have audible artifacts that limit the perceived quality. The authors are working on neural spectrogram inversion, which is not part of this study.

Training and evaluation use one internal North American English dataset from one female speaker. Tacotron is compared only with the two production baselines in the MOS test.

The ablation alignments are visual comparisons on a test phrase, and objective metrics are not used. Values of r other than 2 and 5 are not reported, and the output layer, attention module, loss function and Griffin-Lim synthesizer are listed as areas that remain open for improvement.

## Paper info

- **Authors**: Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J. Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, Quoc Le, Yannis Agiomyrgiannakis, Rob Clark, Rif A. Saurous
- **Venue**: arXiv · Preprint
- **First published**: 2017-3-29
- **Added**: 2026-11-12
- **Updated**: 2017-4-6
- **Version**: v2
- **arXiv**: 1703.10135
- **Category**: cs.CL · cs.LG · cs.SD
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1703.10135v2) · [PDF ↗](https://arxiv.org/pdf/1703.10135v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J. Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, Quoc Le, Yannis Agiomyrgiannakis, Rob Clark, Rif A. Saurous (2017). Tacotron: Towards End-to-End Speech Synthesis. arXiv:1703.10135v2. https://arxiv.org/abs/1703.10135v2

**BibTeX**

```
@misc{wang2017tacotron,
  title = {{Tacotron: Towards End-to-End Speech Synthesis}},
  author = {Yuxuan Wang and RJ Skerry-Ryan and Daisy Stanton and Yonghui Wu and Ron J. Weiss and Navdeep Jaitly and Zongheng Yang and Ying Xiao and Zhifeng Chen and Samy Bengio and Quoc Le and Yannis Agiomyrgiannakis and Rob Clark and Rif A. Saurous},
  year = {2017},
  eprint = {1703.10135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.10135v2}
}
```

## Related papers

- [Natural TTS Synthesis by Conditioning WaveNet on Mel Spectrogram Predictions](https://refivu.com/en/papers/596b5353-6c04-4ada-a92e-25d0fee13147-natural-tts-synthesis-by-conditioning-wavenet-on-mel.md)
- [A Survey of the Recent Architectures of Deep Convolutional Neural Networks](https://refivu.com/en/papers/108c5acb-7c6f-4ccb-b4c9-7174cc472551-a-survey-of-the-recent-architectures-of-deep.md)
- [Stacked Attention Networks for Image Question Answering](https://refivu.com/en/papers/aa94a5f2-b4fb-441a-af4b-22eda9ad2985-stacked-attention-networks-for-image-question-answering.md)
- [A Neural Attention Model for Abstractive Sentence Summarization](https://refivu.com/en/papers/d68d7c9a-7c6e-4b4f-a4e9-ba1853fdfad2-a-neural-attention-model-for-abstractive-sentence.md)
- [Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images](https://refivu.com/en/papers/63b212b7-3fc0-42f4-b6d8-1724e918c784-attention-gated-networks-learning-to-leverage-salient.md)
- [Attention U-Net: Learning Where to Look for the Pancreas](https://refivu.com/en/papers/b480e08e-027d-4c11-b1c5-0d3a4a63ead9-attention-u-net-learning-where-to-look-for.md)

## Other paper commentary

- [Deep Speech 2: End-to-End Speech Recognition in English and Mandarin](https://refivu.com/en/papers/a706b06b-386b-46f0-b3bc-637c9d25b331-deep-speech-2-end-to-end-speech-recognition.md)
- [Deep Speech: Scaling up end-to-end speech recognition](https://refivu.com/en/papers/ace0f457-6253-437c-903d-54b5979d9074-deep-speech-scaling-up-end-to-end-speech.md)
- [VoxCeleb: a large-scale speaker identification dataset](https://refivu.com/en/papers/4f6bddda-2d26-4b56-93a3-d11745f2af0d-voxceleb-a-large-scale-speaker-identification-dataset.md)
- [Conformer: Convolution-augmented Transformer for Speech Recognition](https://refivu.com/en/papers/ca253d3a-da87-4fd6-a1f7-53fed7bcc781-conformer-convolution-augmented-transformer-for-speech.md)
- [Learning Problem-agnostic Speech Representations from Multiple Self-supervised Tasks](https://refivu.com/en/papers/a1a919cd-efff-487c-86c6-982c7afc65eb-learning-problem-agnostic-speech-representations-from.md)
- [wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations](https://refivu.com/en/papers/084e48fc-2ff1-4e6f-a703-2575f966a7bc-wav2vec-2-0-a-framework-for-self-supervised.md)
- [LaMDA: Language Models for Dialog Applications](https://refivu.com/en/papers/9474e307-9624-4203-a346-57d881b1a5d9-lamda-language-models-for-dialog-applications.md)
- [Visual Prompt Tuning](https://refivu.com/en/papers/4a26cca4-3c81-4721-817d-3a94b5d6b0f5-visual-prompt-tuning.md)
- [On the Convergence of FedAvg on Non-IID Data](https://refivu.com/en/papers/be876672-3359-432a-aef6-283efba8fc24-on-the-convergence-of-fedavg-on-non-iid.md)
- [A Structured Self-attentive Sentence Embedding](https://refivu.com/en/papers/a8cbdabb-c63d-415b-8edf-e85be94428b8-a-structured-self-attentive-sentence-embedding.md)
- [Meta-Learning in Neural Networks: A Survey](https://refivu.com/en/papers/c729f50c-a819-4d71-934d-d46e25ac8859-meta-learning-in-neural-networks-a-survey.md)
- [ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness](https://refivu.com/en/papers/57e803cb-75a6-462c-b1bd-4b3c2848753b-imagenet-trained-cnns-are-biased-towards-texture-increasing.md)

## Terms in this paper

- [Adam optimizer](https://refivu.com/en/terms/aff9e901333e-adam-optimizer)
- [SEQ2SEQ](https://refivu.com/en/terms/6f6133892227-seq2seq)
- [scheduled sampling](https://refivu.com/en/terms/ae12f4276c72-scheduled-sampling)
- [Tacotron](https://refivu.com/en/terms/f04aaa50bb3b-tacotron)
- [text-to-speech](https://refivu.com/en/terms/7f839edc6711-text-to-speech)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/6c1ac20e-aefe-488b-af41-213ae484f317-tacotron-towards-end-to-end-speech-synthesis)
