Search code examples
pythonmodulespeech-recognitionpyaudiomicrophone

Error using Microphone() from speech_recognition module PYTHON


I was working on a project which uses Microphone, so implementing THIS

I got THIS error.

After finding a little bit about the method causing the error I find that it's missing a module called 'pyaudio'.

So, in terminal I tried installing that with 'pip install PyAudio' but got THIS error.

Also tried installing that in powershell and also in a different IDE, don't know how to resolve it.

Anyone please help, Thank you.


Solution

  • try using pipwin

    pip install pipwin 
    pipwin install pyaudio
    

    Or try importing wheel if you haven't yet

    pip import wheel