AvishkaRavishan / Javis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javis

Set up a new project: Open PyCharm and create a new Python project by selecting "File" -> "New Project". Choose a project location and configure the project settings.

*Install dependencies: In PyCharm's terminal or command prompt, install the required libraries by running the following commands: pip install SpeechRecognition pip install pyttsx3

** Create a Python file: Right-click on the project in the Project view and select "New" -> "Python File". Give the file a name, such as "voice_assistant.py".

Write the code: In the newly created Python file, copy and paste the Python code snippet provided earlier. Customize the code: Modify the code to add the necessary API calls, adjust error handling, or implement additional functionalities based on your requirements.

Run the code: To run the code in PyCharm, click on the "Run" button or use the shortcut "Shift + F10". Make sure your microphone is connected and accessible to the application.

Test the voice assistant: Speak commands or questions into the microphone to interact with the voice assistant. The assistant should convert your speech to text, send it to the GPT-3.5 API, and play back the synthesized response.**

About

License:MIT License


Languages

Language:Python 100.0%