examples/

directory
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Package main benchmarks Opus decode throughput for gopus vs libopus.
Package main benchmarks Opus decode throughput for gopus vs libopus.
Package main benchmarks Opus encode throughput for gopus vs libopus.
Package main benchmarks Opus encode throughput for gopus vs libopus.
Package main demonstrates decoding an Ogg Opus file to WAV with optional playback.
Package main demonstrates decoding an Ogg Opus file to WAV with optional playback.
Package main demonstrates encoding audio with gopus and playing the result.
Package main demonstrates encoding audio with gopus and playing the result.
Package main demonstrates gopus interoperability with ffmpeg.
Package main demonstrates gopus interoperability with ffmpeg.
internal
cleanup
Package cleanup reports errors from deferred example cleanup operations.
Package cleanup reports errors from deferred example cleanup operations.
wav
Package wav writes interleaved float32 PCM to classic RIFF/WAVE files.
Package wav writes interleaved float32 PCM to classic RIFF/WAVE files.
Package main demonstrates low-delay, CELT-only encoding.
Package main demonstrates low-delay, CELT-only encoding.
Package main demonstrates WebRTC-style speech mixing with real open-source clips.
Package main demonstrates WebRTC-style speech mixing with real open-source clips.
Package main demonstrates Ogg Opus file creation and reading.
Package main demonstrates Ogg Opus file creation and reading.
Package main demonstrates the two ways gopus recovers from a lost packet on a real (lossy) network: packet loss concealment and in-band forward error correction.
Package main demonstrates the two ways gopus recovers from a lost packet on a real (lossy) network: packet loss concealment and in-band forward error correction.
Package main demonstrates the Opus repacketizer and packet-inspection helpers.
Package main demonstrates the Opus repacketizer and packet-inspection helpers.
Package main demonstrates gopus encode-decode roundtrip with quality metrics.
Package main demonstrates gopus encode-decode roundtrip with quality metrics.
Package main is the smallest useful gopus program: it encodes one frame of PCM to an Opus packet and decodes it straight back, using the caller-owned buffer Encode/Decode API.
Package main is the smallest useful gopus program: it encodes one frame of PCM to an Opus packet and decodes it straight back, using the caller-owned buffer Encode/Decode API.
Package main demonstrates sample-rate handling and the int16 PCM API.
Package main demonstrates sample-rate handling and the int16 PCM API.
Package main demonstrates multistream (surround) encoding and decoding.
Package main demonstrates multistream (surround) encoding and decoding.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL