@discordjs/opus
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.0 • Public • Published

    @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

    Install

    npm i @discordjs/opus

    DownloadsWeekly Downloads

    141,679

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    5.13 MB

    Total Files

    413

    Last publish

    Collaborators

    • crawl
    • hydrabolt