playback

command module
v0.0.0-...-8667a1a Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 8 Imported by: 0

README

playback

playback demonstrates decoding a ogg file and then playing using the faiface/beep library

Instructions

Install playback

Download and install playback

go install github.com/pion/opus/examples/playback@latest
Create a ogg file to decode

Encode Opus into an ogg file, or use one that you already have. This implementation doesn't support most Opus features yet, so encoding will be constrained.

ffmpeg -i $INPUT_FILE -c:a libopus -ac 1 -b:a 10K output.ogg
Decode

Demux and decode the provided ogg file. The output audio samples will be played.

playback `pwd`/output.ogg

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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