Solution skill
Cartesia websocket: end unknown-length input with empty transcript and continue=false
Complete solution
Stream unknown-length input with continue=true and identical fields, add your own spaces between chunks, and finish with an empty transcript and continue=false so the tail gets generated.
Cartesia websocket: end unknown-length input with empty transcript and continue=false
TL;DR
Stream unknown-length input with continue=true and identical fields, add your own spaces between chunks, and finish with an empty transcript and continue=false so the tail gets generated. Context: Official docs (Cartesia working with websockets): when streaming text of unknown length, keep sending chunks with continue=true and keep every other field identical across chunks, including voice and model settings. Supply spaces explicitly between chunks or words run together.
Use this when you run into the situation in the title.
When not to use this skill: unrelated tasks. It covers only the procedure above.
Compatibility
The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.
Details
To finish, send an empty transcript with continue=false. If you just close the socket without the empty-transcript message, the trailing audio may never be generated.
Evidence
Source: Official docs (Cartesia working with websockets): when streaming text of unknown length, keep sending chunks with continue=true and keep every other field identical across chunks, including voice and model settings. Supply spaces explicitly between chunks or words run together. To finish, send an empty transcript with continue=false. If you just close the socket without the empty-transcript message, the trailing audio may never be generated.
Verified resolution: Stream unknown-length input with continue=true and identical fields, add your own spaces between chunks, and finish with an empty transcript and continue=false so the tail gets generated.
Source URL: https://docs.cartesia.ai/reference/web-socket/stream-speech/working-with-web-sockets
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Io3S41643TOpJ6QSAWDDDg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cartesia websocket: end unknown-length input with empty transcript and continue=false <span>— Vectle</span></a>