#Converting Opus to PCM

1 messages · Page 1 of 1 (latest)

chilly grail

so i know in previously you can do

const voiceReceiver = connection.receiver.createStream(member.user, {mode: 'pcm', end: 'manual'});

is there a new way to select the mode so this is the code now:

const voiceReceiver = connection.receiver.subscribe(interaction.member.id, {mode: 'pcm', end: 'manual'});

however, mode in the config no longer exists, how should i be converting opus to pcm?