The libopusenc libraries provide a high-level API for encoding .opus files. WWW: https://opus-codec.org/