I threw in the Opus codec when I added support for 32-bit floating
point. I added an "encoding" setting to the channel that lets you pick
any of several encoding formats:
S16BE (the default)
S16LE
F32LE
F16LE
Opus
Opus, being a lossy codec, is useful only for voice. I've used it for a
long time to compress my FM repeater archives, but I first recorded wav
files and then ran opusenc in a cron job. That was a kludge. Now radiod
can stream Opus directly, pcmrecord can record it, and monitor can play
it. They do so automatically, by looking at the channel status data stream.
When pcmrecord records an Opus stream, it uses the Ogg container with
suffix .opus. For the PCM formats, it uses WAV, or optionally raw.
There's an 'encoding=' keyword in the config file, and the 'e' command
in 'control' also lets you select it manually.
The target bit rate can be selected with the 'bitrate=' keyword or the
'b' command in 'control'. A value of 0 means "automatic".
Opus is widely supported by lots of players.