Small fixes for autogen integration. (#1124)

This commit is contained in:
afourney 2025-03-12 19:18:11 -07:00 committed by GitHub
parent 6a9f09b153
commit 09df7fe8df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Adam Fourney <adamfo@microsoft.com>
#
# SPDX-License-Identifier: MIT
__version__ = "0.1.0a2"
__version__ = "0.1.0a3"

View File

@ -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