Wayy slower mic prerol

This commit is contained in:
Ruben van de Ven 2019-04-12 11:45:04 +02:00
parent 66c7e55c1f
commit c1c871a27f

View file

@ -49,7 +49,7 @@ class VoiceServer(object):
self.hugvey = hugvey self.hugvey = hugvey
self.chunk = 4096 self.chunk = 4096
self.mic_prerol_sec = .3 self.mic_prerol_sec = .05
self.prerol_frame_count = math.ceil(self.input_rate / self.chunk) self.prerol_frame_count = math.ceil(self.input_rate / self.chunk)
self.prerol_frames = collections.deque(maxlen = self.prerol_frame_count) self.prerol_frames = collections.deque(maxlen = self.prerol_frame_count)