mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-13 00:26:42 +03:00
suppress info logs from faster_whisper
This commit is contained in:
parent
dacdcafd35
commit
123b2705b5
@ -141,6 +141,8 @@ class FasterWhisperASR(ASRBase):
|
|||||||
def transcribe(self, audio, init_prompt=""):
|
def transcribe(self, audio, init_prompt=""):
|
||||||
from faster_whisper import BatchedInferencePipeline
|
from faster_whisper import BatchedInferencePipeline
|
||||||
|
|
||||||
|
logging.getLogger("faster_whisper").setLevel(logging.WARNING)
|
||||||
|
|
||||||
# tested: beam_size=5 is faster and better than 1 (on one 200 second document from En ESIC, min chunk 0.01)
|
# tested: beam_size=5 is faster and better than 1 (on one 200 second document from En ESIC, min chunk 0.01)
|
||||||
batched_model = BatchedInferencePipeline(model=self.model)
|
batched_model = BatchedInferencePipeline(model=self.model)
|
||||||
segments, info = batched_model.transcribe(
|
segments, info = batched_model.transcribe(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user