Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Mar 5, 2016
1 parent adf85cb commit de0ac7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit de0ac7f

Please sign in to comment.