Fix linter errors
This commit is contained in:
parent
b5a3e328da
commit
5465747e37
|
@ -22,6 +22,7 @@ class Audio(object):
|
|||
|
||||
def __init__(self, callback=None, device=None, input_rate=RATE_PROCESS, file=None):
|
||||
def proxy_callback(in_data, frame_count, time_info, status):
|
||||
#pylint: disable=unused-argument
|
||||
if self.chunk is not None:
|
||||
in_data = self.wf.readframes(self.chunk)
|
||||
callback(in_data)
|
||||
|
@ -178,7 +179,8 @@ def main(ARGS):
|
|||
|
||||
# Stream from microphone to DeepSpeech using VAD
|
||||
spinner = None
|
||||
if not ARGS.nospinner: spinner = Halo(spinner='line')
|
||||
if not ARGS.nospinner:
|
||||
spinner = Halo(spinner='line')
|
||||
stream_context = model.createStream()
|
||||
wav_data = bytearray()
|
||||
for frame in frames:
|
||||
|
|
Loading…
Reference in New Issue