NB! It seems this console command is not compatible with CS2.
Command Profile
VOICE_RECORDTOFILE
CS:GO
This command, if enabled (1), will record microphone data and voice data to the files 'voice_micdata.wav' and 'voice_decompressed.wav'.
Syntax
voice_recordtofile [0 / 1]
Description
This command, if enabled (1), will record microphone data and voice data to the files 'voice_micdata.wav' and 'voice_decompressed.wav'.
Syntax And Arguments
voice_recordtofile [0 / 1]
| 0 / 1 | Set to 0 to disable recording to file (default). Set to 1 to enable recording voice to file. |