Skip to main content
Real-Time The Full Transcript feature provides a cumulative transcript that accumulates all transcription text received up to the current point in the session. This is useful for maintaining a complete transcript of the entire conversation or audio stream.

Enabling Full Transcript

Add full_transcript=true to your WebSocket connection query parameters when connecting to the Lightning STT WebSocket API. The default is false.

Real-Time WebSocket API

const url = new URL("wss://waves-api.smallest.ai/api/v1/lightning/get_text");
url.searchParams.append("language", "en");
url.searchParams.append("encoding", "linear16");
url.searchParams.append("sample_rate", "16000");
url.searchParams.append("full_transcript", "true");

const ws = new WebSocket(url.toString(), {
  headers: {
    Authorization: `Bearer ${API_KEY}`,
  },
});

Output Format & Field of Interest

The full_transcript field contains the complete transcription text accumulated from the beginning of the session. This field is only included in responses where full_transcript=true query parameter is set AND is_final=true, ensuring you receive the complete transcript only when a segment is finalized.

Sample Response

{
  "session_id": "sess_12345abcde",
  "transcript": "How are you doing today?",
  "is_final": true,
  "is_last": false,
  "full_transcript": "Hello, my name is John. How are you doing today?",
  "language": "en",
  "languages": ["en"]
}

Response Fields

FieldTypeWhen IncludedDescription
full_transcriptstringfull_transcript=true AND is_final=trueComplete transcription text accumulated from the start of the session
transcriptstringAlwaysPartial or complete transcription text for the current segment
is_finalbooleanAlwaysIndicates if this is the final transcription for the current segment