VoiceChatSDK is a small module made to originally moderate misbehaving players, while also knowing if they get suspended from the Voice Chat to just simply knowing whether they can Voice Chat to begin with.
The module can be used both on the Server and Client, and is fully compatible with --!strict.
Functions that are included
MutePlayer ( Player, Seconds? ) -- Mutes the player for the duration of Seconds (or indefinitely).
UnmutePlayer ( Player ) -- Unmutes the player if they are muted. (No, this doesn't activate their microphone, creep.)
GetDeviceInput ( Player ) -- Returns the player's AudioDeviceInput instance, if one exists.
PlayerHasVoice ( Player ) -- Returns `true` or `false` depending on whether the player has Voice Chat or not.
-- There is also an event for when a player with Voice Chat gets suspended;
VoiceStripped -- Connections fire when a player gets their Voice Chat suspended while they are in-game.
The whole module is pretty primitive but it gets the job done for those who need it.
Infinite yield possible on âPlayer.[PlayerName]:WaitForChild(âAudioDeviceInputâ)â
I also see on the documentation of VoiceChatService that UseAudioApi has to be enabled.
Any idea on how to enable this? I am new to using the Voice Chat API
Sincerest Apologies
Edit Update for anyone wondering/facing the same issue
âModelâ tab in Studio
âServiceâ near the far right side
Click on âVoiceChatServiceâ and then âInsertâ
Scroll down in Explorer until you find âVoiceChatServiceâ
In Properties find âUseAudioAPIâ and set to âEnabledâ