TeamSpeak 3 supports the following sound sampling rates:
Speex Narrowband (8 kHz)
Speex Wideband (16 kHz)
Speex Ultra-Wideband (32 kHz)
Celt (Mono, 48kHz)
Opus Voice (Mono, 48khz)
Opus Music (Stereo, 48khz)
Opus Voice is recommended for voice transmission. Speex and Celt codecs may be removed in future versions of this SDK.
Bandwidth usage generally depends on the used codec and the encoders quality setting.
Estimated bitrates (bps) for codecs per quality:
|Quality||Narrowband||Wideband||Ultra-Wideband||Celt||Opus Voice||Opus Music|
Change the quality to find a good middle between voice quality and bandwidth usage. Overall the Opus codec delivers the best quality per used bandwidth.
Users need to use the same codec when talking to each others. The smallest unit of participants using the same codec is a channel. Different channels on the same TeamSpeak 3 server can use different codecs. The channel codec should be customizable by the users to allow for flexibility concerning bandwidth vs. quality concerns.
The codec can be set or changed for a given channel using the function
ts3client_setChannelVariableAsInt by passing
CHANNEL_CODEC for the properties flag:
ts3client_setChannelVariableAsInt(scHandlerID, channelID, CHANNEL_CODEC, codec);
Available values for
0 - Speex Narrowband)
1 - Speex Wideband
2 - Speex Ultra-Wideband
3 - Celt
4 - Opus Voice
5 - Opus Music
For details on using the function
ts3client_setChannelVariableAsInt see the appropriate section on changing channel data.