WowAddons

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

C_VoiceChat.ActivateChannel(channelID)

Arguments

channelIDVoiceChatID

C_VoiceChat.ActivateChannelTranscription

C_VoiceChat.ActivateChannelTranscription(channelID)

Arguments

channelIDVoiceChatID

C_VoiceChat.BeginLocalCapture

C_VoiceChat.BeginLocalCapture(listenToLocalUser)

Arguments

listenToLocalUserbool

C_VoiceChat.CanAccessSettings

canAccess = C_VoiceChat.CanAccessSettings()

Returns

canAccessbool

C_VoiceChat.CanPlayerUseVoiceChat

canUseVoiceChat = C_VoiceChat.CanPlayerUseVoiceChat()

Returns

canUseVoiceChatbool

C_VoiceChat.CreateChannel

status = C_VoiceChat.CreateChannel(channelDisplayName)

Arguments

channelDisplayNamecstring

Returns

statusVoiceChatStatusCode

C_VoiceChat.DeactivateChannel

C_VoiceChat.DeactivateChannel(channelID)

Arguments

channelIDVoiceChatID

C_VoiceChat.DeactivateChannelTranscription

C_VoiceChat.DeactivateChannelTranscription(channelID)

Arguments

channelIDVoiceChatID

C_VoiceChat.EndLocalCapture

C_VoiceChat.EndLocalCapture()

C_VoiceChat.GetActiveChannelID

channelID = C_VoiceChat.GetActiveChannelID()

Returns

channelIDVoiceChatID may be nil

C_VoiceChat.GetActiveChannelType

channelType = C_VoiceChat.GetActiveChannelType()

Returns

channelTypeChatChannelType may be nil

C_VoiceChat.GetActiveVoiceProviderID

activeVoiceProviderID = C_VoiceChat.GetActiveVoiceProviderID()

Returns

activeVoiceProviderIDVoiceProviderID

C_VoiceChat.GetAvailableInputDevices

inputDevices = C_VoiceChat.GetAvailableInputDevices()

Returns

inputDevicesVoiceAudioDevice[] may be nil

C_VoiceChat.GetAvailableOutputDevices

outputDevices = C_VoiceChat.GetAvailableOutputDevices()

Returns

outputDevicesVoiceAudioDevice[] may be nil

C_VoiceChat.GetChannel

channel = C_VoiceChat.GetChannel(channelID)

May return nothing.

Arguments

channelIDVoiceChatID

Returns

channelVoiceChatChannel

C_VoiceChat.GetChannelForChannelType

channel = C_VoiceChat.GetChannelForChannelType(channelType)

May return nothing.

Arguments

channelTypeChatChannelType

Returns

channelVoiceChatChannel

C_VoiceChat.GetChannelForCommunityStream

channel = C_VoiceChat.GetChannelForCommunityStream(clubId, streamId)

May return nothing.

Arguments

clubIdClubId
streamIdClubStreamId

Returns

channelVoiceChatChannel

C_VoiceChat.GetCommunicationMode

communicationMode = C_VoiceChat.GetCommunicationMode()

Returns

communicationModeCommunicationMode may be nil

C_VoiceChat.GetCurrentVoiceChatConnectionStatusCode

statusCode = C_VoiceChat.GetCurrentVoiceChatConnectionStatusCode()

Returns

statusCodeVoiceChatStatusCode may be nil

C_VoiceChat.GetInputVolume

volume = C_VoiceChat.GetInputVolume()

Returns

volumenumber may be nil

C_VoiceChat.GetJoinClubVoiceChannelError

errorReason = C_VoiceChat.GetJoinClubVoiceChannelError(clubId)

Arguments

clubIdClubId

Returns

errorReasonVoiceChannelErrorReason may be nil

C_VoiceChat.GetLocalPlayerActiveChannelMemberInfo

memberInfo = C_VoiceChat.GetLocalPlayerActiveChannelMemberInfo()

Returns

memberInfoVoiceChatMember may be nil

C_VoiceChat.GetLocalPlayerMemberID

memberID = C_VoiceChat.GetLocalPlayerMemberID(channelID)

Arguments

channelIDVoiceChatID

Returns

memberIDVoiceChatID may be nil

C_VoiceChat.GetMasterVolumeScale

scale = C_VoiceChat.GetMasterVolumeScale()

Returns

scalenumber

C_VoiceChat.GetMemberGUID

memberGUID = C_VoiceChat.GetMemberGUID(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

memberGUIDWOWGUID

C_VoiceChat.GetMemberID

memberID = C_VoiceChat.GetMemberID(channelID, memberGUID)

Arguments

channelIDVoiceChatID
memberGUIDWOWGUID

Returns

memberIDVoiceChatID may be nil

C_VoiceChat.GetMemberInfo

memberInfo = C_VoiceChat.GetMemberInfo(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

memberInfoVoiceChatMember may be nil

C_VoiceChat.GetMemberName

memberName = C_VoiceChat.GetMemberName(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

memberNamestring may be nil

C_VoiceChat.GetMemberVolume

volume = C_VoiceChat.GetMemberVolume(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

volumenumber may be nil

C_VoiceChat.GetOutputVolume

volume = C_VoiceChat.GetOutputVolume()

Returns

volumenumber may be nil

C_VoiceChat.GetPTTButtonPressedState

isPressed = C_VoiceChat.GetPTTButtonPressedState()

Returns

isPressedbool may be nil

C_VoiceChat.GetProcesses

processes = C_VoiceChat.GetProcesses()

May return nothing.

Returns

processesVoiceChatProcess[]

C_VoiceChat.GetPushToTalkBinding

keys = C_VoiceChat.GetPushToTalkBinding()

Returns

keysstring[] may be nil

C_VoiceChat.GetRemoteTtsVoices

ttsVoices = C_VoiceChat.GetRemoteTtsVoices()

Returns

ttsVoicesVoiceTtsVoiceType[]

C_VoiceChat.GetTtsVoices

ttsVoices = C_VoiceChat.GetTtsVoices()

Returns

ttsVoicesVoiceTtsVoiceType[]

C_VoiceChat.GetVADSensitivity

sensitivity = C_VoiceChat.GetVADSensitivity()

Returns

sensitivitynumber may be nil

C_VoiceChat.IsChannelJoinPending

isPending = C_VoiceChat.IsChannelJoinPending(channelType, [clubId], [streamId])

Arguments

channelTypeChatChannelType
clubIdClubId may be nil
streamIdClubStreamId may be nil

Returns

isPendingbool

C_VoiceChat.IsDeafened

isDeafened = C_VoiceChat.IsDeafened()

Returns

isDeafenedbool may be nil

C_VoiceChat.IsEnabled

isEnabled = C_VoiceChat.IsEnabled()

Returns

isEnabledbool

C_VoiceChat.IsLoggedIn

isLoggedIn = C_VoiceChat.IsLoggedIn()

Returns

isLoggedInbool

C_VoiceChat.IsMemberLocalPlayer

isLocalPlayer = C_VoiceChat.IsMemberLocalPlayer(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

isLocalPlayerbool

C_VoiceChat.IsMemberMuted

mutedForMe = C_VoiceChat.IsMemberMuted(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

mutedForMebool may be nil

C_VoiceChat.IsMemberMutedForAll

mutedForAll = C_VoiceChat.IsMemberMutedForAll(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

mutedForAllbool may be nil

C_VoiceChat.IsMemberSilenced

silenced = C_VoiceChat.IsMemberSilenced(memberID, channelID)

Arguments

memberIDVoiceChatID
channelIDVoiceChatID

Returns

silencedbool may be nil

C_VoiceChat.IsMuted

isMuted = C_VoiceChat.IsMuted()

Returns

isMutedbool may be nil

C_VoiceChat.IsParentalDisabled

isParentalDisabled = C_VoiceChat.IsParentalDisabled()

Returns

isParentalDisabledbool

C_VoiceChat.IsParentalMuted

isParentalMuted = C_VoiceChat.IsParentalMuted()

Returns

isParentalMutedbool

C_VoiceChat.IsPlayerUsingVoice

isUsingVoice = C_VoiceChat.IsPlayerUsingVoice(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

isUsingVoicebool

C_VoiceChat.IsSilenced

isSilenced = C_VoiceChat.IsSilenced()

Returns

isSilencedbool may be nil

C_VoiceChat.IsSpeakForMeActive

isActive = C_VoiceChat.IsSpeakForMeActive()

Returns

isActivebool

C_VoiceChat.IsSpeakForMeAllowed

isAllowed = C_VoiceChat.IsSpeakForMeAllowed()

Returns

isAllowedbool

C_VoiceChat.IsTranscribing

isTranscribing = C_VoiceChat.IsTranscribing()

Returns

isTranscribingbool

C_VoiceChat.IsTranscriptionAllowed

isAllowed = C_VoiceChat.IsTranscriptionAllowed()

Returns

isAllowedbool

C_VoiceChat.IsVoiceChatConnected

connected = C_VoiceChat.IsVoiceChatConnected()

Returns

connectedbool

C_VoiceChat.LeaveChannel

C_VoiceChat.LeaveChannel(channelID)

Arguments

channelIDVoiceChatID

C_VoiceChat.Login

status = C_VoiceChat.Login([channelType])

Arguments

channelTypeChatChannelType may be nil

Returns

statusVoiceChatStatusCode

C_VoiceChat.Logout

status = C_VoiceChat.Logout()

Returns

statusVoiceChatStatusCode

C_VoiceChat.MarkChannelsDiscovered

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

C_VoiceChat.RequestJoinAndActivateCommunityStreamChannel(clubId, streamId)

Arguments

clubIdClubId
streamIdClubStreamId

C_VoiceChat.RequestJoinChannelByChannelType

C_VoiceChat.RequestJoinChannelByChannelType(channelType, [autoActivate])

Arguments

channelTypeChatChannelType
autoActivatebool may be nil

C_VoiceChat.RestoreActiveVoiceProvider

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

changedbool

C_VoiceChat.SetActiveVoiceProvider

success = C_VoiceChat.SetActiveVoiceProvider(voiceProviderID)

Changes the active voice provider without changing the preferred voice provider.

Arguments

voiceProviderIDVoiceProviderID

Returns

successbool

C_VoiceChat.SetCommunicationMode

C_VoiceChat.SetCommunicationMode(communicationMode)

Arguments

communicationModeCommunicationMode

C_VoiceChat.SetDeafened

C_VoiceChat.SetDeafened(isDeafened)

Arguments

isDeafenedbool

C_VoiceChat.SetInputDevice

C_VoiceChat.SetInputDevice(deviceID)

Arguments

deviceIDstring

C_VoiceChat.SetInputVolume

C_VoiceChat.SetInputVolume(volume)

Arguments

volumenumber

C_VoiceChat.SetMasterVolumeScale

C_VoiceChat.SetMasterVolumeScale(scale)

Arguments

scalenumber

C_VoiceChat.SetMemberMuted

C_VoiceChat.SetMemberMuted(playerLocation, muted)

Arguments

playerLocationPlayerLocation
mutedbool

C_VoiceChat.SetMemberVolume

C_VoiceChat.SetMemberVolume(playerLocation, volume)

Adjusts member volume across all channels

Arguments

playerLocationPlayerLocation
volumenumber

C_VoiceChat.SetMuted

C_VoiceChat.SetMuted(isMuted)

Arguments

isMutedbool

C_VoiceChat.SetOutputDevice

C_VoiceChat.SetOutputDevice(deviceID)

Arguments

deviceIDstring

C_VoiceChat.SetOutputVolume

C_VoiceChat.SetOutputVolume(volume)

Arguments

volumenumber

C_VoiceChat.SetPortraitTexture

C_VoiceChat.SetPortraitTexture(textureObject, memberID, channelID)

Arguments

textureObjectSimpleTexture
memberIDVoiceChatID
channelIDVoiceChatID

C_VoiceChat.SetPushToTalkBinding

C_VoiceChat.SetPushToTalkBinding(keys)

Arguments

keysstring[]

C_VoiceChat.SetVADSensitivity

C_VoiceChat.SetVADSensitivity(sensitivity)

Arguments

sensitivitynumber

C_VoiceChat.ShouldDiscoverChannels

shouldDiscoverChannels = C_VoiceChat.ShouldDiscoverChannels()

Use this while loading to determine if the UI should attempt to rediscover the previously joined/active voice channels

Returns

shouldDiscoverChannelsbool

C_VoiceChat.SpeakRemoteTextSample

C_VoiceChat.SpeakRemoteTextSample(text)

Arguments

textstring

C_VoiceChat.SpeakText

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

voiceIDnumber
textcstring
ratenumber
volumenumber
overlapbool default false

C_VoiceChat.StopSpeakingText

C_VoiceChat.StopSpeakingText()

C_VoiceChat.ToggleDeafened

C_VoiceChat.ToggleDeafened()

C_VoiceChat.ToggleMemberMuted

C_VoiceChat.ToggleMemberMuted(playerLocation)

Arguments

playerLocationPlayerLocation

C_VoiceChat.ToggleMuted

C_VoiceChat.ToggleMuted()

Events

VOICE_CHAT_ACTIVE_INPUT_DEVICE_UPDATED

No payload.

VOICE_CHAT_ACTIVE_OUTPUT_DEVICE_UPDATED

No payload.

VOICE_CHAT_ACTIVE_VOICE_PROVIDER_CHANGED

voiceProviderIDVoiceProviderID

VOICE_CHAT_AUDIO_CAPTURE_ENERGY

isSpeakingbool
energynumber

VOICE_CHAT_AUDIO_CAPTURE_STARTED

No payload.

VOICE_CHAT_AUDIO_CAPTURE_STOPPED

No payload.

VOICE_CHAT_CHANNEL_ACTIVATED

channelIDVoiceChatID

VOICE_CHAT_CHANNEL_DEACTIVATED

channelIDVoiceChatID

VOICE_CHAT_CHANNEL_DISPLAY_NAME_CHANGED

channelIDVoiceChatID
channelDisplayNamecstring

VOICE_CHAT_CHANNEL_JOINED

statusVoiceChatStatusCode
channelIDVoiceChatID
channelTypeChatChannelType
clubIdClubId may be nil
streamIdClubStreamId may be nil

VOICE_CHAT_CHANNEL_MEMBER_ACTIVE_STATE_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
isActivebool

VOICE_CHAT_CHANNEL_MEMBER_ADDED

memberIDVoiceChatID
channelIDVoiceChatID

VOICE_CHAT_CHANNEL_MEMBER_ENERGY_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
speakingEnergynumber

VOICE_CHAT_CHANNEL_MEMBER_GUID_UPDATED

memberIDVoiceChatID
channelIDVoiceChatID

VOICE_CHAT_CHANNEL_MEMBER_MUTE_FOR_ALL_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
isMutedForAllbool

VOICE_CHAT_CHANNEL_MEMBER_MUTE_FOR_ME_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
isMutedForMebool

VOICE_CHAT_CHANNEL_MEMBER_REMOVED

memberIDVoiceChatID
channelIDVoiceChatID

VOICE_CHAT_CHANNEL_MEMBER_SILENCED_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
isSilencedbool

VOICE_CHAT_CHANNEL_MEMBER_SPEAKING_STATE_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
isSpeakingbool

VOICE_CHAT_CHANNEL_MEMBER_STT_MESSAGE

memberIDVoiceChatID
channelIDVoiceChatID
messagestring
languagestring

VOICE_CHAT_CHANNEL_MEMBER_VOLUME_CHANGED

memberIDVoiceChatID
channelIDVoiceChatID
volumenumber

VOICE_CHAT_CHANNEL_MUTE_STATE_CHANGED

channelIDVoiceChatID
isMutedbool

VOICE_CHAT_CHANNEL_PTT_CHANGED

channelIDVoiceChatID
pushToTalkSettingcstring

VOICE_CHAT_CHANNEL_REMOVED

channelIDVoiceChatID

VOICE_CHAT_CHANNEL_TRANSCRIBING_CHANGED

channelIDVoiceChatID
isTranscribingbool

VOICE_CHAT_CHANNEL_TRANSMIT_CHANGED

channelIDVoiceChatID
isTransmittingbool

VOICE_CHAT_CHANNEL_VOLUME_CHANGED

channelIDVoiceChatID
volumenumber

VOICE_CHAT_COMMUNICATION_MODE_CHANGED

communicationModeCommunicationMode

VOICE_CHAT_CONNECTION_SUCCESS

No payload.

VOICE_CHAT_DEAFENED_CHANGED

isDeafenedbool

VOICE_CHAT_DISCORD_SETTINGS_UPDATED

No payload.

VOICE_CHAT_ERROR

platformCodenumber
statusCodeVoiceChatStatusCode

VOICE_CHAT_INPUT_DEVICES_UPDATED

No payload.

VOICE_CHAT_LOGIN

statusVoiceChatStatusCode

VOICE_CHAT_LOGOUT

statusVoiceChatStatusCode

VOICE_CHAT_MUTED_CHANGED

isMutedbool

VOICE_CHAT_OUTPUT_DEVICES_UPDATED

No payload.

VOICE_CHAT_PENDING_CHANNEL_JOIN_STATE

channelTypeChatChannelType
clubIdClubId may be nil
streamIdClubStreamId may be nil
pendingJoinbool

VOICE_CHAT_PTT_BUTTON_PRESSED_STATE_CHANGED

isPressedbool

VOICE_CHAT_SILENCED_CHANGED

isSilencedbool

VOICE_CHAT_SPEAK_FOR_ME_ACTIVE_STATUS_UPDATED

No payload.

VOICE_CHAT_SPEAK_FOR_ME_FEATURE_STATUS_UPDATED

No payload.

VOICE_CHAT_TTS_PLAYBACK_BOOKMARK

utteranceIDnumber
bookmarkNamecstring

VOICE_CHAT_TTS_PLAYBACK_FAILED

utteranceIDnumber
statusVoiceTtsStatusCode

VOICE_CHAT_TTS_PLAYBACK_FINISHED

utteranceIDnumber

VOICE_CHAT_TTS_PLAYBACK_STARTED

utteranceIDnumber

VOICE_CHAT_TTS_SPEAK_TEXT_UPDATE

statusVoiceTtsStatusCode
utteranceIDnumber

VOICE_CHAT_TTS_VOICES_UPDATE

No payload.

VOICE_CHAT_VAD_SETTINGS_UPDATED

No payload.

VOICE_CHAT_VOICE_PROVIDER_CHANGED

voiceProviderIDVoiceProviderID

VOICE_CHAT_VOICE_PROVIDERS_AVAILABLE_CHANGED

No payload.

Tables

Enum.CommunicationMode enumeration

PushToTalk0
OpenMic1

Enum.VoiceChannelErrorReason enumeration

Unknown0
IsBattleNetChannel1

Enum.VoiceChatStatusCode enumeration

Success0
OperationPending1
TooManyRequests2
LoginProhibited3
ClientNotInitialized4
ClientNotLoggedIn5
ClientAlreadyLoggedIn6
ChannelNameTooShort7
ChannelNameTooLong8
ChannelAlreadyExists9
AlreadyInChannel10
TargetNotFound11
Failure12
ServiceLost13
UnableToLaunchProxy14
ProxyConnectionTimeOut15
ProxyConnectionUnableToConnect16
ProxyConnectionUnexpectedDisconnect17
Disabled18
UnsupportedChatChannelType19
InvalidCommunityStream20
PlayerSilenced21
PlayerVoiceChatParentalDisabled22
InvalidInputDevice23
InvalidOutputDevice24
PlayerVoiceChatAgeVerificationRestricted25

Enum.VoiceProviderID enumeration

Legacy0
Discord1

Enum.VoiceTtsStatusCode enumeration

Success0
InvalidEngineType1
EngineAllocationFailed2
NotSupported3
MaxCharactersExceeded4
UtteranceBelowMinimumDuration5
InputTextEnqueued6
SdkNotInitialized7
DestinationQueueFull8
EnqueueNotNecessary9
UtteranceNotFound10
ManagerNotFound11
InvalidArgument12
InternalError13

VoiceAudioDevice structure

deviceIDstring
displayNamestring
isActivebool
isSystemDefaultbool
isCommsDefaultbool

VoiceChatChannel structure

namestring
channelIDVoiceChatID
channelTypeChatChannelType
clubIdClubId
streamIdClubStreamId
volumenumber
isActivebool
isMutedbool
isTransmittingbool
isTranscribingbool
membersVoiceChatMember[]

VoiceChatMember structure

energynumber
memberIDVoiceChatID
isActivebool
isSpeakingbool
isMutedForAllbool
isSilencedbool

VoiceChatProcess structure

namestring
channelsVoiceChatChannel[]

VoiceTtsVoiceType structure

voiceIDnumber
namestring

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows