File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 66
77
88class AudioFilter :
9- def __init__ (
10- self , path : str , dependencies : Optional [List [str ]] = None
11- ) -> None :
9+ def __init__ (self , path : str , dependencies : Optional [List [str ]] = None ) -> None :
1210 self ._path = path
1311
1412 req = proto_ffi .FfiRequest ()
Original file line number Diff line number Diff line change @@ -231,7 +231,9 @@ def _create_owned_stream_from_participant(
231231 )
232232 audio_stream_from_participant .track_source = track_source
233233 if self ._audio_filter_module is not None :
234- audio_stream_from_participant .audio_filter_module_id = self ._audio_filter_module
234+ audio_stream_from_participant .audio_filter_module_id = (
235+ self ._audio_filter_module
236+ )
235237 if self ._audio_filter_options is not None :
236238 audio_stream_from_participant .audio_filter_options = json .dumps (
237239 self ._audio_filter_options
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class RoomOptions:
101101 audio_filters : List [ModuleType ] | None = None
102102 """Audio filters"""
103103
104+
104105@dataclass
105106class DataPacket :
106107 data : bytes
@@ -390,10 +391,12 @@ def on_participant_connected(participant):
390391 dependencies = deps ,
391392 )
392393 self ._filter_instances [module ] = audio_filter
393- req .connect .options .audio_filter_handles .append (proto_room .AudioFilterModule (
394- module_id = str (id (module )),
395- handle_id = audio_filter .handle (),
396- ))
394+ req .connect .options .audio_filter_handles .append (
395+ proto_room .AudioFilterModule (
396+ module_id = str (id (module )),
397+ handle_id = audio_filter .handle (),
398+ )
399+ )
397400
398401 # subscribe before connecting so we don't miss any events
399402 self ._ffi_queue = FfiClient .instance .queue .subscribe (self ._loop )
You can’t perform that action at this time.
0 commit comments