(run those in command prompt/terminal)
If you are using Apple Mac OS X please do this following below
brew install portaudio
then
pip install pyaudio
If not already installed, download Homebrew (https://brew.sh/).
Also download the following below if you are on Apple Mac OS X and if you are on Windows then you just need to download the following below:
pip install speechRecognition
pip install pyttsx3
pip install pywhatkit
pip install pyjokes