Skip to content

How Spatial Audio Works in Smart Glasses and Headsets

By AR Compare Team ·

Spatial audio makes sounds seem to come from places around you, in front, behind, above or to the side, instead of from inside your head. It works by copying the cues your brain uses to locate real sounds: the tiny delay between your 2 ears, the difference in loudness between them, and the way the folds of your outer ear change a sound depending on its direction. Software applies those cues to each sound before it plays. Add head tracking, and sounds stay fixed in the room as you turn your head, the way real ones do.

This explainer is based on Google’s Resonance Audio fundamental concepts, Apple’s support page on spatial audio and head tracking, and Zandi and colleagues’ research on personalizing spatial audio. If you mostly listen to music through glasses, see the best smart glasses for music.

The 3 cues your brain uses

Google’s Resonance Audio guide lays out how people locate sound.

1. Timing between your ears. A sound to your left reaches your left ear slightly before your right. Google calls this the interaural time difference and says it helps you place low-pitched sounds left or right. The farther to the side the source, the bigger the delay.

2. Loudness between your ears. Your head casts an acoustic shadow. For higher-pitched sounds, the ear facing away hears them quieter and duller. Google calls this the interaural level difference, and notes people use it instead of timing for higher frequencies.

3. Your outer ear’s fingerprint. Timing and loudness tell you left from right, but not up from down. Sound bounces off the folds of your outer ear differently depending on where it comes from, changing its tone. Your brain reads those changes to judge height. Zandi and colleagues note that judging elevation depends on dips and peaks in the sound above about 5,000 hertz.

Putting the cues together: the HRTF

All 3 cues can be described together as a head-related transfer function, or HRTF. Zandi and colleagues define it as how an ear receives sound from a point in space, shaped by your head, outer ear and upper body. There is one for each ear, for every direction and pitch.

Spatial audio software filters each sound through the HRTF for the direction it should come from. Google says that hearing sound processed this way over headphones creates the illusion that it is coming from a specific place.

Keeping sounds in place: head tracking

Turn your head in real life and a sound in front of you moves to the side. If audio does not respond, the illusion breaks: the sound follows your head. Google’s guide explains the fix. Head-mounted devices track your head, and the software rotates the whole sound field the opposite way, so each sound keeps its position in the room. Apple describes the same idea for AirPods, which use spatial audio with head tracking to create a theater-like sound around you.

Glasses and headsets that already track your head for the display can use the same data. See how IMU head tracking works.

Making a room sound like a room

Direction is only part of it. Google’s guide describes 3 parts of how sound behaves in a space:

  • Direct sound, which gets quieter as the source moves away.
  • Early reflections, the first echoes off nearby surfaces, which tell you the size and shape of the room.
  • Late reverb, the dense wash of echoes that follows.

Resonance Audio also simulates objects blocking sound, by cutting high frequencies more than low ones, as happens in real life. To wrap all of this around the listener, it uses a technique called ambisonics, a sphere of sound around your head, and Google says the simulation gets more accurate at higher ambisonic orders.

Why one size does not fit all

Everyone’s head and ears are different, so everyone’s HRTF is different. Zandi and colleagues warn that using someone else’s HRTF, or a generic average, causes errors in locating sounds and less pleasant playback. Measuring yours the traditional way takes many recordings in an echo-free chamber.

Their study tested a lighter method that predicts a person’s HRTF from a few measurements. In listening tests, people correctly identified the left-right direction of sounds 183% more often with their personalized version than with a generic one.

Consumer products are starting to personalize. Apple’s Personalized Spatial Audio uses an iPhone X or later to capture a representation of your ear and head shape, and syncs the profile across your Apple devices.

Source: Zandi and colleagues.

Spatial audio on glasses

Glasses play sound through speakers in the arms or through bone conduction, not through earbuds sealed in your ears. The cues above still apply, and how convincing the effect is depends on the design and tuning. When you compare, look for whether a maker supports spatial audio with head tracking, and check reviews rather than relying on the label alone.

For related terms, see the spatial audio glossary entry. For the research in more depth, read the HRTF deep dive.

More buying guides: AI audio glasses and Bluetooth audio glasses.

Frequently asked questions

What is spatial audio?

Audio processed so a sound seems to come from a specific place around you, such as to your left or behind you, rather than from inside your head between your ears.

How does your brain tell where a sound is?

From 3 kinds of cue: the tiny delay between your 2 ears, the difference in loudness between them, and the way your outer ear changes the sound depending on its direction. Google's Resonance Audio guide explains all 3.

What is an HRTF?

A head-related transfer function, a description of how sound from a given direction is changed by your head, ears and upper body before it reaches each eardrum. Spatial audio software applies it to make sounds seem to come from that direction.

Why does head tracking matter for spatial audio?

Without it, a sound placed in front of you turns with your head. With it, the software rotates the sound field the other way as you turn, so the sound stays where it was, as Google's Resonance Audio guide describes.

Is personalized spatial audio better?

Often. Everyone's ears and head are shaped differently. Research by Zandi and colleagues found people identified sound directions far more accurately with HRTFs fitted to them than with a generic one.