This Python script is designed to assist users in practicing data structure and algorithm-related interview questions. The assistant engages with the user by posing questions, transcribing speech responses into text, and evaluating answers that you have given .Then you are provided with a score according to your given answers .
- OpenAI GPT-3.5 Turbo API key: Obtain and set the API key in the
.env
file. - Python 3.x
re
(regular expressions)openai
(OpenAI GPT-3.5 Turbo API)pyttsx3
(text-to-speech conversion)speech_recognition
(speech recognition)dotenv
(for loading API key from the.env
file)
- Clone the repository:
git clone https://github.com/your-username/Interview-Practice-Assistant.git
- Install dependencies:
pip install -r requirements.txt
- Set up your OpenAI API key:
-
Create a
.env
file in the root directory. -
Add your OpenAI GPT-3.5 Turbo API key to the
.env
file:API_KEY=your-api-key-goes-here
-
-
Run the script:
python interview_assistant.py
-
The assistant will ask predefined questions. Speak your responses, and the assistant will evaluate them using the OpenAI model.
Feel free to customize the list of interview questions (dsa_questions
) or modify the script for your specific use case.
- Personalized Practice: Users can practice interview questions in a conversational manner, enhancing their ability to articulate solutions.
- Real-time Feedback: The OpenAI model provides immediate feedback on the quality of responses, helping users identify areas for improvement.
- Voice Interaction: The script supports voice input, making the practice experience more interactive and resembling a real interview scenario.
The Interview Practice Assistant leverages cutting-edge technology to offer an interactive and personalized interview preparation experience. Whether you are a job seeker honing your skills or an interviewer looking to simulate questions, this tool provides a dynamic platform for practicing and refining your responses. By integrating speech recognition and the power of GPT-3.5 Turbo, the assistant strives to make the interview preparation process more engaging and effective.
- Adjust pyttsx3 settings (voice, volume, rate) in the code according to your preferences.
- Ensure the
.env
file contains the correct OpenAI GPT-3.5 Turbo API key.