Text-to-Speech › Evaluation Metrics for TTS

Michael BrenndoerferFebruary 19, 20265 min read
Language AI HandbookAll chapters
Part 51 of 67Speech and Audio
Chapter 397Text-to-Speech › Evaluation Metrics for TTS
Reading section 7 of 12 · Evaluation Metrics for TTS · 5 minSection 7 of 12 · 5 min

Book contents

Section 7 of 12 · 5 min read

Text-to-Speech › Evaluation Metrics for TTSOne section · Sections in this chapter7 / 12 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Evaluating speech synthesis presents unique challenges. Unlike text generation where we can compare against reference strings using BLEU or ROUGE (covered in Part LIII), audio quality involves perceptual dimensions that resist simple mathematical characterization. Naturalness depends on subtle cues like breathiness, vocal effort, and prosodic appropriateness that are difficult to quantify with simple distance metrics.

Subjective Evaluation

The gold standard for TTS evaluation remains human judgment, typically quantified through Mean Opinion Score (MOS) studies. In these studies, listeners rate synthesized speech on a 5-point scale:

  1. Bad (unintelligible, unnatural)
  2. Poor (intelligible but annoying)
  3. Fair (slightly annoying)
  4. Good (perceptible distortion, not annoying)
  5. Excellent (imperceptible distortion)

CMOS (Comparative Mean Opinion Score) presents listeners with paired samples (A and B) and asks which is better. This gives relative quality assessments useful for comparing system variants without requiring absolute calibration.

While MOS gives the most reliable quality assessment, it is expensive, time-consuming, and suffers from variability across listener populations and testing conditions. Different demographic groups may have different expectations for synthetic speech, and laboratory conditions may not reflect real-world usage scenarios. Despite these limitations, MOS remains needed for final quality validation, particularly for commercial systems.

Objective Metrics

Objective metrics attempt to approximate human perception algorithmically, giving faster and cheaper evaluation during development:

Mel Cepstral Distortion (MCD) measures the Euclidean distance between mel-frequency cepstral coefficients (MFCCs) of synthesized and reference audio. MFCCs capture the spectral envelope in a compact representation inspired by human auditory processing. Lower MCD indicates better spectral envelope matching:

MCD=10ln⁡102∑d=1D(cd−c^d)2\text{MCD} = \frac{10}{\ln 10} \sqrt{2 \sum_{d=1}^{D} (c_d - \hat{c}_d)^2}

where:

  • MCD\text{MCD}: the Mel Cepstral Distortion measuring spectral difference between synthesized and reference audio
  • DD: the total number of cepstral coefficients (dimensions) used in the comparison
  • dd: the index iterating over cepstral coefficients from 11 to DD
  • cdc_d: the dd-th MFCC coefficient of the reference (ground truth) audio
  • c^d\hat{c}_d: the dd-th MFCC coefficient of the synthesized audio
  • 10ln⁡10\frac{10}{\ln 10}: a scaling constant (approximately 4.3429) converting natural logarithm units to decibels

However, MCD correlates poorly with human perception of naturalness as it penalizes all spectral deviations equally regardless of perceptual salience. Some spectral differences are inaudible to humans, while others are highly noticeable, but MCD treats them identically.

PESQ (Perceptual Evaluation of Speech Quality) and STOI (Short-Time Objective Intelligibility) predict subjective quality and intelligibility respectively. PESQ models human auditory perception by comparing internal representations of reference and degraded speech, accounting for frequency masking and loudness perception. STOI focuses specifically on intelligibility, correlating highly with word recognition rates in noisy conditions, which makes it useful for applications where clarity is the primary requirement.

Fundamental Frequency (F0) metrics assess prosody quality by comparing pitch contours between synthesized and reference speech. Metrics like F0 Frame Error (FFE) measure the percentage of frames where the predicted pitch differs materially from the reference, helping to quantify whether the model has learned appropriate intonation patterns.

Out[8]:
Visualization
Scatter plot showing MCD correlation with MOS.
Correlation between Mel Cepstral Distortion (MCD) and subjective Mean Opinion Score (MOS). MCD shows moderate negative correlation with perceived quality, with higher spectral distortion corresponding to lower MOS ratings.
Scatter plot showing PESQ correlation with MOS.
Correlation between PESQ scores and subjective Mean Opinion Score (MOS). PESQ shows stronger correlation with human judgments compared to spectral distance metrics, better predicting perceived synthesis quality.

Intrinsic vs. Extrinsic Evaluation

As we discussed in Embedding Evaluation, TTS evaluation can be intrinsic (measuring acoustic quality directly) or extrinsic (measuring performance on downstream tasks). Word Error Rate (WER) from speech recognition systems gives an extrinsic metric: if a speech recognizer transcribes synthesized speech accurately, the TTS system likely produces intelligible, natural-sounding output. This "TTS-for-ASR" evaluation proves particularly useful for evaluating low-resource languages where human MOS studies are impractical or for rapidly iterating on system designs without organizing listening tests.