diff --git a/aider/voice.py b/aider/voice.py index a5cae1ca1..47fb49c6e 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -6,7 +6,6 @@ import time import warnings from prompt_toolkit.shortcuts import prompt -from pydub import AudioSegment from aider.llm import litellm @@ -16,6 +15,8 @@ warnings.filterwarnings( "ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work" ) +from pydub import AudioSegment # noqa + try: import soundfile as sf except (OSError, ModuleNotFoundError):