Voice recognition works for personal chat but not in groups #88

Closed
opened 2022-09-22 16:34:37 +00:00 by timaschew · 6 comments
timaschew commented 2022-09-22 16:34:37 +00:00 (Migrated from github.com)

I've provided German and English in the WIT_LANGUAGES env variable.
When I start a chat with the bot directly, the voice recognition works fine.

If I invite my bot into a (my) group, voicy prints a message, let me choose the language. I choose it, the engine and voice language but the voice recognition does not work. No response from the bot, nothing in the logs, even when I set to ENVIRONMENT=development

I've provided `German` and `English` in the `WIT_LANGUAGES` env variable. When I start a chat with the bot directly, the voice recognition works fine. If I invite my bot into a (my) group, voicy prints a message, let me choose the language. I choose it, the engine and voice language but the voice recognition does not work. No response from the bot, nothing in the logs, even when I set to `ENVIRONMENT=development`
backmeupplz commented 2022-09-22 16:45:21 +00:00 (Migrated from github.com)

Try setting up Voicy in the group as well :) or try other voice recognition engines in /engine

Try setting up Voicy in the group as well :) or try other voice recognition engines in /engine
timaschew commented 2022-09-22 17:32:00 +00:00 (Migrated from github.com)

Try setting up Voicy in the group as well :)

How exactly?

I've tried it. The enginie doesn't matter, I've tried all of them.
My voicy bot seems to be not triggered by a voice message at all. Only by commands like /engine, etc.

> Try setting up Voicy in the group as well :) How exactly? I've tried it. The enginie doesn't matter, I've tried all of them. My voicy bot seems to be not triggered by a voice message at all. Only by commands like `/engine`, etc.
backmeupplz commented 2022-09-22 18:04:18 +00:00 (Migrated from github.com)

@timaschew just like you set it up in private messages :) try also turning off /silent and turning on /files

@timaschew just like you set it up in private messages :) try also turning off /silent and turning on /files
timaschew commented 2022-09-22 18:30:04 +00:00 (Migrated from github.com)

I did same setup for private chat and for group chat. I've also tried to enable and disable /silent and /files. I've even created another group, but nothing helps.

Can you please point me to the source code where the bot listen for a voice message?

Maybe the bot needs some special configuration via BotFather?

I did same setup for private chat and for group chat. I've also tried to enable and disable /silent and /files. I've even created another group, but nothing helps. Can you please point me to the source code where the bot listen for a voice message? Maybe the bot needs some special configuration via BotFather?
timaschew commented 2022-09-22 19:06:40 +00:00 (Migrated from github.com)

I found the code bot.on([':voice', ':video_note'], handleAudio) I've added some console.log lines to the handler. In a group chat the handler is NOT called if I do a voice message.

I found the code `bot.on([':voice', ':video_note'], handleAudio)` I've added some `console.log` lines to the handler. In a group chat the handler is NOT called if I do a voice message.
timaschew commented 2022-09-22 19:10:59 +00:00 (Migrated from github.com)

Found the issue, /setprivacy needs to be disabled.

Found the issue, /setprivacy needs to be disabled.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/voicy#88
No description provided.