Say smthing in vocal to text.
Hi
I want to keep the text that i said in vocale with this code : but I have this error : please help me thanks
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.I have tried to declarated connection as but U had an another error
const connection = client.voice.connections.get(message.guild.id);
<ClientVoiceManager>.connections
doesn't exist
if you're new to @discordjs/voice
, you should read the whole voice guide https://discordjs.guide/voice/
but in particular this section covers accessing existing voice connections https://discordjs.guide/voice/voice-connections.html#access
though of course joinVoiceChannel
returns the connection
created
I have tried to declarated connection as
joinVoiceChannel({
but U had an another error
what other error? With this code and this declaration for connection, I have this error :
It's true, that's not a function
Were you looking for
<VoiceReceiver>.subscribe()
?I want to that the bot hear me and write what I say
Its this ?
yes, as documented it returns an opus packet stream
this can be decoded to pcm with an instance of
prism-media
's opus.Decoder
(@discordjs/voice
depends on prism-media
so it should already be installed)Thx