Skip to main content
Send finalize to tell the model the user is done speaking. The signal can come from the user releasing a push-to-talk button, or from your own voice activity detection (VAD). Transcript events are deltas. To assemble the full transcript, concatenate the text from each is_final event without stripping whitespace.
Generates complete sentences and calls finalize after each one.In a real voice agent, you don’t know where sentence boundaries are ahead of time, so call finalize only when the user is done speaking.
From cartesia-python/examples/examples.py:746

Run this example