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

VOICE_POSITIONAL

CS:GO

This command, if set to 1, will make the volume of voices (player microphones) correspond to their distance from eachother. Players close to eachother would be louder than those at greater distances. Default is 0 (disabled).

Syntax
voice_positional [0 / 1]

Description

This command, if set to 1, will make the volume of voices (player microphones) correspond to their distance from eachother. Players close to eachother would be louder than those at greater distances. Default is 0 (disabled).

Syntax And Arguments

voice_positional [0 / 1]
0 / 1 Set to 0 to disable positional voices (normal voice chat). Set to 1 to make the volume of voices change based on the distances between players.