//WIP Sounddevice migration
Incorrect value set for 'hostapi'
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user