pyproject.toml
This commit is contained in:
parent
716f74dcb9
commit
e2eb82be7c
2 changed files with 7 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2024-present Adam Fourney <adamfo@microsoft.com>
|
# SPDX-FileCopyrightText: 2024-present Adam Fourney <adamfo@microsoft.com>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = "0.1.0a4"
|
__version__ = "0.1.0a5"
|
||||||
|
|
|
||||||
|
|
@ -7,20 +7,14 @@ from .._exceptions import MissingDependencyException
|
||||||
# Save reporting of any exceptions for later
|
# Save reporting of any exceptions for later
|
||||||
_dependency_exc_info = None
|
_dependency_exc_info = None
|
||||||
try:
|
try:
|
||||||
# Suppress some deprecation warnings from the speech_recognition library
|
# Suppress some warnings on library import
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
warnings.filterwarnings(
|
with warnings.catch_warnings():
|
||||||
"ignore", category=DeprecationWarning, module="speech_recognition"
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||||
)
|
warnings.filterwarnings("ignore", category=SyntaxWarning)
|
||||||
warnings.filterwarnings(
|
import speech_recognition as sr
|
||||||
"ignore",
|
import pydub
|
||||||
category=SyntaxWarning,
|
|
||||||
module="pydub", # TODO: Migrate away from pydub
|
|
||||||
)
|
|
||||||
import speech_recognition as sr
|
|
||||||
|
|
||||||
import pydub
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Preserve the error and stack trace for later
|
# Preserve the error and stack trace for later
|
||||||
_dependency_exc_info = sys.exc_info()
|
_dependency_exc_info = sys.exc_info()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue