title: Getting error while installing pyaudio in windows 10
body: <p>I am a beginner in python language. I have written a test function in python for converting speech-to-text :</p>
  
  <pre><code>def getAudioFromMicrophone():
      r = sr.Recognizer()
      with sr.Microphone() as source:
          lets_talk.in_female_voice('I am ready for your next command')
          r.pause_threshold=1
          r.adjust_for_ambient_noise(source,duration=1)
  
      return r.listen(source)
  </code></pre>
  
  <p>When I run it, it says : </p>
  
  <blockquote>
    <p>File "D:/PycharmProjects/python-modules/jarvis/jarvis.py", line 5,
    in 
        import pyaudio ModuleNotFoundError: No module named 'pyaudio'</p>
  </blockquote>
  
  <p>So, I am trying to install pyaudio in my windows 10 which is again showing an error.</p>
  
  <pre><code>Collecting pyaudio   Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz Installing collected packages: pyaudio   Running setup.py install for pyaudio: started
      Running setup.py install for pyaudio: finished with status 'error'
      Complete output from command D:\softwares\python-compiler\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\username\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
  --record C:\Users\username\AppData\Local\Temp\pip-record-9qmland0\install-record.txt
  --single-version-externally-managed --compile:
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.7
      copying src\pyaudio.py -&gt; build\lib.win-amd64-3.7
      warning: build_py: byte-compiling is disabled, skipping.
  
      running build_ext
      building '_portaudio' extension
      creating build\temp.win-amd64-3.7
      creating build\temp.win-amd64-3.7\Release
      creating build\temp.win-amd64-3.7\Release\src
      C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1
  -ID:\softwares\python-compiler\include -ID:\softwares\python-compiler\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
      _portaudiomodule.c
      d:\softwares\python-compiler\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
      src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
      src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  
      ----------------------------------------
  
  Command "D:\softwares\python-compiler\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\username\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
  --record C:\Users\username\AppData\Local\Temp\pip-record-9qmland0\install-record.txt
  --single-version-externally-managed --compile" failed with error code 1 in C:\Users\username\AppData\Local\Temp\pycharm-packaging\pyaudio\ You are using pip version 18.1, however version 19.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
  </code></pre>
  
  <p>Any sort of help will be appreciated!</p>