Skip to content

VoiceState

@vimp-mp/types 2.0.1

Interface · Client API

Snapshot of the local voice subsystem state.

ts
interface VoiceState

Members

activeChannelId

ts
activeChannelId: number | null

Selected channel ID, or null when no channel is selected.

degradedAec

ts
degradedAec: boolean

Whether acoustic echo cancellation is running in degraded mode.

enabled

ts
enabled: boolean

Whether voice is enabled for this client.

error

ts
error: string | null

Current user-facing voice error, or null.

errorCode

ts
errorCode?: string | null

Stable source code for the current error. Added fields may be absent on older runtimes.

errorReason

ts
errorReason?: VoiceErrorReason | null

Stable reason suitable for localized UI. Added fields may be absent on older runtimes.

inputAvailable

ts
inputAvailable: boolean

Whether a usable audio input device is available.

inputLevel

ts
inputLevel: number

Current microphone input level.

isTalking

ts
isTalking: boolean

Whether the local player is transmitting voice audio.

outputAvailable

ts
outputAvailable: boolean

Whether a usable audio output device is available.

serverDeafened

ts
serverDeafened: boolean

Whether the server prevents the local player from receiving audio.

serverMuted

ts
serverMuted: boolean

Whether the server prevents the local player from transmitting.

VIMP developer documentation