Update logger

This commit is contained in:
Yuta Hayashibe 2022-09-24 09:52:33 +09:00
parent 9cd80ab047
commit 85f9b8fc13
2 changed files with 2 additions and 1 deletions

View file

@ -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:

View file

@ -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