Test Vectors

These are the original test vectors for the version of the Opus codec in RFC6716. A copy of these test vectors is available from the IETF.

Those testvectors are still valid (and passing them still shows compliance), but new test vectors, provided with RFC 8251, now allow some decoder improvements while maintaining full compatibility. These new testvectors are also available from the IETF.

On POSIX environments, the run_vectors.sh script can be used to verify all test vectors. This can be done with

run_vectors.sh <exec path> <vector path> <rate>

where exec path is the directory where the opus_demo and opus_compare executables are built, vector path is the directory containing the test vectors, and rate is the sampling rate to test (8000, 12000, 16000, 24000, or 48000).