receive_partial_transcripts property to the messages_config object:
Partial transcripts accuracy deteriorates when multiple languages and/or code switching are enabled. For best results, limit the number of languages.
receive_partial_transcripts is true, the real-time API will send transcript messages for both intermediate and final results.
To distinguish between them, the message payload includes the is_final boolean field.
"is_final": false: The message contains a partial transcript, which is subject to change."is_final": true: The message contains the final, most accurate transcript for an utterance. This transcript will not change.
data.id.
Treat that shared data.id as one utterance whose transcript changes over time. A newer partial replaces the previous provisional text for that utterance. When is_final is true, the final text replaces the provisional text. The resulting transcript contains one entry for that utterance—do not append each update as a separate line.