NB! It seems this console command is not compatible with CS2.
Command Profile

VOICE_CASTER_ENABLE

CS:GO

This command sets whether or not voice casting is enabled, and if so, the account number of the user who is casting. We assume (untested) that the account number is the 3 ID of the caster without the STEAM_0:1 part of the ID. Format is usually STEAM_0:1:#####.

Syntax
voice_caster_enable [0 / Account #]

Description

This command sets whether or not voice casting is enabled, and if so, the account number of the user who is casting. We assume (untested) that the account number is the 3 ID of the caster without the STEAM_0:1 part of the ID. Format is usually STEAM_0:1:#####.

How To Use voice_caster_enable

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter voice_caster_enable [0 / Account #], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

voice_caster_enable [0 / Account #]
0 / Account # Set to 0 to disable (default). Specify the account number (Steam ID without the STEAM_0:1: part) of the caster here to enable.