diff --git a/aider/voice.py b/aider/voice.py index aca5995ae..c60dee69d 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -6,6 +6,9 @@ import time import warnings from aider.llm import litellm +from prompt_toolkit.shortcuts import prompt +from pydub import AudioSegment +from .dump import dump # noqa: F401 warnings.filterwarnings( "ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work" @@ -16,11 +19,6 @@ try: except (OSError, ModuleNotFoundError): sf = None -from prompt_toolkit.shortcuts import prompt -from pydub import AudioSegment - -from .dump import dump # noqa: F401 - class SoundDeviceError(Exception): pass