AudioCodec enum

Audio codecs supported by PortSIP SDK.

Each codec has a corresponding integer value that matches the AUDIOCODEC_TYPE enum from the native PortSIP SDK.

Codecs are categorized by bandwidth:

  • Narrowband (8 kHz): PCMU, PCMA, GSM, G.723, G.729, iLBC, Speex, AMR
  • Wideband (16 kHz): G.722, Speex WB, ISAC WB, AMR-WB, OPUS
  • Super-wideband (32 kHz): ISAC SWB

Example usage:

await portsip.setAudioCodecs(audioCodecs: [
  AudioCodec.opus,
  AudioCodec.pcmu,
  AudioCodec.pcma,
]);
Inheritance
Available extensions

Values

pcmu → const AudioCodec

PCMU (G.711 mu-law) narrowband audio codec

const AudioCodec(0)
gsm → const AudioCodec

GSM narrowband audio codec

const AudioCodec(3)
g723 → const AudioCodec

G.723 narrowband audio codec

const AudioCodec(4)
dvi4_8k → const AudioCodec

DVI4 8kHz audio codec

const AudioCodec(5)
dvi4_16k → const AudioCodec

DVI4 16kHz audio codec

const AudioCodec(6)
pcma → const AudioCodec

PCMA (G.711 A-law) narrowband audio codec

const AudioCodec(8)
g722 → const AudioCodec

G.722 wideband audio codec

const AudioCodec(9)
ilbc → const AudioCodec

iLBC narrowband audio codec

const AudioCodec(97)
speex → const AudioCodec

Speex narrowband audio codec

const AudioCodec(98)
speexWb → const AudioCodec

Speex wideband audio codec

const AudioCodec(99)
isacWb → const AudioCodec

ISAC wideband audio codec

const AudioCodec(100)
isacSwb → const AudioCodec

ISAC super-wideband audio codec

const AudioCodec(102)
g729 → const AudioCodec

G.729 narrowband audio codec

const AudioCodec(18)
opus → const AudioCodec

OPUS audio codec

const AudioCodec(111)
amr → const AudioCodec

AMR narrowband audio codec

const AudioCodec(112)
amrWb → const AudioCodec

AMR-WB wideband audio codec

const AudioCodec(113)
dtmf → const AudioCodec

DTMF (RFC 2833) telephone-event codec for transmitting DTMF tones in-band. Used for interactive voice response (IVR) systems and call control signaling.

const AudioCodec(101)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The integer value passed to the native SDK
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AudioCodec>
A constant List of the values in this enum, in order of their declaration.