This Python project demonstrates speech recognition using the speech_recognition
library and utilizes OpenAI's Whisper model for transcribing speech.
- Clone the repository or download the project files.
- Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
- Ensure you have a microphone connected to your system.
- Run the
speech.py
script:This script listens for speech input for up to 120 seconds, transcribes it using OpenAI's Whisper model, and displays the transcribed text.python speech.py
speech.py
: Main Python script for speech recognition and transcribing using the Whisper model.requirements.txt
: Contains the required Python packages and their versions.audio.wav
: Temporary file to save the recorded audio.
Contributions are welcome! Feel free to submit issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.