Merge pull request #27 from tengattack/patch/nonapimode

Fix undefined variable 'tik' for non-API mode
This commit is contained in:
mini-omni 2024-09-05 21:25:40 +03:00 committed by GitHub
commit f076c72070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,7 @@ def process_audio(audio):
except Exception as e:
print(f"error: {e}")
else:
tik = time.time()
for chunk in omni_client.run_AT_batch_stream(filepath):
# Convert chunk to numpy array
if cnt == 0: