Skip to content

VoiceManager

@vimp-mp/types 2.0.1

Interface · Client API

Exposes local voice state, channels, and per-player playback controls.

ts
interface VoiceManager

Members

activeChannelId

ts
readonly activeChannelId: number | null

Selected voice channel ID, or null.

channels

ts
readonly channels: Array<VoiceChannelInfo>

Voice channels announced by the server.

enabled

ts
readonly enabled: boolean

Whether voice is currently enabled.

inputLevel

ts
readonly inputLevel: number

Current microphone input level.

isTalking

ts
readonly isTalking: boolean

Whether the local player is transmitting voice audio.

state

ts
readonly state: VoiceState

Current voice subsystem snapshot.

getPlayerVolume

ts
getPlayerVolume(player: number | Player): number

Returns the remote player's local playback multiplier.

isPlayerMuted

ts
isPlayerMuted(player: number | Player): boolean

Reports whether the remote player is muted by this client.

selectChannel

ts
selectChannel(id: number | null): void

Selects a voice channel, or clears the selection with null.

setPlayerMuted

ts
setPlayerMuted(player: number | Player, muted: boolean): void

Applies or removes a client-local playback mute for a remote player.

setPlayerVolume

ts
setPlayerVolume(player: number | Player, volume: number): boolean

Sets a remote player's local playback multiplier in the 0–2 range.

VIMP developer documentation