mirror of
https://github.com/MrUnknownDE/UnknownBot.git
synced 2026-04-19 05:03:44 +02:00
start nodejs bot
This commit is contained in:
24
node_modules/@discordjs/opus/README.md
generated
vendored
Normal file
24
node_modules/@discordjs/opus/README.md
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# @discordjs/opus [](https://github.com/discordjs/opus/actions?query=workflow%3ABuild) [](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
|
||||
|
||||
- Linux x64 & ia32
|
||||
- Linux arm (RPi 1 & 2)
|
||||
- Linux arm64 (RPi 3)
|
||||
- macOS x64
|
||||
- Windows x64
|
||||
Reference in New Issue
Block a user