Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCM audio playback got interrupted on Node 20 #1492

Open
jimchen5209 opened this issue Apr 16, 2024 · 1 comment
Open

PCM audio playback got interrupted on Node 20 #1492

jimchen5209 opened this issue Apr 16, 2024 · 1 comment

Comments

@jimchen5209
Copy link
Contributor

Not sure what's changed in Node 20 to affect this.

After upgrading Node from 18 to 20, the voice got interrupted at about 200ms when I attempted to play a PCM file, without any error or disconnection.
It works fine when I play an OPUS file.
If I downgrade to Node 18, everything works fine again.

I've tested across Node 18 to 21, it breaks only on version >= 20.

I've created a repo to reproduce this bug at https://github.com/jimchen5209/eris-node20-bug.

@jimchen5209
Copy link
Contributor Author

After debugging and searching, the problem is at node.js' side.
The issue is nodejs/node#51930.
Fixed by applying workaround highWaterMark variable to 1 at lib/voice/streams/BaseTransformer.js or downgrading node.js to 20.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant