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 SPX Works
The .spx extension stands for Speex, an open, patent-free audio codec created by the Xiph.Org Foundation, the same organization behind Vorbis and later Opus. Speex is important to understand as a speech codec rather than a general music codec. It was designed and tuned specifically for the human voice, for uses such as voice over IP, voice recording, and other spoken-word applications where keeping the bitrate low matters more than reproducing the full richness of music.
Technically, Speex is based on CELP, or Code-Excited Linear Prediction, a family of techniques well suited to compressing speech. Rather than encoding the raw waveform directly, CELP-style codecs model how the vocal tract produces sound and transmit the parameters of that model together with an excitation signal. Because this approach leans on the predictable structure of speech, it can represent an intelligible voice at very low data rates, which is exactly what real-time voice communication needs.
Speex supports several sampling modes to match different needs, commonly described as narrowband, wideband, and ultra-wideband. Narrowband targets telephone-quality speech at the lowest cost, while the wider modes capture more of the voice's frequency range for clearer sound at a higher bitrate. It also offers variable bitrate operation, letting the encoder spend more bits on complex passages and fewer on simple ones.
On top of the core codec, Speex includes features aimed at real-time voice systems. Among these is voice activity detection, which identifies when someone is actually speaking versus silent, so that silence can be encoded very cheaply or skipped, saving bandwidth during pauses. Capabilities like this reflect the codec's origin as a practical tool for interactive voice applications rather than a general archival format.
History and Standardization
Speex was developed by the Xiph.Org Foundation as part of its broader mission to provide open, patent-free multimedia codecs. Its motivation was clear: at the time, high-quality speech coding was dominated by patent-encumbered technologies, and Xiph wanted a freely usable alternative that developers could adopt without licensing concerns. That freedom made Speex attractive for open-source projects and for voice applications that needed to avoid royalty obligations.
For a period, Speex filled a genuine gap and saw meaningful use in voice chat, softphones, and recording tools that valued its low bitrate and unencumbered licensing. Being an open codec, it could be implemented and embedded freely, which suited the ecosystem of open communication software that grew around it.
The most important fact about Speex's current status, however, is that it is now deprecated. Xiph.Org itself developed a successor, Opus, that surpasses Speex, and the foundation openly recommends Opus for new applications. Speex is therefore best understood as an influential step on the path to Opus rather than a codec to reach for today, even though existing .spx files remain perfectly readable.
SPX Compared to Opus, AMR, and Music Codecs
The most honest comparison is with Opus, Speex's own successor from the same foundation. Opus was designed to combine the strengths of a speech codec and a music codec in one, and it outperforms Speex across the range that matters, delivering better quality at similar bitrates and handling both voice and general audio well. Because Xiph itself recommends Opus for new work, there is little reason to choose Speex for a new project, and this is the single clearest tradeoff to state plainly.
Against AMR, the Adaptive Multi-Rate codec widely used for speech on mobile networks, Speex occupies similar territory as a low-bitrate voice codec, but with a crucial difference in licensing. Speex's open, patent-free nature made it freely adoptable in software without the licensing considerations that surround many mobile telephony codecs, which was a large part of its appeal in the open-source world.
Compared to general music codecs such as MP3, AAC, or Vorbis, Speex is simply the wrong tool. Those formats are built to reproduce full-range music, whereas Speex's voice-oriented model would render music poorly. The practical guidance is straightforward: for existing speech archives, .spx still plays fine, but for anything new, whether voice or music, Opus is the codec to choose.
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
Encoding voice for internet telephony at low bandwidth.
Voice recordings
Compressing spoken-word content such as voicemail or dictation.
Network speech streaming
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 FreeHow to open a SPX file
SPX files, associated with the Speex audio format, are typically handled by a range of software tools that cater to different user needs. Professional audio editing software offers advanced features for audio manipulation, while free and open-source tools provide accessible options for casual users. Browser-based applications can be convenient for quick tasks, and built-in system tools may suffice for basic playback.
When working with SPX files, key decision factors include the fidelity of audio playback and editing capabilities, as well as the cost model of the software. Users should consider whether they need extensive editing features or simply playback functionality. Additionally, platform compatibility and export options are crucial, especially if converting to more widely-used formats is necessary.
Audacity 3.2.1
Audacity is a powerful open-source audio editor that supports SPX files for both playback and editing. It provides a comprehensive set of tools for manipulating audio tracks, making it suitable for users looking to edit Speex audio with high fidelity.
- Multi-track audio editing capabilities
- Support for various audio formats
- Real-time audio effects processing
- Noise reduction and audio restoration tools
- Completely free with no limitations
- Extensive community support and plugins
- Cross-platform compatibility
- Steeper learning curve for beginners
- Limited built-in export formats compared to others
Exports to: WAV, MP3, OGG, FLAC
Best for: Choose Audacity for comprehensive audio editing of SPX files without cost.
Visit Audacity →VLC Media Player 3.0.16
VLC Media Player is a versatile media player that can handle SPX files for playback. It is known for its ability to play a wide range of audio and video formats without requiring additional codecs.
- Supports a wide range of audio formats
- Streaming capabilities over networks
- Customizable playback speed
- Built-in equalizer and audio effects
- Lightweight and fast performance
- No ads or spyware
- Cross-platform support
- Limited editing capabilities
- User interface may be less intuitive
Exports to: None (playback only)
Best for: VLC is ideal for users needing a reliable player for SPX files without editing features.
Visit VLC Media Player →FFmpeg 5.1.2
FFmpeg is a command-line tool that excels in converting and processing audio files, including SPX. It allows users to manipulate audio data with precision and supports a vast array of formats for both input and output.
- Batch processing of audio files
- Conversion to numerous audio formats
- Audio filtering and effects application
- Metadata editing capabilities
- Highly versatile and powerful tool
- Supports extensive format conversions
- Ideal for automation and scripting
- Command-line interface can be daunting
- No graphical user interface
Exports to: WAV, MP3, OGG, AAC, FLAC
Best for: FFmpeg is perfect for advanced users needing robust conversion and processing of SPX files.
Visit FFmpeg →SpeexDSP 1.2.0
SpeexDSP is a library specifically designed for processing Speex audio, including SPX files. It is particularly useful for developers and advanced users who need to implement audio processing features in their applications.
- Echo cancellation and noise suppression
- Voice activity detection
- Dynamic range compression
- High-quality audio encoding and decoding
- Tailored for Speex audio processing
- High-quality audio manipulation tools
- Open-source with community support
- Not a standalone application
- Requires programming knowledge to use
Exports to: None (library for processing only)
Best for: SpeexDSP is best for developers looking to integrate SPX audio processing into their applications.
Visit SpeexDSP →