session.updated
Report a change to negotiated session state such as the selected codec.
Data
| Field | Type | Presence | Constraints | Description |
|---|---|---|---|---|
audio_codec | AudioCodec | nullable | — | Current codec; the field is present and may be null. |
Referenced types
AudioCodec
| Field | Type | Presence | Constraints | Description |
|---|---|---|---|---|
id | string | required | — | Codec identifier such as L16/8000/1. |
name | string | required | — | Codec name such as L16. |
sample_rate | integer | required | — | Sample rate in hertz. |
bit_depth | integer | required | — | Number of bits per sample. |
channels | integer | required | — | Number of audio channels. |
Example: canonical
{
"audio_codec": {
"id": "L16/8000/1",
"name": "L16",
"sample_rate": 8000,
"bit_depth": 16,
"channels": 1
}
}