fix(voice): disable OGG CRC to avoid node-crc native build failure
- prism-media@2.0.0-alpha.0 OggLogicalBitstream requires node-crc
- node-crc is Rust native addon that fails to build (MSRV compat)
- Setting crc: false makes prism-media skip require('node-crc')
- OGG streams work correctly without CRC checksums
- node-crc kept in package.json
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
306ccf58f0
commit
0e79ba0d50
@@ -40,7 +40,7 @@ export class SegmentManager {
|
||||
const oggStream = new prism.opus.OggLogicalBitstream({
|
||||
opusHead: new prism.opus.OpusHead({ channelCount: 2, sampleRate: 48000 }),
|
||||
pageSizeControl: { maxPackets: 10 },
|
||||
crc: true,
|
||||
crc: false,
|
||||
});
|
||||
const out = fs.createWriteStream(filename);
|
||||
oggPacketStream.pipe(oggStream).pipe(out);
|
||||
|
||||
Reference in New Issue
Block a user