Algorithm Library

A library of speech and audio algorithms: mathematical definition, mechanism, advantages and limitations, an example, documented references, and links to experiments and lessons.

Educational content in the form of a scientific draft that needs expert review before being adopted as an academic reference. No experimental result that was not actually run is shown here.

Discrete Fourier Transform

Discrete Fourier Transform

A transform that represents a finite sequence of N time samples as a sum of N complex sinusoids at uniformly spaced frequencies. It gives each frequency an amplitude and…

IntermediateSignal Processing

Fourier Transform

Fourier Transform

A mathematical tool that decomposes a continuous-time signal into sinusoidal components at different frequencies. It moves the signal from the time domain to the frequen…

IntermediateSignal Processing

Fast Fourier Transform

Fast Fourier Transform

A family of algorithms that compute the DFT with O(N N) complexity instead of O(N^2) by splitting the problem into smaller problems. The best known is the Cooley–Tukey a…

IntermediateSignal Processing

Short-Time Fourier Transform

Short-Time Fourier Transform

Splits the signal into short overlapping frames, multiplies each frame by a window, and then applies the FFT to it. The output is a complex matrix (frequency × time) des…

IntermediateSignal Processing

Spectrogram

Spectrogram

A visual representation of the value |STFT|^2 as a function of time and frequency, usually displayed on a decibel scale. It shows how frequency energy is distributed ove…

BeginnerSignal Processing

Mel Spectrogram

Mel Spectrogram

A spectrogram in which frequency bins are grouped by triangular filters spaced on the perceptual mel scale. It reduces dimensionality and emphasizes detail at low freque…

IntermediateSignal Processing

Mel-Frequency Cepstral Coefficients

Mel-Frequency Cepstral Coefficients

Compact audio features extracted from the log energies of mel filters by applying the discrete cosine transform (DCT) and keeping the first few coefficients (often 13).

IntermediateSignal Processing

Mel Filterbank

Mel Filterbank

A set of overlapping triangular band-pass filters whose centers are uniformly spaced on the mel scale, applied to the power spectrum to group FFT bins into a small numbe…

IntermediateSignal Processing

Pre-emphasis

Pre-emphasis

A first-order high-pass filter that boosts high frequencies before speech analysis, because the energy of voiced speech decays at a roughly constant rate as frequency ri…

BeginnerSignal Processing

Window Smoothing

Windowing

Multiplying a signal frame by a weighting function that tapers at both ends before the FFT, to reduce abrupt discontinuities at the frame boundaries and the spectral lea…

BeginnerSignal Processing

Spectral Subtraction

Spectral Subtraction

A method for removing relatively stationary additive noise by estimating the noise spectrum from non-speech segments and subtracting it from the magnitude spectrum of th…

IntermediateSignal Processing

Wiener Filter

Wiener Filter

A linear filter that is optimal in the mean-squared-error sense, multiplying each spectral component by a gain between 0 and 1 that depends on the signal-to-noise ratio…

AdvancedSignal Processing

Median Filter

Median Filter

A nonlinear filter that replaces each sample with the median of the samples in a sliding window around it. It removes isolated outliers (impulses) and preserves edges be…

BeginnerSignal Processing

Energy-Based Voice Activity Detection

Energy-based Voice Activity Detection

A simple method for identifying the frames that contain speech by comparing the energy of each short frame with a threshold derived from the noise floor. It does not nee…

BeginnerSignal Processing

YIN Algorithm for Fundamental Frequency Estimation

YIN Pitch Estimation

A time-domain method for estimating the fundamental frequency f_0 that relies on the difference function and its cumulative normalization to choose the smallest lag givi…

AdvancedSignal Processing

Word and Character Error Rate

Word / Character Error Rate

Two metrics of speech recognition quality that compute the edit distance (Levenshtein) between the reference text and the predicted text, divided by the reference length…

BeginnerSignal Processing

k-Nearest Neighbors

k-Nearest Neighbors

An example-based classifier: a new input is classified by a vote among the k training examples closest to it under a distance measure, with no actual training phase.

BeginnerMachine Learning

Support Vector Machine

Support Vector Machine

A classifier that searches for a separating hyperplane with the largest margin between two classes. It can be extended to nonlinear cases with kernels and to multiple cl…

IntermediateMachine Learning

Random Forest

Random Forest

An ensemble of decision trees, each trained on a bootstrap sample of the data and with a random subset of features at each split, whose predictions are then aggregated b…

IntermediateMachine Learning

XGBoost (Gradient Boosting)

Gradient Boosting / XGBoost

A boosting method that builds sequential decision trees, where each tree corrects the errors of the sum of the previous trees using a second-order Taylor approximation o…

AdvancedMachine Learning

Gaussian Mixture Model

Gaussian Mixture Model

A probabilistic model that represents the feature distribution as a weighted sum of several Gaussian distributions. It is estimated with the expectation-maximization (EM…

IntermediateMachine Learning

Hidden Markov Model

Hidden Markov Model

A probabilistic model for sequences generated from hidden states that transition according to a Markov chain, where each state emits observations with a probability dist…

AdvancedMachine Learning

Convolutional Neural Network

Convolutional Neural Network

A neural network that uses convolutional filters with shared weights that slide over the input to extract local patterns. In audio, it is often applied to the spectrogra…

IntermediateDeep Learning

Recurrent Neural Network

Recurrent Neural Network

A network that processes a sequence step by step and keeps a hidden state that summarizes what came before. It suits temporal signals such as speech because the output o…

IntermediateDeep Learning

Long Short-Term Memory

Long Short-Term Memory

A type of recurrent network that adds a cell state and gates that control what is forgotten, what is written, and what is read, which mitigates the vanishing gradient pr…

IntermediateDeep Learning

Gated Recurrent Unit

Gated Recurrent Unit

A simplified recurrent cell that merges the memory and the hidden state into a single vector and uses only two gates: update and reset. It retains the ability to control…

IntermediateDeep Learning

Bidirectional LSTM

Bidirectional LSTM

A network that passes the sequence in two directions, forward and backward, and then merges the two states at each step. Each frame gets the context of both the past and…

IntermediateDeep Learning

Convolutional Recurrent Neural Network

Convolutional Recurrent Neural Network

A hybrid architecture that starts with convolutional layers to extract local features from the spectrogram, then recurrent layers to model the temporal sequence, and end…

IntermediateDeep Learning

Transformer

Transformer

An architecture based on self-attention instead of recurrence, so it processes all positions of the sequence in parallel and links any two positions directly. It has bec…

AdvancedDeep Learning

Conformer

Conformer

An encoder that combines self-attention to capture global context with depthwise convolution to capture local patterns within a single block, and it was designed primari…

AdvancedDeep Learning

Attention

Attention

A mechanism that computes, for each output, a weighted average of a set of values, where the weights are computed from the degree of match between a query and the keys.…

IntermediateDeep Learning

Connectionist Temporal Classification

Connectionist Temporal Classification

A loss function and decoding method that trains a network to convert a long feature sequence into a shorter token sequence without prior alignment, using a special blank…

AdvancedDeep Learning

Recurrent Neural Network Transducer

RNN Transducer

A sequence model that comprises an acoustic encoder, a text prediction network, and a joint network, so it learns the distribution over tokens plus the blank for each po…

AdvancedDeep Learning

SpecAugment

SpecAugment

A data augmentation technique applied directly to the spectrogram during training, by masking random frequency bands and time bands (and optionally time warping). It red…

IntermediateDeep Learning

Tacotron 2

Tacotron 2

A sequence-to-sequence speech synthesis model that produces a mel spectrogram from text by autoregressive decoding with attention, and then converts the spectrogram to a…

AdvancedSpeech Synthesis

FastSpeech 2

FastSpeech 2

A non-autoregressive speech synthesis model that predicts all mel spectrogram frames at once. It adds a variance adaptor that predicts duration, pitch, and energy instea…

AdvancedSpeech Synthesis

VITS

VITS

An end-to-end speech synthesis model that combines a conditional variational autoencoder (cVAE), normalizing flows, and adversarial training in a single model that produ…

AdvancedSpeech Synthesis

HiFi-GAN

HiFi-GAN

A generative adversarial neural vocoder (GAN) that converts the mel spectrogram to a waveform with fast generation, using a convolutional generator and two discriminator…

AdvancedSpeech Synthesis

WaveNet

WaveNet

An autoregressive model that generates the waveform sample by sample using dilated causal convolutions, modeling the conditional distribution of each sample over fine qu…

AdvancedSpeech Synthesis

WaveGlow

WaveGlow

A vocoder based on generative flows (Flow-based) that transforms Gaussian noise into a waveform through invertible transformations conditioned on the mel spectrogram, an…

AdvancedSpeech Synthesis

x-vectors

x-vectors

Fixed-length speaker representations extracted from a TDNN network trained to discriminate speakers, and used in verification with a back-end classifier such as PLDA.

AdvancedSpeaker Recognition

ECAPA-TDNN

ECAPA-TDNN

A speaker encoder that develops x-vectors with Res2Net blocks, SE channel attention, multi-layer feature aggregation, and attentive statistics pooling, and is usually tr…

AdvancedSpeaker Recognition

Speaker Embeddings

Speaker Embeddings

Fixed-length vectors that represent the characteristics of a speaker's voice, so that they come close for recordings of the same speaker and move apart for different spe…

IntermediateSpeaker Recognition

Contrastive Learning

Contrastive Learning

A training method that brings the representations of similar (positive) pairs closer and pushes apart the representations of dissimilar (negative) ones in the embedding…

AdvancedDeep Learning

wav2vec 2.0

wav2vec 2.0

A self-supervised model on the raw waveform: a convolutional encoder produces latent representations, parts of them are masked, and then the Transformer learns to predic…

AdvancedAcoustic Models

HuBERT

HuBERT

A self-supervised model that predicts hidden unit labels generated by unsupervised clustering (k-means) for masked segments, turning the representation problem into clas…

AdvancedAcoustic Models

WavLM

WavLM

A self-supervised speech model that predicts hidden units in the style of HuBERT, and adds prediction under noise or overlapping speech and a gated relative position bia…

AdvancedAcoustic Models

YAMNet

YAMNet

A lightweight audio event classifier based on depthwise-separable convolutions, trained on the AudioSet ontology classes, with a multi-label output over short audio wind…

IntermediateAcoustic Models

PANNs

PANNs

A family of convolutional networks pre-trained on AudioSet for audio pattern recognition, used directly or fine-tuned for audio classification and detection tasks.

IntermediateAcoustic Models

Audio Spectrogram Transformer

Audio Spectrogram Transformer

An audio classifier without convolution that splits the spectrogram into patches, treats them as tokens in a vision transformer (ViT), and then outputs a classification…

AdvancedAcoustic Models

CLAP

CLAP

A contrastive model trained on audio-text pairs to place both in a shared embedding space, enabling zero-shot classification and audio retrieval with a text description.

AdvancedAcoustic Models

Audio processing in the experiments takes place inside your browser. Audio, texts, and conversations are not saved on the server. Privacy Policy