AI Logic

Datasets and Benchmarks

JSUT

Updated:

How JSUT was built and organized. Left: the flow of collecting sentences that cover the readings of the jōyō kanji, having one speaker read them in an anechoic room, normalizing volume and adding commas to produce JSUT ver. 1.1, which is divided into nine subcorpora such as basic5000. Right: the folder layout per subcorpus, the format of one transcript line, and the audio format, splits, and evaluation conventions

Overview

JSUT is a Japanese speech synthesis corpus of about 10 hours of speech read by a single native Japanese female speaker, with transcripts. It was created by Sonobe, Takamichi, and Saruwatari of the Saruwatari Laboratory at the University of Tokyo, and the paper was released on arXiv in 2017. The name is an acronym of "Japanese speech corpus of Saruwatari Laboratory, the University of Tokyo".

It was created because there was no free, large-scale Japanese speech synthesis corpus that universities and companies could share. Japanese is a language in which determining pronunciation from text is hard, for example because kanji readings change with context. JSUT therefore selects sentences so that they contain all major readings of the 2,136 jōyō kanji, aiming to make end-to-end speech synthesis, which generates speech directly from character sequences (without humans preparing intermediate representations such as phonemes), researchable in Japanese as well.

For a speech synthesis corpus, what matters more than the number of speakers is "how diverse the readings and sentences are within one voice". That is why JSUT puts coverage of kanji readings at the center of its design.

Contents: construction, structure, and format

Construction proceeded as follows.

  1. Collect sentences to read. For the core subcorpus basic5000, 5,000 sentences were selected from Wikipedia and the Tanaka Corpus (a collection of Japanese–English parallel example sentences) so that all major jōyō kanji readings appear, and readings that could not be found were covered with manually written sentences. Other sentences were collected through crowdsourcing and from existing corpora.
  2. Have one speaker read them. A single native Japanese female speaker (not a professional narrator, but with experience in voice work) was hired and recorded in the university's anechoic room. Recording took place in February, March, September, and October 2017, a few hours a day, with the speaker operating the recording system herself.
  3. Clean up. The audio volume was normalized, with almost no other processing. Commas were added to the transcripts by hand at breath breaks.

Structure: nine subcorpora whose names end in the number of utterances, 7,696 utterances in total.

SubcorpusUtterancesContents
basic50005,000Sentences covering all major jōyō kanji readings (the core subcorpus)
travel10001,000Sentences in the travel domain (from Japanese–English parallel data)
utparaphrase512512256 pairs of a sentence and a version with some words paraphrased
repeat500500100 sentences from the Voice Actress Corpus, each read 5 times
onomatopee300300Sentences containing onomatopoeia (sound-symbolic and mimetic words)
precedent130130Sentences from legal precedents (edited for readability)
loanword128128Sentences with loanword verbs and nouns (e.g., 「ググる」 guguru, "to google")
voiceactress100100The same sentences as the Voice Actress Corpus
countersuffix2626Sentences with counter suffixes (e.g., ni in 「2 個」 vs. futa in 「2 つ」)

repeat500 is for measuring variation: the same person reading the same sentence sounds slightly different each time. voiceactress100 uses the same sentences as the Voice Actress Corpus, a collection of professional voice actresses' speech, so it can be used for research comparing voices or converting between speakers.

The paper's analysis shows that the number of morae per utterance ranges from 7 to 133 (mean 37.14) and the number of words from 2 to 70 (mean 18.03), covering short to long utterances.

Format: each subcorpus folder contains audio in wav/ (48 kHz, 16-bit WAV, e.g., BASIC5000_0001.wav) and a transcript transcript_utf8.txt (UTF-8 text with one "ID:sentence" per line). Sentences are written in mixed kanji and kana, without readings (kana). For basic5000, manually annotated phoneme and accent labels (jsut-label) are published separately.

There is no official split. For example, the ESPnet (a speech processing toolkit) recipe takes the first 500 utterances in file-name order, using 250 for evaluation and 250 for development, and the rest for training.

Evaluation rules

JSUT has no fixed evaluation protocol, and the paper does not report model evaluation results. The following metrics are commonly used depending on the purpose.

  • Speech synthesis: MOS (mean opinion score), in which listeners rate naturalness on a 1–5 scale. The same listeners rate both speech synthesized from evaluation sentences and the original recordings.
  • Speech recognition: since Japanese does not separate words with spaces, the character error rate (CER) is used, which applies the same formula as the word error rate (WER) but counts characters.
CER=S+D+IN\mathrm{CER} = \frac{S + D + I}{N}

Here SS, DD, and II are the numbers of substituted, deleted, and inserted characters, and NN is the number of characters in the reference.

Because there is no official split, the evaluation utterances may differ between papers. When comparing with other work, check which utterances (file IDs) were used for evaluation, and if possible align with a published split such as the ESPnet recipe.

Usage and historical significance

JSUT was created as a large-scale Japanese speech synthesis corpus that both universities and in-house corporate research can use for free. The paper states that, at the time, no Japanese corpus was available for this purpose.

Its main uses are:

  • Training and comparing Japanese speech synthesis: it serves as single-speaker data when training speech synthesis models such as Tacotron 2 and VITS in Japanese. ESPnet has a speech synthesis recipe for JSUT.
  • Research on Japanese readings: it includes sentences that gather the difficulties of determining readings from text, such as kanji readings, counter suffixes, loanwords, and onomatopoeia, making it useful material for studying reading errors.
  • Speech recognition: ESPnet also has a speech recognition recipe. However, with only one speaker, it is not suited for training general-purpose speech recognition.

The same laboratory later released JVS, which collects many speakers' voices, and described it together with JSUT in a paper (Takamichi et al. 2020, Acoustical Science and Technology). JSUT, for building a single voice, and JVS, for handling many speakers, can be used in combination.

Caveats

License: the text (transcripts) is under CC BY-SA 4.0 and similar licenses, and the audio may be used for research at universities and elsewhere, non-commercial research including in-house corporate research, and personal use (blogs, etc.). Commercial use may be permitted upon consultation with the University of Tokyo's contact office.

Redistribution of the JSUT corpus audio is prohibited. To use it in a commercial product or service, contact the office listed on the official page and obtain permission. When using text under CC BY-SA 4.0, also note the condition of releasing derivatives under the same license.

Voice changes across recording days: recording spanned a long period, February to October 2017. The paper's analysis found that the pitch of the voice (mean log F0) rose on later recording days. The distributed data includes recording-date information, so check by recording date if voice consistency matters.

Reading labels are needed separately: transcripts contain only mixed kanji–kana sentences, without readings or accents. For speech synthesis that takes phonemes as input, use jsut-label (manual labels for basic5000) or add readings with morphological analysis or reading-estimation tools. Automatically assigned readings contain errors.

One speaker, read speech only: producing multiple speakers' voices or synthesizing conversational speech requires other data.

Sampling rate: the audio is 48 kHz. Many speech synthesis models train at 22.05 kHz or 24 kHz, so resample to match your model.

Comparison with similar datasets

Representative English and Japanese speech datasets compared along the same dimensions:

DatasetLanguageSpeakersDurationMain useAudio formatLicense
LibriSpeechEnglish2,484~1,000 hoursSpeech recognition16 kHz, FLACCC BY 4.0
Common VoiceMultilingual (295 languages in v27.0)1 to ~100,000 per language (English)42,593 hours across all languages (29,295 validated)Speech recognition48 kHz, MP3CC0
LJ SpeechEnglish1~24 hoursSpeech synthesis22.05 kHz, WAVPublic domain
JSUTJapanese1~10 hoursSpeech synthesis48 kHz, WAVText under CC BY-SA 4.0 etc.; audio for research, non-commercial, and personal use (commercial use upon consultation)

Rough guidelines for choosing:

  • For single-voice Japanese speech synthesis, use JSUT.
  • For multi-speaker Japanese speech synthesis or voice conversion, use JVS.
  • For single-voice English speech synthesis, use LJ Speech. JSUT is recorded at 48 kHz in an anechoic room, with better-controlled recording conditions than LJ Speech (22.05 kHz, derived from MP3 recordings), but has less than half the duration.
  • For Japanese speech recognition, use multi-speaker data such as ReazonSpeech or the Japanese portion of Common Voice.

PyTorch example

Show code
python
import glob
import os

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

"""
Load JSUT ver. 1.1 (jsut_ver1.1/<subcorpus>/wav/*.wav and transcript_utf8.txt)
The audio is 48 kHz, so resample it to the sampling rate used for training (22,050 Hz here)
"""

ROOT = 'jsut_ver1.1'


def read_transcripts(root, subsets=None):
  # Each line of transcript_utf8.txt is "ID:sentence". Split into ID and sentence at the first ":"
  items = []
  for path in sorted(glob.glob(os.path.join(root, '*', 'transcript_utf8.txt'))):
    subset = os.path.basename(os.path.dirname(path))
    if subsets is not None and subset not in subsets:
      continue
    with open(path, encoding='utf-8') as f:
      for line in f:
        utt_id, text = line.rstrip('\n').split(':', 1)
        items.append((os.path.join(os.path.dirname(path), 'wav', utt_id + '.wav'), utt_id, text))
  return items


items = read_transcripts(ROOT)
print(len(items))  # 7696 (total of the nine subcorpora)

# There is no official split. As in the ESPnet recipe, take the first 500 utterances in ID order: 250 eval, 250 dev
items.sort(key=lambda x: x[1])
eval_set, dev_set, train_set = items[:250], items[250:500], items[500:]


def to_phonemes(text):
  # Estimate a phoneme sequence from mixed kanji-kana text (example using pyopenjtalk). Automatic estimation contains reading errors
  # basic5000 has manual labels (jsut-label), which are more accurate
  import pyopenjtalk
  return pyopenjtalk.g2p(text).split()  # e.g. ['k', 'o', 'N', 'n', 'i', 'ch', 'i', 'w', 'a']


class JSUT(Dataset):
  def __init__(self, items, sample_rate=22050):
    self.items, self.sample_rate = items, sample_rate
    self.mel = torchaudio.transforms.MelSpectrogram(sample_rate=sample_rate, n_fft=1024, hop_length=256, n_mels=80)

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

  def __getitem__(self, i):
    path, utt_id, text = self.items[i]
    wav, sr = sf.read(path, dtype='float32')  # 48,000 Hz, 16 bit
    wav = torchaudio.functional.resample(torch.from_numpy(wav), sr, self.sample_rate)
    mel = torch.log(torch.clamp(self.mel(wav), min=1e-5))  # [80, frames]
    return utt_id, to_phonemes(text), mel

FAQ

Q. Can JSUT be used in a commercial speech synthesis product?
A.

Not as is. Use of the audio is limited to research, non-commercial research, and personal use; commercial use requires consulting the University of Tokyo's contact office listed on the official page. Redistribution of the corpus is also prohibited.

Q. Which subcorpora should I use for training?
A.

Choose according to your goal. You can use all 7,696 utterances or only the core basic5000 (5,000 utterances). basic5000 has manual phoneme and accent labels (jsut-label), which makes it convenient for models that take phonemes as input. repeat500 consists of the same 100 sentences read 5 times each, so when splitting into training and evaluation, make sure the same sentence does not end up in both.

Q. Do the JSUT transcripts include kana readings?
A.

No. The transcripts are mixed kanji–kana sentences with commas only at breath positions. If you need readings, use jsut-label for basic5000 and a reading-estimation tool (such as OpenJTalk) for the other subcorpora.

References

  1. Sonobe, R., Takamichi, S., & Saruwatari, H. (2017). JSUT corpus: free large-scale Japanese speech corpus for end-to-end speech synthesis. arXiv:1711.00354.
  2. JSUT (official page: ver. 1.1, terms of use and download).
  3. sarulab-speech. jsut-label (manual phoneme and accent labels for basic5000).
  4. ESPnet. egs2/jsut (speech synthesis and speech recognition recipes for JSUT).