Test the input before opening the game
If your audio software provides a virtual microphone, select it under Settings → System → Sound → Input. Run the microphone test and speak a few sentences. If there is no signal, check whether your audio software uses the correct physical microphone.
Check the CS2 input
Select the virtual input in CS2 Audio settings if it appears. If the game uses the system input, set the device as the Windows default first. Ask a teammate in a private practice session to check whether they can understand you and hear the start of each sentence.
Switch back to your regular voice
Select the physical microphone again in CS2 or Windows. Run another test. If your voice disappears when you close the audio software, check whether its virtual input is still selected.