fix: Suppress warning about missing ffmpeg or avconv

This commit is contained in:
Paul Gauthier (aider) 2024-09-24 09:28:13 -07:00
parent 6b5fe9bee3
commit da752bb00c

View file

@ -3,9 +3,12 @@ import os
import queue
import tempfile
import time
import warnings
from aider.llm import litellm
warnings.filterwarnings("ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work")
try:
import soundfile as sf
except (OSError, ModuleNotFoundError):