Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions api-reference/asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ info:
3. **Client** streams TextEvent messages with text chunks
4. **Server** streams back AudioEvent messages with generated audio
5. **Client** sends CloseEvent to signal completion
6. **Server** sends FinishEvent and closes connection
6. **Server** sends FinishEvent. After a session that completed (reason='stop'), the connection stays open: send another StartEvent to run a new session on it, or close it with code 1000

## Message Serialization

Expand Down Expand Up @@ -332,7 +332,7 @@ components:
Signals the end of the text stream.

After sending this event, the server will finish synthesizing any remaining
buffered text and send a FinishEvent before closing the connection.
buffered text and send a FinishEvent. The connection stays open.
examples:
- payload:
event: stop
Expand Down Expand Up @@ -395,7 +395,11 @@ components:
- If reason='stop', synthesis completed successfully
- If reason='error', an error occurred (client should handle gracefully)

The WebSocket connection will close after this event.
After a session that completed (reason='stop'), the WebSocket connection
stays open. To run another session, send a new StartEvent on it.
When you no longer need the connection, close it
with code 1000. An open connection between sessions
does not count against your concurrency limit.
examples:
- payload:
event: finish
Expand Down
Loading