From 663735210c343566491d6ccedf314d450f3b760b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 10 Apr 2022 00:01:32 -0400 Subject: [PATCH] //WIP Sounddevice migration Incorrect value set for 'hostapi' --- NoiseGatev2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NoiseGatev2.py b/NoiseGatev2.py index 9602b35..c65d304 100644 --- a/NoiseGatev2.py +++ b/NoiseGatev2.py @@ -11,12 +11,12 @@ from pprint import pformat voice_connection = None LOGGER = logging.getLogger("Discord_Radio_Bot.NoiseGateV2") -DEFAULT = 48000 +DEFAULT = 0 # noinspection PyUnresolvedReferences class AudioStream: - def __init__(self, _channels: int = 2, _sample_rate: int = DEFAULT, _frames_per_buffer: int = 1024, + def __init__(self, _channels: int = 2, _sample_rate: int = 48000, _frames_per_buffer: int = 1024, _device_index: int = None, _init_on_startup: bool = True): self.sd_kwargs = { 'dtype': 'int16',