alexemanuelol / rustplusplus

A NodeJS Discord Bot that uses the rustplus.js library to utilize the power of the Rust+ Companion App with additional Quality-of-Life features.
GNU General Public License v3.0
214 stars 101 forks source link

Voice not working on Ubuntu 22.04 #267

Closed alexemanuelol closed 8 months ago

nephacks commented 10 months ago

debian 12 has this issue too, editing discordTools/discordVoice.js seems to fix this issue line 32 already has const resource = createAudioResource(url);, changing url to stream and adding this following line const stream = (await (await fetch(url)).blob()).stream() above it seems to fix it. not sure if this is good or not but it seems to fix the voice for now. here's where i found the solution

hernancussit commented 10 months ago

debian 12 has this issue too, editing discordTools/discordVoice.js seems to fix this issue line 32 already has const resource = createAudioResource(url);, changing url to stream and adding this following line const stream = (await (await fetch(url)).blob()).stream() above it seems to fix it. not sure if this is good or not but it seems to fix the voice for now. here's where i found the solution

It has worked for all the preset messages. But if I try to make it talk with the .tts command it doesn't work

alexemanuelol commented 8 months ago

Solved in: 83e2e93859e07ef91974514271c9140cd0fcffa8