- Introduced by
- Fredrik Wightman, Doris Kistler
- Year
- 1989
- Type
- Frequency-dependent spatial filtering function
- Family
- Psychoacoustics
What does it do?
The Head-Related Transfer Function (HRTF) describes how the head, ears and torso filter sound arriving from different directions.
Each direction produces a characteristic pair of ear-specific filters, and these carry the timing, level and spectral cues the auditory system uses to judge where a sound comes from. Applying measured or modelled HRTFs to a signal is the basis for rendering directional sound over headphones.
The intuition behind the method
A sound from the front reaches both ears at nearly the same time and level. A sound from the right reaches the right ear slightly earlier and at a higher level because the head shadows the left ear. These interaural time and level differences (ITD and ILD) are among the main directional cues. The head, pinna and torso also colour the spectrum in a direction-dependent way, most noticeably at higher frequencies, where wavelengths are short enough to interact with the shape of the head and outer ear. An HRTF records these effects for each direction and ear, so that filtering a mono signal with the right pair can place it at a chosen location on headphones.
History
Studies of spatial hearing through the twentieth century established the cues that HRTFs describe. Wightman and Kistler (1989) is a key measurement and headphone-synthesis study: they measured transfer functions for ten subjects at 144 source positions, and showed that headphone simulations duplicated free-field ear-canal waveforms within a few dB of magnitude and a few degrees of phase at frequencies up to 14 kHz. Blauert's Spatial Hearing (1997) is a standard reference on the psychophysics of sound localisation. Møller and colleagues (1995) reported measured HRTFs of human subjects, adding to the body of individual measurements.
When to use it
Use HRTFs when a sound must be perceived at specific directions through headphones, for example in virtual reality, games, or immersive music and 360-degree audio. Choose individualised HRTFs where localisation accuracy matters most, because the filtering depends strongly on each listener's head, ear and torso shape. Generic HRTFs are a practical default when individual measurements are unavailable, but they are less accurate for listeners whose anatomy differs from the reference. Where stable localisation matters, combine the filters with head tracking, since static rendering is prone to front-back confusion. Do not use headphone-based HRTF rendering as-is for loudspeaker playback, where each ear also receives sound from the opposite speaker and a different processing chain is needed.
Limitations and considerations
- Individual differences: a generic HRTF may not match a listener's head, pinna and torso shape, which can cause localisation errors.
- Front-back confusion: with static HRTF filters, sources in front and behind can be confused, and sources above or below the head are harder to place precisely. Head tracking, which updates the filters as the listener moves, usually reduces these errors.
- Computational cost: convolving each source with long FIR filter pairs in real time requires optimisation, especially with many simultaneous sources.
- The standard formulation assumes a far-field source; near-field HRTFs change with distance and are more complex and less standardised.
- Assumptions: the rendering treats the system as linear and time-invariant, with a static far-field source and the listener's head fixed relative to the headphones. The headphone-to-ear transfer must also be equalised, because it forms part of the measured chain. When these assumptions fail, for example through head movement, moving sources or uncompensated headphones, the perceived direction may be inaccurate.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Allows direction-dependent sound to be presented over ordinary stereo headphones, without specialised playback hardware.
- Built from measured ear-canal responses normalised by a free-field reference, so each filter reflects the listener's physical filtering rather than an arbitrary effect.
- Frequency-dependent and phase-aware, so it can encode both the timing cues and the spectral cues that help with vertical and front-back judgements.
- Reusable HRTF sets can be applied without measuring every listener, which makes rendering practical to adopt.
Applications
- 3D spatial audio in virtual reality and games
- Immersive music and concert recordings with spatial panning
- Accessibility: 3D audio rendering for blind users' spatial navigation
- Spatial audio for cinematic experiences and 360-degree video on headphones
How it works
How it works
Record the response at each ear to a sound source placed at each direction (θ, φ), with microphones at the ears, in a controlled setting such as an anechoic chamber.
Divide out a reference free-field response, so that the result reflects only the filtering by the head, torso and ears rather than the recording setup.
Formula
\text{Measure or model HRTF for target directions and subject}For each direction and ear, compute H(f, θ, φ) = P_ear / P_ref. Because this is a complex ratio, it carries both the magnitude and the phase of the filtering.
Formula
H(f, \theta, \phi) = \frac{P_\text{ear}(f, \theta, \phi)}{P_\text{ref}(f)}Store each direction's response as a pair of finite impulse response (FIR) filters, one per ear. Apply a pair to a source signal by convolution, which can be done directly in the time domain or as frequency-domain multiplication using an FFT.
Formula
\text{Apply HRTF convolution in frequency domain via FFT}Check that the rendered left and right signals contain the expected ITD, ILD and spectral cues for the intended direction, and confirm the result with listeners, since physical agreement does not guarantee perceived location.
Common pitfalls
- Using a generic HRTF for a listener with atypical head size or shape. Individualised filters usually improve localisation, and the mismatch is most damaging for listeners far from the reference anatomy.
- Keeping only the magnitude of H(f, θ, φ) and discarding phase. The phase term carries the timing information that ITD cues depend on, so magnitude-only filters can weaken lateral localisation.
- Applying HRTF filters directly to ambisonic channels. Ambisonic signals must first be decoded for binaural presentation; filtering the individual channels with a single HRTF pair does not produce valid directional output.
Frequently asked questions
Why do generic HRTFs sometimes feel inaccurate?
HRTFs depend strongly on head, ear and torso shape. A generic HRTF, such as one measured on a dummy head, is a compromise. Listeners whose anatomy differs from the reference may experience front-back confusion or errors in lateral localisation. Individualised HRTFs, measured or estimated from a head scan, usually improve accuracy.
What is the difference between far-field and near-field HRTFs?
Far-field HRTFs assume the source is distant relative to the head, so sound arrives as an approximately plane wave. Near-field HRTFs account for the curved wavefront of a close source, and the filtering changes with distance. Near-field HRTFs are more complex and less standardised.
Can I measure my own HRTF?
Yes, but accurate measurement needs specialised equipment, such as an anechoic chamber and a set of microphones placed at the ears. Simpler approaches using consumer devices exist but generally give lower quality. Estimating HRTFs from a 3D head scan with computational models is a common alternative.
Related methods
Sources
Wightman, F. L., & Kistler, D. J. (1989). Headphone simulation of free-field listening. I: Stimulus synthesis. The Journal of the Acoustical Society of America, 85(2), 858-867.
Open DOI referenceBlauert, J. (1997). Spatial Hearing: The Psychophysics of Human Sound Localization. The MIT Press.
ISBN: 978-0-262-52432-9Møller, H., Sørensen, M. F., Hammershøi, D., & Jensen, C. B. (1995). Head-related transfer functions of human subjects. Journal of the Audio Engineering Society, 43(5), 300-321.
Open publication reference