Skip to content

Commit

Permalink
fix: we only ever want to see errors from pydub, no debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Feb 1, 2024
1 parent 4326626 commit c2f56ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readalongs/audio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"""
Expand Down

0 comments on commit c2f56ed

Please sign in to comment.