Skip to content

Recieving audio from users in voice channel. #45

Answered by dank074
kylerifqi asked this question in Q&A
Discussion options

You must be logged in to vote

It's not currently coded but it would be done like this:

This portion of the code is what is listening for incoming UDP media packets:

handleIncoming(buf: any): void {

The message would be an RTP packet with Opus payload. Looks something like this:

[ 12 byte header ] [ (RTP extension) (Opus payload) ] [ 4 bytes of nonce ]

Bolded part is the encrypted portion. You would have to decrypt this and that's how you get your Opus audio

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kylerifqi
Comment options

Answer selected by kylerifqi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants