{
"type": "audio_chunk",
"data": {
"chunk": "UklGRiQAAABXQVZFZm10IBIAAAABAAEAESsAACJWAAACABAAZGF0YQAAAA=="
}
}
{}
{
"type": "stop_recording"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:10Z",
"type": "transcript",
"data": {
"id": "00-00000011",
"is_final": true,
"utterance": {
"start": 0,
"end": 0.48,
"confidence": 0.91,
"channel": 0,
"words": [
{
"word": "Hello",
"start": 0,
"end": 0.35,
"confidence": 0.91
},
{
"word": "world",
"start": 0.36,
"end": 0.48,
"confidence": 0.91
}
],
"text": "Hello world.",
"language": "en"
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:06Z",
"type": "speech_start",
"data": {
"time": 1.24,
"channel": 0
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:09Z",
"type": "speech_end",
"data": {
"time": 3.1,
"channel": 0
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:20Z",
"type": "translation",
"error": null,
"data": {
"utterance_id": "utt_001",
"utterance": {
"text": "buenos días",
"language": "es",
"start": 4.2,
"end": 6.1
},
"original_language": "es",
"target_language": "en",
"translated_utterance": {
"text": "good morning",
"language": "en",
"start": 4.2,
"end": 6.1
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:30Z",
"type": "named_entity_recognition",
"error": null,
"data": {
"utterance_id": "utt_002",
"utterance": {
"text": "meeting with Alice at 3pm",
"start": 7,
"end": 10.5
},
"results": [
{
"entity_type": "PERSON",
"text": "Alice",
"start": 2,
"end": 2.5
},
{
"entity_type": "TIME",
"text": "3pm",
"start": 3,
"end": 3.3
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:35Z",
"type": "sentiment_analysis",
"error": null,
"data": {
"utterance_id": "utt_003",
"utterance": {
"text": "I love this product!",
"start": 11,
"end": 13.2
},
"results": [
{
"sentiment": "positive",
"emotion": "joy",
"text": "love this product",
"start": 11.4,
"end": 12.9,
"channel": 0
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:40:00Z",
"type": "post_transcript",
"data": {
"full_transcript": "hello world"
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:45:00Z",
"type": "post_final_transcript",
"data": {
"metadata": {
"audio_duration": 123.45,
"number_of_distinct_channels": 1,
"billing_time": 120,
"transcription_time": 3.2
},
"transcription": {
"full_transcript": "hello world"
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:46:00Z",
"type": "post_chapterization",
"error": null,
"data": {
"results": [
{
"headline": "Project kickoff",
"start": 0,
"end": 60,
"keywords": [
"timeline",
"owner"
]
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:47:00Z",
"type": "post_summarization",
"error": null,
"data": {
"results": "The team aligned on goals and next steps for the quarter."
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:56Z",
"type": "audio_chunk",
"acknowledged": true,
"error": null,
"data": {
"byte_range": [
0,
4095
],
"time_range": [
0,
0.256
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:35:10Z",
"type": "stop_recording",
"acknowledged": true,
"error": null,
"data": {}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:00Z",
"type": "start_session"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:05Z",
"type": "start_recording"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:36:00Z",
"type": "end_recording",
"data": {
"reason": "user_request",
"received_total_bytes": 1048576
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:36:05Z",
"type": "end_session"
}
WebSocket to send audio chunks and receive events.
{
"type": "audio_chunk",
"data": {
"chunk": "UklGRiQAAABXQVZFZm10IBIAAAABAAEAESsAACJWAAACABAAZGF0YQAAAA=="
}
}
{}
{
"type": "stop_recording"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:10Z",
"type": "transcript",
"data": {
"id": "00-00000011",
"is_final": true,
"utterance": {
"start": 0,
"end": 0.48,
"confidence": 0.91,
"channel": 0,
"words": [
{
"word": "Hello",
"start": 0,
"end": 0.35,
"confidence": 0.91
},
{
"word": "world",
"start": 0.36,
"end": 0.48,
"confidence": 0.91
}
],
"text": "Hello world.",
"language": "en"
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:06Z",
"type": "speech_start",
"data": {
"time": 1.24,
"channel": 0
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:09Z",
"type": "speech_end",
"data": {
"time": 3.1,
"channel": 0
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:20Z",
"type": "translation",
"error": null,
"data": {
"utterance_id": "utt_001",
"utterance": {
"text": "buenos días",
"language": "es",
"start": 4.2,
"end": 6.1
},
"original_language": "es",
"target_language": "en",
"translated_utterance": {
"text": "good morning",
"language": "en",
"start": 4.2,
"end": 6.1
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:30Z",
"type": "named_entity_recognition",
"error": null,
"data": {
"utterance_id": "utt_002",
"utterance": {
"text": "meeting with Alice at 3pm",
"start": 7,
"end": 10.5
},
"results": [
{
"entity_type": "PERSON",
"text": "Alice",
"start": 2,
"end": 2.5
},
{
"entity_type": "TIME",
"text": "3pm",
"start": 3,
"end": 3.3
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:35Z",
"type": "sentiment_analysis",
"error": null,
"data": {
"utterance_id": "utt_003",
"utterance": {
"text": "I love this product!",
"start": 11,
"end": 13.2
},
"results": [
{
"sentiment": "positive",
"emotion": "joy",
"text": "love this product",
"start": 11.4,
"end": 12.9,
"channel": 0
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:40:00Z",
"type": "post_transcript",
"data": {
"full_transcript": "hello world"
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:45:00Z",
"type": "post_final_transcript",
"data": {
"metadata": {
"audio_duration": 123.45,
"number_of_distinct_channels": 1,
"billing_time": 120,
"transcription_time": 3.2
},
"transcription": {
"full_transcript": "hello world"
}
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:46:00Z",
"type": "post_chapterization",
"error": null,
"data": {
"results": [
{
"headline": "Project kickoff",
"start": 0,
"end": 60,
"keywords": [
"timeline",
"owner"
]
}
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:47:00Z",
"type": "post_summarization",
"error": null,
"data": {
"results": "The team aligned on goals and next steps for the quarter."
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:56Z",
"type": "audio_chunk",
"acknowledged": true,
"error": null,
"data": {
"byte_range": [
0,
4095
],
"time_range": [
0,
0.256
]
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:35:10Z",
"type": "stop_recording",
"acknowledged": true,
"error": null,
"data": {}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:00Z",
"type": "start_session"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:34:05Z",
"type": "start_recording"
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:36:00Z",
"type": "end_recording",
"data": {
"reason": "user_request",
"received_total_bytes": 1048576
}
}
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2025-09-19T12:36:05Z",
"type": "end_session"
}
Send audio bytes as base64-encoded chunk.
Send audio bytes as a binary WebSocket frame.
Inform Gladia that recording is over.
This message contains the informations about the transcript of the audio chunk.
Indicates the start of detected speech activity on a given channel.
Indicates the end of detected speech activity.
This message contains the informations about the translation of the audio chunk.
This message contains the informations about the named entity recognition of the audio chunk.
This message contains the informations about the sentiment analysis of the audio chunk.
This message contains the informations about the post transcript of the audio chunk.
This message contains the informations about the post final transcript of the audio chunk.
This message contains the informations about the post chapterization of the audio chunk.
This message contains the informations about the post summarization of the audio chunk.
This message contains the informations about the audio chunk acknowledgment of the audio chunk.
This message contains the informations about the stop recording acknowledgment of the audio chunk.
This message contains the informations about the start session of the audio chunk.
This message contains the informations about the start recording of the audio chunk.
This message contains the informations about the end recording of the audio chunk.
This message contains the informations about the end session of the audio chunk.