Adding loglevel panic to suppress FFmpeg logs when running STT locally.

This commit is contained in:
Robert Brisita 2024-04-10 14:53:16 -04:00
parent d796c9fc69
commit 991cba8d09
1 changed files with 1 additions and 1 deletions

View File

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