Skip to content

Repository files navigation

@discordjs/opus BuildPrebuild

Native bindings to libopus v1.5

Usage

import{OpusEncoder}from'@discordjs/opus';// Create the encoder.// Specify 48kHz sampling rate and 2 channel size.constencoder=newOpusEncoder(48_000,2);// Encode and decode.constencoded=encoder.encode(buffer);constdecoded=encoder.decode(encoded);

Platform support

⚠ Node.js v20 or newer is required.

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

About

Native opus bindings for node

Topics

Resources

Code of conduct

Contributing

Stars

253 stars

Watchers

5 watching

Forks

Releases

Used by

Contributors

Languages