diff --git a/speech_recognition/__init__.py b/speech_recognition/__init__.py index cfd71f34..9b46e636 100644 --- a/speech_recognition/__init__.py +++ b/speech_recognition/__init__.py @@ -78,8 +78,8 @@ def get_pyaudio(): Imports the pyaudio module and checks its version. Throws exceptions if pyaudio can't be found or a wrong version is installed """ try: - import pyaudio - return pyaudio + import pyaudio + return pyaudio except ImportError: raise AttributeError("Could not find PyAudio; check installation") from distutils.version import LooseVersion