GVME > CS > Tutorials > Server
Remove ads!
Based on GVME Community!

Your rating: N/A
Total votes: 0

You cannot rating yet!
You can rate anything - when you add rating to a submission your vote determines its success or failure.

To vote on this submission
register or login

You cannot add to Favorites!
Total Favorites

You cannot say thanks!
You must register or login

Scores and popularity
Views: 1024
Downloads: 8
Feedback: 0

Voice Compression HLDS

Share: F F F F F F F
  Added by: exeqtR
  Category: Counter-Strike > Server
Difficulty Level: Begginer
  Tags: Voice Compression HLDS
There is a high probability that your server won't be running off a T1 connection, it will probably be running out of business cable which won't have a lot of bandwidth. Without a lot of bandwidth people will lag and eventually leave, so administrators always try to optimize theirs servers as much as possible to use less bandwidth. Voice communications used a lot of bandwidth... Until today!

Valve has added the support for the Speex voice encoder. By default, HLDS is set to use the old MILES codec that uses almost 32kbps of your bandwidth compared to the Speex codec that can use from 2.4kbps 15.2kbps (depending on which one you select). Be warned that Speex will use more CPU cycles than MILES... On my 500mhz server, it uses only 2 or 4 percents more CPU!

Enabling Speex is not a difficult task. You enable it with CVARS... First, you need to enable Speex itself by using the sv_voicecodec voice_speex CVAR and then you configure which quality you want by using ONE of these CVARS.

CVAR Quality (in KBPS) Percent of bandwidth used compared to MILES
sv_voicequality 1    2.4    7.5%
sv_voicequality 2    6    18.75%
sv_voicequality 3    8    25%
sv_voicequality 4    11,2    35%
sv_voicequality 5    15,2    47.5%

And for all the non-geeks out there, here is a simpler version of the table:
CVAR Quality
sv_voicequality 1    Very bad
sv_voicequality 2    Bad
sv_voicequality 3    Medium
sv_voicequality 4    Good
sv_voicequality 5    Crystal-Clear! (Best)
sv_voicequality 2 would be perhaps an excellent choice for a server who has mediocre bandwidth and want good voice quality.

Finnaly, I'm giving you a code example of what you should have in your server.cfg file if you wanted to have the Speex codec enabled at the voice quality 2
sv_voicecodec voice_speex
sv_voicequality 2
  Added: Feb 21 2021, 01:17 AM    Modified: Never edited!    Thanks List: [+]      
Add Feedback

You cannot post yet!
Get involved on GVME by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login