Algorithm Search⌘K

Speech analysis and synthesis

Problems

  • Text-to-speech

    Produce natural and intelligible speech audio that says a given input text.

    intro
  • Formant estimation

    Find the resonance frequencies of the vocal tract over time, often as the angles of the roots of an LPC polynomial.

    core
  • Grapheme-to-phoneme conversion

    Predict the sequence of phonemes that spells the pronunciation of a written word, including words not in the lexicon.

    core
  • Text normalization for speech

    Rewrite numbers, dates, abbreviations and symbols in a text as the words a speaker would say, such as 1999 as nineteen ninety-nine.

    core
  • Voice activity detection

    Mark which frames of an audio signal contain speech and which contain only silence or noise.

    core

Algorithms

  • Cepstral pitch detection

    Estimate the pitch period of a voiced frame from the quefrency of the largest peak of the real cepstrum in the plausible range.

    O(M log M) worst1 languagescore
  • Code-excited linear prediction

    Speech coding by an LPC synthesis filter driven by an excitation chosen from codebooks to minimize perceptually weighted error.

    O(S (Q + C) L^2 + S L p) worst1 languagescore
  • Formant synthesis

    Make speech by passing a source signal through resonators set to formant frequencies and bandwidths, controlled by rules over time.

    O(N K + P K) worst1 languagescore
  • Mel filter bank

    Weight the power spectrum of each frame by triangular filters spaced evenly on the mel scale and take logs of the band energies.

    O(W + N log N + M N) worst1 languagescore
  • Mel-frequency cepstral coefficients

    Speech features from the discrete cosine transform of the log mel filter bank energies of each frame, keeping the first dozen or so.

    O(T (N log N + M N + K M)) worst1 languagescore
  • Phase vocoder

    Time-stretch or pitch-shift audio by changing the hop of the STFT and advancing each bin's phase by its estimated instantaneous frequency.

    O(F N log N) worst1 languagescore
  • Pitch-synchronous overlap-add

    Change pitch and duration by cutting windowed segments centered on pitch marks and overlap-adding them at new spacing.

    O(M P + K) worst1 languagescore
  • Rabiner-Sambur endpoint detection

    Find the start and end of an isolated word from short-time energy thresholds, refined by zero-crossing rate to keep weak fricatives.

    O(L) worst1 languagescore
  • Unit selection synthesis

    Speech synthesis that picks recorded units from a large database to minimize the sum of target costs and join costs, found by a Viterbi search over the candidates, and joins them.

    Θ(n K^2) worst1 languagescore
  • Ephraim-Malah estimator

    Speech enhancement by the minimum mean squared error estimate of each spectral amplitude under Gaussian models, with decision-directed SNR.

    O(F N log N) worst1 languagesadvanced
  • HMM-based speech synthesis

    Model spectrum, pitch and duration with context-dependent HMMs trained on speech, then pick state durations, generate smooth parameters and drive a vocoder.

    O(N h + T M) worst1 languagesadvanced
  • Joint-sequence grapheme-to-phoneme model

    Grapheme-to-phoneme conversion with an n-gram model over graphones, pairs of a letter chunk and a phoneme chunk, trained by EM over all joint segmentations and decoded by Viterbi.

    Θ(n m H k) worst1 languagesadvanced
  • Maximum likelihood parameter generation

    Turn per-frame Gaussian means and variances of static and delta features into the smooth static trajectory of highest likelihood, by one banded linear solve in O(T) time.

    O(T D b^2) worst1 languagesadvanced
  • Perceptual linear prediction

    Hermansky's features: a Bark-scale critical band spectrum with equal loudness and cube-root compression, modeled by an all-pole fit.

    O(N log N + M N + M p + p^2) worst1 languagesadvanced
  • RAPT pitch tracker

    Talkin's pitch tracker. Candidate periods from normalized cross-correlation peaks, then a dynamic program picks the best voiced or unvoiced path.

    O(F (K n + C^2)) worst1 languagesadvanced
  • RASTA filtering

    Band-pass filter the time series of each log spectral band to remove slow channel effects and fast frame-to-frame noise.

    O(T B) worst1 languagesadvanced
  • Statistical model voice activity detection

    Decide speech or noise per frame by a likelihood ratio test of Gaussian models of the spectral bins, smoothed by an HMM hangover.

    O(F N log N) worst1 languagesadvanced
  • pYIN

    YIN with a distribution over thresholds that gives many pitch candidates with probabilities, then Viterbi decoding of a pitch HMM.

    O(F (W T + N T + M J)) worst1 languagesresearch

Techniques

  • Pre-emphasis

    Filter speech by y[n] = x[n] - a x[n-1] with a near 0.97, which boosts high frequencies before spectral analysis.

    intro
  • Cepstral mean normalization

    Subtract the mean of each cepstral coefficient over an utterance, which approximately removes a fixed channel filter, and often scale to unit variance.

    core
  • Delta features

    Append to each frame the slopes of its features over a few neighbouring frames, and the slopes of those, found by linear regression.

    1 languagescore

Definitions

  • Mean opinion score

    The mean of listener ratings of speech quality or naturalness on a five-point scale, the standard subjective score of TTS.

    intro
  • Mel scale

    A pitch scale from listener tests. Speech tools use m = 2595 log10(1 + f/700); other mel formulas exist, such as Slaney's and the 1937 table of Stevens, Volkmann and Newman.

    1 languagesintro
  • Zero-crossing rate

    The fraction of adjacent samples in a frame whose signs differ, high for unvoiced fricatives and low for voiced speech.

    intro

Models

  • Source-filter model

    Speech as a glottal or noise source passed through a vocal tract filter, so the spectrum splits into an excitation and an envelope.

    intro
  • FastSpeech

    A non-autoregressive transformer TTS model that repeats each phoneme encoding by its predicted duration and outputs all mel frames in parallel.

    research
  • HiFi-GAN

    A GAN vocoder that turns mel spectrograms into waveforms with a convolutional generator, judged by multi-period and multi-scale discriminators.

    research
  • Neural codec language model

    TTS as language modeling over the discrete tokens of a neural audio codec, prompted by a few seconds of a speaker to copy an unseen voice.

    research
  • Tacotron

    An attention-based encoder-decoder that maps characters or phonemes to mel spectrogram frames, one step at a time, followed by a vocoder.

    research
  • VITS

    End-to-end TTS that joins a conditional VAE, a normalizing flow and adversarial training, and finds durations by monotonic alignment search.

    1 languagesresearch
  • WaveNet

    An autoregressive model of raw audio that predicts each mu-law quantized sample from the past with stacks of dilated causal convolutions.

    research