dtinth / discord-transcriber

Use Google Cloud Speech to transcribe voice chats in Discord.
25 stars 7 forks source link

Not getting voice messages in receiver #1

Open hershkoy opened 5 years ago

hershkoy commented 5 years ago

I am new to discord bots, so I don't know if it is not working because I am not doing something right. I manage to deploy the bot on a server, and it 'joined' a voice channel successfully. I am not able to send voice messages from discord to the bot, nothing is happening. I speak on discord, and there is no log create on the server.

This is the log:

[2019-06-26T10:35:09.229Z] INFO (2401 on ip-172-31-41-0): Logging in... [2019-06-26T10:35:09.666Z] INFO (2401 on ip-172-31-41-0): Discord client ready. [2019-06-26T10:35:09.667Z] INFO (2401 on ip-172-31-41-0): Voice channel: 59..X.X..X..X...62 (voice) [2019-06-26T10:35:09.667Z] INFO (2401 on ip-172-31-41-0): Text channel: 59..X.X..X.X..49 (voice-transcript) [2019-06-26T10:35:09.668Z] TRACE (2401 on ip-172-31-41-0): Joining voice channel... [2019-06-26T10:35:10.446Z] INFO (2401 on ip-172-31-41-0): Voice channel joined.

I think that the issue is with the receiver.on('pcm'..), it is just not triggered. Any idea how to fix it?

bryngo commented 5 years ago

I have the same problem as well. The closest solution I found to this was from here, where someone suggested having the bot play dummy sounds before being able to listen in on conversations. Unfortunately, this didn't work for me.

Would love to know if there are any explanations / fixes for this!

bryngo commented 5 years ago

I've managed to fix this by making sure I uninstall ffmpeg-binaries and had ffmpeg` installed on my system.

Not really related, but upgrading to the current discord.js v12.0.0-dev build fixed a few of my problems, but your mileage may vary on that since it is still a dev build.

dtinth commented 5 years ago

Have you tried running the script using the provided Dockerfile? It should give a more consistent experience...

natereinhardt commented 1 year ago

I am using the docker and I joins the voice and then nothing.

[2022-12-05T22:08:14.101Z] INFO (31 on e80e94034fc7): Logging in...
[2022-12-05T22:08:14.397Z] INFO (31 on e80e94034fc7): Discord client ready.
[2022-12-05T22:08:14.397Z] INFO (31 on e80e94034fc7): Voice channel: xxxxxxxxxxx (MyVoiceChannel-Voice)
[2022-12-05T22:08:14.398Z] INFO (31 on e80e94034fc7): Text channel: xxxxxxxxx(MyVoiceChannel-voice-transcribe)
[2022-12-05T22:08:14.398Z] TRACE (31 on e80e94034fc7): Joining voice channel...

These are my logs.

Any insight?