title: Could not find PyAudio; check installation
body: <p>I am working on a Python project which needs PyAudio, This is the code bellow:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import pyttsx3
  import speech_recognition as sr
  import os
  def take_commands():
      r = sr.Recognizer()
      with sr.Microphone() as source:
          print('Listening')
          r.pause_threshold = 0.7
          audio = r.listen(source)
          try:
              print("Recognizing")
              Query = r.recognize_google(audio)
              print("the query is printed='", Query, "'")
          except Exception as e:
              print(e)
              print("Say that again sir")
              return "None"
      import time
      time.sleep(2)
      return Query
  
  def Speak(audio):
      engine = pyttsx3.init()
      engine.say(audio)
      engine.runAndWait()
  
  Speak("Do you want to shutdown your computer sir?")
  while True:
      command = take_commands()
      if "no" in command:
          Speak("Thank u sir I will not shut down the computer")
          break
      if "yes" in command:
          # Shutting down
          Speak("Shutting the computer")
          os.system("shutdown /s /t 30")
          break
      Speak("Say that again sir")</code></pre>
  </div>
  </div>
  </p>
  <p>I couldn't add PyAudio in Python interpreter at first, so I installed it by <code>pip install pyaudio</code> and <code>conda install pyaudio</code>. I faced errors and first but finally I solved it, and finally I was able to add PyAudio from Python interpreter. however, I am still unable to <code>import pyaudio</code>, when I run my code I get this error:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Traceback (most recent call last):
    File "C:\Users\moham\PycharmProjects\rich\venv\lib\site-packages\speech_recognition\__init__.py", line 107, in get_pyaudio
      import pyaudio
  ModuleNotFoundError: No module named 'pyaudio'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\moham\OneDrive\الصور\Screenshots\ig-followers-master\shutdown.py", line 50, in &lt;module&gt;
      command = take_commands()
    File "C:\Users\moham\OneDrive\الصور\Screenshots\ig-followers-master\shutdown.py", line 17, in take_commands
      with sr.Microphone() as source:
    File "C:\Users\moham\PycharmProjects\rich\venv\lib\site-packages\speech_recognition\__init__.py", line 79, in __init__
      self.pyaudio_module = self.get_pyaudio()
    File "C:\Users\moham\PycharmProjects\rich\venv\lib\site-packages\speech_recognition\__init__.py", line 109, in get_pyaudio
      raise AttributeError("Could not find PyAudio; check installation")
  AttributeError: Could not find PyAudio; check installation</code></pre>
  </div>
  </div>
  
  So my question: &quot;Will the error disappear if I imported PyAudio, if yes how could I?&quot;</p>