# opus **Repository Path**: rowger_217/opus ## Basic Information - **Project Name**: opus - **Description**: github镜像github镜像github镜像 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: dependabot/npm_and_yarn/http-cache-semantics-4.1.1 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-10 - **Last Updated**: 2025-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @discordjs/opus [![Build](https://github.com/discordjs/opus/workflows/Build/badge.svg)](https://github.com/discordjs/opus/actions?query=workflow%3ABuild) [![Prebuild](https://github.com/discordjs/opus/workflows/Prebuild/badge.svg)](https://github.com/discordjs/opus/actions?query=workflow%3APrebuild) > Native bindings to libopus v1.3 ## Usage ```js 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