kishanrajput23 / Jarvis-Desktop-Voice-Assistant

Your Own Personal Voice Assistant. It's a mini python project.
MIT License
136 stars 226 forks source link

No module named speech recongition #8

Closed Pixel-svg closed 5 days ago

Pixel-svg commented 1 week ago

i did every step on the intillation guide but it still returns these problems image What do i need to install im new to python

kishanrajput23 commented 5 days ago

Installing SpeechRecognition in Python

To install a speech recognition library in Python, you typically have a few options. One popular library for speech recognition is SpeechRecognition. Here’s how you can install it:

Using pip

Open your terminal or command prompt and run:

pip install SpeechRecognition

Additional dependencies

Depending on your operating system, you might need additional dependencies for SpeechRecognition to work:

For Windows

You may need to install pyaudio separately. You can do this with:

pip install pyaudio

If you encounter issues, you might need to install pywin32 as well:

pip install pywin32

For macOS

You might need to install portaudio using brew:

brew install portaudio

Then install pyaudio:

pip install pyaudio

For Linux

You might need to install portaudio using your package manager (e.g., apt-get, yum, pacman):

sudo apt-get install portaudio19-dev  # Example for Ubuntu/Debian

Then install pyaudio:

bash
pip install pyaudio

After installing SpeechRecognition and its dependencies, you can start using it in your Python code to recognize speech from various sources such as microphone input or audio files.