103 yield b"".join([f.bytes for f in voiced_frames])
104 ring_buffer.clear()
105 voiced_frames = []
106 if triggered:107 pass
108 # If we have any leftover voiced audio when we run out of input,
109 # yield it.
In most cases, an empty body of for
, while
or if
implies some piece of code is missing.
Such empty block must be either filled or removed.
for i in range(10):
pass
for i in range(10):
print(i)