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
21 changes: 21 additions & 0 deletions docs/speech-to-text/realtime/realtime_diarization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,27 @@ Transcripts are returned in the same way as channel diarization, but with indivi

When using `channel_and_speaker` diarization, speaker labelling is specific to channels even if the speaker labels are the same. S1 on channel 1 is not necessarily the same as S1 on channel 2.

## Closing Channels

When you're finished with a channel, you can signal that it's no longer in use by sending an [EndOfChannel](../../api-ref/realtime-transcription-websocket#endofchannel) message.
```json
{
// highlight-start
"message": "EndOfChannel",
"channel": "New_York",
"last_seq_no": 2564
// highlight-end
}
```

Once this happens, the channel will stop accepting or processing any additional data. When all channels are closed, the session ends. This may be more convenient to use when you don't want to keep track of the number of open channels in a given stream.

You can also use [EndOfStream](../../api-ref/realtime-transcription-websocket#endofstream) to simultaneously close all channels. This may be more convenient to use when you know you want to close all channels at the same time.

:::info
At this time, closing an individual channel has no impact on pricing.
:::

### Limits

For SaaS customers, the maximum number of channels is 2.
Expand Down