The easiest way to mute player's voicechat?

I want to mute the player when he gets moved into another team. I’ve tried to use VoiceChatSDK, but I found it too complicated and didn’t want to recode half of the game. Is there any other way to do it?

3 Likes

It’s not complicated to use VoiceChatSDK. It’s really just

local replicatedStorage = game:GetService("ReplicatedStorage")
local vcSDK = require(replicatedStorage:WaitForChild("VoiceChatSDK"))
vcSDK.mutePlayerAsync(player)

You can explain more about why and I may be able to guide you through it.

2 Likes
  1. Does this code work on server-side?
  2. VoiceChatSDK changes how characters work on the client-side, for example, if I try to access the humanoid, it will look like this: Character.Components.Humanoid. Its not that its hard to replace, I personally just kinda dislike it. I’m just wondering if there’s another way around of muting the VC without changing the code too much.
2 Likes

Apparently, it does have a function that works server-side which does it Async as shown here on Open-Source Github.

3 Likes

I’ve tried to implement VoiceChatSDK, but it has a couple of different issues:

  1. In previous post I’ve mentioned the components thing, which actually is false. But for some reason its mentioned in the VoiceChatSDK post.
  2. As you can guess, I tried to use VoiceChatSDK. Its not quite working. Sometimes players can hear me, sometimes not.

I’ll probably leave voice chat as it is for now, hopefully roblox releases API access to voice chat soon.

4 Likes

Roblox hinted at this being the case. I’m hopeful for a release before the end of the year but this will most likely be something we have in 2024.

2 Likes