Team Fortress 2

Team Fortress 2

109 ratings
[TF2] Improving voice-chat quality
By Traumschlaf
This guide shows and roughly explains on how to improve voice-chat quality in tf2

(Clarification: This improves how you hear others ingame, and this is also the main focus in this guide)
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Intro
Prenote/requirement:

This guide expects from you to at least know how to open the console and start a local server and how to edit potential autoexec.cfg or whatever xxx.cfg you are using to execute commands.



It is also required that you disable "Steam cloud syncronisation" for tf2 only as it could interfere with saving your settings that you have made


Known to many people, Tf2's default/vanilla settings sometimes aren't the most optimal to say at least.

This also goes for the voice chat ingame.

Ever wondered why some players sound terrible when they use voice chat in tf2 and others don't?

You might think: "yeah well maybe his microphone is bad or so" but that's not enterily true.

This is easily re-produceable, as easy going to discord and running microphone test under the "settings" same goes for steam voice.

(tf2 uses steam voice codec which is equally good as OPUS codec)

To check how you sound in tf2 you could:-


Boot up a local server and join a team (make sure that you enabled voice chat before starting the server), then type in the console voice_loopback 1 <-this command allows us to hear your own voice when you use voice-chat ingame.

The function of this command is wonky when it comes to detecting your voice, to mitigate this you need to keep talking random stuff so it sends your voice properly.


After you are done testing set the above mentioned command back to 0 and disconnect from the local server.
Reason why voice quality can sound bad
The reason of the poor quality is mainly caused by this one command called voice_maxgain,
in its default state its 10.

This controls the volume of the voice chat, allowing you to set it from 0-Any number.

A value of 10 equals 10dB (or at least i think so judging by the tests i have done) assuming that 5 intruduces NO voice volume boost,
10 would apply 5dB additional boost for the voice chat volume,
which also increases anything that shouldn't be boosted.
(aka background noises and overcontrolling/peaks caused by too much volume gain)
Rough explanation of some commands and improving the voice-chat quality
Thankfully the game has some commands to work-around that problem without downsides.


The following commands must be changed before joining a server maybe even before starting the game:
(the reason is because these commands don't properly accept any new value that you pass in the console, might be because this controls master-volume too so it needs to be set when the game is not running?)


voice_overdrive
Default value: 2


This command controls how much the ingame environment volume should be dampen incase someone starts to talk in dB
(note: despite the commands description in the game, the values that are used for this are in dB and not by factor or percentage, having a value of 2 will make the game environment temporarily 2dB quiter if someone talks ingame)

-------------------------------------------------------------------------------------

voice_overdrivefadetime
Default value: 0.4


Controls how long the fade time is and how fast it releases the dampening of the game environment volume,
this usually doesn't need any changes as it is pretty optimal, you can however experiment around.

----------------------------------------------------------------------------------




The following commands can be changed midgame and take in effect after any voice-chatting is finished:


voice_scale
Default value: 1


Controls the scale of the voice-chat ingame, now this one is something you probably shouldn't touch.
Scaling the voice-chat anything past 1 just worsens the quality and intruduces peaks & overcontrolling
Lowering might not help as well.
A value of 0 mutes voice-chat without disabling it. (very usefull)

----------------------------------------------------------------------------------------------------


voice_steal
Default value: Unkown? (or at least i couldnt figure out what the default value was lol)


Voice steal is a free pass for improving sound quality, a value of 2 tells the game to "steal" the least used channel and thereby improving overrall sound quality.
(might improve sound/voice-stability aswell, anyways its worth to have this set to 2)

------------------------------------------------------------------------------------------------------


voice_fadeouttime
Default value: 0.1


Pretty self explanatory, controls the fade for voice-chat basically like voice_overdrivefadeouttime but only for voice.
Default value is fine, you are free to experiment with it tho.

-----------------------------------------------------------------------------------------------------


voice_buffer_ms
Default value: 100


Control for how long your voice should be buffered to account for frame-time differences and ping spikes and so on and so fort-.
A value of 100 is fine, but you can try around for lower values, a value too low can impact your voice quality so be aware of that.

---------------------------------------------------------------------------------------------------


voice_avggain
Default value: 0.5

I have found i think the function of this, and it might be pretty noticeable.
However it only works if actually someone else speaks, that means this command can't be tested
locally.
This controls the amount uhm.. how strong the voicechat should get averaged?
Basically makes voicechat considerably lower or louder.
A value of 1 makes voice-chat lower.
A value of 0 applies no averaging on the voice-chat at all. (might make voice-chat too loud)
Is what i think?
I'm still unsure wheter this is true or not true
-----------------------------------------------------------------------------------------------------
Theoretical optimal values
This is what i basically use, please note that if you use voice_scale 0 to mute the voice-chat - voice_overdrive will still work and dampen the environment-volume of the game:



Decent compromise:
voice_maxgain 6
voice_overdrive 4
voice_avggain 0.3

(This dampens the environment volume around 40% if someone talks in voice-chat while still having a decent amount of volume for the voice-chat itself)

--------------------------------------------------------------------


Best possible voice-quality:
voice_maxgain 5
voice_overdrive 8
voice_avggain 0.1

(This should pretty much dampen the environment volume to up to 70-80%? and allows you to have discord near voice-chat quality, with this change - any additional volume boost for the voice-chat is disabled )

-----------------------------------------------------------------------
The end
You are free to share this guide, if you think that this was helpful!
Thank you for reading and have a nice day!

85 Comments
Traumschlaf  [author] Jan 30 @ 7:43am 
no problem, hmm very odd, i don't think i have an idea as to why it behaves like that
Ranzero Jan 30 @ 7:27am 
Please accept our apologies for waiting so long for a response. I checked it on the local server using the command voice_ loopback 1. It doesn't recognize it.
Traumschlaf  [author] Jan 25 @ 4:31am 
or more specifically, are you testing it in a local server or do you have someone that can confirm that it is actually transmitting voice?
Traumschlaf  [author] Jan 25 @ 4:29am 
hmm, how are you testing this?
Ranzero Jan 25 @ 4:23am 
Although the voice chat verification indicator shows something different.
Ranzero Jan 25 @ 4:22am 
Yes. But Tf2 refuses to play the sounds I pressed.
Traumschlaf  [author] Jan 25 @ 4:19am 
if you play them through your mic, i think so?
Ranzero Jan 25 @ 4:17am 
Traum tell me. Is it possible to use programs to play sounds with these settings? (Soundpad or Voicemod).
Traumschlaf  [author] Nov 4, 2024 @ 12:06pm 
yw
Hertega Nov 4, 2024 @ 8:47am 
i get it, thank you anyway :)