diff --git a/NoiseGate-v2.py b/NoiseGate-v2.py index a06e0c5..7381b52 100644 --- a/NoiseGate-v2.py +++ b/NoiseGate-v2.py @@ -7,11 +7,11 @@ from threading import Thread sound_buffer = [] -class AudioSteam(Thread): +class AudioStream(Thread): def __init__(self, _channels: int = 1, _sample_rate: int = 48000, _frames_per_buffer: int = 2048, _input_device_index: int = None, _output_device_index: int = None, _input: bool = True, _output: bool = True): - super(AudioSteam, self).__init__() + super(AudioStream, self).__init__() self.paInstance_kwargs = { 'format': pyaudio.paFloat32, 'channels': _channels, @@ -91,7 +91,7 @@ class AudioSteam(Thread): self.paInstance.get_device_info_by_host_api_device_index(0, i).get('name')) -class NoiseGate(AudioSteam): +class NoiseGate(AudioStream): def __init__(self, **kwargs): super().__init__(**kwargs)