Messages
{
"event": "media",
"stream_id": "str-456",
"media": {
"payload": "AAEC/f7..."
}
}{
"event": "mark",
"stream_id": "str-456",
"mark": {
"name": "mark-1"
}
}{
"event": "clear",
"stream_id": "str-456"
}{
"event": "connected",
"event_time": "2024-01-15T10:30:00Z"
}{
"event": "start",
"event_time": "2024-01-15T10:30:00Z",
"call_id": "abc-123",
"stream_id": "str-456",
"stream_type": "twoway",
"channel": "both",
"sequence_number": 1
}{
"event": "media",
"event_time": "2024-01-15T10:30:01Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 2,
"media": {
"payload": "AAEC/f7...",
"track": "inbound",
"timestamp": 160,
"chunk": 1
}
}{
"event": "mark",
"event_time": "2024-01-15T10:30:02Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 10,
"mark": {
"name": "end-of-greeting"
}
}{
"event": "stop",
"event_time": "2024-01-15T10:30:05Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 100
}Websockets
Call streaming
Bidirectional WebSocket channel for call audio streaming. Wavix opens the connection when a stream starts and closes it when the call ends.
WSS
{servicePath}
Messages
{
"event": "media",
"stream_id": "str-456",
"media": {
"payload": "AAEC/f7..."
}
}{
"event": "mark",
"stream_id": "str-456",
"mark": {
"name": "mark-1"
}
}{
"event": "clear",
"stream_id": "str-456"
}{
"event": "connected",
"event_time": "2024-01-15T10:30:00Z"
}{
"event": "start",
"event_time": "2024-01-15T10:30:00Z",
"call_id": "abc-123",
"stream_id": "str-456",
"stream_type": "twoway",
"channel": "both",
"sequence_number": 1
}{
"event": "media",
"event_time": "2024-01-15T10:30:01Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 2,
"media": {
"payload": "AAEC/f7...",
"track": "inbound",
"timestamp": 160,
"chunk": 1
}
}{
"event": "mark",
"event_time": "2024-01-15T10:30:02Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 10,
"mark": {
"name": "end-of-greeting"
}
}{
"event": "stop",
"event_time": "2024-01-15T10:30:05Z",
"call_id": "abc-123",
"stream_id": "str-456",
"sequence_number": 100
}media
type:object
Audio chunk to play back into the call.
mark
type:object
Marker used to track playback completion.
clear
type:object
Clear buffered audio.
connected
type:object
Connection established.
start
type:object
Stream started.
media
type:object
Audio chunk captured from the call.
mark
type:object
Playback acknowledgment for the preceding media message.
stop
type:object
Stream ended.
Was this page helpful?
⌘I