Closed abp6318 closed 3 years ago
I am having the same issue. I got it to work for a while and now it does not work after no edits on my part. No errors or anything and when I debug the connection, it prints debug: [WS] << {"op":5,"d":{"user_id":<my_id>,"ssrc":1074919,"speaking":1}}
so it looks like it is picking up that I am speaking but the event speaking
is not firing or getting picked up.
Also, I followed the solution from #3524 and it worked a couple times but now again it is not working. I replaced the youtube link for sound with an mp3 and that is working again.
// Only join if member is part of a voice channel themselves
if (message.member.voice.channel) {
// Join the voice channel the member is currently in
const connection = await message.member.voice.channel.join();
const dispatcher = connection.play(
ytdl("https://www.youtube.com/watch?v=n2EjeMx4bSg", {
range: { start: 0, end: 1 },
})
);
dispatcher.on("start", () => {
console.log("Scribe: Play Starting...");
});
dispatcher.on("finish", () => {
console.log("Scribe: Finished playing!");
});
dispatcher.on("end", (end) => {
console.log("Scribe: End Finished playing!");
});
connection.on("speaking", (user, speaking) => {
console.log("here");
});
Where did the new ConvertTo1ChannelStream come from?
Same problem, sometimes works, sometimes not
Duplicate of #5209
Please describe the problem you are having in as much detail as possible: Hello, I'm trying to make a live transcription bot using Google Cloud Speech-to-text API. The issue occurs without any warnings, errors, or breakage. It simply does nothing I can interpret. Upon reaching
connection.on('speaking', (user, speaking) => {
, the issue occurs. I did several hours of prior research and came across several posts from 2019 relating to the same issue, but none were resolved officially from what I can tell.https://github.com/discordjs/discord.js/issues/3591 https://github.com/discordjs/discord.js/issues/3524
If you follow the link to issue 3524, you will see a variety of solutions provided by users more impatient than I, but all of these are a year old and I can't seem to make them work for me. A popular solution that I saw, but does not work for me, is to make the bot send out audio (or silence) in order to be able to hear a user.
Any and all hints/help/luck would be greatly appreciated. Include a reproducible code sample here, if possible:
Further details:
Relevant client options: