Python tool for converting files and office documents to Markdown.
fix: suppress pydub RuntimeWarning when ffmpeg is missing (fixes #1685) (#1985)
hanhan761c870d492842e
diff --git a/packages/markitdown/src/markitdown/converters/_transcribe_audio.py b/packages/markitdown/src/markitdown/converters/_transcribe_audio.pyindex df2fd76f..6d64d4ea 100644--- a/packages/markitdown/src/markitdown/converters/_transcribe_audio.py+++ b/packages/markitdown/src/markitdown/converters/_transcribe_audio.py@@ -13,6 +13,12 @@ try:with warnings.catch_warnings():warnings.filterwarnings("ignore", category=DeprecationWarning)warnings.filterwarnings("ignore", category=SyntaxWarning)+ warnings.filterwarnings(+ "ignore",+ category=RuntimeWarning,+ message=".*ffmpeg.*",+ append=True,+ )import speech_recognition as srimport pydubexcept ImportError: