@@ -55,7 +55,7 @@ def __init__(
5555 capacity : int = 0 ,
5656 sample_rate : int = 48000 ,
5757 num_channels : int = 1 ,
58- krisp : Optional [Tuple [str , dict [str , Any ]]] = None ,
58+ noise_cancellation : Optional [Tuple [str , dict [str , Any ]]] = None ,
5959 ** kwargs ,
6060 ) -> None :
6161 """Initialize an `AudioStream` instance.
@@ -93,9 +93,9 @@ def __init__(
9393
9494 self ._audio_filter_module = None
9595 self ._audio_filter_options = None
96- if krisp is not None :
97- self ._audio_filter_module = krisp [0 ]
98- self ._audio_filter_options = krisp [1 ]
96+ if noise_cancellation is not None :
97+ self ._audio_filter_module = noise_cancellation [0 ]
98+ self ._audio_filter_options = noise_cancellation [1 ]
9999 self ._task = self ._loop .create_task (self ._run ())
100100 self ._task .add_done_callback (task_done_logger )
101101
@@ -119,7 +119,7 @@ def from_participant(
119119 capacity : int = 0 ,
120120 sample_rate : int = 48000 ,
121121 num_channels : int = 1 ,
122- krisp : Optional [Tuple [str , dict [str , Any ]]] = None ,
122+ noise_cancellation : Optional [Tuple [str , dict [str , Any ]]] = None ,
123123 ) -> AudioStream :
124124 """Create an `AudioStream` from a participant's audio track.
125125
@@ -152,7 +152,7 @@ def from_participant(
152152 track = None , # type: ignore
153153 sample_rate = sample_rate ,
154154 num_channels = num_channels ,
155- krisp = krisp ,
155+ noise_cancellation = noise_cancellation ,
156156 )
157157
158158 @classmethod
@@ -164,7 +164,7 @@ def from_track(
164164 capacity : int = 0 ,
165165 sample_rate : int = 48000 ,
166166 num_channels : int = 1 ,
167- krisp : Optional [Tuple [str , dict [str , Any ]]] = None ,
167+ noise_cancellation : Optional [Tuple [str , dict [str , Any ]]] = None ,
168168 ) -> AudioStream :
169169 """Create an `AudioStream` from an existing audio track.
170170
@@ -193,7 +193,7 @@ def from_track(
193193 capacity = capacity ,
194194 sample_rate = sample_rate ,
195195 num_channels = num_channels ,
196- krisp = krisp ,
196+ noise_cancellation = noise_cancellation ,
197197 )
198198
199199 def __del__ (self ) -> None :
0 commit comments