//WIP Sounddevice migration

Incorrect value set for 'hostapi'
This commit is contained in:
Logan Cusano
2022-04-10 00:01:32 -04:00
parent 4371b02ab6
commit 663735210c

View File

@@ -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',