Skip to content

ChannelDefinition

Structure Class

ChannelDefinition dataclass

Bases: _SerdeShape

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 = ...

Specify the audio channel you want to define.

participant_role instance-attribute
participant_role: str

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