From de0ac7fd71cd0384e95f52cab605e679451fba12 Mon Sep 17 00:00:00 2001 From: anthony Date: Sat, 5 Mar 2016 13:33:03 -0500 Subject: [PATCH] Fix version check --- speech_recognition/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech_recognition/__init__.py b/speech_recognition/__init__.py index 8bbb5381..775768c7 100644 --- a/speech_recognition/__init__.py +++ b/speech_recognition/__init__.py @@ -3,7 +3,7 @@ """Library for performing speech recognition with support for Google Speech Recognition, Wit.ai, IBM Speech to Text, and AT&T Speech to Text.""" __author__ = "Anthony Zhang (Uberi)" -__version__ = "3.3.2" +__version__ = "3.3.3" __license__ = "BSD" import io, os, subprocess, wave, base64 @@ -79,12 +79,12 @@ def get_pyaudio(): """ try: import pyaudio - return pyaudio except ImportError: raise AttributeError("Could not find PyAudio; check installation") from distutils.version import LooseVersion if LooseVersion(pyaudio.__version__) < LooseVersion("0.2.9"): raise AttributeError("PyAudio 0.2.9 or later is required (found version {0})".format(pyaudio.__version__)) + return pyaudio @staticmethod def list_microphone_names():