Alexejhero
Alexejhero
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
I was able to fix it by replacing it with naudiodon2
8 replies
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
Seems like this was indeed a buffer underrun issue - bot not from djs, rather from node-speaker library. It doesn't properly handle live incoming audio like that.
8 replies
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
I don't know what the problem is then
8 replies
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
After doing a bit more digging, I've found out that I was wrong - the opus data returned is 20ms even though there are differences in the length, trying to splice frames together to achieve a specific byte length does not make sense and also throws exceptions about corrupted data
8 replies
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
Here's also what it sounds like
8 replies
DIAdiscord.js - Imagine an app
Created by Alexejhero on 10/16/2024 in #djs-voice
Live playback of audio coming from discord causes crackling issue
Core Dependencies
- @discordjs/voice: 0.17.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

Encryption Libraries
- sodium-native: 4.2.1
- sodium: not found
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: N-112807-ge56d91f8a8-20231120
- libopus: yes
Core Dependencies
- @discordjs/voice: 0.17.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

Encryption Libraries
- sodium-native: 4.2.1
- sodium: not found
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: N-112807-ge56d91f8a8-20231120
- libopus: yes
8 replies