Skip to content

sj-data/gpt3tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OpenAI and gTTS AI Assistant

This project is a basic AI assistant that uses OpenAI's GPT-3 API and gTTS (Google Text-to-Speech) library to generate text and speech responses. The assistant is designed to answer questions and engage in conversation with the user.

Requirements

  • Python 3.x
  • OpenAI API Key
  • gTTS library (pip install gTTS)
  • pydub library (pip install pydub)

Usage

  1. Clone the repository.
  2. Replace API KEY HERE in the code with your OpenAI API key.
  3. Run the code using the following command: python main.py.
  4. Enter a question or type exit to quit the program.
  5. The AI assistant will generate a text response and read it out loud using gTTS.

Contributing

If you want to contribute to this project, feel free to submit a pull request.

License

This project is licensed under the MIT License. Feel free to use it for your own projects.

About

A simple script to give a voice to OpenAI's ChatGPT API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages