mirror of
https://github.com/shirayu/whispering.git
synced 2025-02-18 03:25:15 +00:00
Update logger
This commit is contained in:
parent
9cd80ab047
commit
85f9b8fc13
2 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,7 @@ def main() -> None:
|
||||||
opts = get_opts()
|
opts = get_opts()
|
||||||
basicConfig(
|
basicConfig(
|
||||||
level=DEBUG if opts.debug else INFO,
|
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:
|
if opts.beam_size <= 0:
|
||||||
|
|
|
@ -258,6 +258,7 @@ class WhisperStreamingTranscriber:
|
||||||
):
|
):
|
||||||
seek += segment.shape[-1]
|
seek += segment.shape[-1]
|
||||||
rest_start = None
|
rest_start = None
|
||||||
|
logger.debug(f"Skip: {segment.shape[-1]}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
segment_duration = segment.shape[-1] * HOP_LENGTH / SAMPLE_RATE
|
segment_duration = segment.shape[-1] * HOP_LENGTH / SAMPLE_RATE
|
||||||
|
|
Loading…
Reference in a new issue