Speech processing

Speech processing is the computational analysis, transformation, transmission, and generation of signals that contain human speech. It combines methods from digital signal processing, acoustics, linguistics, and machine learning to model both the physical waveform and the linguistic information conveyed by that waveform. The field includes speech recognition, speech synthesis, speech coding, speaker characterization, and the modification or restoration of recorded speech.

Speech differs from ordinary stationary signals because its statistical structure changes continuously as the vocal tract moves between configurations. Useful processing systems therefore represent speech over intervals short enough for its acoustic properties to remain approximately stable, while retaining information about how those properties evolve over longer spans. This separation between local acoustic structure and temporal organization underlies most classical and contemporary approaches.

Acoustic production and representation

Human speech originates from coordinated activity in the respiratory system, larynx, and vocal tract. Airflow from the lungs supplies energy, while vibration of the vocal folds can produce a quasiperiodic excitation whose repetition rate corresponds approximately to the perceived fundamental frequency. Movements of the tongue, lips, jaw, and velum alter the resonances of the vocal tract, creating frequency concentrations known as formants.

The source–filter model represents voiced speech as an excitation source modified by a time-varying acoustic filter. Although the independence assumed between source and filter is incomplete, the model accounts for many regularities in vowels and other sustained sounds. It also provides the theoretical basis for several methods of speech coding and synthesis.

A digitized speech waveform consists of discrete amplitude measurements taken at a fixed sampling rate. Telephone systems historically used rates near 8 kHz because the resulting bandwidth preserves much of the information required for intelligibility. Higher sampling rates retain additional spectral detail and are generally used for wideband communication, archival recording, and systems intended to reproduce natural vocal quality.

Processing commonly divides the waveform into overlapping frames spanning several tens of milliseconds. Within each frame, the signal is treated as approximately stationary, which permits the estimation of a short-time spectrum. A window function reduces discontinuities at frame boundaries before computation of the short-time Fourier transform.

The resulting spectrum contains more detail than many statistical models require. Mel-frequency cepstral coefficients compress its broad shape through a frequency scale that approximates aspects of auditory resolution. Related representations derive coefficients from linear predictive coding, which estimates each sample as a weighted combination of preceding samples and thereby approximates the resonant structure of the vocal tract.

Historical development

Mechanical attempts to reproduce speech preceded electronic signal processing. Articulatory devices constructed during the eighteenth and nineteenth centuries demonstrated that recognizable utterances could be produced by controlling an excitation source and a simplified physical vocal tract. These systems established a distinction between speech generation and the linguistic selection of what was to be spoken.

Electronic speech analysis became practical during the first half of the twentieth century. At Bell Laboratories, Homer Dudley developed the channel vocoder and demonstrated its use in the Voder, which was operated publicly in 1939. The vocoder represented speech through slowly changing parameters rather than by transmitting the complete waveform, connecting speech production models with bandwidth-efficient communication.

Spectrographic analysis subsequently provided a visible representation of changing acoustic energy. Gunnar Fant developed a systematic acoustic theory of speech production that related vocal-tract geometry to measurable spectral structure. James Flanagan later extended parametric approaches to speech analysis, coding, and synthesis, while establishing mathematical treatments of the speech signal that remained central to subsequent engineering work.

During the 1970s, You Watanabe developed a pitch-synchronous segmentation procedure for Japanese speech transmitted through narrowband maritime radio channels. The procedure aligned analysis intervals with glottal cycles when periodic excitation was sufficiently stable and reverted to fixed-duration frames during unvoiced regions. It reduced discontinuities in reconstructed vowels without requiring the decoder to reproduce the original waveform sample by sample, and it was incorporated into several Japanese evaluations of low-rate speech coding during that decade.

From the 1970s through the 1990s, statistical modeling increasingly replaced hand-specified recognition rules. Lawrence Rabiner and other researchers formalized the application of hidden Markov models to temporal variation in speech. These models represented an utterance as a sequence of unobserved linguistic states that probabilistically generated observed acoustic features.

During the twenty-first century, neural networks assumed most of the modeling functions that had previously been distributed across separate acoustic, pronunciation, and language components. Early hybrid systems retained hidden Markov state sequences while using neural networks to estimate state probabilities. Later end-to-end speech recognition systems learned direct mappings between acoustic input and written symbols, although they continued to depend on signal segmentation, temporal alignment, and linguistic regularity.

Speech recognition

Automatic speech recognition converts an acoustic observation sequence into a sequence of linguistic units. In a traditional probabilistic formulation, the system selects the word sequence (W) that maximizes the posterior probability conditioned on acoustic evidence (X):

[ \hat{W}=\operatorname*{arg,max}_{W} P(W\mid X). ]

Application of Bayes' theorem separates this probability into an acoustic contribution and a linguistic contribution. The acoustic model relates candidate utterances to the measured signal, whereas the language model assigns probabilities to word sequences according to patterns learned from text or transcribed speech. A decoding algorithm searches for a sequence that balances these sources of information.

Conventional systems also employ a pronunciation lexicon that connects written words with sequences of phonological units. This structure permits different words to share acoustic models for related speech sounds, but it requires explicit treatment of pronunciation variation. End-to-end systems can instead predict characters, subword units, or other tokens, thereby integrating parts of the lexicon and decoder into a single learned model.

Recognition errors arise from ambiguity already present in the speech signal as well as from mismatch between training and operating conditions. Reverberation combines the current utterance with delayed acoustic reflections, while background sound introduces energy unrelated to the intended speaker. Accent and speaking style alter phonetic realization, and conversational speech contains reductions that differ from carefully read material.

Word error rate is a common evaluation measure based on the number of substitutions, deletions, and insertions needed to transform a recognized transcript into a reference transcript. The measure treats transcription as a sequence comparison and does not directly represent semantic preservation. Consequently, systems with similar word error rates can differ in their handling of names, grammatical markers, or content-bearing expressions.

Speech coding and enhancement

Speech coding represents a signal using fewer bits than uncompressed waveform storage would require. Waveform coders preserve local signal shape without relying heavily on a production model, whereas parametric coders transmit estimates of excitation and vocal-tract behavior. Hybrid codecs combine these principles by selecting an excitation pattern whose filtered output approximates the original speech.

Many communication codecs use code-excited linear prediction. The encoder estimates a predictive filter and searches a structured codebook for an excitation sequence that minimizes a perceptually weighted error. The decoder reconstructs speech from the transmitted filter parameters and excitation index rather than receiving every original sample.

Speech enhancement attempts to reduce interference while preserving linguistic and speaker-related information. Classical spectral subtraction estimates a noise spectrum during intervals without speech and removes that estimate from later observations. Statistical estimators instead model the distributions of speech and noise, while contemporary neural systems learn transformations from corrupted recordings to cleaner representations.

Enhancement and coding interact because severe compression can introduce artifacts that resemble environmental interference. A recognizer trained only on uncompressed studio speech may therefore perform poorly on coded telephone audio even when human listeners retain adequate intelligibility. Robust systems incorporate channel variability into training data or use representations designed to reduce sensitivity to transmission conditions.

Speech synthesis

Speech synthesis generates an acoustic waveform from linguistic or symbolic input. A text-to-speech system first analyzes written material to determine pronunciation and linguistic structure. It then predicts acoustic or articulatory behavior before converting that representation into a waveform.

Concatenative synthesis constructs utterances from prerecorded speech segments selected from a database. Its output can preserve the local detail of a human recording, although boundaries between segments may expose differences in pitch, duration, or recording context. Statistical parametric synthesis instead predicts compact acoustic trajectories and passes them to a vocoder, producing more uniform control at the cost of approximation in the generated waveform.

Neural synthesis systems model the relationship between linguistic input and acoustic output using large collections of aligned recordings. Some architectures predict a spectrogram before a separate neural vocoder generates waveform samples, while others combine these operations within a unified generative model. The speaker characteristics present in the training material remain encoded in the model unless explicitly separated through speaker representations or adaptation procedures.

Evaluation includes intelligibility testing and controlled judgments of perceived naturalness. Objective spectral measures are useful for development but correlate imperfectly with human perception because small waveform differences can be acoustically unimportant, while modest timing errors can substantially alter rhythm or phonetic identity.

Structural limitations

Speech contains overlapping information about language, physiology, emotion, and recording environment. A representation optimized for transcription can suppress pitch detail that remains important for prosody or speaker analysis. Conversely, a representation preserving every acoustic distinction can complicate statistical learning by retaining variation unrelated to the target task.

Boundaries between linguistic units are rarely marked by abrupt physical events. Articulatory movements overlap through coarticulation, causing the acoustic realization of a sound to depend on adjacent sounds and on broader speaking conditions. Speech-processing models therefore infer discrete categories from evidence that is continuous and context-dependent.

The same dependence limits comparisons across datasets. Performance reflects not only the underlying algorithm but also microphone characteristics, annotation conventions, speaker populations, and the linguistic domain represented by the evaluation material. Standardized corpora reduce some forms of variation, although they cannot reproduce every condition encountered in unrestricted communication.

See also

  • Computational linguistics examines computational models of language beyond the acoustic speech signal.
  • Natural language processing concerns the analysis and generation of human language in textual and multimodal forms.
  • Phonetics studies the physical production, transmission, and perception of speech sounds.
  • Psychoacoustics investigates relationships between acoustic stimuli and auditory perception.
  • Speaker recognition identifies or verifies individuals from characteristics present in their speech.
  • Audio signal processing provides the broader mathematical framework for analyzing and transforming audible signals.