From 678aa92365a6d0e80d7b0efeb34e8b5819fbedf6 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Fri, 23 Sep 2022 20:26:32 +0900 Subject: [PATCH] Improved time output --- whisper_streaming/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper_streaming/cli.py b/whisper_streaming/cli.py index eac7422..5d0607c 100644 --- a/whisper_streaming/cli.py +++ b/whisper_streaming/cli.py @@ -42,7 +42,7 @@ def transcribe_from_mic( while True: segment = q.get() for chunk in wsp.transcribe(segment=segment): - print(f"{chunk.start}->{chunk.end}\t{chunk.text}") + print(f"{chunk.start:.2f}->{chunk.end:.2f}\t{chunk.text}") def get_opts() -> argparse.Namespace: