Knowledge / Electronics and Communication Engineering / Speech and audio processing basics

Speech and audio processing basics

Electronics and Communication Engineering (B.E./B.Tech) · Systems · free study notes for exams, placements and interviews

In short

Speech and audio processing applies digital signal processing to signals produced by the human vocal tract and to music or environmental sound, so that they can be analysed, compressed, recognised or synthesised. The core idea is the source-filter model: a quasi-periodic or noisy excitation driving a slowly varying vocal-tract filter, which makes short-time analysis (frames of 20-30 ms) the central technique. It is examined in AICTE/CBCS electives such as "Speech and Audio Signal Processing", "Multimedia Signal Processing" and "Digital Speech Processing", and appears in GATE EC/EE under sampling, quantisation, correlation and DFT applications. In industry it underpins telephony codecs (TRAI-regulated voice networks, VoLTE on Jio/Airtel), voice assistants and IVR in Indian languages (Bhashini, AI4Bharat, Reverie, Gnani.ai), hearing aids and automotive voice systems. Interviewers at Qualcomm, Samsung R&D, Texas Instruments, Analog Devices, Sony, Bosch and speech startups ask about MFCC, LPC, pitch detection and codec bit rates.

Explained

Speech production and the source-filter model

Digitisation, short-time analysis and windowing

Time-domain and frequency-domain parameters

Linear prediction (LPC) and cepstral analysis

Perception, MFCC and feature extraction

Speech coding and audio compression

Applications: recognition, synthesis and enhancement

Key points

Formulas and examples

Nyquist: fs > 2·fmax; telephony fs = 8 kHz for the 300-3400 Hz band (anti-alias cut-off below 4 kHz)
Bit rate R = fs × b × channels (b = bits/sample) — in bit/s
Uniform quantiser SNR ≈ 6.02b + 1.76 dB (sinusoid, full scale); each extra bit ≈ +6 dB
Pitch: F0 = 1/T0 (Hz, T0 in s); period in samples N0 = fs/F0
Short-time energy: Eₙ = Σ_m [x(m)·w(n−m)]² (dimensionless if x is normalised)
Zero-crossing rate: Zₙ = (1/2) Σ_m |sgn[x(m)] − sgn[x(m−1)]| · w(n−m) (crossings per frame)
Short-time autocorrelation: Rₙ(k) = Σ_{m=0}^{N−1−k} xₙ(m)·xₙ(m+k); pitch lag = argmax of first major peak
STFT: X(n, ω) = Σ_m x(m)·w(n−m)·e−jωm; spectrogram = |X(n, ω)|²
Pre-emphasis: y(n) = x(n) − a·x(n−1), a ≈ 0.95-0.97
Hamming window: w(n) = 0.54 − 0.46 cos(2πn/(N−1)), 0 ≤ n ≤ N−1
LPC: ŝ(n) = Σ_{k=1}^{p} aₖ s(n−k); error e(n) = s(n) − ŝ(n); H(z) = G/(1 − Σ aₖ z⁻ᵏ)
Normal equations: Σ_k aₖ R(|i−k|) = R(i), i = 1…p (Levinson-Durbin, O(p²))
Cepstrum: c(n) = IDFT{ ln|X(ω)| }
Mel scale: m = 2595 log₁₀(1 + f/700); inverse f = 700(10m/2595 − 1)
Vocal tract resonances (uniform tube, length L, c = 340 m/s): Fₖ = (2k−1)c/(4L)
Number of frames ≈ 1 + (total samples − frame samples)/hop samples
Compression ratio = original bit rate / coded bit rate; WER = (S + D + I)/N

Example 1 - Telephony digitisation and storage. Narrowband speech, fs = 8 kHz, 8-bit A-law, mono.

Example 2 - Framing, pitch and frame count. A 2-second utterance at fs = 16 kHz, frame 25 ms, hop 10 ms.

Example 3 - LPC order, SNR and mel conversion.

Example 4 - Vocal-tract length and formants. Uniform tube of length L = 17 cm, c = 340 m/s.

Example 5 - WER and MFCC vector size.

CoderTypeBit rateSamplingTypical use
G.711 (A-law PCM)Waveform64 kbit/s8 kHzLandline, legacy PSTN, India uses A-law
G.726 ADPCMWaveform16-40 kbit/s8 kHzDECT cordless, trunking
GSM FR (RPE-LTP)Hybrid13 kbit/s8 kHz2G voice
G.729 (CS-ACELP)Hybrid8 kbit/s8 kHzVoIP trunks, IVR
AMR-NBHybrid4.75-12.2 kbit/s8 kHz2G/3G adaptive voice
AMR-WB (G.722.2)Hybrid6.6-23.85 kbit/s16 kHzVoLTE HD voice
EVSHybrid5.9-128 kbit/s8-48 kHz4G/5G voice
LPC-10Vocoder2.4 kbit/s8 kHzSecure/military links
MP3 / AACPerceptual transform96-320 kbit/s44.1/48 kHzMusic streaming, broadcast
FeatureWhat it capturesStrengthWeakness
Short-time energyLoudness per frameTrivial to compute, good VADConfuses loud noise with speech
ZCRDominant frequency proxySeparates voiced/unvoicedFails in noise, no amplitude info
LPC / LPCCAll-pole spectral envelopeCompact, gives synthesis filterPoor with nasals and noise
CepstrumEnvelope and pitch separatedDeconvolves source and filterPhase lost (real cepstrum)
MFCCPerceptually weighted envelopeStandard, decorrelated, compactSensitive to channel/noise without CMVN

Where it is used

Interview questions

Common mistakes

Related topics

Digital signal processing: filters and FFT · Information theory and source coding · Pattern recognition and machine learning · Mobile communication: 2G to 5G · Image and video processing basics · Embedded DSP architectures and fixed-point implementation

Open in the Knowledge reader →Find jobs →