Fix undefined variable 'tik' for non-API mode

This commit is contained in:
tengattack 2024-09-06 01:08:36 +08:00
parent ae04f97733
commit d9ca829c24
1 changed files with 1 additions and 0 deletions

View File

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