World of Warcraft Forever API · C_VoiceChat.md, for your AI
C_VoiceChat
82 functions, 51 events, 10 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_VoiceChat.ActivateChannel(channelID)
Arguments
C_VoiceChat.ActivateChannelTranscription(channelID)
Arguments
C_VoiceChat.BeginLocalCapture(listenToLocalUser)
Arguments
canAccess = C_VoiceChat.CanAccessSettings()
Returns
canUseVoiceChat = C_VoiceChat.CanPlayerUseVoiceChat()
Returns
status = C_VoiceChat.CreateChannel(channelDisplayName)
Arguments
channelDisplayName | cstring | |
|---|
Returns
C_VoiceChat.DeactivateChannel(channelID)
Arguments
C_VoiceChat.DeactivateChannelTranscription(channelID)
Arguments
C_VoiceChat.EndLocalCapture()
channelID = C_VoiceChat.GetActiveChannelID()
Returns
channelID | VoiceChatID may be nil | |
|---|
channelType = C_VoiceChat.GetActiveChannelType()
Returns
activeVoiceProviderID = C_VoiceChat.GetActiveVoiceProviderID()
Returns
outputDevices = C_VoiceChat.GetAvailableOutputDevices()
Returns
channel = C_VoiceChat.GetChannel(channelID)
May return nothing.
Arguments
Returns
channel = C_VoiceChat.GetChannelForChannelType(channelType)
May return nothing.
Arguments
Returns
communicationMode = C_VoiceChat.GetCommunicationMode()
Returns
statusCode = C_VoiceChat.GetCurrentVoiceChatConnectionStatusCode()
Returns
errorReason = C_VoiceChat.GetJoinClubVoiceChannelError(clubId)
Arguments
Returns
memberInfo = C_VoiceChat.GetLocalPlayerActiveChannelMemberInfo()
Returns
memberID = C_VoiceChat.GetLocalPlayerMemberID(channelID)
Arguments
Returns
memberID | VoiceChatID may be nil | |
|---|
scale = C_VoiceChat.GetMasterVolumeScale()
Returns
memberGUID = C_VoiceChat.GetMemberGUID(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
memberID = C_VoiceChat.GetMemberID(channelID, memberGUID)
Arguments
channelID | VoiceChatID | |
|---|
memberGUID | WOWGUID | |
|---|
Returns
memberID | VoiceChatID may be nil | |
|---|
memberInfo = C_VoiceChat.GetMemberInfo(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
memberName = C_VoiceChat.GetMemberName(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
memberName | string may be nil | |
|---|
volume = C_VoiceChat.GetMemberVolume(playerLocation)
Arguments
playerLocation | PlayerLocation | |
|---|
Returns
volume = C_VoiceChat.GetOutputVolume()
Returns
processes = C_VoiceChat.GetProcesses()
May return nothing.
Returns
keys = C_VoiceChat.GetPushToTalkBinding()
Returns
ttsVoices = C_VoiceChat.GetRemoteTtsVoices()
Returns
ttsVoices = C_VoiceChat.GetTtsVoices()
Returns
sensitivity = C_VoiceChat.GetVADSensitivity()
Returns
sensitivity | number may be nil | |
|---|
isPending = C_VoiceChat.IsChannelJoinPending(channelType, [clubId], [streamId])
Arguments
channelType | ChatChannelType | |
|---|
clubId | ClubId may be nil | |
|---|
streamId | ClubStreamId may be nil | |
|---|
Returns
isDeafened = C_VoiceChat.IsDeafened()
Returns
isDeafened | bool may be nil | |
|---|
isEnabled = C_VoiceChat.IsEnabled()
Returns
isLoggedIn = C_VoiceChat.IsLoggedIn()
Returns
isLocalPlayer = C_VoiceChat.IsMemberLocalPlayer(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
mutedForMe = C_VoiceChat.IsMemberMuted(playerLocation)
Arguments
playerLocation | PlayerLocation | |
|---|
Returns
mutedForMe | bool may be nil | |
|---|
mutedForAll = C_VoiceChat.IsMemberMutedForAll(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
mutedForAll | bool may be nil | |
|---|
silenced = C_VoiceChat.IsMemberSilenced(memberID, channelID)
Arguments
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
Returns
isMuted = C_VoiceChat.IsMuted()
Returns
isParentalDisabled = C_VoiceChat.IsParentalDisabled()
Returns
isParentalMuted = C_VoiceChat.IsParentalMuted()
Returns
isUsingVoice = C_VoiceChat.IsPlayerUsingVoice(playerLocation)
Arguments
playerLocation | PlayerLocation | |
|---|
Returns
isSilenced = C_VoiceChat.IsSilenced()
Returns
isSilenced | bool may be nil | |
|---|
isTranscribing = C_VoiceChat.IsTranscribing()
Returns
isAllowed = C_VoiceChat.IsTranscriptionAllowed()
Returns
connected = C_VoiceChat.IsVoiceChatConnected()
Returns
C_VoiceChat.LeaveChannel(channelID)
Arguments
status = C_VoiceChat.Login([channelType])
Arguments
Returns
status = C_VoiceChat.Logout()
Returns
C_VoiceChat.MarkChannelsDiscovered()
Once the UI has enumerated all channels, use this to reset the channel discovery state, it will be updated again if appropriate
C_VoiceChat.RequestJoinAndActivateCommunityStreamChannel(clubId, streamId)
Arguments
clubId | ClubId | |
|---|
streamId | ClubStreamId | |
|---|
C_VoiceChat.RequestJoinChannelByChannelType(channelType, [autoActivate])
Arguments
changed = C_VoiceChat.RestoreActiveVoiceProvider()
Changes the active voice provider to the party voice provider, or to the preferred voice provider when the party has none.
Returns
success = C_VoiceChat.SetActiveVoiceProvider(voiceProviderID)
Changes the active voice provider without changing the preferred voice provider.
Arguments
Returns
C_VoiceChat.SetCommunicationMode(communicationMode)
Arguments
C_VoiceChat.SetDeafened(isDeafened)
Arguments
C_VoiceChat.SetMasterVolumeScale(scale)
Arguments
C_VoiceChat.SetMemberMuted(playerLocation, muted)
Arguments
playerLocation | PlayerLocation | |
|---|
muted | bool | |
|---|
C_VoiceChat.SetMemberVolume(playerLocation, volume)
Adjusts member volume across all channels
Arguments
playerLocation | PlayerLocation | |
|---|
volume | number | |
|---|
C_VoiceChat.SetMuted(isMuted)
Arguments
C_VoiceChat.SetOutputDevice(deviceID)
Arguments
C_VoiceChat.SetOutputVolume(volume)
Arguments
C_VoiceChat.SetPortraitTexture(textureObject, memberID, channelID)
Arguments
textureObject | SimpleTexture | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
C_VoiceChat.SetPushToTalkBinding(keys)
Arguments
C_VoiceChat.SetVADSensitivity(sensitivity)
Arguments
shouldDiscoverChannels = C_VoiceChat.ShouldDiscoverChannels()
Use this while loading to determine if the UI should attempt to rediscover the previously joined/active voice channels
Returns
shouldDiscoverChannels | bool | |
|---|
C_VoiceChat.SpeakRemoteTextSample(text)
Arguments
C_VoiceChat.SpeakText(voiceID, text, rate, volume, [overlap])
SpeakText also supports XML TTS tags on Windows including bookmarks - see SAPI XML TTS Tutorial in Microsoft's online documentation for more information.
Arguments
voiceID | number | |
|---|
text | cstring | |
|---|
rate | number | |
|---|
volume | number | |
|---|
overlap | bool default false | |
|---|
C_VoiceChat.StopSpeakingText()
C_VoiceChat.ToggleDeafened()
C_VoiceChat.ToggleMemberMuted(playerLocation)
Arguments
playerLocation | PlayerLocation | |
|---|
C_VoiceChat.ToggleMuted()
Events
isSpeaking | bool | |
|---|
energy | number | |
|---|
channelID | VoiceChatID | |
|---|
channelDisplayName | cstring | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
isActive | bool | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
speakingEnergy | number | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
isMutedForAll | bool | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
isMutedForMe | bool | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
isSilenced | bool | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
isSpeaking | bool | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
message | string | |
|---|
language | string | |
|---|
memberID | VoiceChatID | |
|---|
channelID | VoiceChatID | |
|---|
volume | number | |
|---|
channelID | VoiceChatID | |
|---|
isMuted | bool | |
|---|
channelID | VoiceChatID | |
|---|
pushToTalkSetting | cstring | |
|---|
channelID | VoiceChatID | |
|---|
isTranscribing | bool | |
|---|
channelID | VoiceChatID | |
|---|
isTransmitting | bool | |
|---|
channelID | VoiceChatID | |
|---|
volume | number | |
|---|
channelType | ChatChannelType | |
|---|
clubId | ClubId may be nil | |
|---|
streamId | ClubStreamId may be nil | |
|---|
pendingJoin | bool | |
|---|
utteranceID | number | |
|---|
bookmarkName | cstring | |
|---|
Tables
Unknown | 0 |
|---|
IsBattleNetChannel | 1 |
|---|
Success | 0 |
|---|
OperationPending | 1 |
|---|
TooManyRequests | 2 |
|---|
LoginProhibited | 3 |
|---|
ClientNotInitialized | 4 |
|---|
ClientNotLoggedIn | 5 |
|---|
ClientAlreadyLoggedIn | 6 |
|---|
ChannelNameTooShort | 7 |
|---|
ChannelNameTooLong | 8 |
|---|
ChannelAlreadyExists | 9 |
|---|
AlreadyInChannel | 10 |
|---|
TargetNotFound | 11 |
|---|
Failure | 12 |
|---|
ServiceLost | 13 |
|---|
UnableToLaunchProxy | 14 |
|---|
ProxyConnectionTimeOut | 15 |
|---|
ProxyConnectionUnableToConnect | 16 |
|---|
ProxyConnectionUnexpectedDisconnect | 17 |
|---|
Disabled | 18 |
|---|
UnsupportedChatChannelType | 19 |
|---|
InvalidCommunityStream | 20 |
|---|
PlayerSilenced | 21 |
|---|
PlayerVoiceChatParentalDisabled | 22 |
|---|
InvalidInputDevice | 23 |
|---|
InvalidOutputDevice | 24 |
|---|
PlayerVoiceChatAgeVerificationRestricted | 25 |
|---|
Success | 0 |
|---|
InvalidEngineType | 1 |
|---|
EngineAllocationFailed | 2 |
|---|
NotSupported | 3 |
|---|
MaxCharactersExceeded | 4 |
|---|
UtteranceBelowMinimumDuration | 5 |
|---|
InputTextEnqueued | 6 |
|---|
SdkNotInitialized | 7 |
|---|
DestinationQueueFull | 8 |
|---|
EnqueueNotNecessary | 9 |
|---|
UtteranceNotFound | 10 |
|---|
ManagerNotFound | 11 |
|---|
InvalidArgument | 12 |
|---|
InternalError | 13 |
|---|
deviceID | string | |
|---|
displayName | string | |
|---|
isActive | bool | |
|---|
isSystemDefault | bool | |
|---|
isCommsDefault | bool | |
|---|
name | string | |
|---|
channelID | VoiceChatID | |
|---|
channelType | ChatChannelType | |
|---|
clubId | ClubId | |
|---|
streamId | ClubStreamId | |
|---|
volume | number | |
|---|
isActive | bool | |
|---|
isMuted | bool | |
|---|
isTransmitting | bool | |
|---|
isTranscribing | bool | |
|---|
members | VoiceChatMember[] | |
|---|
energy | number | |
|---|
memberID | VoiceChatID | |
|---|
isActive | bool | |
|---|
isSpeaking | bool | |
|---|
isMutedForAll | bool | |
|---|
isSilenced | bool | |
|---|