Welcome to GPT-Work, a collection of Python scripts that interface with the GPT API and other related technologies. These tools are designed to showcase the capabilities of AI-driven interactions in various forms.
Developed by Kayden Cormier (Kaydonbob03) and K-Games Media.
ⓒ 2023 Kayden Cormier | ⓒ 2023 K-Games Media. All Rights Reserved.
This repository is for personal use and educational purposes. Users are permitted to access, use, and modify the code. Redistribution or commercial use is strictly prohibited.
To utilize these scripts, an OpenAI API key is essential. Obtain one from OpenAI API Keys.
For specific functionalities like speech-to-text and text-to-speech, additional keys are required:
- Azure Key: Create one at the Azure Portal under speech services.
- Google Cloud Services Credentials: Available at Google Cloud Credentials.
-
Changelog.md
- Documents the updates and changes made to the scripts in this repository.
-
GPTvoice.py
- Transcribes user input from a microphone using Google Cloud, processes it through GPT-4, and then outputs spoken responses via Azure Text-To-Speech.
Required installations:
pip install pyaudio numpy azure.cognitiveservices.speech openai threading keyboard google.cloud speech wave
-
InputtoResponse.py
- Offers two modes: standard GPT chat and GPT chat with a fixed prompt. Toggle between them by commenting out the desired section.
Dependencies:
pip install openai
-
Imagegeneration.py
- Generates images based on user input using OpenAI's Dall-E-3.
Install:
pip install openai requests
-
inputtovoice.py
- Similar to GPTvoice.py, but takes text input instead of audio.
Install these packages:
pip install pyaudio numpy azure.cognitiveservices.speech openai wave
-
GPTVoicewithGUI.py
- An interactive GUI application that mirrors the functionality of GPTvoice.py but allows users to edit the fixed prompt and start recording with a button click. Currently in the testing phase.
Dependencies:
pip install pyaudio numpy azure.cognitiveservices.speech openai threading keyboard google.cloud speech wave
Thank you for exploring my code! Your feedback and contributions are always welcome.