jmprzz
DIAdiscord.js - Imagine an app
•Created by jmprzz on 8/14/2024 in #djs-voice
How to properly play audio/webm;codecs=opus buffers to a voice channel sent via WebSocket?
How can i fix this particular error?
11 replies
DIAdiscord.js - Imagine an app
•Created by jmprzz on 8/14/2024 in #djs-voice
How to properly play audio/webm;codecs=opus buffers to a voice channel sent via WebSocket?
im pushing data everytime the socket receives from server, but the
read()
is required, however i don't see what code to put there since im directly calling push()
on ws.addEventListener("message")
11 replies
DIAdiscord.js - Imagine an app
•Created by jmprzz on 8/14/2024 in #djs-voice
How to properly play audio/webm;codecs=opus buffers to a voice channel sent via WebSocket?
WebSocket server code
Basically it receives the recorded audio from a WS client (called insider) and then forwards it to other WS clients (the listeners) like in the first snippet.
11 replies
DIAdiscord.js - Imagine an app
•Created by jmprzz on 8/14/2024 in #djs-voice
How to properly play audio/webm;codecs=opus buffers to a voice channel sent via WebSocket?
One more thing, when i save my recording as an
audio.webm
file and i play it through discord, using createAudioResource("path/to/audio.webm")
it plays normally...11 replies
DIAdiscord.js - Imagine an app
•Created by jmprzz on 8/14/2024 in #djs-voice
How to properly play audio/webm;codecs=opus buffers to a voice channel sent via WebSocket?
Hi @duck thanks for replying, here's what happened:
After I set
inputType:StreamType.WebmOpus
it gave me the following error which i've encountered before, the audioPlayer
debug info is included in this log.
Dependency report
11 replies
DIAdiscord.js - Imagine an app
•Created by SkyLissh on 5/23/2024 in #djs-voice
Error installing @discordjs/opus
3 replies