What is SPX? Speex Audio Format Explained
Xiph.Org's open, patent-free speech codec for voice and VoIP, now superseded by Opus.
Last updated:
What is SPX?
SPX is the file extension for Speex, an open-source, patent-free audio compression format designed specifically for speech. The Speex project was initiated in 2002 by Jean-Marc Valin to provide a free speech codec unencumbered by patents, and it is associated with the Xiph.Org Foundation.
Speex is tuned for human voice rather than music, supporting narrowband (8 kHz), wideband (16 kHz), and ultra-wideband (32 kHz) sampling with bitrates from about 2 to 44 kbps. Speex audio is commonly carried in the Ogg container, and RFC 5574 defines its RTP payload format for VoIP. Following the standardization of Opus in 2012, Xiph.Org declared Speex obsolete in favor of Opus.
How Speex Works
Speex is based on Code-Excited Linear Prediction (CELP), a technique that models the human vocal tract and is well suited to the characteristics of speech.[3] It supports variable and average bitrate modes, voice activity detection, and noise suppression, and can embed multiple sampling rates so a single codec covers narrowband telephony through ultra-wideband audio.[1]
Standardization and VoIP Use
The IETF documented Speex for real-time transport in RFC 5574, which defines its RTP payload format and MIME registration for use in VoIP and conferencing systems.[2] Its patent-free, royalty-free status made it attractive for open-source telephony before newer codecs emerged.[1]
Obsolescence and Limitations
Because Speex is tuned for voice, it performs poorly on music and general audio.[3] Xiph.Org now considers it obsolete and recommends Opus, which delivers better quality across a wider range of bitrates and content types within a single codec.[1]
MKV Technical Specifications
SPX vs Other Audio Formats
| Feature | SPX | Opus | MP3 |
|---|---|---|---|
| Compression | Lossy[1] | Lossy | Lossy |
| Optimized for | Speech[1] | Speech & music | Music |
| Developer | Xiph.Org[3] | Xiph.Org / IETF | Fraunhofer / MPEG |
| License | Open, royalty-free[2] | Open, royalty-free | Patented (now free) |
| Status | Deprecated by Opus | Active | Active |
| Best for | Legacy VoIP | Modern voice/music | General music |
Speex pioneered free speech compression but has been superseded by Opus, which handles both voice and music more efficiently.
Advantages & Disadvantages
Advantages
Open-source under a BSD license with no patent royalties, easing adoption.
Specifically designed to compress voice efficiently at low bitrates.
Includes capabilities such as variable bitrate and acoustic echo handling suited to internet telephony.
Supports narrowband, wideband, and ultra-wideband speech.
Disadvantages
Xiph.Org now considers Speex obsolete, recommending Opus instead.
Designed for voice, it performs badly on music and general audio.
Few mainstream players or devices handle .spx files natively.
Common Use Cases
SPX/Speex was built for voice communication and recordings.
VoIP applications | FileFormer
Encoding voice for internet telephony at low bandwidth.
Voice recordings | FileFormer
Compressing spoken-word content such as voicemail or dictation.
Network speech streaming | FileFormer
Delivering speech audio efficiently over constrained connections.
Convert SPX Files Free
Use our free online audio converter to convert SPX and other formats - no signup, no watermarks.
Try Audio Converter FreeFrequently Asked Questions
What is an SPX file?
It is a Speex audio file, an open, patent-free speech codec usually stored in the Ogg container.
Who developed Speex?
It was started in 2002 by Jean-Marc Valin and is associated with the Xiph.Org Foundation.
Is Speex still recommended?
No, Xiph.Org considers it obsolete and recommends Opus for new applications.
Can Speex compress music?
It is designed for speech and performs poorly on music; use a general codec for that.
How do I play SPX files?
VLC and Xiph-aware tools can decode Speex, or you can convert it to a more common format.