Rei-x / discord-speech-recognition

Speech to text extension for discord.js
https://npmjs.com/package/discord-speech-recognition
MIT License
57 stars 23 forks source link

Listens when deafened #65

Open ByteLabDev opened 1 year ago

ByteLabDev commented 1 year ago

When selfDeaf is set to true, the bot can still hear the user's voice and transcribe it. This is an issue with Discord, not the speech recognition. It would be a nice feature if the bot didn't transcribe the voices when selfDeaf is set to true, for security.

await joinVoiceChannel({
    channelId: voiceChannel.id,
    guildId: voiceChannel.guild.id,
    adapterCreator: voiceChannel.guild.voiceAdapterCreator,
    selfDeaf: true,
});

I have an example bot that demonstrates the problem.