Issue Description
When using the Cartesia WebSocket API to send multiple sentences sequentially with delays between messages (e.g., 5 seconds), the API prematurely returns response.done = true despite the continue: true flag being set in the message.
Reproduction Steps
- Connect to Cartesia WebSocket API
- Send multiple sentences sequentially with
continue: true - Add a delay between sentences (e.g.,
5 secondstimeout)
Expected Behavior
response.doneshould only betrueafter the last sentence is processed
Actual Behavior
response.done = trueis received prematurely- Subsequent
timestampsreceived after the "timeout" are restarted from timing 0
Context
In my project, I'm integrating Cartesia with an LLM that generates text in real-time. The LLM takes time to generate each sentence, causing natural delays between WebSocket messages.