API

Audio

The Babylon.js audio engines are based on the Web Audio specification. They feature ambient, spatialized, and directional sounds, as well as basic audio buses for signal routing and mixing.

There are two sound engines in Babylon.js.

We strongly recommend using the new V2 audio engine instead of the old legacy audio engine. A migration guide is here.

Coming next

Migrating From The Old Audio Engine
A guide on best practices to port a scene that uses the old audio engine to the new audio engine V2.
Migrating From The Old Audio Engine
Playing Sounds and Music
Dive into everything you could want to know about using the Babylon.js sound engine for simple to advanced audio.
Playing Sounds and Music