Musique/node_modules/@discordjs/opus
2021-12-06 16:34:00 +01:00
..
.github Add files 2021-12-04 20:00:33 +01:00
build-tmp-napi-v3 Update to v13 and add queue and completely change code 2021-12-06 16:34:00 +01:00
deps Add files 2021-12-04 20:00:33 +01:00
lib Add files 2021-12-04 20:00:33 +01:00
prebuild/node-v93-napi-v3-linux-arm64-glibc-2.32 Update to v13 and add queue and completely change code 2021-12-06 16:34:00 +01:00
src Add files 2021-12-04 20:00:33 +01:00
typings Add files 2021-12-04 20:00:33 +01:00
.eslintrc.json Add files 2021-12-04 20:00:33 +01:00
.gitattributes Add files 2021-12-04 20:00:33 +01:00
.prettierrc.json Add files 2021-12-04 20:00:33 +01:00
binding.gyp Add files 2021-12-04 20:00:33 +01:00
LICENSE Add files 2021-12-04 20:00:33 +01:00
package.json Add files 2021-12-04 20:00:33 +01:00
README.md Add files 2021-12-04 20:00:33 +01:00

@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

⚠ Node.js 12.0.0 or newer is required.

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