EndoMint

McoreD's blog · Opinions are my own.

From WMA9 Pro to Neural Audio

I spent a lot of time with Windows Media Audio 9 Professional. Back then, getting multichannel audio into a manageable stream was an interesting problem. The same trade-off still exists, but the formats have diversified: music streaming, voice calls and wireless headphones each put different demands on a codec.

AI is also doing more than choosing encoder settings. It can help an existing codec recover from lost packets, and it can form part of a speech codec itself.

What WMA9 Pro offered

WMA9 Pro supported surround sound and high-resolution audio, including 5.1 channels and 24-bit, 96 kHz playback on suitable hardware. It was a lossy codec, designed to reduce the data needed for delivery. Microsoft also had a separate WMA9 Lossless codec that could recover the original audio samples.

The distinction still matters. Lossy codecs discard information to save more space; lossless codecs compress the digital samples without losing them. Neither a high sample rate nor a large bit depth makes a lossy file lossless.

Music, calls and headphones

MP3 remains familiar, while AAC is widely used for music delivery. Apple Music, for example, offers AAC as well as an optional lossless format. No single format has taken over every job that WMA Pro was designed to handle.

Opus is designed for interactive audio, including calls, conferencing and music. It combines speech-oriented prediction and transform coding, and can operate across a wide range of bitrates. Low delay is especially important on a call, where compression has to keep up with a conversation.

For Bluetooth LE Audio, the LC3 codec is designed for both speech and music. It is an option for compatible devices, not a replacement automatically applied to every Bluetooth headset. The codec used between a streaming service and a phone may also differ from the codec used between the phone and its headphones.

Lossless is a separate choice

FLAC and Apple's ALAC preserve the decoded audio samples. Apple Music offers ALAC for lossless streaming, but the entire playback path matters. Apple notes that many of its wireless headphones use AAC over Bluetooth, so a lossless stream to the phone can still pass through a lossy wireless connection before it reaches your ears.

Lossless cannot restore detail already discarded by an earlier lossy encode. Keeping a lossless master is useful when making new versions, because converting one lossy file into another can add another generation of compression.

Where AI enters the audio path

Opus is a concrete example of machine learning being added to an established codec. Its 1.5 implementation introduced neural tools for concealing lost packets and improving low-bitrate speech, while retaining compatibility with the standard Opus format. Those features were optional and disabled by default in that release, so their presence in the library does not mean every Opus call uses them.

Opus also introduced an experimental Deep Redundancy feature that sends compressed extra information to help recover audio after packet loss. It needs support from the application and decoder. The Opus 1.6 developers note that its experimental redundancy model is incompatible with the one in 1.5, even though incompatible redundancy can be ignored without corrupting the ordinary Opus audio.

Google's Lyra takes a different approach. It is a low-bitrate speech codec that uses a trained model to reconstruct speech from compact features. Google reported rolling it out in Duo for poor connections in 2021. That is a speech-specific example, not evidence that all music streaming now uses neural codecs.

There are also neural codecs for broader audio. Meta's EnCodec research tests speech and music using learned encoding and decoding. The reported results depend on the material and listening tests. A codec that sounds good on speech at a low bitrate still has to be judged separately on music, delay, computing cost and the sounds it might reconstruct inaccurately.

Sources