From 991cba8d09ca6731ea4e930984fd12aa3b8539e3 Mon Sep 17 00:00:00 2001 From: Robert Brisita <986796+rbrisita@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:53:16 -0400 Subject: [PATCH] Adding loglevel panic to suppress FFmpeg logs when running STT locally. --- software/source/server/services/stt/local-whisper/stt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/source/server/services/stt/local-whisper/stt.py b/software/source/server/services/stt/local-whisper/stt.py index 1c2743b2..a92a703c 100644 --- a/software/source/server/services/stt/local-whisper/stt.py +++ b/software/source/server/services/stt/local-whisper/stt.py @@ -156,7 +156,7 @@ def stt_wav(service_directory, wav_file_path: str): temp_dir, f"output_stt_{datetime.now().strftime('%Y%m%d%H%M%S%f')}.wav" ) ffmpeg.input(wav_file_path).output( - output_path, acodec="pcm_s16le", ac=1, ar="16k" + output_path, acodec="pcm_s16le", ac=1, ar="16k", loglevel="panic" ).run() try: transcript = get_transcription_file(service_directory, output_path)