Help us shape the future of Go! Take the 2026 Go Developer Survey

res

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

SIP media resources

See https://trac.ffmpeg.org/wiki/audio%20types.

PCM16LE

Encoding:

ffmpeg -i file.ogg -ar 8000 -f s16le file.s16le

Decoding:

ffmpeg -f s16le -ar 8000 -i file.s16le file.ogg

G711 - PCMU

Encoding:

ffmpeg -i file.ogg -ar 8000 -f mulaw file.g711u

Decoding:

ffmpeg -f mulaw -ar 8000 -i file.g711u file.ogg

G711 - PCMA

Encoding:

ffmpeg -i file.ogg -ar 8000 -f alaw file.g711a

Decoding:

ffmpeg -f alaw -ar 8000 -i file.g711a file.ogg

G722

Encoding:

ffmpeg -i file.ogg -ar 8000 -f g722 file.g722

Decoding:

ffmpeg -f g722 -i file.g722 file.ogg

Documentation

Index

Constants

View Source
const SampleRate = 48000

Variables

View Source
var EnterPinOgg []byte
View Source
var RoomJoinOgg []byte
View Source
var WrongPinOgg []byte

Functions

func ReadOggAudioFile

func ReadOggAudioFile(data []byte) []msdk.PCM16Sample

Types

This section is empty.

Jump to

Keyboard shortcuts

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