Opus is a royalty-free audio codec for interactive speech and music over the Internet, specified in IETF RFC 6716, with a shared encode and decode library.
Overview
Opus is a codec for interactive speech and audio transmission over the Internet. It handles VoIP, videoconferencing, in-game chat, remote live music, and stored-file use cases when paired with a suitable container format such as Ogg Opus.
The format scales from low bit-rate narrowband speech to high-quality stereo music. Supported capabilities include bitrates from 6 kb/s to 510 kb/s, sampling rates from 8 kHz to 48 kHz, frame sizes from 2.5 ms to 60 ms, constant and variable bitrate, mono through multichannel streams, and adjustable bandwidth and frame size. The reference implementation offers floating-point and fixed-point builds with packet loss concealment.
This package provides a shared library for encoding and decoding raw Opus bitstreams. Raw streams over RTP follow separate guidance; file distribution should use Ogg encapsulation, with opus-tools available for practical encoding and decoding workflows.
Recent releases add deep learning based redundancy (DRED) in padding data to improve quality on lossy networks while remaining backward compatible, along with ongoing bandwidth extension and high-rate audio improvements documented on the project site.
Key features
- Speech and music codec
- Wide bitrate and bandwidth range
- CBR and VBR modes
- Packet loss concealment
- Floating and fixed-point builds
- Multichannel frame support
- DRED loss recovery extension
- Shared encode decode library
Use cases
- VoIP and conferencing
- In-game voice chat
- Streaming and stored audio
- Embedded audio stacks
- RTP real-time media