Skip to content

discordjs/opus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f0cb4eb · Jan 27, 2021

History

32 Commits
Jan 27, 2021
Apr 25, 2020
May 3, 2020
Jan 15, 2020
Dec 8, 2020
Jan 15, 2020
May 2, 2020
Jan 15, 2020
Jul 15, 2020
May 2, 2020
Jan 24, 2021
Jan 24, 2021

Repository files navigation

@discordjs/opus Build Prebuild

Native bindings to libopus v1.3

Usage

const { OpusEncoder } = require('@discordjs/opus');

// Create the encoder.
// Specify 48kHz sampling rate and 2 channel size.
const encoder = new OpusEncoder(48000, 2);

// Encode and decode.
const encoded = encoder.encode(buffer);
const decoded = encoder.decode(encoded);

Platform support

  • Linux x64 & ia32
  • Linux arm (RPi 1 & 2)
  • Linux arm64 (RPi 3)
  • macOS x64
  • Windows x64