AI Logic

Datasets and Benchmarks

LibriTTS

Updated:

How LibriTTS is built and split. Left: the pipeline that takes LibriVox audiobooks and Project Gutenberg texts, splits the text into sentences and normalizes it, extracts the text for each chapter, keeps only sentences whose words all match, removes overly long sentences and noisy utterances to produce LibriTTS, and splits it into clean and other train, dev, and test sets with the same speakers as LibriSpeech. Right: the WAV, original-text, and normalized-text files stored in speaker-ID and chapter-ID folders, an example of an original and a normalized sentence, and the audio format and evaluation rules.

Overview

LibriTTS is a corpus of about 585 hours of read speech from 2,456 speakers, built for training multi-speaker English text-to-speech (TTS). Zen and colleagues at Google created it and presented it at Interspeech 2019. The audio is 24 kHz and is distributed free of charge under CC BY 4.0, the same license as LibriSpeech.

The source material is the same as LibriSpeech: LibriVox audiobooks (MP3), in which volunteers read public-domain books, and the corresponding Project Gutenberg texts. LibriSpeech was built for speech recognition, but its permissive license, large size, and speaker diversity made it popular for speech synthesis research too. For synthesis, however, it had the following drawbacks.

AspectLibriSpeechLibriTTS
Sampling rate16 kHz (enough for recognition, but low for high-quality synthesis)24 kHz (recordings below 24 kHz were excluded)
SegmentationTraining audio is split at silences longer than 0.3 sSplit at sentence boundaries
TranscriptsUppercase only, no punctuationBoth the original text (case and punctuation preserved) and normalized text
Surrounding sentencesUnknownNeighboring sentences can be traced from per-chapter files
NoiseNoisy recordings appear even in cleanSNR is estimated per utterance and noisy utterances are removed

To fix these issues, LibriTTS is rebuilt from the original MP3s and texts rather than from LibriSpeech's processed data. Speakers and splits (clean and other; train, dev, and test) match LibriSpeech, and the gender ratio is largely preserved.

Punctuation and capitalization are cues for how to read a sentence, such as emphasis and pause length. Because audio is split at sentence boundaries, models can learn the intonation of an entire sentence. Both kinds of information were lost in LibriSpeech, which was built for speech recognition.

Contents: construction, splits, and format

Construction cuts long per-chapter readings into sentences and discards any sentence that deviates even slightly from the text or is noisy.

  1. Split the text into sentences and normalize it. The full book text is split into paragraphs at consecutive line breaks, then into sentences. Abbreviations, numbers, currency amounts, quantities with units, addresses, dates, and so on are converted into their spoken words by normalization based on weighted finite-state transducers (WFSTs).
  2. Extract the text for each chapter. The original audio is one MP3 per chapter, while the text is one file per book. The chapter audio is run through speech recognition (Google Cloud Speech-to-Text), and the result is matched against the full book text to extract the part corresponding to the chapter.
  3. Align audio and sentences. An adapted version of YouTube's automatic caption timing (auto-sync) is used. A small 3-gram language model is built from that chapter's sentences only, recognition is run with a (bidirectional) LSTM acoustic model, and the result is matched against the sentences by edit distance. Only sentences whose words all match are kept, and their start and end times are determined.
  4. Remove suspicious utterances in post-processing. Sentences longer than 71 words (suspected sentence-splitting errors) and utterances with an excessively long average duration per word (suspected large audio-text mismatches) are removed. Upside-down waveforms are corrected, and long leading and trailing silences are trimmed. Finally, SNR is estimated with a method called WADA, and utterances below 20 dB in clean and below 0 dB in other are removed.

Because of the strict alignment criteria and SNR filtering, the remaining audio amounts to about 60% of LibriSpeech. The paper's table gives the original number of sentences and the number removed as follows.

Training splitOriginal sentencesNot alignedToo longAvg. word durationSNRRemaining
train-clean-360262,10778,0581,8052665,718116,500
train-other-500332,816125,8061,40972485205,044

Because clean uses a higher SNR threshold (20 dB), about 25% of its sentences are removed by SNR filtering.

Splits put each speaker in the same split as in LibriSpeech.

SplitDurationFemaleMaleSpeakers
dev-clean8.97 h202040
test-clean8.56 h192039
dev-other6.43 h161733
test-other6.69 h171633
train-clean-10053.78 h123124247
train-clean-360191.29 h430474904
train-other-500310.08 h5606001,160
Total585.80 h1,1851,2712,456

Because some speakers lost many utterances and others few, the per-speaker duration varies more than in LibriSpeech. In the paper's figure, the median duration per speaker is about 900 seconds for LibriTTS versus about 1,500 seconds for LibriSpeech. On the other hand, the distribution of characters per sentence is closer to the original LibriVox texts than LibriSpeech, which was split at silences.

The format places three files per utterance in folders organized by speaker ID and chapter ID.

  • speaker_chapter_num_num.wav: 24 kHz audio
  • speaker_chapter_num_num.original.txt: the original text (case and punctuation preserved)
  • speaker_chapter_num_num.normalized.txt: text with numbers and abbreviations converted into spoken words

In addition, each chapter's speaker_chapter.trans.tsv lists "utterance ID, original text, normalized text" one per line, tab-separated, and speaker_chapter.book.tsv summarizes utterance information (such as SNR) in order within the chapter. Following this order lets you retrieve the neighboring sentences.

Evaluation rules

LibriTTS has no single fixed evaluation number like LibriSpeech's WER. Speech synthesis and vocoder papers mainly compare MOS (mean opinion score), in which human listeners rate naturalness on a 1–5 scale.

MOS=1M∑m=1Msm\mathrm{MOS} = \frac{1}{M} \sum_{m=1}^{M} s_m

Here sms_m is each individual rating and MM is the number of ratings. The mean is reported together with a 95% confidence interval.

As with LibriSpeech, the basic use of the splits is to train on the training sets, tune on the dev sets, and report on the test sets. Because dev and test speakers do not appear in the training sets, measuring on the test sets gives performance on speakers never heard during training. In the paper's experiments, a Tacotron-style model that specifies the voice with a speaker embedding was trained on the two train-clean splits, and 620 sentences randomly selected from the test splits were synthesized in the voices of six training speakers (three female, three male) for evaluation. The list of these 620 sentences is included in the corpus.

Papers differ in which splits they train on (train-clean-100, train-clean-360, the two clean splits combined for about 245 hours, or everything including other) and in which speakers and sentences they evaluate. MOS also depends on the listeners and conditions, so do not compare values directly across papers; match the splits and evaluation conditions before comparing.

To reduce the cost of listening tests, models that predict MOS (such as UTMOS) or the word error rate (WER) obtained by running synthesized speech through speech recognition are sometimes used as auxiliary measures. Vocoder papers may also measure objective metrics against the original audio (such as mel-spectrogram distance) on the dev sets and MOS on the test sets.

Usage and historical significance

LibriTTS is used as a large English speech synthesis corpus for learning many speakers' voices without license concerns. The paper describes it as the largest corpus dedicated to speech synthesis at the time of publication.

In the paper's experiments, GMVAE-Tacotron (a Tacotron variant that represents variations in reading style with VAE latent variables) and a WaveRNN vocoder were trained on the train-clean sets of LibriSpeech and LibriTTS and compared. The MOS for six speakers was as follows (the left three are female, the right three male).

Training data (synthesis rate)19103184120411215717
LibriSpeech (16 kHz)4.034.284.073.983.953.63
LibriTTS (downsampled to 16 kHz)4.194.354.234.013.923.55
LibriTTS (24 kHz)4.394.514.404.114.053.72
Original recordings (24 kHz)4.574.654.574.644.594.46

The column headers are speaker IDs. The model trained on 24 kHz LibriTTS achieved the highest MOS for all six speakers and exceeded 4.0 for five of them. Downsampling the same model's output to 16 kHz lowered MOS by an average of 0.175 for female and 0.133 for male speakers, clearly showing the benefit of a higher sampling rate. In contrast, the difference from LibriSpeech at 16 kHz was small, 0.15 for female and −0.03 for male speakers (the 0.15 for female speakers is the value in the paper's text; computed from the table, it is about 0.13). The paper notes that because LibriTTS has only about half as much training data as LibriSpeech (245 hours versus 460 hours), the effect of punctuation and capitalization has not yet been fully confirmed.

Since then, LibriTTS has been used to train and evaluate multi-speaker speech synthesis and vocoders that can turn any speaker's voice into a waveform. For example, BigVGAN trains its vocoder at 24 kHz on all LibriTTS training sets (train-clean-100, train-clean-360, and train-other-500) and reports that learning from diverse recordings, including other, improves robustness to audio from different recording environments and languages. In the same paper, MOS on the LibriTTS test set was 4.40 for the original recordings, 4.08 for HiFi-GAN (V1), and 4.11 for BigVGAN.

In 2023, LibriTTS-R was released, which improves only the audio quality of LibriTTS by applying a speech restoration model (Miipher) (OpenSLR SLR141, also CC BY 4.0). Utterances, texts, and splits are the same as LibriTTS. The paper reports that the MOS of the ground-truth audio rose from 4.36 to 4.41 on test-clean and from 3.94 to 4.09 on test-other, and that speech synthesis models trained on LibriTTS-R reached naturalness on par with the original recordings.

Caveats

License: CC BY 4.0, the same as LibriSpeech. Commercial use is allowed, but attribution is required. The distribution page asks users to cite Zen et al. (2019).

Speech synthesis models trained on LibriTTS can produce voices resembling real readers. Even though the license allows commercial use, avoid using a specific speaker's voice as if it were that person or for impersonation. When publishing, cite LibriTTS (Zen et al. 2019) as the source.

Audio quality falls short of studio recordings: The source is 128 kbps MP3 recorded by individuals, often at home. Noisy utterances are removed by SNR, but reverberation and compression artifacts remain. The LibriTTS-R paper points out that Glow-TTS trained on LibriTTS scored a MOS of 3.45, whereas audio vocoded from the ground-truth mel spectrograms scored 4.22, indicating that the audio quality degrades the quality of the trained synthesis. If audio quality matters, use LibriTTS-R.

other is noisier and harder to understand: The clean/other division is the same as LibriSpeech, based on speech recognition WER. The SNR threshold for other is low (0 dB), so it is common to use only clean when you want clean synthesis of a single voice.

Per-speaker duration is uneven: As a result of strict filtering, the remaining duration differs greatly between speakers. If you want to synthesize a specific speaker's voice, first check that the speaker has enough data.

Read speech only: Because the data is audiobook narration, it contains almost no conversational tone or strongly emotional reading. The texts are also from old public-domain books.

Normalization uses Google's non-public system: Sentence splitting and normalization rely on Google's internal system, so the same processing cannot be reproduced locally. When synthesizing your own text, use a different normalization pipeline to approximate the same form.

Comparison with similar datasets

Representative English and Japanese speech datasets compare as follows from the same perspective.

DatasetLanguageSpeakersDurationMain useAudio formatLicense
LibriTTSEnglish2,456About 586 hMulti-speaker TTS, vocoders24 kHz, WAVCC BY 4.0
LibriSpeechEnglish2,484About 1,000 hSpeech recognition16 kHz, FLACCC BY 4.0
VCTKEnglish109About 44 hMulti-speaker TTS48 kHzODC-By v1.0
LJ SpeechEnglish1About 24 hSingle-speaker TTS22.05 kHz, WAVPublic domain
JSUTJapanese1About 10 hSingle-speaker TTS48 kHz, WAVText under CC BY-SA 4.0 etc.; audio for research, non-commercial, and personal use (commercial use by arrangement)

(VCTK values are from the table in the LibriTTS paper.)

Rough guidelines for choosing:

  • To build English speech synthesis that switches between many voices, or a vocoder that handles any voice, use LibriTTS (or LibriTTS-R if audio quality matters).
  • If a few speakers are enough but you want multiple speakers recorded at studio quality, VCTK is a candidate.
  • To compare single-speaker English speech synthesis under the same conditions as other papers, use LJ Speech.
  • For English speech recognition, use LibriSpeech, which is larger and has established evaluation rules.

PyTorch example

Show code
python
import glob
import os

import soundfile as sf
import torch
import torchaudio
from torch.utils.data import Dataset

"""
Load one LibriTTS split (e.g., train-clean-100) and turn it into tuples of
"normalized text", "log-mel spectrogram", and "speaker ID" for TTS training
Layout: LibriTTS/<split>/<speaker ID>/<chapter ID>/<speaker>_<chapter>_<num>_<num>.wav
        plus .original.txt (original text) and .normalized.txt (normalized text) with the same name
"""


class LibriTTS(Dataset):
  def __init__(self, root, splits=('train-clean-100', 'train-clean-360')):
    self.items = []  # (wav path, normalized text, speaker ID)
    for split in splits:
      for wav in sorted(glob.glob(os.path.join(root, split, '*', '*', '*.wav'))):
        with open(wav[:-4] + '.normalized.txt', encoding='utf-8') as f:
          text = f.read().strip()  # case and punctuation are preserved
        speaker = int(os.path.basename(wav).split('_')[0])
        self.items.append((wav, text, speaker))
    # map speaker IDs to consecutive indices from 0 for the speaker embedding table
    self.speaker_index = {s: i for i, s in enumerate(sorted({s for _, _, s in self.items}))}
    # keep 24 kHz; mel spectrogram with window 1024, hop 256, 80 bins (example values)
    self.mel = torchaudio.transforms.MelSpectrogram(
        sample_rate=24000, n_fft=1024, hop_length=256, n_mels=80)

  def __len__(self):
    return len(self.items)

  def __getitem__(self, i):
    path, text, speaker = self.items[i]
    wav, sr = sf.read(path, dtype='float32')
    assert sr == 24000  # all files are 24 kHz
    feats = torch.log(self.mel(torch.from_numpy(wav)).clamp(min=1e-5)).t()  # [frames, 80]
    return text, feats, self.speaker_index[speaker]


def collate(batch, encode):
  # encode maps text to a sequence of character IDs (LongTensor); pad variable-length sequences with 0
  texts, feats, speakers = zip(*batch)
  ids = [encode(t) for t in texts]
  return (torch.nn.utils.rnn.pad_sequence(ids, batch_first=True),
          torch.tensor([len(x) for x in ids]),
          torch.nn.utils.rnn.pad_sequence(feats, batch_first=True),
          torch.tensor([f.size(0) for f in feats]),
          torch.tensor(speakers))


# training: example using the two clean splits (about 245 hours)
# train = LibriTTS('LibriTTS', splits=('train-clean-100', 'train-clean-360'))
# dev/test speakers are not in the training sets, so this measures performance on unseen speakers
# dev = LibriTTS('LibriTTS', splits=('dev-clean',))
# train with model.train(); when synthesizing for MOS, switch to model.eval() to disable Dropout etc.

FAQ

Q. Are LibriSpeech and LibriTTS the same audio?
A.

The underlying readings and speakers are the same, but the audio was rebuilt separately. LibriTTS is cut from the original MP3s at 24 kHz and split at sentence boundaries, so its utterance boundaries and lengths differ from LibriSpeech. Because of strict alignment criteria and the removal of noisy utterances, its total duration is about 60% of LibriSpeech (about 585 hours).

Q. Should I train on the original text or the normalized text?
A.

Speech synthesis input usually uses the normalized text. Numbers and abbreviations are converted into their spoken words, which makes it easier to learn the mapping between character sequences and pronunciation. The paper's experiments also use the punctuated character sequence of the normalized text as input. The original text is used when you want the model to learn how to read numbers and abbreviations too, or when you build your own normalization pipeline.

Q. Should I use LibriTTS or LibriTTS-R?
A.

Utterances, texts, and splits are the same, so choose LibriTTS-R if audio quality matters. In the LibriTTS-R paper, the MOS of the ground-truth audio on test-other rose from 3.94 to 4.09. However, if you want to build vocoders or speech restoration models that are robust to noisy or reverberant audio, LibriTTS with its degradations intact may suit the purpose better. Always state in your paper which one you used.

References

  1. Zen, H., Dang, V., Clark, R., Zhang, Y., Weiss, R. J., Jia, Y., Chen, Z., & Wu, Y. (2019). LibriTTS: A Corpus Derived from LibriSpeech for Text-to-Speech. Interspeech 2019.
  2. OpenSLR. SLR60: LibriTTS corpus (distribution page).
  3. Koizumi, Y., Zen, H., Karita, S., et al. (2023). LibriTTS-R: A Restored Multi-Speaker Text-to-Speech Corpus. arXiv:2305.18802.
  4. OpenSLR. SLR141: LibriTTS-R (distribution page).
  5. Lee, S., Ping, W., Ginsburg, B., Catanzaro, B., & Yoon, S. (2023). BigVGAN: A Universal Neural Vocoder with Large-Scale Training. ICLR 2023.
  6. Panayotov, V., Chen, G., Povey, D., & Khudanpur, S. (2015). LibriSpeech: an ASR corpus based on public domain audio books. ICASSP 2015.
  7. PyTorch. torchaudio.datasets.LIBRITTS (API reference).