Open
Description
Issue description
- Prepare some PCM data. In my case it's 16kHz mono, 16bits.
- Encode it with 960 bytes per frame.
- Watch the crash
After digging into the missing symbols, I managed to fix that by adding "opus/silk/arm/NSQ_neon.c"
to the "target_arch==\"arm64\""
condition in @discordjs/opus/deps/binding.gyp
.
Code sample
import { OpusEncoder } from '@discordjs/opus';
const buffer = ...;
const bytesPerFrame = 960;
const frame = buffer.subarray(0, bytesPerFrame);
const encoder = new OpusEncoder(16000, 1);
const opus = encoder.encode(frame);
Versions
- @discordjs/opus: 0.9.0
- nodejs: v22.11.0
- typescript: 5.6.3
- OS: macOS 14.6.1 (23G93)
- Chip: Apple M2
Issue priority
Medium (should be fixed soon)