Skip to content

Python tool for converting files and office documents to Markdown.

Small fixes for autogen integration. (#1124)

afourney09df7fe8df2e
diff --git a/packages/markitdown/src/markitdown/__about__.py b/packages/markitdown/src/markitdown/__about__.py
index 5e345b60..463e0c70 100644
--- a/packages/markitdown/src/markitdown/__about__.py
+++ b/packages/markitdown/src/markitdown/__about__.py
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Adam Fourney <[email protected]>
#
# SPDX-License-Identifier: MIT
-__version__ = "0.1.0a2"
+__version__ = "0.1.0a3"
diff --git a/packages/markitdown/src/markitdown/converters/_transcribe_audio.py b/packages/markitdown/src/markitdown/converters/_transcribe_audio.py
index 3d021732..71c432b4 100644
--- a/packages/markitdown/src/markitdown/converters/_transcribe_audio.py
+++ b/packages/markitdown/src/markitdown/converters/_transcribe_audio.py
@@ -7,7 +7,14 @@ from .._exceptions import MissingDependencyException
# Save reporting of any exceptions for later
_dependency_exc_info = None
try:
+ # Suppress some deprecation warnings from the speech_recognition library
+ import warnings
+
+ warnings.filterwarnings(
+ "ignore", category=DeprecationWarning, module="speech_recognition"
+ )
import speech_recognition as sr
+
import pydub
except ImportError:
# Preserve the error and stack trace for later