Added in API level 12
Deprecated in API level 31

AudioCodec


public class AudioCodec
extends Object

java.lang.Object
   ↳ android.net.rtp.AudioCodec


This class was deprecated in API level 31.
SipManager and associated classes are no longer supported and should not be used as the basis of future VOIP apps.

This class defines a collection of audio codecs to be used with AudioStreams. Their parameters are designed to be exchanged using Session Description Protocol (SDP). Most of the values listed here can be found in RFC 3551, while others are described in separated standards.

Few simple configurations are defined as public static instances for the convenience of direct uses. More complicated ones could be obtained using getCodec(int,String,String). For example, one can use the following snippet to create a mode-1-only AMR codec.

 AudioCodec codec = AudioCodec.getCodec(100, "AMR/8000", "mode-set=1");
 

See also:

Summary

Fields

public static final AudioCodec AMR

Adaptive Multi-Rate narrowband audio codec, also known as AMR or AMR-NB.

public static final AudioCodec GSM

GSM Full-Rate audio codec, also known as GSM-FR, GSM 06.10, GSM, or simply FR.

public static final AudioCodec GSM_EFR

GSM Enhanced Full-Rate audio codec, also known as GSM-EFR, GSM 06.60, or simply EFR.

public static final AudioCodec PCMA

G.711 a-law audio codec.

public static final AudioCodec