From c2f56ed11ea74673a481c438ac103b8ba96427ea Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Thu, 1 Feb 2024 13:13:23 -0500 Subject: [PATCH] fix: we only ever want to see errors from pydub, no debug info --- readalongs/audio_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readalongs/audio_utils.py b/readalongs/audio_utils.py index 7ba85f7c..8d0dd405 100644 --- a/readalongs/audio_utils.py +++ b/readalongs/audio_utils.py @@ -4,12 +4,16 @@ in millisecond slices and lets us manipulate them as if they were simple lists. """ +import logging from typing import Union from pydub import AudioSegment from readalongs.log import LOGGER +# quiet pydub's logging +logging.getLogger("pydub.converter").setLevel(logging.ERROR) + def join_section(audio: AudioSegment, audio_to_insert: AudioSegment, start: int): """Given two AudioSegments, insert the second into the first at start (ms)"""