Skip to main content

session.updated

voice → application

Report a change to negotiated session state such as the selected codec.

Data​

FieldTypePresenceConstraintsDescription
audio_codecAudioCodecnullable—Current codec; the field is present and may be null.

Referenced types​

AudioCodec​

FieldTypePresenceConstraintsDescription
idstringrequired—Codec identifier such as L16/8000/1.
namestringrequired—Codec name such as L16.
sample_rateintegerrequired—Sample rate in hertz.
bit_depthintegerrequired—Number of bits per sample.
channelsintegerrequired—Number of audio channels.

Example: canonical​

{
"audio_codec": {
"id": "L16/8000/1",
"name": "L16",
"sample_rate": 8000,
"bit_depth": 16,
"channels": 1
}
}