@@ -35,16 +35,12 @@ class AllocAudioBufferResponse(_message.Message):
3535 def __init__ (self , buffer : _Optional [_Union [AudioFrameBufferInfo , _Mapping ]] = ...) -> None : ...
3636
3737class NewAudioStreamRequest (_message .Message ):
38- __slots__ = ["room_handle" , "participant_sid" , "track_sid" , "type" ]
39- ROOM_HANDLE_FIELD_NUMBER : _ClassVar [int ]
40- PARTICIPANT_SID_FIELD_NUMBER : _ClassVar [int ]
41- TRACK_SID_FIELD_NUMBER : _ClassVar [int ]
38+ __slots__ = ["track_handle" , "type" ]
39+ TRACK_HANDLE_FIELD_NUMBER : _ClassVar [int ]
4240 TYPE_FIELD_NUMBER : _ClassVar [int ]
43- room_handle : _handle_pb2 .FfiHandleId
44- participant_sid : str
45- track_sid : str
41+ track_handle : _handle_pb2 .FfiHandleId
4642 type : AudioStreamType
47- def __init__ (self , room_handle : _Optional [_Union [_handle_pb2 .FfiHandleId , _Mapping ]] = ..., participant_sid : _Optional [ str ] = ..., track_sid : _Optional [ str ] = ..., type : _Optional [_Union [AudioStreamType , str ]] = ...) -> None : ...
43+ def __init__ (self , track_handle : _Optional [_Union [_handle_pb2 .FfiHandleId , _Mapping ]] = ..., type : _Optional [_Union [AudioStreamType , str ]] = ...) -> None : ...
4844
4945class NewAudioStreamResponse (_message .Message ):
5046 __slots__ = ["stream" ]
@@ -53,10 +49,12 @@ class NewAudioStreamResponse(_message.Message):
5349 def __init__ (self , stream : _Optional [_Union [AudioStreamInfo , _Mapping ]] = ...) -> None : ...
5450
5551class NewAudioSourceRequest (_message .Message ):
56- __slots__ = ["type" ]
52+ __slots__ = ["type" , "options" ]
5753 TYPE_FIELD_NUMBER : _ClassVar [int ]
54+ OPTIONS_FIELD_NUMBER : _ClassVar [int ]
5855 type : AudioSourceType
59- def __init__ (self , type : _Optional [_Union [AudioSourceType , str ]] = ...) -> None : ...
56+ options : AudioSourceOptions
57+ def __init__ (self , type : _Optional [_Union [AudioSourceType , str ]] = ..., options : _Optional [_Union [AudioSourceOptions , _Mapping ]] = ...) -> None : ...
6058
6159class NewAudioSourceResponse (_message .Message ):
6260 __slots__ = ["source" ]
@@ -119,14 +117,12 @@ class AudioFrameBufferInfo(_message.Message):
119117 def __init__ (self , handle : _Optional [_Union [_handle_pb2 .FfiHandleId , _Mapping ]] = ..., data_ptr : _Optional [int ] = ..., num_channels : _Optional [int ] = ..., sample_rate : _Optional [int ] = ..., samples_per_channel : _Optional [int ] = ...) -> None : ...
120118
121119class AudioStreamInfo (_message .Message ):
122- __slots__ = ["handle" , "type" , "track_sid" ]
120+ __slots__ = ["handle" , "type" ]
123121 HANDLE_FIELD_NUMBER : _ClassVar [int ]
124122 TYPE_FIELD_NUMBER : _ClassVar [int ]
125- TRACK_SID_FIELD_NUMBER : _ClassVar [int ]
126123 handle : _handle_pb2 .FfiHandleId
127124 type : AudioStreamType
128- track_sid : str
129- def __init__ (self , handle : _Optional [_Union [_handle_pb2 .FfiHandleId , _Mapping ]] = ..., type : _Optional [_Union [AudioStreamType , str ]] = ..., track_sid : _Optional [str ] = ...) -> None : ...
125+ def __init__ (self , handle : _Optional [_Union [_handle_pb2 .FfiHandleId , _Mapping ]] = ..., type : _Optional [_Union [AudioStreamType , str ]] = ...) -> None : ...
130126
131127class AudioStreamEvent (_message .Message ):
132128 __slots__ = ["handle" , "frame_received" ]
@@ -142,6 +138,16 @@ class AudioFrameReceived(_message.Message):
142138 frame : AudioFrameBufferInfo
143139 def __init__ (self , frame : _Optional [_Union [AudioFrameBufferInfo , _Mapping ]] = ...) -> None : ...
144140
141+ class AudioSourceOptions (_message .Message ):
142+ __slots__ = ["echo_cancellation" , "noise_suppression" , "auto_gain_control" ]
143+ ECHO_CANCELLATION_FIELD_NUMBER : _ClassVar [int ]
144+ NOISE_SUPPRESSION_FIELD_NUMBER : _ClassVar [int ]
145+ AUTO_GAIN_CONTROL_FIELD_NUMBER : _ClassVar [int ]
146+ echo_cancellation : bool
147+ noise_suppression : bool
148+ auto_gain_control : bool
149+ def __init__ (self , echo_cancellation : bool = ..., noise_suppression : bool = ..., auto_gain_control : bool = ...) -> None : ...
150+
145151class AudioSourceInfo (_message .Message ):
146152 __slots__ = ["handle" , "type" ]
147153 HANDLE_FIELD_NUMBER : _ClassVar [int ]
0 commit comments