title: Traceback AttributeError: module 'pyaudio' has no attribute '__version__'
body: <p>I intalled SppechRecognition and when I worte</p>
  <pre><code>import speech_recognition as sr
  
  # obtain audio from the microphone
  r = sr.Recognizer()
  with sr.Microphone() as source:
      print(&quot;Say something!&quot;)
      audio = r.listen(source)
  try:
      # for testing purposes, we're just using the default API key
      # to use another API key, use `r.recognize_google(audio, key=&quot;GOOGLE_SPEECH_RECOGNITION_API_KEY&quot;)`
      # instead of `r.recognize_google(audio)`
      print(&quot;Google Speech Recognition thinks you said &quot; + r.recognize_google(audio))
  except sr.UnknownValueError:
      print(&quot;Google Speech Recognition could not understand audio&quot;)
  except sr.RequestError as e:
      print(&quot;Could not request results from Google Speech Recognition service; {0}&quot;.format(e))
  </code></pre>
  <p>The above problem occurred.
  The same question was asked over here, but the solution didn't help me!
  <a href="https://stackoverflow.com/q/55507226/11589463">AttributeError: module &#39;pyaudio&#39; has no attribute &#39;__version__&#39;</a>
  Please help me!</p>
  <p>My Terminal Output:-</p>
  <pre><code>Traceback (most recent call last):
  
  File &quot;c:/Users/samar/OneDrive/Desktop/MAIN/projects/Jarvis/jarvis.py&quot;, line 4, in &lt;module&gt;
      with sr.Microphone() as source:
  
  File &quot;C:\Users\samar\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py&quot;, line 79, in __init__
      self.pyaudio_module = self.get_pyaudio()
  
  File &quot;C:\Users\samar\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py&quot;, line 112, in get_pyaudio
      if LooseVersion(pyaudio.__version__) &lt; LooseVersion(&quot;0.2.11&quot;):
  AttributeError: module 'pyaudio' has no attribute '__version__'
  </code></pre>