Skip to content

Transcribe Streaming  >  Structures  >  ChannelDefinition

ChannelDefinition

Structure Class

ChannelDefinition dataclass

Makes it possible to specify which speaker is on which audio channel. For example, if your agent is the first participant to speak, you would set ChannelId to 0 (to indicate the first channel) and ParticipantRole to AGENT (to indicate that it's the agent speaking).

Attributes

channel_id class-attribute instance-attribute
channel_id: int = 0

Specify the audio channel you want to define.

participant_role instance-attribute
participant_role: ParticipantRole

Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.