diff --git a/docs/speech-to-text/realtime/realtime_diarization.mdx b/docs/speech-to-text/realtime/realtime_diarization.mdx index 0b9e0d9..fd5b57d 100644 --- a/docs/speech-to-text/realtime/realtime_diarization.mdx +++ b/docs/speech-to-text/realtime/realtime_diarization.mdx @@ -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.