VoiceState
@vimp-mp/types 2.0.1Snapshot of the local voice subsystem state.
ts
interface VoiceStateMembers
activeChannelId
ts
activeChannelId: number | nullSelected channel ID, or null when no channel is selected.
degradedAec
ts
degradedAec: booleanWhether acoustic echo cancellation is running in degraded mode.
enabled
ts
enabled: booleanWhether voice is enabled for this client.
error
ts
error: string | nullCurrent user-facing voice error, or null.
errorCode
ts
errorCode?: string | nullStable source code for the current error. Added fields may be absent on older runtimes.
errorReason
ts
errorReason?: VoiceErrorReason | nullStable reason suitable for localized UI. Added fields may be absent on older runtimes.
inputAvailable
ts
inputAvailable: booleanWhether a usable audio input device is available.
inputLevel
ts
inputLevel: numberCurrent microphone input level.
isTalking
ts
isTalking: booleanWhether the local player is transmitting voice audio.
outputAvailable
ts
outputAvailable: booleanWhether a usable audio output device is available.
serverDeafened
ts
serverDeafened: booleanWhether the server prevents the local player from receiving audio.
serverMuted
ts
serverMuted: booleanWhether the server prevents the local player from transmitting.