diff --git a/whisper_streaming/cli.py b/whisper_streaming/cli.py index 12630eb..33b53db 100644 --- a/whisper_streaming/cli.py +++ b/whisper_streaming/cli.py @@ -98,7 +98,7 @@ def main() -> None: opts = get_opts() basicConfig( level=DEBUG if opts.debug else INFO, - format="[%(asctime)s] %(module)s.%(funcName)s %(levelname)s -> %(message)s", + format="[%(asctime)s] %(module)s.%(funcName)s:%(lineno)d %(levelname)s -> %(message)s", ) if opts.beam_size <= 0: diff --git a/whisper_streaming/transcriber.py b/whisper_streaming/transcriber.py index c2d3968..7037ffb 100644 --- a/whisper_streaming/transcriber.py +++ b/whisper_streaming/transcriber.py @@ -258,6 +258,7 @@ class WhisperStreamingTranscriber: ): seek += segment.shape[-1] rest_start = None + logger.debug(f"Skip: {segment.shape[-1]}") continue segment_duration = segment.shape[-1] * HOP_LENGTH / SAMPLE_RATE