public enum Codec extends Enum<Codec>
A channel's codec may be edited by using TS3Api.editChannel(int, Map)
.
All voice data may also be encrypted.
Enum Constant and Description |
---|
CELT_MONO
The CELT Mono codec.
|
OPUS_MUSIC
The Opus codec optimised for music transmission.
|
OPUS_VOICE
The Opus codec optimised for voice transmission.
|
SPEEX_NARROWBAND
The Speex narrowband codec with a sampling rate of 8kHz.
|
SPEEX_ULTRAWIDEBAND
The Speex ultra-wideband codec with a sampling rate of 32kHz.
|
SPEEX_WIDEBAND
The Speex wideband codec with a sampling rate of 16kHz.
|
UNKNOWN
An unknown codec.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
static Codec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Codec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Codec SPEEX_NARROWBAND
All Speex codecs are basically obsolete as Opus is better in every aspect and has a comparable required bandwidth.
public static final Codec SPEEX_WIDEBAND
All Speex codecs are basically obsolete as Opus is better in every aspect and has a comparable required bandwidth.
public static final Codec SPEEX_ULTRAWIDEBAND
All Speex codecs are basically obsolete as Opus is better in every aspect and has a comparable required bandwidth.
public static final Codec CELT_MONO
Note that this codec requires the most bandwidth of all currently available codecs.
public static final Codec OPUS_VOICE
This is the default codec used by TeamSpeak and usually achieves the best results for voice transmission.
public static final Codec OPUS_MUSIC
Please note that if used only to transmit speech, this codec can sound worse than Opus Voice despite a higher bandwidth.
public static Codec[] values()
for (Codec c : Codec.values()) System.out.println(c);
public static Codec valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getIndex()
Copyright © 2018. All rights reserved.