fix: address PR review comments on StreamingTranscriptionClient

This commit is contained in:
Quang Tran
2026-07-08 22:45:06 +07:00
parent f4f1b1d8be
commit a71c578570
4 changed files with 186 additions and 18 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ def main():
print("\n[INFO] Final transcript:")
for seg in client.transcript:
print(f" [{float(seg['start']):.2f}s → {float(seg['end']):.2f}s] {seg['text'].strip()}")
if client.last_partial:
seg = client.last_segment
seg = client.last_partial
if seg:
print(f" [{float(seg['start']):.2f}s → {float(seg['end']):.2f}s] {seg['text'].strip()} (partial)")