Skip to content

Speech-to-Text-Assistant,Use ChatGPT to create my owner Assistant

Notifications You must be signed in to change notification settings

JimmyYu7/ChatGPT_for_Jarvis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Voice Assistant with OpenAI GPT-3

This project is a voice assistant powered by OpenAI's GPT-3 model. The assistant listens to the user's input, processes the speech to text, sends the text to the GPT-3 model, and then speaks the generated text back to the user.

Features

  • Speech to text conversion using the speech_recognition library
  • Text to speech conversion using the pyttsx3 library
  • Conversation management with the OpenAI GPT-3 model
  • Ability to interrupt the response after a specific duration

Dependencies

The following Python libraries are required to run this voice assistant:

  • openai
  • pyttsx3
  • speech_recognition
  • playsound

To install these dependencies, you can use pip:

pip install -r requirements.txt

Usage

To start the voice assistant, simply run the script with Python:

python main.py

The assistant will greet you with a welcome message. You can then start speaking to the assistant. If the assistant does not understand you, it will tell you so. You can terminate the conversation by saying "thank you for your help".

Please note that you need to replace "sk-XXXXXX" with your actual OpenAI API key.

Future Enhancements

Future enhancements could include improving speech recognition accuracy, adding more conversational features, or integrating with other services.

About

Speech-to-Text-Assistant,Use ChatGPT to create my owner Assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages