All models

FastPitch

A fully parallel text-to-speech model that predicts pitch and duration for every input symbol.

Audio and speech · 677 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (22 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
46.3M
Operations
677
Framework
PyTorch
Recurrent
No
Published
ICASSP 2021
Cited by
74 (as of 29 October 2026)
Authors
Adrian Łańcucki
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16645
Graph hash
a53a23cddbe4543a338f5c5a328c35c4cb1191a5cfbed05b4602386a95dfe2d5
Skeleton hash
803b673cf8d70117bd8df4df6f41197bedd3d59bd52776855cdd431ac3155ff0
Architecture hash
fef03c0dd54fac3e525d0f6bcbfef1f3be05145368b00e82478822b1a08d0871
Diagram SHA-256
68f636646fba12dfb5a1079c4bb855d071b51ea81463daa38f899f0e7918ac80
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

FastPitch is a fully-parallel text-to-speech model based on FastSpeech, conditioned on fundamental frequency contours. It learns to predict mel-scale spectrograms from input symbol sequences such as text or phones, with explicit duration and pitch prediction per symbol. The pitch contour is predicted at inference, and altering that prediction can make the generated speech more expressive.

The architecture is composed mainly of two feed-forward Transformer stacks. The first works at the resolution of the input tokens and the second at the resolution of the output frames. Between them, a 1-D CNN predicts the duration and average pitch of every character from the hidden representation. The pitch is embedded and added to that representation, and the sum is upsampled and passed to the output stack, which produces the mel-spectrogram. Because pitch is predicted at a low resolution of one value for every input symbol, it is easy to adjust interactively.

According to the paper, pitch conditioning removes the need for the knowledge distillation of mel-spectrogram targets used in FastSpeech. The paper reports a real-time factor of over 900x for mel-spectrogram synthesis of a typical utterance. Its model was trained on LJSpeech 1.1, about 24 hours of single-speaker speech. The code behind this model is based on NVIDIA's reference implementation of FastPitch, extracted from the DeepLearningExamples repository.

Key idea. FastPitch adds explicit prediction of one pitch value per input symbol to a FastSpeech-style feed-forward Transformer, which improves speech quality and allows pitch to be edited.

  • FastPitch
  • text-to-speech
  • TTS
  • speech synthesis
  • pitch prediction
  • mel-spectrogram
  • parallel text-to-speech
  • fundamental frequency
  • prosody control

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{łańcucki2021fastpitchparalleltexttospeechpitch,
      title={FastPitch: Parallel Text-to-speech with Pitch Prediction}, 
      author={Adrian Łańcucki},
      year={2021},
      eprint={2006.06873},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2006.06873}, 
}