classicfm-discord-bot/node_modules/@discordjs/opus
2024-05-09 14:45:10 -04:00
..
.github v1.0 Commit 2024-05-09 14:45:10 -04:00
build-tmp-napi-v3 v1.0 Commit 2024-05-09 14:45:10 -04:00
deps v1.0 Commit 2024-05-09 14:45:10 -04:00
lib v1.0 Commit 2024-05-09 14:45:10 -04:00
prebuild/node-v127-napi-v3-darwin-arm64-unknown-unknown v1.0 Commit 2024-05-09 14:45:10 -04:00
src v1.0 Commit 2024-05-09 14:45:10 -04:00
typings v1.0 Commit 2024-05-09 14:45:10 -04:00
.eslintrc.json v1.0 Commit 2024-05-09 14:45:10 -04:00
.gitattributes v1.0 Commit 2024-05-09 14:45:10 -04:00
.prettierignore v1.0 Commit 2024-05-09 14:45:10 -04:00
.prettierrc.json v1.0 Commit 2024-05-09 14:45:10 -04:00
binding.gyp v1.0 Commit 2024-05-09 14:45:10 -04:00
LICENSE v1.0 Commit 2024-05-09 14:45:10 -04:00
package.json v1.0 Commit 2024-05-09 14:45:10 -04:00
README.md v1.0 Commit 2024-05-09 14:45:10 -04: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
  • macOS arm64
  • Windows x64